summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Felisberto <humpback@gentoo.org>2005-06-04 13:28:02 +0000
committerGustavo Felisberto <humpback@gentoo.org>2005-06-04 13:28:02 +0000
commit95aaf2138a492188ff826e9cabedca50cba21ea5 (patch)
treea83d0c755e5aa600ca3b59f48d876133f5d80d97 /net-ftp
parentChanged to reflect new homepage and download location. (diff)
downloadgentoo-2-95aaf2138a492188ff826e9cabedca50cba21ea5.tar.gz
gentoo-2-95aaf2138a492188ff826e9cabedca50cba21ea5.tar.bz2
gentoo-2-95aaf2138a492188ff826e9cabedca50cba21ea5.zip
new version to solve g/bsd issues
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-ftp')
-rw-r--r--net-ftp/proftpd/ChangeLog8
-rw-r--r--net-ftp/proftpd/Manifest17
-rw-r--r--net-ftp/proftpd/files/digest-proftpd-1.2.10-r42
-rw-r--r--net-ftp/proftpd/files/ftp.pamd-include16
-rw-r--r--net-ftp/proftpd/proftpd-1.2.10-r4.ebuild162
5 files changed, 197 insertions, 8 deletions
diff --git a/net-ftp/proftpd/ChangeLog b/net-ftp/proftpd/ChangeLog
index a97d2ccecdaf..78bd31781c4e 100644
--- a/net-ftp/proftpd/ChangeLog
+++ b/net-ftp/proftpd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-ftp/proftpd
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.88 2005/03/07 16:42:24 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.89 2005/06/04 13:28:02 humpback Exp $
+
+*proftpd-1.2.10-r4 (04 Jun 2005)
+
+ 04 Jun 2005; Gustavo Felisberto <humpback@gentoo.org>;
+ +files/ftp.pamd-include, +proftpd-1.2.10-r4.ebuild:
+ Thanks to flameeyes in #93163 we now build and install in g/bsd.
07 Mar 2005; Markus Rothe <corsair@gentoo.org> proftpd-1.2.10-r2.ebuild:
Stable on ppc64
diff --git a/net-ftp/proftpd/Manifest b/net-ftp/proftpd/Manifest
index d0f6fe71ee0e..6369899bcb74 100644
--- a/net-ftp/proftpd/Manifest
+++ b/net-ftp/proftpd/Manifest
@@ -1,20 +1,23 @@
-MD5 60e5ee7d096d6fdff0c9160117c09cf6 ChangeLog 14201
+MD5 ef36e71da32ade3e651984145f6d9d7b ChangeLog 14414
MD5 b47207aedd0149443faa2152950714ed metadata.xml 401
-MD5 6fc1a218a29c9fc20ee69100d1f8888a proftpd-1.2.10.ebuild 4139
-MD5 1260354a840c5fca83d551172f4657ce proftpd-1.2.10-r3.ebuild 4330
-MD5 58abdaa0274915af4dcc12046c752afb proftpd-1.2.9-r2.ebuild 3439
MD5 0da1408981233bd78976ee644a3a5e84 proftpd-1.2.10-r1.ebuild 4395
MD5 500ff36d4796598be93237951d1b3670 proftpd-1.2.10-r2.ebuild 4477
+MD5 1260354a840c5fca83d551172f4657ce proftpd-1.2.10-r3.ebuild 4330
+MD5 66b089ca4d8bfd609c13df89fb3d8099 proftpd-1.2.10-r4.ebuild 4284
+MD5 6fc1a218a29c9fc20ee69100d1f8888a proftpd-1.2.10.ebuild 4139
+MD5 58abdaa0274915af4dcc12046c752afb proftpd-1.2.9-r2.ebuild 3439
MD5 e558f099037d359da5f855285542246e files/1.2.9_rc3-reversedns.diff 1974
MD5 fa041c7b343099eef454338152a04ea7 files/digest-proftpd-1.2.10 67
+MD5 52697b758d9c85e63c881592c5a8bb02 files/digest-proftpd-1.2.10-r1 213
+MD5 52697b758d9c85e63c881592c5a8bb02 files/digest-proftpd-1.2.10-r2 213
MD5 81e05e840c023b1f6bfb46dc24cb165f files/digest-proftpd-1.2.10-r3 142
-MD5 cfe47c0d5f8fece1d36ca8d56d0f2b99 files/ftp.pamd 701
+MD5 81e05e840c023b1f6bfb46dc24cb165f files/digest-proftpd-1.2.10-r4 142
MD5 6c1a92fc601780a49fdfc01aaf483b69 files/digest-proftpd-1.2.9-r2 66
+MD5 cfe47c0d5f8fece1d36ca8d56d0f2b99 files/ftp.pamd 701
+MD5 3f7725dfa4ff0f5b632ddf41104ba44b files/ftp.pamd-include 592
MD5 0cf02f8c82f22e714b8299e7b7907d8f files/mod_sql_postgres.c.patch 275
MD5 b00999f820f1e46a501ce4fcaeb5fe23 files/proftpd-1.2.9-makefile.patch 434
MD5 50955f0d375360841d50a82b9589e435 files/proftpd-1.2.9-privescal-fix.patch 588
MD5 b338504ed873219e368abab7df6c276d files/proftpd.conf 1704
MD5 55ca24c9ee61b9ed94968c664baaeace files/proftpd.rc6 731
MD5 4d676b70c97bc6daabd8c2ba8d52d27a files/proftpd.xinetd 295
-MD5 52697b758d9c85e63c881592c5a8bb02 files/digest-proftpd-1.2.10-r1 213
-MD5 52697b758d9c85e63c881592c5a8bb02 files/digest-proftpd-1.2.10-r2 213
diff --git a/net-ftp/proftpd/files/digest-proftpd-1.2.10-r4 b/net-ftp/proftpd/files/digest-proftpd-1.2.10-r4
new file mode 100644
index 000000000000..211d52a3fca3
--- /dev/null
+++ b/net-ftp/proftpd/files/digest-proftpd-1.2.10-r4
@@ -0,0 +1,2 @@
+MD5 5feb4a7348e12faefc25e34fd92efdd6 proftpd-1.2.10.tar.bz2 920337
+MD5 ca3d63ffbc6ad5b6a9063f79b36d1b55 proftpd-mod-shaper-0.5.5.tar.gz 18090
diff --git a/net-ftp/proftpd/files/ftp.pamd-include b/net-ftp/proftpd/files/ftp.pamd-include
new file mode 100644
index 000000000000..15a6c0370e5f
--- /dev/null
+++ b/net-ftp/proftpd/files/ftp.pamd-include
@@ -0,0 +1,16 @@
+#%PAM-1.0
+
+# Disabled by default as it's a non-ported module for now
+# auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
+auth include system-auth
+
+# If this is enabled, anonymous logins will fail because the 'ftp' user does
+# not have a "valid" shell, as listed in /etc/shells.
+#
+# If you enable this, it is recommended that you do *not* give the 'ftp'
+# user a real shell. Instead, give the 'ftp' user /bin/false for a shell and
+# add /bin/false to /etc/shells.
+# auth required pam_shells.so
+
+account include system-auth
+session include system-auth
diff --git a/net-ftp/proftpd/proftpd-1.2.10-r4.ebuild b/net-ftp/proftpd/proftpd-1.2.10-r4.ebuild
new file mode 100644
index 000000000000..27e5b8906f5b
--- /dev/null
+++ b/net-ftp/proftpd/proftpd-1.2.10-r4.ebuild
@@ -0,0 +1,162 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.2.10-r4.ebuild,v 1.1 2005/06/04 13:28:02 humpback Exp $
+
+inherit flag-o-matic eutils
+
+IUSE="hardened ipv6 ldap mysql pam postgres shaper softquota ssl tcpd
+ selinux sendfile authunix authfile ncurses xinetd"
+
+MY_P=${P/_/}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="An advanced and very configurable FTP server"
+SRC_URI="ftp://ftp.proftpd.org/distrib/source/${MY_P}.tar.bz2
+ shaper? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-shaper-0.5.5.tar.gz )"
+HOMEPAGE="http://www.proftpd.org/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~sparc ~hppa ~alpha ~ppc ~mips ~amd64 ~ppc64"
+
+DEPEND="pam? ( virtual/pam )
+ mysql? ( >=dev-db/mysql-3.23.26 )
+ ldap? ( >=net-nds/openldap-1.2.11 )
+ postgres? ( >=dev-db/postgresql-7.3 )
+ ssl? ( >=dev-libs/openssl-0.9.6f )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 )
+ ncurses? ( sys-libs/ncurses )
+ xinetd? ( sys-apps/xinetd )"
+
+RDEPEND="selinux? ( sec-policy/selinux-ftpd )"
+
+src_unpack() {
+ unpack ${MY_P}.tar.bz2
+ cd ${S}
+ if use shaper; then
+ unpack ${PN}-mod-shaper-0.5.5.tar.gz
+ mv mod_shaper/mod_shaper.c contrib/
+ fi
+}
+
+src_compile() {
+ local modules myconf
+
+ modules="mod_ratio:mod_readme"
+ use pam && modules="${modules}:mod_auth_pam"
+ use tcpd && modules="${modules}:mod_wrap"
+ use shaper && modules="${modules}:mod_shaper"
+
+ if use ldap; then
+ einfo ldap
+ modules="${modules}:mod_ldap"
+ append-ldflags "-lresolv"
+ fi
+
+ if use ssl; then
+ einfo ssl
+ # enable mod_tls
+ modules="${modules}:mod_tls"
+ fi
+
+ if use mysql && use postgres
+ then
+ ewarn "ProFTPD only supports either the MySQL or PostgreSQL modules."
+ ewarn "Presently this ebuild defaults to mysql. If you would like to"
+ ewarn "change the default behaviour, merge ProFTPD with;"
+ ewarn "USE=\"-mysql postgres\" emerge proftpd"
+ epause 5
+ fi
+
+ if use mysql; then
+ modules="${modules}:mod_sql:mod_sql_mysql"
+ myconf="${myconf} --with-includes=/usr/include/mysql"
+ elif use postgres; then
+ modules="${modules}:mod_sql:mod_sql_postgres"
+ myconf="${myconf} --with-includes=/usr/include/postgresql"
+ fi
+
+ if use softquota; then
+ modules="${modules}:mod_quotatab"
+ if use mysql || use postgres; then
+ modules="${modules}:mod_quotatab_sql"
+ fi
+ if use ldap; then
+ modules="${modules}:mod_quotatab_file:mod_quotatab_ldap"
+ else
+ modules="${modules}:mod_quotatab_file"
+ fi
+ fi
+
+ # New modules for 1.2.9
+ # Not sure how these should be enabled yet as no use variables
+ # apply currently. Uncomment if you want to use them though.
+ # -raker 06/16/2003
+ #
+ # modules="${modules}:mod_ifsession"
+ # modules="${modules}:mod_radius"
+ # modules="${modules}:mod_rewrite"
+
+ # bug #30359
+ use hardened && echo > lib/libcap/cap_sys.c
+ has_pic && echo > lib/libcap/cap_sys.c
+
+ econf \
+ --sbindir=/usr/sbin \
+ --localstatedir=/var/run \
+ --sysconfdir=/etc/proftpd \
+ --enable-shadow \
+ --enable-autoshadow \
+ --enable-ctrls \
+ --with-modules=${modules} \
+ $(use_enable authunix auth-unix) \
+ $(use_enable authfile auth-file) \
+ $(use_enable ncurses) \
+ $(use_enable ipv6) \
+ $(use_with sendfile) \
+ ${myconf} || die "bad ./configure"
+
+ emake || die "compile problem"
+}
+
+src_install() {
+ # Note rundir needs to be specified to avoid sandbox violation
+ # on initial install. See Make.rules
+ make DESTDIR=${D} install || die
+
+ keepdir /home/ftp
+ keepdir /var/run/proftpd
+
+ dodoc contrib/UPGRADE.mod_sql ${FILESDIR}/proftpd.conf \
+ COPYING CREDITS ChangeLog NEWS README* \
+ doc/{license.txt,GetConf}
+ dohtml doc/*.html
+
+ use shaper && dohtml mod_shaper/mod_shaper.html
+ docinto rfc
+ dodoc doc/rfc/*.txt
+
+ mv ${D}/etc/proftpd/proftpd.conf ${D}/etc/proftpd/proftpd.conf.distrib
+
+ insinto /etc/proftpd
+ newins ${FILESDIR}/proftpd.conf proftpd.conf.sample
+
+ newpamd ${FILESDIR}/ftp.pamd-include ftp
+
+ if use xinetd; then
+ insinto /etc/xinetd.d
+ newins ${FILESDIR}/proftpd.xinetd proftpd
+ fi
+
+ newinitd ${FILESDIR}/proftpd.rc6 proftpd
+}
+
+pkg_postinst() {
+ enewgroup proftpd
+ enewuser proftpd -1 /bin/false /home/ftp proftpd
+ einfo
+ einfo 'You can find the config files in /etc/proftpd'
+ einfo
+ einfo 'mod_delay has been causing more bad than good and has been removed'
+ einfo 'see Changelog for more info'
+}