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