Version bump by Polynomial-C, bug #305329
authorBernard Cafarelli <voyageur@gentoo.org>
Wed, 17 Feb 2010 12:34:59 +0000 (12:34 +0000)
committerBernard Cafarelli <voyageur@gentoo.org>
Wed, 17 Feb 2010 12:34:59 +0000 (12:34 +0000)
Package-Manager: portage-2.2_rc62/cvs/Linux x86_64

net-ftp/pure-ftpd/ChangeLog
net-ftp/pure-ftpd/Manifest
net-ftp/pure-ftpd/files/pure-ftpd-1.0.28-pam.patch [new file with mode: 0644]
net-ftp/pure-ftpd/pure-ftpd-1.0.28.ebuild [new file with mode: 0644]

index f345996c5e79ff7268244900f407f423af8c3ef0..41bb495fc5aaf261e67068d37092fe8590718e6f 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for net-ftp/pure-ftpd
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/ChangeLog,v 1.84 2009/12/14 22:10:19 voyageur Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/ChangeLog,v 1.85 2010/02/17 12:34:58 voyageur Exp $
+
+*pure-ftpd-1.0.28 (17 Feb 2010)
+
+  17 Feb 2010; Bernard Cafarelli <voyageur@gentoo.org>
+  +pure-ftpd-1.0.28.ebuild, +files/pure-ftpd-1.0.28-pam.patch:
+  Version bump by Polynomial-C, bug #305329
 
 *pure-ftpd-1.0.27-r1 (14 Dec 2009)
 
index 6f45cb0523487b733467b3174e3d5fdc0b124f8b..6f000ac441009050b411b30f0b742a683dc7f54e 100644 (file)
@@ -1,6 +1,7 @@
 AUX pure-ftpd-1.0.21-pam.patch 586 RMD160 3246183eb4914dd605c181da17aa02c8e1e99726 SHA1 df99422a026e403ccecfe95ae9a1e13a7138b4d2 SHA256 4eab3ab63c403e02782df0b07d2f83b741b0b07cb10e37046dc2c874682509a6
 AUX pure-ftpd-1.0.22-fix_rest_with_throttling.patch 2142 RMD160 fcfb45d6fbd25636041ed08f4309c37f0bff278a SHA1 bcd16824b448e8f85fc6c03a81bdb350029f10e4 SHA256 77c2208e2b65677f4a1e64a1c057c87536c49dadd9ba2d90579f3f3056aa4788
 AUX pure-ftpd-1.0.22-pam.patch 568 RMD160 510901acb42629a948124bc2e4618b073c6de746 SHA1 fcfc8662096d6bf62626f508117f1d3dc9327353 SHA256 37c4dba7711769da29504840cfdddc5acf8fd970117f8b26bc4caeec4d00e58b
+AUX pure-ftpd-1.0.28-pam.patch 564 RMD160 eb510f635babbe34943dee102999a8b835df55e7 SHA1 46fcf04194631cd1b4488a486a48884b80b188ac SHA256 21b340701ba18454cc55b7a719033c71d758960b02cc626ff60183a5dae50fc7
 AUX pure-ftpd.conf_d 3378 RMD160 82d5d319b35e1262e8d72cff46c328429e3e3bce SHA1 93c4f65ce1592ad1ccbe8e04250c4cc1c9cdb5f2 SHA256 4361690c4217fd1cdae0c050015629ce6e74046446def2c7d646020d0682a579
 AUX pure-ftpd.rc6 1455 RMD160 5bb57d4e162e08d113da9c349cf57480244948f7 SHA1 54b0abe7e27f10bdec9a22917e57f5ed625ebca3 SHA256 d554e4bab0c11a23c19e8fac9070c2550ca461dce72047745ca9f3fcf2660770
 AUX pure-ftpd.rc7 1514 RMD160 ecf2faa716c38a7cd1961f63d43cb9ac5d90f9fd SHA1 10657af7ca13f0250999c3481d4a323a30de4747 SHA256 87e81e73d948c4d6cb6c1a6bf2d357ad309bf9ed55e478c43be6b51bc07770fd
@@ -9,9 +10,11 @@ DIST pure-ftpd-1.0.21.tar.bz2 476117 RMD160 1ad61243c1f8a8d1055ee839eec0d9117681
 DIST pure-ftpd-1.0.22.tar.bz2 497237 RMD160 e7715813f66a561024911b3f8064d1f067969e7f SHA1 38b88f9645cef6c1b6f20a2f7e73ef9289e3314b SHA256 64659df4da59aa2ef5f455674ae1c3b4b56b4649bac1cac582b895942d0059cf
 DIST pure-ftpd-1.0.26.tar.bz2 471836 RMD160 b53b8eaebeed26a199adfb3254f5403c0ce76ab1 SHA1 6b224a5e24f334bbae3c2b8951ab8f677ebe28de SHA256 906e05407718abe3ba124f662ba052c0c2486bd942f97c7f620ec51dbde24cdb
 DIST pure-ftpd-1.0.27.tar.bz2 472818 RMD160 2e6f2501e1d6da6c5caf32b802e7c2d481e2e6ee SHA1 f4c3fcc68bea3b2dad9ff76624e23f072acd9c2e SHA256 d389d10bb3ab62b650dbae9aa4015083ee3975697de1ef6b99092d7d14381118
