summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-ftp/proftpd/ChangeLog15
-rw-r--r--net-ftp/proftpd/files/digest-proftpd-1.2.7_rc21
-rw-r--r--net-ftp/proftpd/files/proftpd.conf34
-rw-r--r--net-ftp/proftpd/proftpd-1.2.7_rc2.ebuild105
4 files changed, 133 insertions, 22 deletions
diff --git a/net-ftp/proftpd/ChangeLog b/net-ftp/proftpd/ChangeLog
index 1f59f6d7e15d..c6ba952dbf20 100644
--- a/net-ftp/proftpd/ChangeLog
+++ b/net-ftp/proftpd/ChangeLog
@@ -1,14 +1,17 @@
# ChangeLog for net-ftp/proftpd
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.10 2002/09/07 14:15:46 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.11 2002/11/02 17:07:20 blizzy Exp $
-*proftpd-1.2.6_rc1-r1 (03 Aug 2002)
+*proftpd-1.2.7_rc2 (02 Nov 2002)
+
+ 02 Nov 2002; Maik Schreiber <blizzy@gentoo.org> : New version. Also we use
+ user/group "proftpd" from now on instead of nobody/nogroup.
- 07 Sep 2002; Seemant Kulleen <seemant@gentoo.org> proftpd-1.2.5-r1.ebuild
- proftpd-1.2.6_rc1-r1.ebuild :
+ 07 Sep 2002; Seemant Kulleen <seemant@gentoo.org> proftpd-1.2.5-r1.ebuild,
+ proftpd-1.2.6_rc1-r1.ebuild: Removed redundant glibc dependency and replaced
+ it with the libpcap. Thanks to: saragon@home.se (Daniel) in bug #7614.
- Removed redundant glibc dependency and replaced it with the libpcap.
- Thanks to: saragon@home.se (Daniel) in bug #7614.
+*proftpd-1.2.6_rc1-r1 (03 Aug 2002)
03 Aug 2002; Bruce A. Locke <blocke@shivan.org> proftpd-1.2.6_rc1-r1.ebuild,
files/digest-proftpd-1.2.6_rc1-r1:
diff --git a/net-ftp/proftpd/files/digest-proftpd-1.2.7_rc2 b/net-ftp/proftpd/files/digest-proftpd-1.2.7_rc2
new file mode 100644
index 000000000000..9a56afe0de4a
--- /dev/null
+++ b/net-ftp/proftpd/files/digest-proftpd-1.2.7_rc2
@@ -0,0 +1 @@
+MD5 c70b2029193fb68f0e7896fc1fe8f228 proftpd-1.2.7rc2.tar.bz2 638445
diff --git a/net-ftp/proftpd/files/proftpd.conf b/net-ftp/proftpd/files/proftpd.conf
index 55db30ebef9b..13936d5944c8 100644
--- a/net-ftp/proftpd/files/proftpd.conf
+++ b/net-ftp/proftpd/files/proftpd.conf
@@ -9,42 +9,44 @@ DefaultServer on
AuthPAM off
AuthPAMConfig ftp
# Port 21 is the standard FTP port.
-Port 21
+Port 21
+
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
-Umask 022
+Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
-# in inetd mode, in inetd mode you should use an inetd server
+# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
-# (such as xinetd)
-MaxInstances 30
+# (such as xinetd).
+MaxInstances 30
-# Set the user and group that the server normally runs at.
-User nobody
-Group nobody
+# Set the user and group under which the server will run.
+User proftpd
+Group proftpd
# Normally, we want files to be overwriteable.
-<Directory /*>
- AllowOverwrite on
+<Directory />
+ AllowOverwrite on
</Directory>
# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
- User ftp
- Group ftp
+ User ftp
+ Group ftp
+
# We want clients to be able to login with "anonymous" as well as "ftp"
- UserAlias anonymous ftp
+ UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
- MaxClients 10
+ MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
- DisplayLogin welcome.msg
- DisplayFirstChdir .message
+ DisplayLogin welcome.msg
+ DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
diff --git a/net-ftp/proftpd/proftpd-1.2.7_rc2.ebuild b/net-ftp/proftpd/proftpd-1.2.7_rc2.ebuild
new file mode 100644
index 000000000000..50eff396a439
--- /dev/null
+++ b/net-ftp/proftpd/proftpd-1.2.7_rc2.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.2.7_rc2.ebuild,v 1.1 2002/11/02 17:07:20 blizzy Exp $
+
+IUSE="ldap pam postgres mysql"
+
+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"
+HOMEPAGE="http://www.proftpd.net/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc ~sparc ~sparc64"
+
+DEPEND="net-libs/libpcap
+ pam? ( >=sys-libs/pam-0.75 )
+ mysql? ( >=dev-db/mysql-3.23.26 )
+ ldap? ( >=net-nds/openldap-1.2.11 )
+ postgres? ( >=dev-db/postgresql-7.1 )"
+
+src_unpack() {
+ # Fix bug #3791
+ unpack ${MY_P}.tar.bz2
+ cd ${S}
+ patch contrib/mod_sql_postgres.c \
+ < ${FILESDIR}/mod_sql_postgres.c.patch || \
+ die "config patch failed"
+}
+
+src_compile() {
+ local modules myconf
+
+ modules="mod_ratio:mod_readme:mod_linuxprivs"
+ use pam && modules="${modules}:mod_pam"
+ use ldap && modules="${modules}:mod_ldap"
+
+ if [ "`use mysql`" ] ; then
+ modules="${modules}:mod_sql:mod_sql_mysql"
+ elif [ "`use postgres`" ] ; then
+ modules="${modules}:mod_sql:mod_sql_postgres"
+ myconf="--with-includes=/usr/include/postgresql"
+ fi
+
+ use ldap && export LDFLAGS="-lresolv"
+
+ econf \
+ --sbindir=/usr/sbin \
+ --localstatedir=/var/run \
+ --sysconfdir=/etc/proftpd \
+ --enable-shadow \
+ --disable-sendfile \
+ --enable-autoshadow \
+ --with-modules=${modules} \
+ ${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
+ einstall \
+ sbindir=${D}/usr/sbin \
+ localstatedir=${D}/var/run \
+ rundir=${D}/var/run/proftpd \
+ sysconfdir=${D}/etc/proftpd \
+ || die
+
+ #dobin contrib/genuser.pl
+ dodir /home/ftp
+ touch ${D}/home/ftp/.keep
+
+ touch ${D}/var/run/proftpd/.keep
+
+ dodoc contrib/README.mod_sql ${FILESDIR}/proftpd.conf \
+ COPYING CREDITS ChangeLog NEWS README* \
+ doc/{license.txt,GetConf}
+ dohtml doc/*.html
+ docinto rfc
+ dodoc doc/rfc/*.txt
+
+ cd ${D}/etc/proftpd
+ mv proftpd.conf proftpd.conf.distrib
+
+ insinto /etc/proftpd
+ newins ${FILESDIR}/proftpd.conf proftpd.conf.sample
+
+ if [ "`use pam`" ] ; then
+ insinto /etc/pam.d
+ newins ${S}/contrib/dist/rpm/ftp.pamd ftp
+ fi
+
+ insinto /etc/xinetd.d
+ newins ${FILESDIR}/proftpd.xinetd proftpd
+
+ exeinto /etc/init.d ; newexe ${FILESDIR}/proftpd.rc6 proftpd
+}
+
+pkg_postinst() {
+ groupadd proftpd &>/dev/null
+ id proftpd &>/dev/null || \
+ useradd -g proftpd -d /home/ftp -s /bin/false proftpd
+}