blob: b75303fcd72205fbb2315d22784c0758951dbeb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/perforce-proxy/perforce-proxy-2003.1.ebuild,v 1.5 2004/06/25 02:42:51 agriffis Exp $
inherit eutils
DESCRIPTION="Proxy daemon for a commercial version control system"
HOMEPAGE="http://www.perforce.com/"
SRC_URI="ftp://ftp.perforce.com/perforce/r03.1/bin.linux24x86/p4p"
LICENSE="perforce.pdf"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RESTRICT="nomirror nostrip"
DEPEND="virtual/glibc"
S=${WORKDIR}
MY_FILES=${FILESDIR}/perforce-proxy-2003.1/
src_unpack() {
# we have to copy all of the files from $DISTDIR, otherwise we get
# sandbox violations when trying to install
for x in p4p ; do
cp ${DISTDIR}/$x .
done
}
src_install() {
enewuser perforce
enewgroup perforce
dosbin p4p
fowners perforce:perforce /usr/sbin/p4p
mkdir -p ${D}/var/log
touch ${D}/var/log/perforce-proxy
fowners perforce:perforce /var/log/perforce-proxy
keepdir /var/cache/perforce-proxy
fowners perforce:perforce /var/cache/perforce-proxy
exeinto /etc/init.d
doexe ${MY_FILES}/init.d/perforce-proxy
insinto /etc/conf.d
doins ${MY_FILES}/conf.d/perforce-proxy
}
|