Gentoo Archives: gentoo-commits

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