+DIST pure-ftpd-1.0.28.tar.bz2 465887 RMD160 1a75ea239129de1f2bcd52a34d1b379928e790f6 SHA1 199580574257f144bc958d05c166c23066bfed3c SHA256 1c8e0f4ddac3731ecb2432631d7af342b3800499d7ea7f8442c3e79e3e4c27d8
 EBUILD pure-ftpd-1.0.21-r1.ebuild 3761 RMD160 78c15227586a89745901fd77bbb147c4f5716fba SHA1 034df50ad5f5eeaa729b78c6c45efdeeeab1ab55 SHA256 44b581e4633283fd356a58050ecf464bcbf34c9e9875cc670f4cb7afc3478b54
 EBUILD pure-ftpd-1.0.22-r1.ebuild 3785 RMD160 c274c99c5e297e62b61b88b7ddc1e15eafdb7f88 SHA1 55db604898f6cf75a15d4c5c1afde595475a6aef SHA256 2de0386861314051e6843be9918170d96b57e8f4b0b2f00504d764e1e5a4af0a
 EBUILD pure-ftpd-1.0.26.ebuild 3732 RMD160 5f7ef7bd208bcd9972ee0b1d7850350da09ef37c SHA1 4ad2381df161fa784827511feb24d1e9581ed973 SHA256 3d66261f2124dfb03151101a5b17aa5346d3ab1eaca31fd1f9daf8c9bb53893a
 EBUILD pure-ftpd-1.0.27-r1.ebuild 3735 RMD160 c5a373298f2db6c2def76f296b6873f5de5be53e SHA1 06362b7de6d0ee13cded041f7ede48905c133c63 SHA256 de9fbd982f62aca7457a8a82144cf63dbdc740658554fb44d812c38dd2be8eec
-MISC ChangeLog 12857 RMD160 0c285aa5eb7a01f6e311d65909b8a25d80c930ac SHA1 915a8ea8b8cc73391001f5f499faec65c4233130 SHA256 34c9a8cf0897debf2afb7de995de718b94682ede265b4ade5191adbe643a571d
+EBUILD pure-ftpd-1.0.28.ebuild 3732 RMD160 1f96fb4b976261b9a5a49168b2597247b5a18c12 SHA1 c8630b24e77427cd08f555bb9844cf80dc0fcc53 SHA256 1377a7e14fc1aca22b86ff06258e6b6b6a20e3476c9db7812882077db5a1dbde
+MISC ChangeLog 13053 RMD160 331656cd56e9bf42caf54a675ebf082f21fac24b SHA1 80cb4a2bc66d042ad860e95412bae4e13fc873bc SHA256 73704e92261f34d94455eaf7cef9464b015e5761ef15ce3163e201b81d717863
 MISC metadata.xml 1048 RMD160 20c962a5b9b6a0fe6e75346847cc67a079e66870 SHA1 6423ca1d2067eeb0f009b7d8b0a7a35c94ff14b7 SHA256 1d0113e0866ac5d9c4df3a690d141881ad75baf0ad394959025c798bf3af4be0
