Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /home/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.2.9_rc1.ebuild,v 1.6 2003/09/07 00:12:23 msterret Exp $ |
3 |
# $Header: /home/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.2.9_rc1.ebuild,v 1.6 2003/09/07 00:12:23 msterret Exp $ |
4 |
|
4 |
|
5 |
IUSE="ldap pam postgres mysql ssl tcpd" |
5 |
IUSE="ldap pam postgres mysql ssl tcpd daemontools" |
6 |
|
6 |
|
7 |
MY_P=${P/_/} |
7 |
MY_P=${P/_/} |
8 |
S=${WORKDIR}/${MY_P} |
8 |
S=${WORKDIR}/${MY_P} |
Lines 14-19
Link Here
|
14 |
LICENSE="GPL-2" |
14 |
LICENSE="GPL-2" |
15 |
KEYWORDS="x86 sparc hppa alpha ppc" |
15 |
KEYWORDS="x86 sparc hppa alpha ppc" |
16 |
|
16 |
|
|
|
17 |
RDEPEND="daemontools? ( >=sys-apps/daemontools-0.76 )" |
17 |
DEPEND="net-libs/libpcap |
18 |
DEPEND="net-libs/libpcap |
18 |
pam? ( >=sys-libs/pam-0.75 ) |
19 |
pam? ( >=sys-libs/pam-0.75 ) |
19 |
mysql? ( >=dev-db/mysql-3.23.26 ) |
20 |
mysql? ( >=dev-db/mysql-3.23.26 ) |
Lines 22-27
Link Here
|
22 |
ssl? ( >=dev-libs/openssl-0.9.6f ) |
23 |
ssl? ( >=dev-libs/openssl-0.9.6f ) |
23 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 )" |
24 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 )" |
24 |
|
25 |
|
|
|
26 |
pkg_setup() { |
27 |
if use daemontools ; then |
28 |
if ! grep -q ^ftplog /etc/group ; then |
29 |
groupadd ftplog || die "Failed to add group: ftplog" |
30 |
fi |
31 |
|
32 |
if ! grep -q ^ftplog /etc/passwd ; then |
33 |
useradd -g ftplog -d /dev/null -s /dev/null ftplog || die "Failed to add user: ftplog" |
34 |
fi |
35 |
fi |
36 |
} |
37 |
|
25 |
src_unpack() { |
38 |
src_unpack() { |
26 |
unpack ${MY_P}.tar.bz2 |
39 |
unpack ${MY_P}.tar.bz2 |
27 |
cd ${S} |
40 |
cd ${S} |
Lines 107-112
Link Here
|
107 |
newins ${FILESDIR}/proftpd.xinetd proftpd |
120 |
newins ${FILESDIR}/proftpd.xinetd proftpd |
108 |
|
121 |
|
109 |
exeinto /etc/init.d ; newexe ${FILESDIR}/proftpd.rc6 proftpd |
122 |
exeinto /etc/init.d ; newexe ${FILESDIR}/proftpd.rc6 proftpd |
|
|
123 |
|
124 |
if use daemontools && [ ! -d /etc/proftpd/supervise ] ; then |
125 |
diropts -m 755 -o root |
126 |
dodir /etc/proftpd/supervise /etc/proftpd/supervise/log |
127 |
exeinto /etc/proftpd/supervise |
128 |
newexe ${FILESDIR}/proftpd.supervise.run run |
129 |
exeinto /etc/proftpd/supervise/log |
130 |
newexe ${FILESDIR}/proftpd.supervise.log run |
131 |
|
132 |
diropts -m 755 -o ftplog -g ftplog |
133 |
dodir /var/log/ftpd |
134 |
keepdir /var/log/ftpd |
135 |
fi |
110 |
} |
136 |
} |
111 |
|
137 |
|
112 |
pkg_postinst() { |
138 |
pkg_postinst() { |