blob: 41002763c00614d704872baa2980cfe891a5e6a1 (
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
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/perforce/perforce-2002.2.ebuild,v 1.3 2004/04/26 01:36:03 vapier Exp $
inherit eutils
DESCRIPTION="Commercial version control system"
HOMEPAGE="http://www.perforce.com/"
URI_BASE="ftp://ftp.perforce.com/perforce/r02.2/"
BIN_BASE="$URI_BASE/bin.linux24x86"
DOC_BASE="$URI_BASE/doc"
SRC_URI="$BIN_BASE/p4d $BIN_BASE/p4 $BIN_BASE/p4web $BIN_BASE/p4ftpd $BIN_BASE/p4p $DOC_BASE/man/p4.1 $DOC_BASE/man/p4d.1"
LICENSE="perforce.pdf"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RESTRICT="nomirror nostrip"
DEPEND="virtual/glibc"
S=${WORKDIR}
MY_FILES=${FILESDIR}/perforce-2002.2/
src_unpack() {
# we have to copy all of the files from $DISTDIR, otherwise we get
# sandbox violations when trying to install
for x in p4 p4web p4d p4ftpd p4p p4.1 p4d.1 ; do
cp ${DISTDIR}/$x .
done
}
src_install() {
enewuser perforce
enewgroup perforce
dobin p4
dosbin p4d
dosbin p4web
dosbin p4p
dosbin p4ftpd
fowners perforce:perforce /usr/sbin/p4d
fowners perforce:perforce /usr/sbin/p4p
fowners perforce:perforce /usr/sbin/p4ftpd
fowners perforce:perforce /usr/sbin/p4web
doman p4.1 p4d.1
keepdir /var/lib/perforce
fowners perforce:perforce /var/lib/perforce
exeinto /etc/init.d
doexe ${MY_FILES}/init.d/perforce
insinto /etc/conf.d
doins ${MY_FILES}/conf.d/perforce
insinto /etc/env.d
doins ${MY_FILES}/50perforce
}
|