# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit eutils DESCRIPTION="Perforce Server" HOMEPAGE="http://www.perforce.com/" URI_BASE="http://www.perforce.com/downloads/perforce/r06.1" BIN_BASE="$URI_BASE/bin.linux26x86" SRC_URI="${BIN_BASE}/p4d" LICENSE="perforce.pdf" SLOT="0" KEYWORDS="~x86" IUSE="" RESTRICT="nomirror nostrip" DEPEND="virtual/libc" S=${WORKDIR} pkg_setup() { enewgroup perforce enewuser perforce -1 -1 /home/perforce perforce } src_unpack() { # we have to copy all of the files from $DISTDIR, otherwise we get # sandbox violations when trying to install cp ${DISTDIR}/p4d p4d-${PV} } src_install() { dosbin ${DISTDIR}/p4d exeinto /etc/init.d doexe ${FILESDIR}/p4d }