summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2009-09-16 20:15:58 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2009-09-16 20:15:58 +0000
commit3ccfb1c76f8317ca216442ed55b24196a00ad1cf (patch)
tree16a74f53f5d9571ce32e93320804fb27f2bd8e59 /net-ftp/proftpd
parentfix comparison test (diff)
downloadgentoo-2-3ccfb1c76f8317ca216442ed55b24196a00ad1cf.tar.gz
gentoo-2-3ccfb1c76f8317ca216442ed55b24196a00ad1cf.tar.bz2
gentoo-2-3ccfb1c76f8317ca216442ed55b24196a00ad1cf.zip
Check if old-style pid-file is present, remove ipv6 setting in default configuration, and other cleanups, by Bernd Lommerzheim
(Portage version: 2.2_rc40/cvs/Linux x86_64)
Diffstat (limited to 'net-ftp/proftpd')
-rw-r--r--net-ftp/proftpd/ChangeLog10
-rw-r--r--net-ftp/proftpd/files/proftpd.conf.sample3
-rw-r--r--net-ftp/proftpd/proftpd-1.3.3_rc1-r1.ebuild (renamed from net-ftp/proftpd/proftpd-1.3.3_rc1.ebuild)33
3 files changed, 33 insertions, 13 deletions
diff --git a/net-ftp/proftpd/ChangeLog b/net-ftp/proftpd/ChangeLog
index 6f5fcf9906f9..663877514951 100644
--- a/net-ftp/proftpd/ChangeLog
+++ b/net-ftp/proftpd/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-ftp/proftpd
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.206 2009/09/08 16:27:17 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.207 2009/09/16 20:15:58 voyageur Exp $
+
+*proftpd-1.3.3_rc1-r1 (16 Sep 2009)
+
+ 16 Sep 2009; Bernard Cafarelli <voyageur@gentoo.org>
+ -proftpd-1.3.3_rc1.ebuild, +proftpd-1.3.3_rc1-r1.ebuild,
+ files/proftpd.conf.sample:
+ Check if old-style pid-file is present, remove ipv6 setting in default
+ configuration, and other cleanups, by Bernd Lommerzheim
*proftpd-1.3.3_rc1 (08 Sep 2009)
diff --git a/net-ftp/proftpd/files/proftpd.conf.sample b/net-ftp/proftpd/files/proftpd.conf.sample
index c943de35fdae..7bbfa03f0bc1 100644
--- a/net-ftp/proftpd/files/proftpd.conf.sample
+++ b/net-ftp/proftpd/files/proftpd.conf.sample
@@ -9,9 +9,8 @@ RequireValidShell off
AuthPAM off
AuthPAMConfig ftp
-# Listen on the standard FTP port 21 and disable IPv6 support.
+# Listen on the standard FTP port 21.
Port 21
-UseIPv6 off
# New directories and files should not be group or world writable.
Umask 022
diff --git a/net-ftp/proftpd/proftpd-1.3.3_rc1.ebuild b/net-ftp/proftpd/proftpd-1.3.3_rc1-r1.ebuild
index c5819781302a..5622768074ca 100644
--- a/net-ftp/proftpd/proftpd-1.3.3_rc1.ebuild
+++ b/net-ftp/proftpd/proftpd-1.3.3_rc1-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3_rc1.ebuild,v 1.1 2009/09/08 16:27:17 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3_rc1-r1.ebuild,v 1.1 2009/09/16 20:15:58 voyageur Exp $
EAPI="2"
inherit autotools eutils
@@ -26,7 +26,7 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~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"
+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 )
@@ -35,10 +35,10 @@ DEPEND="acl? ( sys-apps/acl sys-apps/attr )
ldap? ( net-nds/openldap )
mysql? ( virtual/mysql )
ncurses? ( sys-libs/ncurses )
- sftp? ( dev-libs/openssl )
- ssl? ( dev-libs/openssl )
pam? ( virtual/pam )
postgres? ( virtual/postgresql-base )
+ sftp? ( dev-libs/openssl )
+ ssl? ( dev-libs/openssl )
tcpd? ( sys-apps/tcp-wrappers )
xinetd? ( virtual/inetd )"
RDEPEND="${DEPEND}
@@ -53,6 +53,18 @@ __prepare_plugin() {
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_plugin mod_case
if use clamav ; then
@@ -81,7 +93,10 @@ src_configure() {
use ban && mymodules="${mymodules}:mod_ban"
use case && mymodules="${mymodules}:mod_case"
use clamav && mymodules="${mymodules}:mod_clamav"
- use ctrls && mymodules="${mymodules}:mod_ctrls_admin"
+ if use ctrls || use shaper ; then
+ myconf="${myconf} --enable-ctrls"
+ mymodules="${mymodules}:mod_ctrls_admin"
+ fi
use deflate && mymodules="${mymodules}:mod_deflate"
use exec && mymodules="${mymodules}:mod_exec"
if use kerberos ; then
@@ -115,10 +130,9 @@ src_configure() {
mymodules="${mymodules}:mod_sql_postgres"
fi
fi
- if use ssl || use sftp; then
+ if use sftp || use ssl ; then
CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
- myconf="${myconf} --with-includes=/usr/include/openssl"
- myconf="${myconf} --enable-openssl"
+ myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl"
mylibs="${mylibs} -lcrypto"
fi
use radius && mymodules="${mymodules}:mod_radius"
@@ -151,7 +165,6 @@ src_configure() {
[ ! -z ${mymodules} ] && myconf="${myconf} --with-modules=${mymodules:1}"
LIBS="${mylibs}" econf --sbindir=/usr/sbin --localstatedir=/var/run/proftpd \
--sysconfdir=/etc/proftpd --enable-shadow --enable-autoshadow \
- --enable-ctrls \
$(use_enable acl facl) \
$(use_enable authfile auth-file) \
$(use_enable caps cap) \
@@ -190,7 +203,7 @@ pkg_postinst() {
elog "You can use the 'SQLBackend' directive to specify the used SQL"
elog "backend. Without this directive the default backend is MySQL."
fi
- if use exec; then
+ if use exec ; then
ewarn "You have enabled the mod_exec module. This can be a security risk,"
ewarn "as detailed in documentation:"
ewarn "Use of this module allows for such external programs to be executed, and also"