# 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" REAL_URI="${BIN_BASE}/p4d" SRC_URI="${BIN_BASE}/p4d-${PVR}" LICENSE="perforce.pdf" SLOT="0" KEYWORDS="~x86" IUSE="" RESTRICT="fetch strip" DEPEND="virtual/libc" S=${WORKDIR} pkg_setup() { enewgroup perforce enewuser perforce -1 -1 /home/perforce perforce } pkg_nofetch() { einfo einfo " Due to file naming issues, we cannot fetch the p4d executable" einfo " automatically." einfo einfo " 1. Download ${REAL_URI}" einfo " 2. Move file to ${DISTDIR}/p4d-${PVR}" einfo } src_unpack() { cp ${DISTDIR}/p4d-${PVR} p4d } src_install() { dosbin p4d insinto /etc/conf.d newins ${FILESDIR}/p4d.confd p4d exeinto /etc/init.d newexe ${FILESDIR}/p4d.initd p4d } pkg_postinst() { einfo einfo "Remember to edit the config file /etc/conf.d/p4d" einfo "By default, the journal file will be created in the same directory than the database" einfo " It is recommendable to move it to a different hard disk" einfo }