blob: 3b6f1ef2f409bd8cda58f0e08c80e43f875a0963 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
EAPI=2
inherit versionator eutils
REL=$(get_version_component_range 1-2)
SHORTREL=${REL/#20/}
DESCRIPTION="Perforce version control system server"
HOMEPAGE="http://www.perforce.com/"
SRC_URI="x86? ( ftp://ftp.perforce.com/perforce/r${SHORTREL}/bin.linux26x86/p4d \
-> ${PF}-x86 )
amd64? (
ftp://ftp.perforce.com/perforce/r${SHORTREL}/bin.linux26x86_64/p4d \
-> ${PF}-amd64 )"
LICENSE="perforce"
SLOT="0"
KEYWORDS="-* ~x86 ~amd64"
IUSE=""
RESTRICT="mirror strip"
S=${WORKDIR}
pkg_setup() {
enewgroup perforce
enewuser perforce -1 -1 /var/lib/perforce perforce
}
src_unpack() {
cp ${DISTDIR}/${A} p4d
}
src_install() {
dosbin p4d
insinto /etc/conf.d
newins ${FILESDIR}/p4d.confd p4d
exeinto /etc/init.d
newexe ${FILESDIR}/p4d.initd p4d
dodir /var/lib/perforce || die
fowners perforce:perforce /var/lib/perforce
}
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 as"
einfo "the database."
einfo "We highly recommend moving it to a different hard disk"
einfo
}
|