1 |
voyageur 09/10/26 15:06:16 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: proftpd-1.3.3_rc2.ebuild proftpd-1.3.2b.ebuild |
5 |
Log: |
6 |
Version bumps, by Bernd Lommerzheim <bernd@×××××××××××.com> in bug #290262 |
7 |
(Portage version: 2.2_rc46/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.210 net-ftp/proftpd/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/ChangeLog?rev=1.210&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/ChangeLog?rev=1.210&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/ChangeLog?r1=1.209&r2=1.210 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v |
19 |
retrieving revision 1.209 |
20 |
retrieving revision 1.210 |
21 |
diff -u -r1.209 -r1.210 |
22 |
--- ChangeLog 24 Sep 2009 15:42:20 -0000 1.209 |
23 |
+++ ChangeLog 26 Oct 2009 15:06:15 -0000 1.210 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for net-ftp/proftpd |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.209 2009/09/24 15:42:20 voyageur Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.210 2009/10/26 15:06:15 voyageur Exp $ |
29 |
+ |
30 |
+*proftpd-1.3.3_rc2 (26 Oct 2009) |
31 |
+*proftpd-1.3.2b (26 Oct 2009) |
32 |
+ |
33 |
+ 26 Oct 2009; Bernard Cafarelli <voyageur@g.o> |
34 |
+ +proftpd-1.3.2b.ebuild, +proftpd-1.3.3_rc2.ebuild: |
35 |
+ Version bumps, by Bernd Lommerzheim <bernd@×××××××××××.com> in bug #290262 |
36 |
|
37 |
24 Sep 2009; Bernard Cafarelli <voyageur@g.o> |
38 |
proftpd-1.3.3_rc1-r1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-ftp/proftpd/proftpd-1.3.3_rc2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3_rc2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3_rc2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: proftpd-1.3.3_rc2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3_rc2.ebuild,v 1.1 2009/10/26 15:06:15 voyageur Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
inherit eutils |
55 |
|
56 |
CASE_VER="0.3" |
57 |
CLAMAV_VER="0.11rc" |
58 |
DEFLATE_VER="0.4" |
59 |
GSS_VER="1.3.2" |
60 |
VROOT_VER="0.8.5" |
61 |
|
62 |
DESCRIPTION="An advanced and very configurable FTP server." |
63 |
HOMEPAGE="http://www.proftpd.org/ |
64 |
http://www.castaglia.org/proftpd/ |
65 |
http://www.thrallingpenguin.com/resources/mod_clamav.htm |
66 |
http://gssmod.sourceforge.net/" |
67 |
SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2 |
68 |
case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz ) |
69 |
clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${CLAMAV_VER}.tar.gz ) |
70 |
deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz ) |
71 |
kerberos? ( mirror://sourceforge/gssmod/mod_gss-${GSS_VER}.tar.gz ) |
72 |
vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )" |
73 |
LICENSE="GPL-2" |
74 |
|
75 |
SLOT="0" |
76 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
77 |
IUSE="acl authfile ban +caps case clamav +ctrls deflate doc exec hardened ifsession ident ipv6 kerberos ldap mysql ncurses nls pam postgres radius ratio readme rewrite selinux sftp shaper sitemisc softquota ssl tcpd trace vroot xinetd" |
78 |
|
79 |
DEPEND="acl? ( sys-apps/acl sys-apps/attr ) |
80 |
caps? ( sys-libs/libcap ) |
81 |
clamav? ( app-antivirus/clamav ) |
82 |
kerberos? ( || ( <app-crypt/mit-krb5-1.7 app-crypt/heimdal ) ) |
83 |
ldap? ( net-nds/openldap ) |
84 |
mysql? ( virtual/mysql ) |
85 |
ncurses? ( sys-libs/ncurses ) |
86 |
pam? ( virtual/pam ) |
87 |
postgres? ( virtual/postgresql-base ) |
88 |
sftp? ( dev-libs/openssl ) |
89 |
ssl? ( dev-libs/openssl ) |
90 |
tcpd? ( sys-apps/tcp-wrappers ) |
91 |
xinetd? ( virtual/inetd )" |
92 |
RDEPEND="${DEPEND} |
93 |
net-ftp/ftpbase |
94 |
selinux? ( sec-policy/selinux-ftpd )" |
95 |
|
96 |
S="${WORKDIR}/${P/_/}" |
97 |
|
98 |
__prepare_module() { |
99 |
mv "${WORKDIR}"/$1/$1.c contrib |
100 |
mv "${WORKDIR}"/$1/$1.html doc/contrib |
101 |
rm -rf "${WORKDIR}"/$1 |
102 |
} |
103 |
|
104 |
pkg_setup() { |
105 |
if [ -f "${ROOT}"/var/run/proftpd.pid ] ; then |
106 |
eerror "Your ProFTPD server is running. In order to install this update" |
107 |
eerror "you have to stop the running server. If you are using ProFTPD in" |
108 |
eerror "the standalone mode you can stop the server by executing:" |
109 |
eerror " /etc/init.d/proftpd stop" |
110 |
eerror "If you are sure that ProFTPD is not running anymore you have to" |
111 |
eerror "delete the /var/run/proftpd.pid file." |
112 |
die "This update requires to stop the ProFTPD server!" |
113 |
fi |
114 |
} |
115 |
|
116 |
src_prepare() { |
117 |
use case && __prepare_module mod_case |
118 |
if use clamav ; then |
119 |
mv "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/mod_clamav.{c,h} contrib |
120 |
epatch "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/${PN}.patch |
121 |
rm -rf "${WORKDIR}"/mod_clamav-${CLAMAV_VER} |
122 |
fi |
123 |
use deflate && __prepare_module mod_deflate |
124 |
use vroot && __prepare_module mod_vroot |
125 |
|
126 |
# Fix MySQL includes |
127 |
sed -i -e "s/<mysql.h>/<mysql\/mysql.h>/g" contrib/mod_sql_mysql.c |
128 |
|
129 |
# Fix Gentoo Bug #284853 |
130 |
use kerberos && sed -i -e "s/krb5_principal2principalname/_\0/" \ |
131 |
"${WORKDIR}"/mod_gss-${GSS_VER}/mod_auth_gss.c.in |
132 |
|
133 |
# Manipulate build system |
134 |
sed -i -e "s/utils install-conf install/utils install/g" Makefile.in |
135 |
sed -i -e "s/ @INSTALL_STRIP@//g" Make.rules.in |
136 |
} |
137 |
|
138 |
src_configure() { |
139 |
local myc myl mym |
140 |
|
141 |
use acl && mym="${mym}:mod_facl" |
142 |
use ban && mym="${mym}:mod_ban" |
143 |
use case && mym="${mym}:mod_case" |
144 |
use clamav && mym="${mym}:mod_clamav" |
145 |
if use ctrls || use shaper ; then |
146 |
myc="${myc} --enable-ctrls" |
147 |
mym="${mym}:mod_ctrls_admin" |
148 |
fi |
149 |
use deflate && mym="${mym}:mod_deflate" |
150 |
use exec && mym="${mym}:mod_exec" |
151 |
if use kerberos ; then |
152 |
cd "${WORKDIR}"/mod_gss-${GSS_VER} |
153 |
if has_version <app-crypt/mit-krb5-1.7 ; then |
154 |
econf --enable-mit |
155 |
else |
156 |
econf --enable-heimdal |
157 |
fi |
158 |
mv mod_{auth_gss,gss}.c "${S}"/contrib |
159 |
mv mod_gss.h "${S}"/include |
160 |
mv README.mod_{auth_gss,gss} "${S}" |
161 |
mv mod_gss.html "${S}"/doc/contrib |
162 |
mv rfc{1509,2228}.txt "${S}"/doc/rfc |
163 |
cd "${S}" |
164 |
rm -rf "${WORKDIR}"/mod_gss-${GSS_VER} |
165 |
mym="${mym}:mod_gss:mod_auth_gss" |
166 |
fi |
167 |
if use ldap ; then |
168 |
myl="${myl} -lresolv" |
169 |
mym="${mym}:mod_ldap" |
170 |
fi |
171 |
if use mysql || use postgres ; then |
172 |
mym="${mym}:mod_sql:mod_sql_passwd" |
173 |
if use mysql ; then |
174 |
myc="${myc} --with-includes=/usr/include/mysql" |
175 |
mym="${mym}:mod_sql_mysql" |
176 |
fi |
177 |
if use postgres ; then |
178 |
myc="${myc} --with-includes=/usr/include/postgresql" |
179 |
mym="${mym}:mod_sql_postgres" |
180 |
fi |
181 |
fi |
182 |
if use sftp || use ssl ; then |
183 |
CFLAGS="${CFLAGS} -DHAVE_OPENSSL" |
184 |
myc="${myc} --enable-openssl --with-includes=/usr/include/openssl" |
185 |
myl="${myl} -lcrypto" |
186 |
fi |
187 |
use radius && mym="${mym}:mod_radius" |
188 |
use ratio && mym="${mym}:mod_ratio" |
189 |
use readme && mym="${mym}:mod_readme" |
190 |
use rewrite && mym="${mym}:mod_rewrite" |
191 |
if use sftp ; then |
192 |
mym="${mym}:mod_sftp" |
193 |
use pam && mym="${mym}:mod_sftp_pam" |
194 |
if use mysql || use postgres ; then |
195 |
mym="${mym}:mod_sftp_sql" |
196 |
fi |
197 |
fi |
198 |
use shaper && mym="${mym}:mod_shaper" |
199 |
use sitemisc && mym="${mym}:mod_site_misc" |
200 |
if use softquota ; then |
201 |
mym="${mym}:mod_quotatab:mod_quotatab_file" |
202 |
use ldap && mym="${mym}:mod_quotatab_ldap" |
203 |
use radius && mym="${mym}:mod_quotatab_radius" |
204 |
if use mysql || use postgres ; then |
205 |
mym="${mym}:mod_quotatab_sql" |
206 |
fi |
207 |
fi |
208 |
use ssl && mym="${mym}:mod_tls:mod_tls_shmcache" |
209 |
use tcpd && mym="${mym}:mod_wrap" |
210 |
use vroot && mym="${mym}:mod_vroot" |
211 |
# mod_ifsession needs to be the last module in the mym list. |
212 |
use ifsession && mym="${mym}:mod_ifsession" |
213 |
|
214 |
[ -z ${mym} ] || myc="${myc} --with-modules=${mym:1}" |
215 |
LIBS="${myl}" econf --sbindir=/usr/sbin --localstatedir=/var/run/proftpd \ |
216 |
--sysconfdir=/etc/proftpd --enable-shadow --enable-autoshadow \ |
217 |
$(use_enable acl facl) \ |
218 |
$(use_enable authfile auth-file) \ |
219 |
$(use_enable caps cap) \ |
220 |
$(use_enable ident) \ |
221 |
$(use_enable ipv6) \ |
222 |
$(use_enable ncurses) \ |
223 |
$(use_enable nls) \ |
224 |
$(use_enable trace) \ |
225 |
$(use_enable pam auth-pam) \ |
226 |
${myc:1} || die "econf failed" |
227 |
} |
228 |
|
229 |
src_install() { |
230 |
emake DESTDIR="${D}" install || die "emake install failed" |
231 |
|
232 |
keepdir /var/run/proftpd |
233 |
newinitd "${FILESDIR}"/proftpd.rc7 proftpd |
234 |
if use xinetd ; then |
235 |
insinto /etc/xinetd.d |
236 |
newins "${FILESDIR}"/proftpd.xinetd proftpd |
237 |
fi |
238 |
insinto /etc/proftpd |
239 |
doins "${FILESDIR}"/proftpd.conf.sample |
240 |
|
241 |
dodoc ChangeLog CREDITS INSTALL NEWS README* RELEASE_NOTES |
242 |
if use doc ; then |
243 |
dohtml doc/*.html doc/contrib/*.html doc/howto/*.html doc/modules/*.html |
244 |
docinto rfc |
245 |
dodoc doc/rfc/*.txt |
246 |
fi |
247 |
} |
248 |
|
249 |
pkg_postinst() { |
250 |
if use mysql && use postgres ; then |
251 |
elog |
252 |
elog "ProFTPD has been built with the MySQL and PostgreSQL modules." |
253 |
elog "You can use the 'SQLBackend' directive to specify the used SQL" |
254 |
elog "backend. Without this directive the default backend is MySQL." |
255 |
elog |
256 |
fi |
257 |
if use exec ; then |
258 |
ewarn |
259 |
ewarn "ProFTPD has been built with the mod_exec module. This module" |
260 |
ewarn "can be a security risk for your server as it executes external" |
261 |
ewarn "programs. Vulnerables in these external programs may disclose" |
262 |
ewarn "information or even compromise your server." |
263 |
ewarn "You have been warned! Use this module at your own risk!" |
264 |
ewarn |
265 |
fi |
266 |
} |
267 |
|
268 |
|
269 |
|
270 |
1.1 net-ftp/proftpd/proftpd-1.3.2b.ebuild |
271 |
|
272 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/proftpd-1.3.2b.ebuild?rev=1.1&view=markup |
273 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/proftpd/proftpd-1.3.2b.ebuild?rev=1.1&content-type=text/plain |
274 |
|
275 |
Index: proftpd-1.3.2b.ebuild |
276 |
=================================================================== |
277 |
# Copyright 1999-2009 Gentoo Foundation |
278 |
# Distributed under the terms of the GNU General Public License v2 |
279 |
# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.2b.ebuild,v 1.1 2009/10/26 15:06:15 voyageur Exp $ |
280 |
|
281 |
inherit eutils flag-o-matic toolchain-funcs autotools |
282 |
|
283 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
284 |
|
285 |
IUSE="acl authfile ban case clamav deflate hardened ifsession ipv6 kerberos ldap mysql ncurses nls noauthunix opensslcrypt pam postgres radius rewrite selinux shaper sitemisc softquota ssl tcpd vroot xinetd" |
286 |
|
287 |
CASE_VER="0.3" |
288 |
CLAMAV_VER="0.11rc" |
289 |
DEFLATE_VER="0.4" |
290 |
MODGSS_VER="1.3.2" |
291 |
SHAPER_VER="0.6.5" |
292 |
VROOT_VER="0.8.3" |
293 |
|
294 |
DESCRIPTION="An advanced and very configurable FTP server." |
295 |
|
296 |
SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2 |
297 |
case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz ) |
298 |
clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${CLAMAV_VER}.tar.gz ) |
299 |
deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz ) |
300 |
kerberos? ( mirror://sourceforge/gssmod/mod_gss-${MODGSS_VER}.tar.gz ) |
301 |
shaper? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-shaper-${SHAPER_VER}.tar.gz ) |
302 |
vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )" |
303 |
|
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 |
|
309 |
SLOT="0" |
310 |
LICENSE="GPL-2" |
311 |
|
312 |
DEPEND="acl? ( sys-apps/acl sys-apps/attr ) |
313 |
clamav? ( app-antivirus/clamav ) |
314 |
kerberos? ( || ( <app-crypt/mit-krb5-1.7 app-crypt/heimdal ) ) |
315 |
ldap? ( >=net-nds/openldap-1.2.11 ) |
316 |
mysql? ( virtual/mysql ) |
317 |
ncurses? ( sys-libs/ncurses ) |
318 |
opensslcrypt? ( >=dev-libs/openssl-0.9.6f ) |
319 |
pam? ( virtual/pam ) |
320 |
postgres? ( virtual/postgresql-base ) |
321 |
ssl? ( >=dev-libs/openssl-0.9.6f ) |
322 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 ) |
323 |
xinetd? ( virtual/inetd )" |
324 |
|
325 |
RDEPEND="${DEPEND} |
326 |
net-ftp/ftpbase |
327 |
selinux? ( sec-policy/selinux-ftpd )" |
328 |
|
329 |
S="${WORKDIR}/${P/_/}" |
330 |
|
331 |
pkg_setup() { |
332 |
# Add the proftpd user to make the default config |
333 |
# work out-of-the-box |
334 |
enewgroup proftpd |
335 |
enewuser proftpd -1 -1 -1 proftpd |
336 |
} |
337 |
|
338 |
src_unpack() { |
339 |
unpack ${P/_/}.tar.bz2 |
340 |
cd "${S}" |
341 |
|
342 |
# Fix parallel build (committed upstream in 1.3.3rc1) |
343 |
epatch "${FILESDIR}"/${PN}-1.3.2-parallel-build.patch |
344 |
# Fix mysql include when both backends are enabled |
345 |
epatch "${FILESDIR}"/${PN}-1.3.2-mysql-include.patch |
346 |
# Do not use bundled libltdl when compiling mod_dso |
347 |
epatch "${FILESDIR}"/${PN}-1.3.2-system-libltdl.patch |
348 |
|
349 |
# Fix stripping of files |
350 |
sed -e "s| @INSTALL_STRIP@||g" -i Make* |
351 |
|
352 |
if use case ; then |
353 |
unpack ${PN}-mod-case-${CASE_VER}.tar.gz |
354 |
cp -f mod_case/mod_case.c contrib/ |
355 |
cp -f mod_case/mod_case.html doc/ |
356 |
fi |
357 |
|
358 |
if use clamav ; then |
359 |
unpack mod_clamav-${CLAMAV_VER}.tar.gz |
360 |
cp -f mod_clamav-${CLAMAV_VER}/mod_clamav.* contrib/ |
361 |
epatch mod_clamav-${CLAMAV_VER}/${PN}.patch |
362 |
fi |
363 |
|
364 |
if use deflate ; then |
365 |
unpack ${PN}-mod-deflate-${DEFLATE_VER}.tar.gz |
366 |
cp -f mod_deflate/mod_deflate.c contrib/ |
367 |
cp -f mod_deflate/mod_deflate.html doc/ |
368 |
fi |
369 |
|
370 |
if use kerberos ; then |
371 |
unpack mod_gss-${MODGSS_VER}.tar.gz |
372 |
fi |
373 |
|
374 |
if use shaper ; then |
375 |
unpack ${PN}-mod-shaper-${SHAPER_VER}.tar.gz |
376 |
cp -f mod_shaper/mod_shaper.c contrib/ |
377 |
cp -f mod_shaper/mod_shaper.html doc/ |
378 |
fi |
379 |
|
380 |
if use vroot ; then |
381 |
unpack ${PN}-mod-vroot-${VROOT_VER}.tar.gz |
382 |
cp -f mod_vroot/mod_vroot.c contrib/ |
383 |
cp -f mod_vroot/mod_vroot.html doc/ |
384 |
fi |
385 |
|
386 |
# Fix bug #221275 |
387 |
# extract custom PR_ macros from aclocal.m4 to acinclude.m4 |
388 |
# and delete the provided aclocal.m4 before running autoreconf |
389 |
einfo "Extract custom m4 macros from aclocal.m4 ..." |
390 |
sed -e '/libtool\.m4/q' aclocal.m4 > acinclude.m4 |
391 |
rm -f aclocal.m4 |
392 |
|
393 |
eautoreconf |
394 |
} |
395 |
|
396 |
src_compile() { |
397 |
addpredict /etc/krb5.conf |
398 |
local modules myconf mylibs |
399 |
|
400 |
modules="mod_ratio:mod_readme:mod_ctrls_admin" |
401 |
use acl && modules="${modules}:mod_facl" |
402 |
use ban && modules="${modules}:mod_ban" |
403 |
use case && modules="${modules}:mod_case" |
404 |
use clamav && modules="${modules}:mod_clamav" |
405 |
use deflate && modules="${modules}:mod_deflate" |
406 |
use pam && modules="${modules}:mod_auth_pam" |
407 |
use radius && modules="${modules}:mod_radius" |
408 |
use rewrite && modules="${modules}:mod_rewrite" |
409 |
use shaper && modules="${modules}:mod_shaper" |
410 |
use sitemisc && modules="${modules}:mod_site_misc" |
411 |
use ssl && modules="${modules}:mod_tls" |
412 |
use tcpd && modules="${modules}:mod_wrap" |
413 |
use vroot && modules="${modules}:mod_vroot" |
414 |
|
415 |
# pam needs to be explicitely disabled |
416 |
use pam || myconf="${myconf} --enable-auth-pam=no" |
417 |
|
418 |
if use ldap ; then |
419 |
modules="${modules}:mod_ldap" |
420 |
mylibs="${mylibs} -lresolv" |
421 |
use ssl && CFLAGS="${CFLAGS} -DUSE_LDAP_TLS" |
422 |
fi |
423 |
|
424 |
if use opensslcrypt ; then |
425 |
myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl" |
426 |
mylibs="${mylibs} -lcrypto" |
427 |
CFLAGS="${CFLAGS} -DHAVE_OPENSSL" |
428 |
fi |
429 |
|
430 |
use nls && myconf="${myconf} --enable-nls" |
431 |
|
432 |
if use mysql || use postgres ; then |
433 |
modules="${modules}:mod_sql" |
434 |
if use mysql ; then |
435 |
modules="${modules}:mod_sql_mysql" |
436 |
myconf="${myconf} --with-includes=/usr/include/mysql" |
437 |
fi |
438 |
if use postgres ; then |
439 |
modules="${modules}:mod_sql_postgres" |
440 |
myconf="${myconf} --with-includes=/usr/include/postgresql" |
441 |
fi |
442 |
fi |
443 |
|
444 |
if use softquota ; then |
445 |
modules="${modules}:mod_quotatab" |
446 |
if use mysql || use postgres ; then |
447 |
modules="${modules}:mod_quotatab_sql" |
448 |
fi |
449 |
if use radius ; then |
450 |
modules="${modules}:mod_quotatab_radius" |
451 |
fi |
452 |
if use ldap ; then |
453 |
modules="${modules}:mod_quotatab_file:mod_quotatab_ldap" |
454 |
else |
455 |
modules="${modules}:mod_quotatab_file" |
456 |
fi |
457 |
fi |
458 |
|
459 |
# mod_ifsession should be the last module in the --with-modules list |
460 |
# see http://www.castaglia.org/proftpd/modules/mod_ifsession.html#Installation |
461 |
use ifsession && modules="${modules}:mod_ifsession" |
462 |
|
463 |
# bug #30359 |
464 |
use hardened && echo > lib/libcap/cap_sys.c |
465 |
gcc-specs-pie && echo > lib/libcap/cap_sys.c |
466 |
|
467 |
if use noauthunix ; then |
468 |
myconf="${myconf} --disable-auth-unix" |
469 |
else |
470 |
myconf="${myconf} --enable-auth-unix" |
471 |
fi |
472 |
|
473 |
if use kerberos ; then |
474 |
cd "${S}"/mod_gss-${MODGSS_VER} |
475 |
# Generate source files for installed virtual/krb5 provider |
476 |
if has_version app-crypt/mit-krb5; then |
477 |
econf --enable-mit |
478 |
else |
479 |
econf --enable-heimdal |
480 |
fi |
481 |
cd "${S}" |
482 |
# copy the generated files |
483 |
cp -f mod_gss-${MODGSS_VER}/mod_gss.c contrib/ |
484 |
cp -f mod_gss-${MODGSS_VER}/mod_gss.h include/ |
485 |
cp -f mod_gss-${MODGSS_VER}/mod_auth_gss.c contrib/ |
486 |
|
487 |
myconf="${myconf} --enable-dso --with-shared=mod_gss:mod_auth_gss" |
488 |
fi |
489 |
|
490 |
LIBS="${mylibs}" econf \ |
491 |
--sbindir=/usr/sbin \ |
492 |
--localstatedir=/var/run \ |
493 |
--sysconfdir=/etc/proftpd \ |
494 |
--enable-shadow \ |
495 |
--enable-autoshadow \ |
496 |
--enable-ctrls \ |
497 |
--with-modules=${modules} \ |
498 |
$(use_enable acl facl) \ |
499 |
$(use_enable authfile auth-file) \ |
500 |
$(use_enable ipv6) \ |
501 |
$(use_enable ncurses) \ |
502 |
${myconf} || die "econf failed" |
503 |
|
504 |
emake || die "emake failed" |
505 |
} |
506 |
|
507 |
src_install() { |
508 |
emake DESTDIR="${D}" install || die "emake install failed" |
509 |
|
510 |
keepdir /var/run/proftpd |
511 |
|
512 |
dodoc "${FILESDIR}/proftpd.conf" \ |
513 |
COPYING CREDITS ChangeLog NEWS README* \ |
514 |
doc/license.txt |
515 |
dohtml doc/*.html |
516 |
dohtml doc/howto/*.html |
517 |
|
518 |
docinto rfc |
519 |
dodoc doc/rfc/*.txt |
520 |
|
521 |
mv -f "${D}/etc/proftpd/proftpd.conf" "${D}/etc/proftpd/proftpd.conf.distrib" |
522 |
|
523 |
insinto /etc/proftpd |
524 |
newins "${FILESDIR}/proftpd.conf" proftpd.conf.sample |
525 |
|
526 |
if use xinetd ; then |
527 |
insinto /etc/xinetd.d |
528 |
newins "${FILESDIR}/proftpd.xinetd" proftpd |
529 |
fi |
530 |
|
531 |
newinitd "${FILESDIR}/proftpd.rc6" proftpd |
532 |
} |
533 |
|
534 |
pkg_postinst() { |
535 |
elog |
536 |
elog "You can find the config files in /etc/proftpd" |
537 |
elog |
538 |
ewarn "With the introduction of net-ftp/ftpbase the ftp user is now ftp." |
539 |
ewarn "Remember to change that in the configuration file." |
540 |
ewarn |
541 |
if use mysql && use postgres ; then |
542 |
ewarn "ProFTPD has been build with the MySQL and PostgreSQL modules." |
543 |
ewarn "You can use the 'SQLBackend' directive to specify the used SQL" |
544 |
ewarn "backend. Without this directive the default backend is MySQL." |
545 |
ewarn |
546 |
fi |
547 |
if use clamav ; then |
548 |
ewarn "mod_clamav was updated to a new version, which uses Clamd" |
549 |
ewarn "only for virus scanning, so you'll have to set Clamd up" |
550 |
ewarn "and start it, also re-check the mod_clamav docs." |
551 |
ewarn |
552 |
fi |
553 |
} |