Lines 4-12
Link Here
|
4 |
|
4 |
|
5 |
inherit flag-o-matic eutils |
5 |
inherit flag-o-matic eutils |
6 |
|
6 |
|
7 |
#Mod shaper is giving problems on some machines |
7 |
IUSE="hardened ipv6 ldap mysql pam postgres shaper softquota ssl tcpd |
8 |
IUSE="hardened ipv6 ldap mysql pam postgres shaper softquota ssl tcpd selinux sendfile" |
8 |
selinux sendfile authunix authfile ncurses xinetd" |
9 |
#IUSE="hardened ipv6 ldap mysql pam postgres softquota ssl tcpd selinux" |
|
|
10 |
|
9 |
|
11 |
MY_P=${P/_/} |
10 |
MY_P=${P/_/} |
12 |
S=${WORKDIR}/${MY_P} |
11 |
S=${WORKDIR}/${MY_P} |
Lines 20-31
Link Here
|
20 |
LICENSE="GPL-2" |
19 |
LICENSE="GPL-2" |
21 |
KEYWORDS="~x86 ~sparc ~hppa ~alpha ~ppc ~mips ~amd64 ~ppc64" |
20 |
KEYWORDS="~x86 ~sparc ~hppa ~alpha ~ppc ~mips ~amd64 ~ppc64" |
22 |
|
21 |
|
23 |
DEPEND="pam? ( >=sys-libs/pam-0.75 ) |
22 |
DEPEND="pam? ( virtual/pam ) |
24 |
mysql? ( >=dev-db/mysql-3.23.26 ) |
23 |
mysql? ( >=dev-db/mysql-3.23.26 ) |
25 |
ldap? ( >=net-nds/openldap-1.2.11 ) |
24 |
ldap? ( >=net-nds/openldap-1.2.11 ) |
26 |
postgres? ( >=dev-db/postgresql-7.3 ) |
25 |
postgres? ( >=dev-db/postgresql-7.3 ) |
27 |
ssl? ( >=dev-libs/openssl-0.9.6f ) |
26 |
ssl? ( >=dev-libs/openssl-0.9.6f ) |
28 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 )" |
27 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 ) |
|
|
28 |
ncurses? ( sys-libs/ncurses ) |
29 |
xinetd? ( sys-apps/xinetd )" |
29 |
|
30 |
|
30 |
RDEPEND="selinux? ( sec-policy/selinux-ftpd )" |
31 |
RDEPEND="selinux? ( sec-policy/selinux-ftpd )" |
31 |
|
32 |
|
Lines 75-84
Link Here
|
75 |
myconf="${myconf} --with-includes=/usr/include/postgresql" |
76 |
myconf="${myconf} --with-includes=/usr/include/postgresql" |
76 |
fi |
77 |
fi |
77 |
|
78 |
|
78 |
if use sendfile; then |
|
|
79 |
myconf="${myconf} --with-sendfile" |
80 |
fi |
81 |
|
82 |
if use softquota; then |
79 |
if use softquota; then |
83 |
modules="${modules}:mod_quotatab" |
80 |
modules="${modules}:mod_quotatab" |
84 |
if use mysql || use postgres; then |
81 |
if use mysql || use postgres; then |
Lines 112-118
Link Here
|
112 |
--enable-autoshadow \ |
109 |
--enable-autoshadow \ |
113 |
--enable-ctrls \ |
110 |
--enable-ctrls \ |
114 |
--with-modules=${modules} \ |
111 |
--with-modules=${modules} \ |
115 |
${myconf} $( use_enable ipv6 ) || die "bad ./configure" |
112 |
$(use_enable authunix auth-unix) \ |
|
|
113 |
$(use_enable authfile auth-file) \ |
114 |
$(use_enable ncurses) \ |
115 |
$(use_enable ipv6) \ |
116 |
$(use_with sendfile) \ |
117 |
${myconf} || die "bad ./configure" |
116 |
|
118 |
|
117 |
emake || die "compile problem" |
119 |
emake || die "compile problem" |
118 |
} |
120 |
} |
Lines 139-159
Link Here
|
139 |
insinto /etc/proftpd |
141 |
insinto /etc/proftpd |
140 |
newins ${FILESDIR}/proftpd.conf proftpd.conf.sample |
142 |
newins ${FILESDIR}/proftpd.conf proftpd.conf.sample |
141 |
|
143 |
|
142 |
if use pam; then |
144 |
newpamd ${FILESDIR}/ftp.pamd-include ftp |
143 |
insinto /etc/pam.d |
|
|
144 |
newins ${FILESDIR}/ftp.pamd ftp |
145 |
fi |
146 |
|
145 |
|
147 |
insinto /etc/xinetd.d |
146 |
if use xinetd; then |
148 |
newins ${FILESDIR}/proftpd.xinetd proftpd |
147 |
insinto /etc/xinetd.d |
|
|
148 |
newins ${FILESDIR}/proftpd.xinetd proftpd |
149 |
fi |
149 |
|
150 |
|
150 |
exeinto /etc/init.d ; newexe ${FILESDIR}/proftpd.rc6 proftpd |
151 |
newinitd ${FILESDIR}/proftpd.rc6 proftpd |
151 |
} |
152 |
} |
152 |
|
153 |
|
153 |
pkg_postinst() { |
154 |
pkg_postinst() { |
154 |
groupadd proftpd &>/dev/null |
155 |
enewgroup proftpd |
155 |
id proftpd &>/dev/null || \ |
156 |
enewuser proftpd -1 /bin/false /home/ftp proftpd |
156 |
useradd -g proftpd -d /home/ftp -s /bin/false proftpd |
|
|
157 |
einfo |
157 |
einfo |
158 |
einfo 'You can find the config files in /etc/proftpd' |
158 |
einfo 'You can find the config files in /etc/proftpd' |
159 |
einfo |
159 |
einfo |