1 |
voyageur 11/09/28 09:47:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: proftpd-1.3.3f.ebuild proftpd-1.3.4_rc3.ebuild |
5 |
Removed: proftpd-1.3.3d-r1.ebuild |
6 |
proftpd-1.3.4_rc2-r2.ebuild |
7 |
Log: |
8 |
Fix init script depecrated variables, version bumps |
9 |
|
10 |
(Portage version: 2.2.0_alpha59/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.276 net-ftp/proftpd/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/proftpd/ChangeLog?rev=1.276&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/proftpd/ChangeLog?rev=1.276&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/proftpd/ChangeLog?r1=1.275&r2=1.276 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v |
22 |
retrieving revision 1.275 |
23 |
retrieving revision 1.276 |
24 |
diff -u -r1.275 -r1.276 |
25 |
--- ChangeLog 18 Aug 2011 14:40:44 -0000 1.275 |
26 |
+++ ChangeLog 28 Sep 2011 09:47:22 -0000 1.276 |
27 |
@@ -1,6 +1,20 @@ |
28 |
# ChangeLog for net-ftp/proftpd |
29 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.275 2011/08/18 14:40:44 voyageur Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.276 2011/09/28 09:47:22 voyageur Exp $ |
32 |
+ |
33 |
+*proftpd-1.3.4_rc3 (28 Sep 2011) |
34 |
+*proftpd-1.3.3f (28 Sep 2011) |
35 |
+ |
36 |
+ 28 Sep 2011; Bernard Cafarelli <voyageur@g.o> |
37 |
+ -proftpd-1.3.3d-r1.ebuild, +proftpd-1.3.3f.ebuild, |
38 |
+ -proftpd-1.3.4_rc2-r2.ebuild, +proftpd-1.3.4_rc3.ebuild, |
39 |
+ -files/proftpd-1.3.4_rc2-sql-groupsetfast-null-pointer.patch, |
40 |
+ -files/proftpd-bug3586.patch, files/proftpd.initd: |
41 |
+ Proxy commit: |
42 |
+ * Remove init script deprecated --oknodo (bug #384393) |
43 |
+ * Readd memcache support (bug #378881) |
44 |
+ * Add support of ProFTPD's api test suite |
45 |
+ * Remove trivial mod_exec warning |
46 |
|
47 |
*proftpd-1.3.4_rc2-r2 (18 Aug 2011) |
48 |
|
49 |
|
50 |
|
51 |
|
52 |
1.1 net-ftp/proftpd/proftpd-1.3.3f.ebuild |
53 |
|
54 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3f.ebuild?rev=1.1&view=markup |
55 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3f.ebuild?rev=1.1&content-type=text/plain |
56 |
|
57 |
Index: proftpd-1.3.3f.ebuild |
58 |
=================================================================== |
59 |
# Copyright 1999-2011 Gentoo Foundation |
60 |
# Distributed under the terms of the GNU General Public License v2 |
61 |
# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3f.ebuild,v 1.1 2011/09/28 09:47:22 voyageur Exp $ |
62 |
|
63 |
EAPI="2" |
64 |
inherit eutils autotools |
65 |
|
66 |
CASE_VER="0.4" |
67 |
CLAMAV_VER="0.11rc" |
68 |
DEFLATE_VER="0.5.4" |
69 |
GSS_VER="1.3.3" |
70 |
VROOT_VER="0.9.2" |
71 |
|
72 |
DESCRIPTION="An advanced and very configurable FTP server." |
73 |
HOMEPAGE="http://www.proftpd.org/ |
74 |
http://www.castaglia.org/proftpd/ |
75 |
http://www.thrallingpenguin.com/resources/mod_clamav.htm |
76 |
http://gssmod.sourceforge.net/" |
77 |
SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2 |
78 |
case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz ) |
79 |
clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${CLAMAV_VER}.tar.gz ) |
80 |
deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz ) |
81 |
kerberos? ( mirror://sourceforge/gssmod/mod_gss-${GSS_VER}.tar.gz ) |
82 |
vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )" |
83 |
LICENSE="GPL-2" |
84 |
|
85 |
SLOT="0" |
86 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
87 |
IUSE="acl authfile ban +caps case clamav +ctrls deflate doc exec ifsession ident ipv6 kerberos ldap mysql ncurses nls pam postgres radius ratio readme rewrite selinux sftp shaper sitemisc softquota ssl tcpd trace vroot xinetd" |
88 |
|
89 |
DEPEND="acl? ( sys-apps/acl sys-apps/attr ) |
90 |
caps? ( sys-libs/libcap ) |
91 |
clamav? ( app-antivirus/clamav ) |
92 |
kerberos? ( virtual/krb5 ) |
93 |
ldap? ( net-nds/openldap ) |
94 |
mysql? ( virtual/mysql ) |
95 |
ncurses? ( sys-libs/ncurses ) |
96 |
pam? ( virtual/pam ) |
97 |
postgres? ( dev-db/postgresql-base ) |
98 |
sftp? ( dev-libs/openssl ) |
99 |
ssl? ( dev-libs/openssl ) |
100 |
tcpd? ( sys-apps/tcp-wrappers ) |
101 |
xinetd? ( virtual/inetd )" |
102 |
RDEPEND="${DEPEND} |
103 |
net-ftp/ftpbase |
104 |
selinux? ( sec-policy/selinux-ftpd )" |
105 |
|
106 |
S="${WORKDIR}/${P/_/}" |
107 |
|
108 |
__prepare_module() { |
109 |
mv "${WORKDIR}"/$1/$1.c contrib |
110 |
mv "${WORKDIR}"/$1/$1.html doc/contrib |
111 |
rm -rf "${WORKDIR}"/$1 |
112 |
} |
113 |
|
114 |
pkg_setup() { |
115 |
if [ -f "${ROOT}"/var/run/proftpd.pid ] ; then |
116 |
eerror "Your ProFTPD server is running. In order to install this update" |
117 |
eerror "you have to stop the running server. If you are using ProFTPD in" |
118 |
eerror "the standalone mode you can stop the server by executing:" |
119 |
eerror " /etc/init.d/proftpd stop" |
120 |
eerror "If you are sure that ProFTPD is not running anymore you have to" |
121 |
eerror "delete the /var/run/proftpd.pid file." |
122 |
die "This update requires to stop the ProFTPD server!" |
123 |
fi |
124 |
} |
125 |
|
126 |
src_prepare() { |
127 |
use case && __prepare_module mod_case |
128 |
if use clamav ; then |
129 |
mv "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/mod_clamav.{c,h} contrib |
130 |
epatch "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/${PN}.patch |
131 |
rm -rf "${WORKDIR}"/mod_clamav-${CLAMAV_VER} |
132 |
fi |
133 |
use deflate && __prepare_module mod_deflate |
134 |
use vroot && __prepare_module mod_vroot |
135 |
|
136 |
# Fix MySQL includes |
137 |
sed -i -e "s/<mysql.h>/<mysql\/mysql.h>/g" contrib/mod_sql_mysql.c |
138 |
|
139 |
# Manipulate build system |
140 |
sed -i -e "s/utils install-conf install/utils install/g" Makefile.in |
141 |
sed -i -e "s/ @INSTALL_STRIP@//g" Make.rules.in |
142 |
|
143 |
# Support new versions of mit-krb5 (Gentoo Bugs #284853, #324903) |
144 |
if use kerberos ; then |
145 |
cd "${WORKDIR}"/mod_gss-${GSS_VER} |
146 |
sed -i -e "s/krb5_principal2principalname/_\0/" mod_auth_gss.c.in |
147 |
sed -i -e "/ac_gss_libs/s/\-ldes425\ //" configure.in |
148 |
eautoreconf |
149 |
fi |
150 |
} |
151 |
|
152 |
src_configure() { |
153 |
local myc myl mym |
154 |
|
155 |
use acl && mym="${mym}:mod_facl" |
156 |
use ban && mym="${mym}:mod_ban" |
157 |
use case && mym="${mym}:mod_case" |
158 |
use clamav && mym="${mym}:mod_clamav" |
159 |
if use ctrls || use ban || use shaper ; then |
160 |
myc="${myc} --enable-ctrls" |
161 |
mym="${mym}:mod_ctrls_admin" |
162 |
fi |
163 |
use deflate && mym="${mym}:mod_deflate" |
164 |
use exec && mym="${mym}:mod_exec" |
165 |
if use kerberos ; then |
166 |
cd "${WORKDIR}"/mod_gss-${GSS_VER} |
167 |
if has_version app-crypt/mit-krb5 ; then |
168 |
econf --enable-mit |
169 |
else |
170 |
econf --enable-heimdal |
171 |
fi |
172 |
mv mod_{auth_gss,gss}.c "${S}"/contrib |
173 |
mv mod_gss.h "${S}"/include |
174 |
mv README.mod_{auth_gss,gss} "${S}" |
175 |
mv mod_gss.html "${S}"/doc/contrib |
176 |
mv rfc{1509,2228}.txt "${S}"/doc/rfc |
177 |
cd "${S}" |
178 |
rm -rf "${WORKDIR}"/mod_gss-${GSS_VER} |
179 |
mym="${mym}:mod_gss:mod_auth_gss" |
180 |
fi |
181 |
if use ldap ; then |
182 |
myl="${myl} -lresolv" |
183 |
mym="${mym}:mod_ldap" |
184 |
fi |
185 |
if use mysql || use postgres ; then |
186 |
mym="${mym}:mod_sql:mod_sql_passwd" |
187 |
if use mysql ; then |
188 |
myc="${myc} --with-includes=/usr/include/mysql" |
189 |
mym="${mym}:mod_sql_mysql" |
190 |
fi |
191 |
if use postgres ; then |
192 |
myc="${myc} --with-includes=/usr/include/postgresql" |
193 |
mym="${mym}:mod_sql_postgres" |
194 |
fi |
195 |
fi |
196 |
if use sftp || use ssl ; then |
197 |
CFLAGS="${CFLAGS} -DHAVE_OPENSSL" |
198 |
myc="${myc} --enable-openssl --with-includes=/usr/include/openssl" |
199 |
myl="${myl} -lcrypto" |
200 |
fi |
201 |
use radius && mym="${mym}:mod_radius" |
202 |
use ratio && mym="${mym}:mod_ratio" |
203 |
use readme && mym="${mym}:mod_readme" |
204 |
use rewrite && mym="${mym}:mod_rewrite" |
205 |
if use sftp ; then |
206 |
mym="${mym}:mod_sftp" |
207 |
use pam && mym="${mym}:mod_sftp_pam" |
208 |
if use mysql || use postgres ; then |
209 |
mym="${mym}:mod_sftp_sql" |
210 |
fi |
211 |
fi |
212 |
use shaper && mym="${mym}:mod_shaper" |
213 |
use sitemisc && mym="${mym}:mod_site_misc" |
214 |
if use softquota ; then |
215 |
mym="${mym}:mod_quotatab:mod_quotatab_file" |
216 |
use ldap && mym="${mym}:mod_quotatab_ldap" |
217 |
use radius && mym="${mym}:mod_quotatab_radius" |
218 |
if use mysql || use postgres ; then |
219 |
mym="${mym}:mod_quotatab_sql" |
220 |
fi |
221 |
fi |
222 |
use ssl && mym="${mym}:mod_tls:mod_tls_shmcache" |
223 |
use tcpd && mym="${mym}:mod_wrap" |
224 |
use vroot && mym="${mym}:mod_vroot" |
225 |
# mod_ifsession needs to be the last module in the mym list. |
226 |
use ifsession && mym="${mym}:mod_ifsession" |
227 |
|
228 |
[ -z ${mym} ] || myc="${myc} --with-modules=${mym:1}" |
229 |
LIBS="${myl:1}" econf --sbindir=/usr/sbin --localstatedir=/var/run/proftpd \ |
230 |
--sysconfdir=/etc/proftpd --enable-shadow --enable-autoshadow ${myc:1} \ |
231 |
$(use_enable acl facl) \ |
232 |
$(use_enable authfile auth-file) \ |
233 |
$(use_enable caps cap) \ |
234 |
$(use_enable ident) \ |
235 |
$(use_enable ipv6) \ |
236 |
$(use_enable ncurses) \ |
237 |
$(use_enable nls) \ |
238 |
$(use_enable trace) \ |
239 |
$(use_enable pam auth-pam) |
240 |
} |
241 |
|
242 |
src_install() { |
243 |
emake DESTDIR="${D}" install |
244 |
|
245 |
insinto /etc/proftpd |
246 |
doins "${FILESDIR}"/proftpd.conf.sample |
247 |
keepdir /var/run/proftpd |
248 |
newinitd "${FILESDIR}"/proftpd.initd proftpd |
249 |
if use xinetd ; then |
250 |
insinto /etc/xinetd.d |
251 |
newins "${FILESDIR}"/proftpd.xinetd proftpd |
252 |
fi |
253 |
|
254 |
dodoc ChangeLog CREDITS INSTALL NEWS README* RELEASE_NOTES |
255 |
if use doc ; then |
256 |
dohtml doc/*.html doc/contrib/*.html doc/howto/*.html doc/modules/*.html |
257 |
docinto rfc |
258 |
dodoc doc/rfc/*.txt |
259 |
fi |
260 |
} |
261 |
|
262 |
pkg_postinst() { |
263 |
if use mysql && use postgres ; then |
264 |
elog |
265 |
elog "ProFTPD has been built with the MySQL and PostgreSQL modules." |
266 |
elog "You can use the 'SQLBackend' directive to specify the used SQL" |
267 |
elog "backend. Without this directive the default backend is MySQL." |
268 |
elog |
269 |
fi |
270 |
if use exec ; then |
271 |
ewarn |
272 |
ewarn "ProFTPD has been built with the mod_exec module. This module" |
273 |
ewarn "can be a security risk for your server as it executes external" |
274 |
ewarn "programs. Vulnerables in these external programs may disclose" |
275 |
ewarn "information or even compromise your server." |
276 |
ewarn "You have been warned! Use this module at your own risk!" |
277 |
ewarn |
278 |
fi |
279 |
} |
280 |
|
281 |
|
282 |
|
283 |
1.1 net-ftp/proftpd/proftpd-1.3.4_rc3.ebuild |
284 |
|
285 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/proftpd/proftpd-1.3.4_rc3.ebuild?rev=1.1&view=markup |
286 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-ftp/proftpd/proftpd-1.3.4_rc3.ebuild?rev=1.1&content-type=text/plain |
287 |
|
288 |
Index: proftpd-1.3.4_rc3.ebuild |
289 |
=================================================================== |
290 |
# Copyright 1999-2011 Gentoo Foundation |
291 |
# Distributed under the terms of the GNU General Public License v2 |
292 |
# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.4_rc3.ebuild,v 1.1 2011/09/28 09:47:22 voyageur Exp $ |
293 |
|
294 |
EAPI=4 |
295 |
inherit eutils autotools |
296 |
|
297 |
MOD_CASE="0.7" |
298 |
MOD_CLAMAV="0.11rc" |
299 |
MOD_DISKUSE="0.9" |
300 |
MOD_GSS="1.3.3" |
301 |
MOD_VROOT="0.9.2" |
302 |
|
303 |
DESCRIPTION="An advanced and very configurable FTP server." |
304 |
HOMEPAGE="http://www.proftpd.org/ |
305 |
http://www.castaglia.org/proftpd/ |
306 |
http://www.thrallingpenguin.com/resources/mod_clamav.htm |
307 |
http://gssmod.sourceforge.net/" |
308 |
SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2 |
309 |
case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${MOD_CASE}.tar.gz ) |
310 |
clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${MOD_CLAMAV}.tar.gz ) |
311 |
diskuse? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-diskuse-${MOD_DISKUSE}.tar.gz ) |
312 |
kerberos? ( mirror://sourceforge/gssmod/mod_gss-${MOD_GSS}.tar.gz ) |
313 |
vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${MOD_VROOT}.tar.gz )" |
314 |
LICENSE="GPL-2" |
315 |
|
316 |
SLOT="0" |
317 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
318 |
IUSE="acl authfile ban +caps case clamav copy ctrls deflate diskuse doc exec ifsession ifversion ident |
319 |
ipv6 kerberos ldap memcache mysql ncurses nls pam +pcre postgres qos radius ratio readme rewrite |
320 |
selinux sftp shaper sitemisc softquota sqlite ssl tcpd test trace vroot xinetd" |
321 |
|
322 |
COMMON_DEPEND="acl? ( virtual/acl ) |
323 |
caps? ( sys-libs/libcap ) |
324 |
clamav? ( app-antivirus/clamav ) |
325 |
kerberos? ( virtual/krb5 ) |
326 |
ldap? ( net-nds/openldap ) |
327 |
memcache? ( >=dev-libs/libmemcached-0.41 ) |
328 |
mysql? ( virtual/mysql ) |
329 |
nls? ( virtual/libiconv ) |
330 |
ncurses? ( sys-libs/ncurses ) |
331 |
pam? ( virtual/pam ) |
332 |
pcre? ( dev-libs/libpcre ) |
333 |
postgres? ( dev-db/postgresql-base ) |
334 |
sftp? ( dev-libs/openssl ) |
335 |
sqlite? ( dev-db/sqlite:3 ) |
336 |
ssl? ( dev-libs/openssl ) |
337 |
xinetd? ( virtual/inetd )" |
338 |
|
339 |
DEPEND="${COMMON_DEPEND} |
340 |
test? ( dev-libs/check )" |
341 |
RDEPEND="${COMMON_DEPEND} |
342 |
net-ftp/ftpbase |
343 |
selinux? ( sec-policy/selinux-ftpd )" |
344 |
|
345 |
S="${WORKDIR}/${P/_/}" |
346 |
|
347 |
__prepare_module() { |
348 |
mv "${WORKDIR}"/$1/$1.c contrib |
349 |
mv "${WORKDIR}"/$1/$1.html doc/contrib |
350 |
rm -rf "${WORKDIR}"/$1 |
351 |
} |
352 |
|
353 |
src_prepare() { |
354 |
use case && __prepare_module mod_case |
355 |
if use clamav ; then |
356 |
mv "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}/mod_clamav.{c,h} contrib |
357 |
epatch "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}/${PN}.patch |
358 |
rm -rf "${WORKDIR}"/mod_clamav-${MOD_CLAMAV} |
359 |
fi |
360 |
use vroot && __prepare_module mod_vroot |
361 |
|
362 |
sed -i -e "s/utils install-conf install/utils install/g" Makefile.in |
363 |
|
364 |
# Support new versions of mit-krb5 (Gentoo Bugs #284853, #324903) |
365 |
if use kerberos ; then |
366 |
cd "${WORKDIR}"/mod_gss-${MOD_GSS} |
367 |
sed -i -e "s/krb5_principal2principalname/_\0/" mod_auth_gss.c.in |
368 |
sed -i -e "/ac_gss_libs/s/\-ldes425\ //" configure.in |
369 |
eautoreconf |
370 |
fi |
371 |
} |
372 |
|
373 |
src_configure() { |
374 |
local c m |
375 |
|
376 |
use acl && m="${m}:mod_facl" |
377 |
use ban && m="${m}:mod_ban" |
378 |
use case && m="${m}:mod_case" |
379 |
use clamav && m="${m}:mod_clamav" |
380 |
use copy && m="${m}:mod_copy" |
381 |
if use ctrls || use ban || use shaper ; then |
382 |
c="${c} --enable-ctrls" |
383 |
m="${m}:mod_ctrls_admin" |
384 |
fi |
385 |
use deflate && m="${m}:mod_deflate" |
386 |
if use diskuse ; then |
387 |
cd "${WORKDIR}"/mod_diskuse |
388 |
econf |
389 |
mv mod_diskuse.{c,h} "${S}"/contrib |
390 |
mv mod_diskuse.html "${S}"/doc/contrib |
391 |
cd "${S}" |
392 |
rm -rf "${WORKDIR}"/mod_diskuse |
393 |
m="${m}:mod_diskuse" |
394 |
fi |
395 |
use exec && m="${m}:mod_exec" |
396 |
use ifsession && m="${m}:mod_ifsession" |
397 |
use ifversion && m="${m}:mod_ifversion" |
398 |
if use kerberos ; then |
399 |
cd "${WORKDIR}"/mod_gss-${MOD_GSS} |
400 |
if has_version app-crypt/mit-krb5 ; then |
401 |
econf --enable-mit |
402 |
else |
403 |
econf --enable-heimdal |
404 |
fi |
405 |
mv mod_{auth_gss,gss}.c "${S}"/contrib |
406 |
mv mod_gss.h "${S}"/include |
407 |
mv README.mod_{auth_gss,gss} "${S}" |
408 |
mv mod_gss.html "${S}"/doc/contrib |
409 |
mv rfc{1509,2228}.txt "${S}"/doc/rfc |
410 |
cd "${S}" |
411 |
rm -rf "${WORKDIR}"/mod_gss-${MOD_GSS} |
412 |
m="${m}:mod_gss:mod_auth_gss" |
413 |
fi |
414 |
use ldap && m="${m}:mod_ldap" |
415 |
if use mysql || use postgres || use sqlite ; then |
416 |
m="${m}:mod_sql:mod_sql_passwd" |
417 |
use mysql && m="${m}:mod_sql_mysql" |
418 |
use postgres && m="${m}:mod_sql_postgres" |
419 |
use sqlite && m="${m}:mod_sql_sqlite" |
420 |
fi |
421 |
use qos && m="${m}:mod_qos" |
422 |
use radius && m="${m}:mod_radius" |
423 |
use ratio && m="${m}:mod_ratio" |
424 |
use readme && m="${m}:mod_readme" |
425 |
use rewrite && m="${m}:mod_rewrite" |
426 |
use sftp || use ssl && c="${c} --enable-openssl" |
427 |
if use sftp ; then |
428 |
m="${m}:mod_sftp" |
429 |
use pam && m="${m}:mod_sftp_pam" |
430 |
use mysql || use postgres || use sqlite && m="${m}:mod_sftp_sql" |
431 |
fi |
432 |
use shaper && m="${m}:mod_shaper" |
433 |
use sitemisc && m="${m}:mod_site_misc" |
434 |
if use softquota ; then |
435 |
m="${m}:mod_quotatab:mod_quotatab_file" |
436 |
use ldap && m="${m}:mod_quotatab_ldap" |
437 |
use radius && m="${m}:mod_quotatab_radius" |
438 |
use mysql || use postgres || use sqlite && m="${m}:mod_quotatab_sql" |
439 |
fi |
440 |
if use ssl ; then |
441 |
m="${m}:mod_tls:mod_tls_shmcache" |
442 |
use memcache && m="${m}:mod_tls_memcache" |
443 |
fi |
444 |
if use tcpd ; then |
445 |
m="${m}:mod_wrap2:mod_wrap2_file" |
446 |
use mysql || use postgres || use sqlite && m="${m}:mod_wrap2_sql" |
447 |
fi |
448 |
use vroot && m="${m}:mod_vroot" |
449 |
|
450 |
[ -z ${m} ] || c="${c} --with-modules=${m:1}" |
451 |
econf --localstatedir=/var/run/proftpd --sysconfdir=/etc/proftpd --disable-strip \ |
452 |
$(use_enable acl facl) \ |
453 |
$(use_enable authfile auth-file) \ |
454 |
$(use_enable caps cap) \ |
455 |
$(use_enable ident) \ |
456 |
$(use_enable ipv6) \ |
457 |
$(use_enable memcache) \ |
458 |
$(use_enable ncurses) \ |
459 |
$(use_enable nls) \ |
460 |
$(use_enable pam auth-pam) \ |
461 |
$(use_enable pcre) \ |
462 |
$(use_enable test tests) \ |
463 |
$(use_enable trace) \ |
464 |
$(use_enable userland_GNU shadow) \ |
465 |
$(use_enable userland_GNU autoshadow) \ |
466 |
${c:1} |
467 |
} |
468 |
|
469 |
src_test() { |
470 |
emake api-tests -C tests |
471 |
} |
472 |
|
473 |
src_install() { |
474 |
default |
475 |
newinitd "${FILESDIR}"/proftpd.initd proftpd |
476 |
insinto /etc/proftpd |
477 |
doins "${FILESDIR}"/proftpd.conf.sample |
478 |
|
479 |
if use xinetd ; then |
480 |
insinto /etc/xinetd.d |
481 |
newins "${FILESDIR}"/proftpd.xinetd proftpd |
482 |
fi |
483 |
|
484 |
dodoc ChangeLog CREDITS INSTALL NEWS README* RELEASE_NOTES |
485 |
if use doc ; then |
486 |
dohtml doc/*.html doc/contrib/*.html doc/howto/*.html doc/modules/*.html |
487 |
docinto rfc |
488 |
dodoc doc/rfc/*.txt |
489 |
fi |
490 |
} |
491 |
|
492 |
pkg_postinst() { |
493 |
if use tcpd ; then |
494 |
ewarn |
495 |
ewarn "Important: Since ProFTPD 1.3.4rc2 the module mod_wrap for TCP Wrapper" |
496 |
ewarn "support has been replaced by mod_wrap2 which is more configurable and" |
497 |
ewarn "portable. But you have to adjust your configuration before restaring" |
498 |
ewarn "ProFTPD. On the following website you can find more information:" |
499 |
ewarn " http://proftpd.org/docs/contrib/mod_wrap2.html" |
500 |
ewarn |
501 |
fi |
502 |
} |