summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2015-04-16 09:35:12 +0000
committerLars Wendler <polynomial-c@gentoo.org>2015-04-16 09:35:12 +0000
commita42293da90126efd061175162995ee2d2eac2c10 (patch)
tree8fdf46579727f6090210e51e77851f89a51c1606 /net-ftp
parentDrop broken manpage generation, fix for prefix (diff)
downloadgentoo-2-a42293da90126efd061175162995ee2d2eac2c10.tar.gz
gentoo-2-a42293da90126efd061175162995ee2d2eac2c10.tar.bz2
gentoo-2-a42293da90126efd061175162995ee2d2eac2c10.zip
Version bump. Removed old. Adjusted openssl and postgresql slot dependency
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
Diffstat (limited to 'net-ftp')
-rw-r--r--net-ftp/pure-ftpd/ChangeLog12
-rw-r--r--net-ftp/pure-ftpd/files/pure-ftpd.conf_d-293
-rw-r--r--net-ftp/pure-ftpd/files/pure-ftpd.rc1069
-rw-r--r--net-ftp/pure-ftpd/pure-ftpd-1.0.36-r1.ebuild8
-rw-r--r--net-ftp/pure-ftpd/pure-ftpd-1.0.36.ebuild8
-rw-r--r--net-ftp/pure-ftpd/pure-ftpd-1.0.37.ebuild (renamed from net-ftp/pure-ftpd/pure-ftpd-1.0.29-r1.ebuild)69
6 files changed, 61 insertions, 198 deletions
diff --git a/net-ftp/pure-ftpd/ChangeLog b/net-ftp/pure-ftpd/ChangeLog
index 7768a794c890..8af1cfee79f2 100644
--- a/net-ftp/pure-ftpd/ChangeLog
+++ b/net-ftp/pure-ftpd/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-ftp/pure-ftpd
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/ChangeLog,v 1.154 2014/12/28 16:23:21 titanofold Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/ChangeLog,v 1.155 2015/04/16 09:35:12 polynomial-c Exp $
+
+*pure-ftpd-1.0.37 (16 Apr 2015)
+
+ 16 Apr 2015; Lars Wendler <polynomial-c@gentoo.org>
+ -pure-ftpd-1.0.29-r1.ebuild, pure-ftpd-1.0.36.ebuild,
+ pure-ftpd-1.0.36-r1.ebuild, +pure-ftpd-1.0.37.ebuild,
+ -files/pure-ftpd.conf_d-2, -files/pure-ftpd.rc10:
+ Version bump. Removed old. Adjusted openssl and postgresql slot dependency.
28 Dec 2014; Aaron W. Swenson <titanofold@gentoo.org>
pure-ftpd-1.0.29-r1.ebuild, pure-ftpd-1.0.36.ebuild,
diff --git a/net-ftp/pure-ftpd/files/pure-ftpd.conf_d-2 b/net-ftp/pure-ftpd/files/pure-ftpd.conf_d-2
deleted file mode 100644
index f14cb0b19c6b..000000000000
--- a/net-ftp/pure-ftpd/files/pure-ftpd.conf_d-2
+++ /dev/null
@@ -1,93 +0,0 @@
-# Config file for /etc/init.d/pure-ftpd
-##Comment variables out to disable its features, or change the values in it... ##
-
-## This variable must be uncommented in order for the server to start ##
-#IS_CONFIGURED="yes"
-
-## FTP Server,Port (separated by comma) ##
-## If you prefer host names over IP addresses, it's your choice:
-## SERVER="-S ftp.rtchat.com,21"
-## IPv6 addresses are supported.
-## !!! WARNING !!!
-## Using an invalid IP will result in the server not starting,
-## but reporting a correct start!
-## SERVER="-S 192.168.0.1,21"
-## By default binds to all available IPs.
-SERVER="-S 21"
-
-## Number of simultaneous connections in total, and per IP ##
-MAX_CONN="-c 30"
-MAX_CONN_IP="-C 10"
-
-## Start daemonized in background ##
-DAEMON="-B"
-
-## Don't allow uploads if the partition is more full then this var ##
-DISK_FULL="-k 90%"
-
-## If your FTP server is behind a NAT box, uncomment this ##
-#USE_NAT="-N"
-
-## Authentication mechanisms (others are 'pam', ...) ##
-## Further infos can be found in the README file.
-AUTH="-l unix"
-
-## Change the maximum idle time (in minutes) ##
-## If this variable is not defined, it will default to 15 minutes.
-#TIMEOUT="-I <timeout>'"
-
-## Facility used for syslog logging ##
-## If this variable is not defined, it will default to the 'ftp' facility.
-## Logging can be disabled with '-f none'.
-#LOG="-f <facility>"
-
-## Charset conversion support *experimental* ##
-## Only works if USE "charconv" is enabled (only Pure-FTPd >=1.0.21).
-## Set the charset of the filesystem.
-# CHARCONV="--fscharset <charset>"
-
-## If you want to process each file uploaded through Pure-FTPd, enter the name
-## of the script that should process the files below.
-## man pure-uploadscript to learn more about how to write this script.
-# UPLOADSCRIPT="/path/to/uploadscript"
-
-## Misc. Others ##
-MISC_OTHER="-A -x -j -R -Z"
-
-#
-# Use these inside $MISC_OTHER
-# More can be found on "http://download.pureftpd.org/pub/pure-ftpd/doc/README"
-#
-# -A [ chroot() everyone, but root ]
-# -e [ Only allow anonymous users ]
-# -E [ Only allow authenticated users. Anonymous logins are prohibited. ]
-# -i [ Disallow upload for anonymous users, whatever directory perms are ]
-# -j [ If the home directory of a user doesn't exist, auto-create it ]
-# -M [ Allow anonymous users to create directories. ]
-# -R [ Disallow users (even non-anonymous ones) usage of the CHMOD command ]
-# -x [ In normal operation mode, authenticated users can read/write
-# files beginning with a dot ('.'). Anonymous users can't, for security reasons
-# (like changing banners or a forgotten .rhosts). When '-x' is used, authenticated
-# users can download dot-files, but not overwrite/create them, even if they own
-# them. ]
-# -X [ This flag is identical to the previous one (writing
-# dot-files is prohibited), but in addition, users can't even *read* files and
-# directories beginning with a dot (like "cd .ssh"). ]
-# -D [ List files beginning with a dot ('.') even when the client doesn't
-# append the '-a' option to the list command. A workaround for badly
-# configured FTP clients. ]
-# -G [ Disallow renaming. ]
-# -d [ Send various debugging messages to the syslog. ONLY for DEBUG ]
-# -F <fortune file> [ Display a fortune cookie on login. Check the README file ]
-# -H [ By default, fully-qualified host names are logged. The '-H' flag avoids host names resolution. ]
-
-
-# Some filesystems don't like accesses being memory mapped. This happens for
-# example with ftpwho on JFFS2 filesystems (bug #330563). If you happen to
-# have such a filesystem on /var set TMPFS_MOUNT to "true".
-TMPFS_MOUNT="false"
-
-# Special mount options (like nosuid or nodev) for the tmpfs mount can be added
-# here. Several options must be separated by comma: "nodev,nosuid"
-#TMPFS_OPTS=""
-
diff --git a/net-ftp/pure-ftpd/files/pure-ftpd.rc10 b/net-ftp/pure-ftpd/files/pure-ftpd.rc10
deleted file mode 100644
index 961ce187402f..000000000000
--- a/net-ftp/pure-ftpd/files/pure-ftpd.rc10
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/files/pure-ftpd.rc10,v 1.2 2011/08/05 09:30:34 polynomial-c Exp $
-
-ftpd_pidfile="/var/run/pure-ftpd.pid"
-script_pidfile="/var/run/pure-uploadscript.pid"
-ftpd_rundir="/var/lib/run/pure-ftpd"
-
-depend() {
- need net
-}
-
-checkconfig() {
- if [ -z "$IS_CONFIGURED" ] ; then
- eerror "You need to setup /etc/conf.d/pure-ftpd first!"
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
-
- if ${TMPFS_MOUNT:-false} && grep -q tmpfs /proc/filesystems ; then
- [ -n "${TMPFS_OPTS}" ] && MOUNT_OPTS="-o ${TMPFS_OPTS}"
- einfo "Mounting tmpfs on ${ftpd_rundir}"
- mount ${MOUNT_OPTS} -t tmpfs tmpfs ${ftpd_rundir} \
- || eerror "Unable to mount tmpfs"
- fi
-
- # only works with openrc
- WAIT=""
- if [ -f /etc/init.d/sysfs ]; then
- WAIT="--wait 100"
- fi
-
- UPSCRIPT=""
- if [ -n "$UPLOADSCRIPT" ] ; then
- UPSCRIPT="--uploadscript"
- fi
- ebegin "Starting Pure-FTPd"
- start-stop-daemon --start --quiet --pidfile ${ftpd_pidfile} --exec /usr/sbin/pure-ftpd ${WAIT} -- --pidfile ${ftpd_pidfile} $SERVER $MAX_CONN $MAX_CONN_IP $DAEMON $DISK_FULL $USE_NAT $AUTH $LOG $TIMEOUT $CHARCONV $MISC_OTHER $UPSCRIPT
- result=$?
- if [ $result -ne 0 ] ; then
- eend 1 "Could not launch Pure-FTPd"
- else
- eend $result
- if [ -n "$UPLOADSCRIPT" ] ; then
- ebegin "Starting Pure-FTPd upload script"
- start-stop-daemon --start --quiet --make-pidfile --pidfile ${script_pidfile} --exec /usr/sbin/pure-uploadscript --background ${WAIT} -- -r $UPLOADSCRIPT
- eend $?
- fi
- fi
-}
-
-stop() {
- ebegin "Stopping Pure-FTPd"
- start-stop-daemon --stop --retry 20 --quiet --pidfile ${ftpd_pidfile}
- eend $?
- if [ -n "$UPLOADSCRIPT" ] ; then
- ebegin "Stopping Pure-FTPd upload script"
- start-stop-daemon --stop --retry 20 --quiet --pidfile ${script_pidfile}
- eend $?
- fi
-
- if ${TMPFS_MOUNT:-false} && mount | grep -q ${ftpd_rundir} ; then
- umount ${ftpd_rundir} >/dev/null 2>&1
- fi
-}
diff --git a/net-ftp/pure-ftpd/pure-ftpd-1.0.36-r1.ebuild b/net-ftp/pure-ftpd/pure-ftpd-1.0.36-r1.ebuild
index 796ff09b4696..9d7b2155ef74 100644
--- a/net-ftp/pure-ftpd/pure-ftpd-1.0.36-r1.ebuild
+++ b/net-ftp/pure-ftpd/pure-ftpd-1.0.36-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 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.36-r1.ebuild,v 1.4 2014/12/28 16:23:21 titanofold Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/pure-ftpd-1.0.36-r1.ebuild,v 1.5 2015/04/16 09:35:12 polynomial-c Exp $
EAPI=5
inherit eutils confutils flag-o-matic
@@ -24,8 +24,8 @@ DEPEND="caps? ( sys-libs/libcap )
ldap? ( >=net-nds/openldap-2.0.25 )
mysql? ( virtual/mysql )
pam? ( virtual/pam )
- postgres? ( dev-db/postgresql )
- ssl? ( >=dev-libs/openssl-0.9.6g )
+ postgres? ( dev-db/postgresql:= )
+ ssl? ( >=dev-libs/openssl-0.9.6g:0= )
sysquota? ( sys-fs/quota[-rpc] )
xinetd? ( virtual/inetd )"
diff --git a/net-ftp/pure-ftpd/pure-ftpd-1.0.36.ebuild b/net-ftp/pure-ftpd/pure-ftpd-1.0.36.ebuild
index 2baab8ba64c8..ebbd68cfb28d 100644
--- a/net-ftp/pure-ftpd/pure-ftpd-1.0.36.ebuild
+++ b/net-ftp/pure-ftpd/pure-ftpd-1.0.36.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 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.36.ebuild,v 1.15 2014/12/28 16:23:21 titanofold Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/pure-ftpd-1.0.36.ebuild,v 1.16 2015/04/16 09:35:12 polynomial-c Exp $
EAPI=5
inherit eutils confutils flag-o-matic
@@ -22,8 +22,8 @@ DEPEND="caps? ( sys-libs/libcap )
ldap? ( >=net-nds/openldap-2.0.25 )
mysql? ( virtual/mysql )
pam? ( virtual/pam )
- postgres? ( dev-db/postgresql )
- ssl? ( >=dev-libs/openssl-0.9.6g )
+ postgres? ( dev-db/postgresql:= )
+ ssl? ( >=dev-libs/openssl-0.9.6g:0= )
sysquota? ( sys-fs/quota[-rpc] )
xinetd? ( virtual/inetd )"
diff --git a/net-ftp/pure-ftpd/pure-ftpd-1.0.29-r1.ebuild b/net-ftp/pure-ftpd/pure-ftpd-1.0.37.ebuild
index ce1f4d4155ca..3eda54b705e6 100644
--- a/net-ftp/pure-ftpd/pure-ftpd-1.0.29-r1.ebuild
+++ b/net-ftp/pure-ftpd/pure-ftpd-1.0.37.ebuild
@@ -1,31 +1,36 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 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.29-r1.ebuild,v 1.10 2014/12/28 16:23:21 titanofold Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/pure-ftpd-1.0.37.ebuild,v 1.1 2015/04/16 09:35:12 polynomial-c Exp $
-EAPI=2
+EAPI=5
inherit eutils confutils flag-o-matic
-KEYWORDS="~x86-fbsd"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86"
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"
+SRC_URI="ftp://ftp.pureftpd.org/pub/${PN}/releases/${P}.tar.bz2
+ http://download.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"
+IUSE="anondel anonperm anonren anonres caps charconv implicittls ldap mysql noiplog pam paranoidmsg postgres resolveids selinux ssl sysquota vchroot xinetd"
+
+REQUIRED_USE="implicittls? ( ssl )"
DEPEND="caps? ( sys-libs/libcap )
charconv? ( virtual/libiconv )
ldap? ( >=net-nds/openldap-2.0.25 )
mysql? ( virtual/mysql )
pam? ( virtual/pam )
- postgres? ( dev-db/postgresql )
- ssl? ( >=dev-libs/openssl-0.9.6g )
+ postgres? ( dev-db/postgresql:= )
+ ssl? ( >=dev-libs/openssl-0.9.6g:0= )
+ sysquota? ( sys-fs/quota[-rpc] )
xinetd? ( virtual/inetd )"
RDEPEND="${DEPEND}
+ dev-libs/libsodium
net-ftp/ftpbase
selinux? ( sec-policy/selinux-ftp )"
@@ -36,20 +41,23 @@ src_prepare() {
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"
+ 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_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 "paranoidmsg" "paranoidmsg" 0
enable_extension_with "pgsql" "postgres" 0
enable_extension_with "tls" "ssl" 0
- enable_extension_with "virtualchroot" "vchroot" 0
+ enable_extension_with "implicittls" "implicittls" 0
+ enable_extension_with "virtualchroot" "vchroot" 0
+ enable_extension_with "sysquotas" "sysquota" 0
enable_extension_without "inetd" "xinetd"
# noiplog is a negative flag, we don't want that enabled by default,
@@ -61,6 +69,7 @@ src_configure() {
use anonperm && append-cppflags -DANON_CAN_CHANGE_PERMS
use anonren && append-cppflags -DANON_CAN_RENAME
use anonres && append-cppflags -DANON_CAN_RESUME
+ use resolveids && append-cppflags -DALWAYS_RESOLVE_IDS
# Do not auto-use SSP -- let the user select this.
export ax_cv_check_cflags___fstack_protector_all=no
@@ -81,17 +90,22 @@ src_configure() {
--with-uploadscript \
--with-virtualhosts \
--enable-largefile \
- ${my_conf} || die "econf failed"
+ ${my_conf}
}
src_install() {
- emake DESTDIR="${D}" install || die "emake install failed"
+ emake DESTDIR="${D}" install
dodoc AUTHORS CONTACT ChangeLog FAQ HISTORY INSTALL README* NEWS
- newconfd "${FILESDIR}/pure-ftpd.conf_d-2" pure-ftpd
+ newconfd "${FILESDIR}/pure-ftpd.conf_d-3" ${PN}
+
+ if use implicittls ; then
+ sed -i '/^SERVER/s@21@990@' "${ED}"/etc/conf.d/${PN} \
+ || die "Adjusting default server port for implicittls usage failed!"
+ fi
- newinitd "${FILESDIR}/pure-ftpd.rc10" pure-ftpd
+ newinitd "${FILESDIR}/pure-ftpd.rc11" pure-ftpd
dodir /var/lib/run/${PN}
@@ -110,15 +124,18 @@ src_install() {
}
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!"
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ # This is a new installation
+ 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
fi
}