diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2011-01-13 15:20:25 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2011-01-13 15:20:25 +0000 |
commit | 77ef5ce384711059aeb2475c223c6471282e5f01 (patch) | |
tree | 510a20049cc440e754a1f1a6749db3f86c030d08 /net-ftp/proftpd | |
parent | Stable for HPPA (bug #349268). (diff) | |
download | historical-77ef5ce384711059aeb2475c223c6471282e5f01.tar.gz historical-77ef5ce384711059aeb2475c223c6471282e5f01.tar.bz2 historical-77ef5ce384711059aeb2475c223c6471282e5f01.zip |
Version bump, security bug #348998
Package-Manager: portage-2.2.0_alpha15/cvs/Linux x86_64
Diffstat (limited to 'net-ftp/proftpd')
-rw-r--r-- | net-ftp/proftpd/ChangeLog | 9 | ||||
-rw-r--r-- | net-ftp/proftpd/Manifest | 4 | ||||
-rw-r--r-- | net-ftp/proftpd/proftpd-1.3.3d.ebuild | 221 |
3 files changed, 231 insertions, 3 deletions
diff --git a/net-ftp/proftpd/ChangeLog b/net-ftp/proftpd/ChangeLog index 28aeabdf3608..6dc5c97fe6b9 100644 --- a/net-ftp/proftpd/ChangeLog +++ b/net-ftp/proftpd/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-ftp/proftpd -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.250 2010/11/16 13:00:29 voyageur Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.251 2011/01/13 15:20:25 voyageur Exp $ + +*proftpd-1.3.3d (13 Jan 2011) + + 13 Jan 2011; Bernard Cafarelli <voyageur@gentoo.org> +proftpd-1.3.3d.ebuild: + Version bump, security bug #348998 16 Nov 2010; Bernard Cafarelli <voyageur@gentoo.org> files/proftpd.initd: Really fix init script --quiet reload, patch by Bernd Lommerzheim, bug diff --git a/net-ftp/proftpd/Manifest b/net-ftp/proftpd/Manifest index 67c10cf63ae4..3654a57a34ba 100644 --- a/net-ftp/proftpd/Manifest +++ b/net-ftp/proftpd/Manifest @@ -4,9 +4,11 @@ AUX proftpd.xinetd 295 RMD160 c5c829319e901f478fe58b920347cc1b8706a366 SHA1 3f1b DIST mod_clamav-0.11rc.tar.gz 5115 RMD160 1b7f0bf94ed4664f873848e0fedee493f18726b8 SHA1 26fa4a8106fbb3266e7c94f50f12ed74fb2f3fec SHA256 87630eb1866066d6320ee711897d8998b8f4915c0498b2e78cc0464abd34855a DIST mod_gss-1.3.3.tar.gz 115098 RMD160 6a772ea215db7af94223fbb3bbb84614d1f7cf30 SHA1 b17015a49e41ee643f1891940f9f3f8a7d77e522 SHA256 24702cf0333720730cc269eb30529061365b1384fdce274bc3d46ccfc300934e DIST proftpd-1.3.3c.tar.bz2 4166609 RMD160 08a6fac94aa3449192e92848c6271cca33ea26cc SHA1 167d2f5f22f2bf8a5365b18adfd18a5fc750b07f SHA256 ea7f02e21f81e6ce79ebde8bbbd334bd269a039ac9137196a35309f791b24db1 +DIST proftpd-1.3.3d.tar.bz2 4177511 RMD160 8aa4e1c0456c771ae77e8682bd612b1229d05f4b SHA1 b2ee3ffdaa971c24327ad66412f2d71b628eddab SHA256 667fdf757f426517cb5fd69c3830f2b9f996febff51f59a208e46f5f1bd66606 DIST proftpd-mod-case-0.4.tar.gz 4849 RMD160 fdf579587461c0ad2136f6cc1e3064efe31f2eb6 SHA1 01631d4545d9a4995d452278caa2ef94b84e6a1f SHA256 5c724a2a57a00048529bfab6c5672e16c7c0ecb2eb4e2bedd05bb3a1a5bf97fa DIST proftpd-mod-deflate-0.5.4.tar.gz 55219678 RMD160 0d9ac70d076de3be521492d0c79089291a1b6dfd SHA1 292ba9dd301a010c46906ec09b5d455ff2b8ee4f SHA256 6ae753608ad126067bd48da8d4ea6ac3ef8eaf339ae924ffdbe30d1819a5e5db DIST proftpd-mod-vroot-0.8.5.tar.gz 8349 RMD160 0e9c3ea9615ed74556fcaf6145863922ee45bedf SHA1 fea69382f4dda36b620780e69cef5872f41f86fe SHA256 305ad1e3b320dc21172982c54a614a09d43373f7289b63202788de640145bbd4 EBUILD proftpd-1.3.3c.ebuild 7180 RMD160 0224857289f16e1a9a9115b6640754f07a3fb35c SHA1 0b66f216073618128dd4f5cc04701178db963083 SHA256 581675c43c65aeb100a6abe8427bce2af571df256ec2d93a1746bf49a3311bc9 -MISC ChangeLog 42043 RMD160 2138a1368553221e4aca0df7e5c84750e8be5b26 SHA1 9143d553cbd8df21d0f4718f4a20e008d7091125 SHA256 b8262dd4c71efb02b956756ad885d0876a1609795209ce339fd27b5010e71f35 +EBUILD proftpd-1.3.3d.ebuild 7188 RMD160 e66ff06993d4cc1143dfbabf909045ae7d046667 SHA1 d110ca5d9d633fbf2028947ab464a875fae68587 SHA256 16474d6365a6096fedea8474a799864cab0da08847c7f8c0d8cf49479ff75ecf +MISC ChangeLog 42191 RMD160 09a47a987520b35d9b693dcc812a3b17556941f0 SHA1 e2c300f8095f7ea04ce6759f9bced8c8a9422aac SHA256 e08dab479afe56157d698082a3f155f20c545c00d5eb9c306959d5696aef7a67 MISC metadata.xml 1671 RMD160 7ab8bc2be652f3358f83238dd526d271eaf27cf2 SHA1 9818b3a7957e30b8aa739708e614000108e863f7 SHA256 3d51a9f6b7f3cc3833c09e8a25cdacd3f25723c522f1bf6766277aee490d048e diff --git a/net-ftp/proftpd/proftpd-1.3.3d.ebuild b/net-ftp/proftpd/proftpd-1.3.3d.ebuild new file mode 100644 index 000000000000..8bd32a7e00ba --- /dev/null +++ b/net-ftp/proftpd/proftpd-1.3.3d.ebuild @@ -0,0 +1,221 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3d.ebuild,v 1.1 2011/01/13 15:20:25 voyageur Exp $ + +EAPI="2" +inherit eutils autotools + +CASE_VER="0.4" +CLAMAV_VER="0.11rc" +DEFLATE_VER="0.5.4" +GSS_VER="1.3.3" +VROOT_VER="0.8.5" + +DESCRIPTION="An advanced and very configurable FTP server." +HOMEPAGE="http://www.proftpd.org/ + http://www.castaglia.org/proftpd/ + http://www.thrallingpenguin.com/resources/mod_clamav.htm + http://gssmod.sourceforge.net/" +SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2 + case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz ) + clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${CLAMAV_VER}.tar.gz ) + deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz ) + kerberos? ( mirror://sourceforge/gssmod/mod_gss-${GSS_VER}.tar.gz ) + vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +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" + +DEPEND="acl? ( sys-apps/acl sys-apps/attr ) + caps? ( sys-libs/libcap ) + clamav? ( app-antivirus/clamav ) + kerberos? ( virtual/krb5 ) + ldap? ( net-nds/openldap ) + mysql? ( virtual/mysql ) + ncurses? ( sys-libs/ncurses ) + pam? ( virtual/pam ) + postgres? ( dev-db/postgresql-base ) + sftp? ( dev-libs/openssl ) + ssl? ( dev-libs/openssl ) + tcpd? ( sys-apps/tcp-wrappers ) + xinetd? ( virtual/inetd )" +RDEPEND="${DEPEND} + net-ftp/ftpbase + selinux? ( sec-policy/selinux-ftpd )" + +S="${WORKDIR}/${P/_/}" + +__prepare_module() { + mv "${WORKDIR}"/$1/$1.c contrib + mv "${WORKDIR}"/$1/$1.html doc/contrib + rm -rf "${WORKDIR}"/$1 +} + +pkg_setup() { + if [ -f "${ROOT}"/var/run/proftpd.pid ] ; then + eerror "Your ProFTPD server is running. In order to install this update" + eerror "you have to stop the running server. If you are using ProFTPD in" + eerror "the standalone mode you can stop the server by executing:" + eerror " /etc/init.d/proftpd stop" + eerror "If you are sure that ProFTPD is not running anymore you have to" + eerror "delete the /var/run/proftpd.pid file." + die "This update requires to stop the ProFTPD server!" + fi +} + +src_prepare() { + use case && __prepare_module mod_case + if use clamav ; then + mv "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/mod_clamav.{c,h} contrib + epatch "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/${PN}.patch + rm -rf "${WORKDIR}"/mod_clamav-${CLAMAV_VER} + fi + use deflate && __prepare_module mod_deflate + use vroot && __prepare_module mod_vroot + + # Fix MySQL includes + sed -i -e "s/<mysql.h>/<mysql\/mysql.h>/g" contrib/mod_sql_mysql.c + + # Manipulate build system + sed -i -e "s/utils install-conf install/utils install/g" Makefile.in + sed -i -e "s/ @INSTALL_STRIP@//g" Make.rules.in + + # Support new versions of mit-krb5 (Gentoo Bugs #284853, #324903) + if use kerberos ; then + cd "${WORKDIR}"/mod_gss-${GSS_VER} + sed -i -e "s/krb5_principal2principalname/_\0/" mod_auth_gss.c.in + sed -i -e "/ac_gss_libs/s/\-ldes425\ //" configure.in + eautoreconf + fi +} + +src_configure() { + local myc myl mym + + use acl && mym="${mym}:mod_facl" + use ban && mym="${mym}:mod_ban" + use case && mym="${mym}:mod_case" + use clamav && mym="${mym}:mod_clamav" + if use ctrls || use shaper ; then + myc="${myc} --enable-ctrls" + mym="${mym}:mod_ctrls_admin" + fi + use deflate && mym="${mym}:mod_deflate" + use exec && mym="${mym}:mod_exec" + if use kerberos ; then + cd "${WORKDIR}"/mod_gss-${GSS_VER} + if has_version app-crypt/mit-krb5 ; then + econf --enable-mit + else + econf --enable-heimdal + fi + mv mod_{auth_gss,gss}.c "${S}"/contrib + mv mod_gss.h "${S}"/include + mv README.mod_{auth_gss,gss} "${S}" + mv mod_gss.html "${S}"/doc/contrib + mv rfc{1509,2228}.txt "${S}"/doc/rfc + cd "${S}" + rm -rf "${WORKDIR}"/mod_gss-${GSS_VER} + mym="${mym}:mod_gss:mod_auth_gss" + fi + if use ldap ; then + myl="${myl} -lresolv" + mym="${mym}:mod_ldap" + fi + if use mysql || use postgres ; then + mym="${mym}:mod_sql:mod_sql_passwd" + if use mysql ; then + myc="${myc} --with-includes=/usr/include/mysql" + mym="${mym}:mod_sql_mysql" + fi + if use postgres ; then + myc="${myc} --with-includes=/usr/include/postgresql" + mym="${mym}:mod_sql_postgres" + fi + fi + if use sftp || use ssl ; then + CFLAGS="${CFLAGS} -DHAVE_OPENSSL" + myc="${myc} --enable-openssl --with-includes=/usr/include/openssl" + myl="${myl} -lcrypto" + fi + use radius && mym="${mym}:mod_radius" + use ratio && mym="${mym}:mod_ratio" + use readme && mym="${mym}:mod_readme" + use rewrite && mym="${mym}:mod_rewrite" + if use sftp ; then + mym="${mym}:mod_sftp" + use pam && mym="${mym}:mod_sftp_pam" + if use mysql || use postgres ; then + mym="${mym}:mod_sftp_sql" + fi + fi + use shaper && mym="${mym}:mod_shaper" + use sitemisc && mym="${mym}:mod_site_misc" + if use softquota ; then + mym="${mym}:mod_quotatab:mod_quotatab_file" + use ldap && mym="${mym}:mod_quotatab_ldap" + use radius && mym="${mym}:mod_quotatab_radius" + if use mysql || use postgres ; then + mym="${mym}:mod_quotatab_sql" + fi + fi + use ssl && mym="${mym}:mod_tls:mod_tls_shmcache" + use tcpd && mym="${mym}:mod_wrap" + use vroot && mym="${mym}:mod_vroot" + # mod_ifsession needs to be the last module in the mym list. + use ifsession && mym="${mym}:mod_ifsession" + + [ -z ${mym} ] || myc="${myc} --with-modules=${mym:1}" + LIBS="${myl:1}" econf --sbindir=/usr/sbin --localstatedir=/var/run/proftpd \ + --sysconfdir=/etc/proftpd --enable-shadow --enable-autoshadow ${myc:1} \ + $(use_enable acl facl) \ + $(use_enable authfile auth-file) \ + $(use_enable caps cap) \ + $(use_enable ident) \ + $(use_enable ipv6) \ + $(use_enable ncurses) \ + $(use_enable nls) \ + $(use_enable trace) \ + $(use_enable pam auth-pam) +} + +src_install() { + emake DESTDIR="${D}" install + + insinto /etc/proftpd + doins "${FILESDIR}"/proftpd.conf.sample + keepdir /var/run/proftpd + newinitd "${FILESDIR}"/proftpd.initd proftpd + if use xinetd ; then + insinto /etc/xinetd.d + newins "${FILESDIR}"/proftpd.xinetd proftpd + fi + + dodoc ChangeLog CREDITS INSTALL NEWS README* RELEASE_NOTES + if use doc ; then + dohtml doc/*.html doc/contrib/*.html doc/howto/*.html doc/modules/*.html + docinto rfc + dodoc doc/rfc/*.txt + fi +} + +pkg_postinst() { + if use mysql && use postgres ; then + elog + elog "ProFTPD has been built with the MySQL and PostgreSQL modules." + elog "You can use the 'SQLBackend' directive to specify the used SQL" + elog "backend. Without this directive the default backend is MySQL." + elog + fi + if use exec ; then + ewarn + ewarn "ProFTPD has been built with the mod_exec module. This module" + ewarn "can be a security risk for your server as it executes external" + ewarn "programs. Vulnerables in these external programs may disclose" + ewarn "information or even compromise your server." + ewarn "You have been warned! Use this module at your own risk!" + ewarn + fi +} |