summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2011-04-14 19:02:59 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2011-04-14 19:02:59 +0000
commit550382a35222fccb2248818f4ab3e8c89cb830c7 (patch)
tree340dbb0391012ecf0a9bc99ece35747bef2ad638 /net-ftp
parentVersion bump. Fixed compatibility with Python 2.7 (bug #327215). (diff)
downloadhistorical-550382a35222fccb2248818f4ab3e8c89cb830c7.tar.gz
historical-550382a35222fccb2248818f4ab3e8c89cb830c7.tar.bz2
historical-550382a35222fccb2248818f4ab3e8c89cb830c7.zip
Fix crash with SQL authentication, patch by Andrejs Eigus <aei@riga.ahlers.com> in bug #363293
Package-Manager: portage-2.2.0_alpha29/cvs/Linux x86_64
Diffstat (limited to 'net-ftp')
-rw-r--r--net-ftp/proftpd/ChangeLog10
-rw-r--r--net-ftp/proftpd/Manifest14
-rw-r--r--net-ftp/proftpd/files/proftpd-1.3.4_rc2-sql-groupsetfast-null-pointer.patch18
-rw-r--r--net-ftp/proftpd/proftpd-1.3.4_rc2-r1.ebuild221
4 files changed, 255 insertions, 8 deletions
diff --git a/net-ftp/proftpd/ChangeLog b/net-ftp/proftpd/ChangeLog
index 4685b446dbf4..8d79b804b600 100644
--- a/net-ftp/proftpd/ChangeLog
+++ b/net-ftp/proftpd/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-ftp/proftpd
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.272 2011/04/11 17:40:42 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.273 2011/04/14 19:02:59 voyageur Exp $
+
+*proftpd-1.3.4_rc2-r1 (14 Apr 2011)
+
+ 14 Apr 2011; Bernard Cafarelli <voyageur@gentoo.org>
+ +proftpd-1.3.4_rc2-r1.ebuild,
+ +files/proftpd-1.3.4_rc2-sql-groupsetfast-null-pointer.patch:
+ Fix crash with SQL authentication, patch by Andrejs Eigus
+ <aei@riga.ahlers.com> in bug #363293
11 Apr 2011; Kacper Kowalik <xarthisius@gentoo.org> proftpd-1.3.3e.ebuild:
ppc/ppc64 stable wrt #361963
diff --git a/net-ftp/proftpd/Manifest b/net-ftp/proftpd/Manifest
index 4539b414276d..7df862506f57 100644
--- a/net-ftp/proftpd/Manifest
+++ b/net-ftp/proftpd/Manifest
@@ -1,6 +1,7 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
+AUX proftpd-1.3.4_rc2-sql-groupsetfast-null-pointer.patch 820 RMD160 5cab2ca083c3db68eada127f41a45e2112356434 SHA1 f636015c9faab8654e4ee343b56b81e7cfdcf2c0 SHA256 55e7bc8346e005cd35060987a4e26ae109d59be05f385ad2febbc30656a9fb35
AUX proftpd-bug3586.patch 5507 RMD160 8843d2f0d4378151b34263834f7bfd88271eaece SHA1 70af05ef5c852c590a50551e7d72a16a6cd1b7ba SHA256 4e748700d4262c2340e485844d3dff76715853f3c27db877298c8eda098a4ed8
AUX proftpd.conf.sample 1275 RMD160 199b8cced06d347ef8a2033b68850fd9dd922ccd SHA1 e58e5e7856bc77e159a628717ad1c73e20c5b883 SHA256 a214b3937f319c70976d29cfcd47c2cd937d1d70b7274c2b241b1e97606e89c0
AUX proftpd.initd 1563 RMD160 c30ab2c000ca31a348e0c9d92e07d93c5cba8d4e SHA1 7462aaec25c6f44928339458d450f7e386b147d4 SHA256 fe36a50fcf1a2d7b820edde94349cd68204e7b14c8a5d34f710af68ed1ce8315
@@ -17,15 +18,14 @@ DIST proftpd-mod-vroot-0.8.5.tar.gz 8349 RMD160 0e9c3ea9615ed74556fcaf6145863922
DIST proftpd-mod-vroot-0.9.2.tar.gz 22438 RMD160 8d8620a346b422e57cd775fdde0241a3c0ca144d SHA1 13ec52c688bbb91eaae76a8e4814bfd49e0bc597 SHA256 b0ea7af760ab7a54a62ac294656b5a34a5339665c0227ade0d2f206cc54a10bf
EBUILD proftpd-1.3.3d-r1.ebuild 7253 RMD160 ca1d91eeb105d6da0ccb82742fbdf52845cef96c SHA1 b4f3aee22a594fcdebc06feae036351657ae95f2 SHA256 6b2a3798c2239647495eeee8b6ca105bb3ba14857afdcab8d836f3139b01c8ad
EBUILD proftpd-1.3.3e.ebuild 7194 RMD160 080d496d020466c326f252ae0856cb6261197ca1 SHA1 9317c89b89a21fe3e2ec9a73c5fb14b236030bc8 SHA256 405f7a6115bf9bca2f5a693156f3a8156bec7b0ce0fa1522bac62ecb6cd812d9
+EBUILD proftpd-1.3.4_rc2-r1.ebuild 7226 RMD160 984aceccecb3ac44b688b22189568a939e6969e3 SHA1 4df1fb5c41d00ffc4853764f344eb321bb137f19 SHA256 b189a4462add508710551505ffbc6246b82809f5d6597d0be85f590633142a61
EBUILD proftpd-1.3.4_rc2.ebuild 7137 RMD160 b932f080752ad3f96ec6ecd0c5bfaea42fc9b633 SHA1 7c3c282881ad523972ce4e83f0e751f31415097b SHA256 20a66c046638164d6c57f1d65377c8e16b3c34ec6f81ce2f5c055248eb51a5f9
-MISC ChangeLog 46384 RMD160 9412dec01f46843f33c6a8d1436c31a4a727f4be SHA1 1403d6b2a8bd71c61881b6f64e40f05ec07a7efb SHA256 99f0d73fb5b317f3fe29587870755f0f0b387f82947a0f6f1541f4ddc281ee7c
+MISC ChangeLog 46670 RMD160 dbc8af71a6988b4ea64c485411b0d8366bb7c5e4 SHA1 1149b1870fe110b4270abf286061b26c60969f95 SHA256 ae9ecb69e01444d7fd9deb2b899813cd92ae226198c14857151c8e44a6fee777
MISC metadata.xml 2286 RMD160 881ef9e88e0426169393f54c68dcf91f895e898e SHA1 37abd54df219347761bd3e1b9f74bded51aa0740 SHA256 f63550b381774d49259b5723c68e5b73f1e8f0b8a72760a1aa0e54747027a26e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iJwEAQECAAYFAk2jPR8ACgkQIiMqcbOVdxQP8QP/XL40yt9gyz7yCP+Lv9AIs+e8
-Elw+tND0NLt9NaNHfqozpMBA6TJfTIdpqw8gTRBQowOmYwIdTnrslqfi2TL7ybO0
-s6MEE9NICdwGfkv1OegAqzYcch7o6Nmv2KUqGIIITgz38DB6PNwBYxDcQRNbZ7kF
-xex7vDl09YQlfMoPBCk=
-=GC8M
+iF4EAREIAAYFAk2nRPwACgkQFYEBGcdFJfKZ3QD/cf8I+D621H7+o1oNsDKwKGkJ
+mP4bBBSKUys/eSqi8pAA/36sjK1+MFpbirB8I1PpCzpalh5jKotTgOJgdJQjwXJk
+=2U/X
-----END PGP SIGNATURE-----
diff --git a/net-ftp/proftpd/files/proftpd-1.3.4_rc2-sql-groupsetfast-null-pointer.patch b/net-ftp/proftpd/files/proftpd-1.3.4_rc2-sql-groupsetfast-null-pointer.patch
new file mode 100644
index 000000000000..d2ae25b61656
--- /dev/null
+++ b/net-ftp/proftpd/files/proftpd-1.3.4_rc2-sql-groupsetfast-null-pointer.patch
@@ -0,0 +1,18 @@
+Index: contrib/mod_sql.c
+===================================================================
+RCS file: /cvsroot/proftp/proftpd/contrib/mod_sql.c,v
+retrieving revision 1.210
+diff -u -r1.210 mod_sql.c
+--- contrib/mod_sql.c 26 Mar 2011 00:43:27 -0000 1.210
++++ contrib/mod_sql.c 12 Apr 2011 22:07:41 -0000
+@@ -4045,8 +4045,8 @@
+ if (!cmap.groupcustomgroupsetfast) {
+ where = sql_prepare_where(0, cmd, 1, cmap.groupwhere, NULL);
+
+- mr = _sql_dispatch(_sql_make_cmd(cmd->tmp_pool, 6, MOD_SQL_DEF_CONN_NAME,
+- cmap.grptable, cmap.grpfields, where, NULL), "sql_select");
++ mr = _sql_dispatch(_sql_make_cmd(cmd->tmp_pool, 5, MOD_SQL_DEF_CONN_NAME,
++ cmap.grptable, cmap.grpfields, where, "1"), "sql_select");
+ if (check_response(mr) < 0) {
+ return mr;
+ }
diff --git a/net-ftp/proftpd/proftpd-1.3.4_rc2-r1.ebuild b/net-ftp/proftpd/proftpd-1.3.4_rc2-r1.ebuild
new file mode 100644
index 000000000000..66f3194f6d4a
--- /dev/null
+++ b/net-ftp/proftpd/proftpd-1.3.4_rc2-r1.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.4_rc2-r1.ebuild,v 1.1 2011/04/14 19:02:59 voyageur Exp $
+
+EAPI=4
+inherit eutils autotools
+
+MOD_CASE="0.4"
+MOD_CLAMAV="0.11rc"
+MOD_DISKUSE="0.9"
+MOD_GSS="1.3.3"
+MOD_VROOT="0.9.2"
+
+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-${MOD_CASE}.tar.gz )
+ clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${MOD_CLAMAV}.tar.gz )
+ diskuse? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-diskuse-${MOD_DISKUSE}.tar.gz )
+ kerberos? ( mirror://sourceforge/gssmod/mod_gss-${MOD_GSS}.tar.gz )
+ vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${MOD_VROOT}.tar.gz )"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~amd64-fbsd ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="acl authfile ban +caps case clamav copy ctrls deflate diskuse doc exec ifsession ifversion ident
+ ipv6 kerberos ldap memcache mysql ncurses nls pam +pcre postgres qos radius ratio readme rewrite
+ selinux sftp shaper sitemisc softquota sqlite 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 )
+ memcache? ( >=dev-libs/libmemcached-0.37 )
+ mysql? ( virtual/mysql )
+ nls? ( virtual/libiconv )
+ ncurses? ( sys-libs/ncurses )
+ pam? ( virtual/pam )
+ pcre? ( dev-libs/libpcre )
+ postgres? ( dev-db/postgresql-base )
+ sftp? ( dev-libs/openssl )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( dev-libs/openssl )
+ 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
+}
+
+src_prepare() {
+ # Gentoo bug #363293
+ epatch "${FILESDIR}"/${P}-sql-groupsetfast-null-pointer.patch
+
+ use case && __prepare_module mod_case
+ if use clamav ; then
+ mv "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}/mod_clamav.{c,h} contrib
+ epatch "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}/${PN}.patch
+ rm -rf "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}
+ fi
+ use vroot && __prepare_module mod_vroot
+
+ 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-${MOD_GSS}
+ 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"
+ use copy && mym="${mym}:mod_copy"
+ if use ctrls || use ban || use shaper ; then
+ myc="${myc} --enable-ctrls"
+ mym="${mym}:mod_ctrls_admin"
+ fi
+ use deflate && mym="${mym}:mod_deflate"
+ if use diskuse ; then
+ cd "${WORKDIR}"/mod_diskuse
+ econf
+ mv mod_diskuse.{c,h} "${S}"/contrib
+ mv mod_diskuse.html "${S}"/doc/contrib
+ cd "${S}"
+ rm -rf "${WORKDIR}"/mod_diskuse
+ mym="${mym}:mod_diskuse"
+ fi
+ use exec && mym="${mym}:mod_exec"
+ use ifsession && mym="${mym}:mod_ifsession"
+ use ifversion && mym="${mym}:mod_ifversion"
+ if use kerberos ; then
+ cd "${WORKDIR}"/mod_gss-${MOD_GSS}
+ 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-${MOD_GSS}
+ mym="${mym}:mod_gss:mod_auth_gss"
+ fi
+ if use ldap ; then
+ use elibc_glibc && myl="${myl} -lresolv"
+ mym="${mym}:mod_ldap"
+ fi
+ if use mysql || use postgres || use sqlite ; then
+ mym="${mym}:mod_sql:mod_sql_passwd"
+ use mysql && mym="${mym}:mod_sql_mysql"
+ use postgres && mym="${mym}:mod_sql_postgres"
+ use sqlite && mym="${mym}:mod_sql_sqlite"
+ fi
+ use qos && mym="${mym}:mod_qos"
+ use radius && mym="${mym}:mod_radius"
+ use ratio && mym="${mym}:mod_ratio"
+ use readme && mym="${mym}:mod_readme"
+ use rewrite && mym="${mym}:mod_rewrite"
+ use sftp || use ssl && myc="${myc} --enable-openssl"
+ if use sftp ; then
+ mym="${mym}:mod_sftp"
+ use pam && mym="${mym}:mod_sftp_pam"
+ use mysql || use postgres || use sqlite && mym="${mym}:mod_sftp_sql"
+ 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"
+ use mysql || use postgres || use sqlite && mym="${mym}:mod_quotatab_sql"
+ fi
+ if use ssl ; then
+ mym="${mym}:mod_tls:mod_tls_shmcache"
+ use memcache && mym="${mym}:mod_tls_memcache"
+ fi
+ if use tcpd ; then
+ mym="${mym}:mod_wrap2:mod_wrap2_file"
+ use mysql || use postgres || use sqlite && mym="${mym}:mod_wrap2_sql"
+ fi
+ use vroot && mym="${mym}:mod_vroot"
+
+ [ -z ${mym} ] || myc="${myc} --with-modules=${mym:1}"
+ LIBS="${myl:1}" econf --localstatedir=/var/run/proftpd --sysconfdir=/etc/proftpd \
+ $(use_enable acl facl) \
+ $(use_enable authfile auth-file) \
+ $(use_enable caps cap) \
+ $(use_enable ident) \
+ $(use_enable ipv6) \
+ $(use_enable memcache) \
+ $(use_enable ncurses) \
+ $(use_enable nls) \
+ $(use_enable pam auth-pam) \
+ $(use_enable pcre) \
+ $(use_enable trace) \
+ $(use_enable userland_GNU shadow) \
+ $(use_enable userland_GNU autoshadow) \
+ ${myc:1}
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+ newinitd "${FILESDIR}"/proftpd.initd proftpd
+ insinto /etc/proftpd
+ doins "${FILESDIR}"/proftpd.conf.sample
+
+ 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 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
+ if use tcpd ; then
+ ewarn
+ ewarn "Important: Since ProFTPD 1.3.4rc2 the module mod_wrap for TCP Wrapper"
+ ewarn "support has been replaced by mod_wrap2 which is more configurable and"
+ ewarn "portable. But you have to adjust your configuration before restaring"
+ ewarn "ProFTPD. On the following website you can find more information:"
+ ewarn " http://proftpd.org/docs/contrib/mod_wrap2.html"
+ ewarn
+ fi
+}