diff --git a/net-ftp/pure-ftpd/files/pure-ftpd-1.0.28-pam.patch b/net-ftp/pure-ftpd/files/pure-ftpd-1.0.28-pam.patch
new file mode 100644 (file)
index 0000000..209cd94
--- /dev/null
@@ -0,0 +1,20 @@
+--- src/log_pam.c
++++ src/log_pam.c
+@@ -49,7 +49,7 @@
+ # endif
+ 
+ #ifndef FTPD_PAM_SERVICE_NAME
+-# define FTPD_PAM_SERVICE_NAME "pure-ftpd"
++# define FTPD_PAM_SERVICE_NAME "ftp"
+ #endif
+ 
+ /* Static variables used to communicate between the conversation function
+@@ -164,7 +164,7 @@
+                           &PAM_conversation, &pamh);
+     PAM_BAIL;
+ # ifdef PAM_TTY
+-    (void) pam_set_item(pamh, PAM_TTY, "pure-ftpd");
++    (void) pam_set_item(pamh, PAM_TTY, FTPD_PAM_SERVICE_NAME);
+ # endif
+ # ifdef PAM_RUSER
+     (void) pam_set_item(pamh, PAM_RUSER, user);
diff --git a/net-ftp/pure-ftpd/pure-ftpd-1.0.28.ebuild b/net-ftp/pure-ftpd/pure-ftpd-1.0.28.ebuild
new file mode 100644 (file)
index 0000000..288e38f
--- /dev/null
@@ -0,0 +1,119 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/pure-ftpd-1.0.28.ebuild,v 1.1 2010/02/17 12:34:58 voyageur Exp $
+
+EAPI=2
+inherit eutils confutils flag-o-matic
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+
+DESCRIPTION="Fast, production-quality, standard-conformant FTP server."
+HOMEPAGE="http://www.pureftpd.org/"
+SRC_URI="ftp://ftp.pureftpd.org/pub/${PN}/releases/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+
+IUSE="anondel anonperm anonren anonres caps charconv ldap mysql noiplog pam paranoidmsg postgres selinux ssl vchroot xinetd"
+
+DEPEND="caps? ( sys-libs/libcap )
+               charconv? ( virtual/libiconv )
+               ldap? ( >=net-nds/openldap-2.0.25 )
+               mysql? ( virtual/mysql )
+               pam? ( virtual/pam )
+               postgres? ( virtual/postgresql-base )
+               ssl? ( >=dev-libs/openssl-0.9.6g )
+               xinetd? ( virtual/inetd )"
+
+RDEPEND="${DEPEND}
+               net-ftp/ftpbase
+               selinux? ( sec-policy/selinux-ftpd )"
+
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-1.0.28-pam.patch
+}
+
+src_configure() {
+       # adjust max user length to something more appropriate
+       # for virtual hosts. See bug #62472 for details.
+       sed -e "s:# define MAX_USER_LENGTH 32U:# define MAX_USER_LENGTH 127U:" -i "${S}/src/ftpd.h" || die "sed failed"
+
+       local my_conf=""
+
+       # Let's configure the USE-enabled stuff
+       enable_extension_without        "capabilities"  "caps"
+       enable_extension_with           "rfc2640"               "charconv"              0
+       enable_extension_with           "ldap"                  "ldap"                  0
+       enable_extension_with           "mysql"                 "mysql"                 0
+       enable_extension_with           "pam"                   "pam"                   0
+       enable_extension_with           "paranoidmsg"   "paranoidmsg"   0
+       enable_extension_with           "pgsql"                 "postgres"              0
+       enable_extension_with           "tls"                   "ssl"                   0
+       enable_extension_with           "virtualchroot" "vchroot"               0
+       enable_extension_without        "inetd"                 "xinetd"
+
+       # noiplog is a negative flag, we don't want that enabled by default,
+       # so we handle it manually, as confutils can't do that
+       use noiplog && my_conf="${my_conf} --without-iplogging"
+
+       # Those features are only configurable like this, see bug #179375.
+       use anondel && append-cppflags -DANON_CAN_DELETE
+       use anonperm && append-cppflags -DANON_CAN_CHANGE_PERMS
+       use anonren && append-cppflags -DANON_CAN_RENAME
+       use anonres && append-cppflags -DANON_CAN_RESUME
+
+       econf \
+               --with-altlog \
+               --with-cookie \
+               --with-diraliases \
+               --with-extauth \
+               --with-ftpwho \
+               --with-language=${PUREFTPD_LANG:=english} \
+               --with-peruserlimits \
+               --with-privsep \
+               --with-puredb \
+               --with-quotas \
+               --with-ratios \
+               --with-throttling \
+               --with-uploadscript \
+               --with-virtualhosts \
+               --enable-largefile \
+               ${my_conf} || die "econf failed"
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "emake install failed"
+
+       dodoc AUTHORS CONTACT ChangeLog FAQ HISTORY INSTALL README* NEWS
+
+       newconfd "${FILESDIR}/pure-ftpd.conf_d" pure-ftpd
+
+       newinitd "${FILESDIR}/pure-ftpd.rc7" pure-ftpd
+
+       if use xinetd ; then
+               insinto /etc/xinetd.d
+               newins "${FILESDIR}/pure-ftpd.xinetd" pure-ftpd
+       fi
+
+       if use ldap ; then
+               insinto /etc/openldap/schema
+               doins pureftpd.schema
+               insinto /etc/openldap
+               insopts -m 0600
+               doins pureftpd-ldap.conf
+       fi
+}
+
+pkg_postinst() {
+       elog
+       elog "Before starting Pure-FTPd, you have to edit the /etc/conf.d/pure-ftpd file!"
+       elog
+       ewarn "It's *really* important to read the README provided with Pure-FTPd!"
+       ewarn "Check out http://download.pureftpd.org/pub/pure-ftpd/doc/README for general info"
+       ewarn "and http://download.pureftpd.org/pub/pure-ftpd/doc/README.TLS for SSL/TLS info."
+       ewarn
+       if use charconv ; then
+               ewarn "Charset conversion is an *experimental* feature!"
+               ewarn "Remember to set a valid charset for your filesystem in the configuration!"
+       fi
+}