summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2009-09-08 16:27:22 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2009-09-08 16:27:22 +0000
commita69e1b075c8d9d73a966341c560c9fcf6cf8288c (patch)
tree38c306e54afea8e476b815ed37486dcf06ead6c9 /net-ftp/proftpd
parentI fixed the compilation issue in rlfe on Solaris, remove mask (diff)
downloadhistorical-a69e1b075c8d9d73a966341c560c9fcf6cf8288c.tar.gz
historical-a69e1b075c8d9d73a966341c560c9fcf6cf8288c.tar.bz2
historical-a69e1b075c8d9d73a966341c560c9fcf6cf8288c.zip
Bump to 1.3.3_rc1, ebuild rewritten by Bernd Lommerzheim <bernd@lommerzheim.com> in bug #276371, with lots of enhancements
Package-Manager: portage-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/Manifest9
-rw-r--r--net-ftp/proftpd/files/proftpd.conf.sample54
-rw-r--r--net-ftp/proftpd/files/proftpd.rc754
-rw-r--r--net-ftp/proftpd/metadata.xml7
-rw-r--r--net-ftp/proftpd/proftpd-1.3.3_rc1.ebuild202
6 files changed, 333 insertions, 3 deletions
diff --git a/net-ftp/proftpd/ChangeLog b/net-ftp/proftpd/ChangeLog
index a477d0950ae3..6f5fcf9906f9 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.205 2009/09/07 16:46:32 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.206 2009/09/08 16:27:17 voyageur Exp $
+
+*proftpd-1.3.3_rc1 (08 Sep 2009)
+
+ 08 Sep 2009; Bernard Cafarelli <voyageur@gentoo.org>
+ +proftpd-1.3.3_rc1.ebuild, +files/proftpd.conf.sample, +files/proftpd.rc7,
+ metadata.xml:
+ Bump to 1.3.3_rc1, ebuild rewritten by Bernd Lommerzheim
+ <bernd@lommerzheim.com> in bug #276371, with lots of enhancements!
*proftpd-1.3.2a (07 Sep 2009)
diff --git a/net-ftp/proftpd/Manifest b/net-ftp/proftpd/Manifest
index 1f1883fc1b4a..7a7a4183f122 100644
--- a/net-ftp/proftpd/Manifest
+++ b/net-ftp/proftpd/Manifest
@@ -3,7 +3,9 @@ AUX proftpd-1.3.2-parallel-build.patch 786 RMD160 ff9df4ca01c5d95664bc0065099689
AUX proftpd-1.3.2-system-libltdl.patch 1932 RMD160 135045db34d87dfdb62ff643864778c3884fa013 SHA1 6e1fe98fd9e3b92aaa2886536646b7bb58765c89 SHA256 74bcb197a66b7767d8b5d327e955d979d5676be6bc3d17794be8ddc09879f2b4
AUX proftpd-1.3.2-upstream-bug-3183.patch 3032 RMD160 b3acacfadca5a0a8f35a3ca7f16561bc4271f27b SHA1 a967187a682a955369715782409cfd1de2e057bd SHA256 b2f16611b753e4c5d7874d544462217b2e44dc308b45d6a127bb17566c264403
AUX proftpd.conf 1968 RMD160 10394bf0fcaa201c59873c1a518a75f7f9d7b53c SHA1 6d3c932efa5a16c3772b49d68bc46e0239472b0b SHA256 82ebf842526eb5b1e6ac2126511063b8242ad66a271095b2ab5d1f18f908c192
+AUX proftpd.conf.sample 1312 RMD160 2e521b71342cbcffe87af0edf0c23e0014793f36 SHA1 c5ae1552eea0e8cd2dca289e63f2f3b65fb1d2b4 SHA256 e67097db6b2a37b775cf4b3d2082f15306ae7d7d13406c58f2e768980c78bc9a
AUX proftpd.rc6 1192 RMD160 09e2e7b9429b123da51331c5cb29b7f79fe03989 SHA1 b7605beebe10749e1adc3204f7a48e45f653690a SHA256 674d614bfaaea90cf9444d84688b8c77e9af482b148bf460919783627ad17918
+AUX proftpd.rc7 1398 RMD160 e3b0f22e40aec815e9e307c49b343689322c1b5b SHA1 497faab41e2966f731ec2a68e45948008f7984b9 SHA256 1c8f8cbbdb1982a1a6ec2d74b00bc40c7a198f9b64f5bc53baa49f41d7a0d0dd
AUX proftpd.xinetd 295 RMD160 c5c829319e901f478fe58b920347cc1b8706a366 SHA1 3f1bd8d6cbb1488301b9aa0346e02b571fd0783a SHA256 150a5701f5c2788ecdf2c6ec228ce674963c9dc7bc1c511ad1eba8dfe05e2d5d
DIST mod_clamav-0.10.tar.gz 5256 RMD160 5db26964bc1d3135d0da4234de010f2236d0f881 SHA1 ddb01f168d7c349deab8fe18bd4f42358c9d3d40 SHA256 8b31ab3e7caf11a8d3503380b85c1d563e4e995fcf44a7d3aba0196eade33d62
DIST mod_clamav-0.11rc.tar.gz 5115 RMD160 1b7f0bf94ed4664f873848e0fedee493f18726b8 SHA1 26fa4a8106fbb3266e7c94f50f12ed74fb2f3fec SHA256 87630eb1866066d6320ee711897d8998b8f4915c0498b2e78cc0464abd34855a
@@ -11,12 +13,15 @@ DIST mod_gss-1.3.1.tar.gz 113778 RMD160 b961395bcd4898a39d2867da33594d14aebb29dc
DIST mod_gss-1.3.2.tar.gz 114142 RMD160 5dba4a716fd2abd99a83a7b263f53c07062ada9d SHA1 9f1c4530ba8ce9d96141bcb18cc123adbc04e505 SHA256 e66ee593628880e38bd0694ab256244c40fe80baa6663ea96003ce73b94e1336
DIST proftpd-1.3.2.tar.bz2 2457498 RMD160 cefc52ad19bd633a24b28438a2cde12fd99c2a56 SHA1 b48bfb0acde11bd2a2f7a7c74a1d72d497cca46a SHA256 1cadcaf9bb0ff8a2fddcc20fc93844568cf52db872a3aea9f90ab22efa7baf1e
DIST proftpd-1.3.2a.tar.bz2 2506692 RMD160 7a2d84a4a0fdeedb78fd20a4da1267a6126e730b SHA1 a1972d656091963b60194949ca347cc704abf3ec SHA256 59d5ff059763d23c0693b0e73ebb6de35a2ab38280994c4b8e7c3f0067af5dcd
+DIST proftpd-1.3.3rc1.tar.bz2 4077391 RMD160 c0aea8024109f1e1b62604c8f1a90e7316895956 SHA1 fd0fe2e6a9cfb4dc5f3ba362950b8ac992fb4688 SHA256 db0f658ca261f8bf8b8724b669d89d4ebe1ad26b32de4f30f7beba93a674f811
DIST proftpd-mod-case-0.3.tar.gz 4781 RMD160 99f46a2cfb88ec2f3070d632dbc17d89d12ec30b SHA1 c8ea2c4604ab2ffa5853284d0696b1dfe518ae84 SHA256 a9affd47558020b2b3f369c9a945ac91d22b45368734d839404b76e0fbdaaf7c
DIST proftpd-mod-deflate-0.3.1.tar.gz 7934 RMD160 680aeec6be2b99e2d7ed188ab9a7f3dd7a6ad663 SHA1 ba00a242f9b915eb9f7d56655e5ba8e275469933 SHA256 e23f77a4fea5888777fbe466452b830c9f0a2bd8c7246eef72aaa5849b2eb7de
DIST proftpd-mod-deflate-0.3.3.tar.gz 11000 RMD160 6b5a73e1fc29a749484553a206d47a680e4bae0e SHA1 c4bb771820bd7687e24996f0884022f854b0aec5 SHA256 335a87ea4879ff1115e33f9a200558c23dd14b77b9db9314f00e775c392cd255
DIST proftpd-mod-shaper-0.6.5.tar.gz 19175 RMD160 233f399c08c18514b0f23dcc3b0fd0d0670dca42 SHA1 7c841543e7ac3005c914b0f77670c94dc7a8d51f SHA256 dc69e352b0ffd7d76f4d08cad631b6401ed9a67447995f3ce47752e4fc69e935
DIST proftpd-mod-vroot-0.8.3.tar.gz 6999 RMD160 7a8d5a29e7c2754b774cebe649f8a28fc4bf9f85 SHA1 c5448ca0a7c2f1a73093ae6834f6516092cd1508 SHA256 ed3031d8330467e4c1ccb7a395b41a1d5628a89f4fcde80e3bb7ed62e987d85a
+DIST proftpd-mod-vroot-0.8.5.tar.gz 8349 RMD160 0e9c3ea9615ed74556fcaf6145863922ee45bedf SHA1 fea69382f4dda36b620780e69cef5872f41f86fe SHA256 305ad1e3b320dc21172982c54a614a09d43373f7289b63202788de640145bbd4
EBUILD proftpd-1.3.2-r2.ebuild 8258 RMD160 ff347403170e81ceef75b3a67a96bc81c33787c3 SHA1 b9443a84b36ee8e5cb74039ef3d5ec8e51eff587 SHA256 cd85a13ac1b5dbe65a529c82e61ed0cfe1f78a2b6ce980c0ca80c2d36723519a
EBUILD proftpd-1.3.2a.ebuild 8250 RMD160 74d619c6a9799c13025425a1bb498d91466ae1ae SHA1 a5424542984ef749eaa104c6bb9cffae09486c37 SHA256 04c011cb7a33aa7d89e3c8125af70e03bbda51af8193a8b23b4fbc09eaa114d6
-MISC ChangeLog 34738 RMD160 8c82a5792cdcd097ae92977e9c28841a573a2ab8 SHA1 3168cb0de44ed7e7ff0350f1415f9633119151de SHA256 8c64962c99a9e9e33f969add6f47a38e750264267542686032f46ca49c0f2a31
-MISC metadata.xml 1266 RMD160 2eb6ab3b7a7c68eca09e193daaea833a2dc08362 SHA1 86bf2fc8f6b6c944bf384e97e9bcdec7d7ec8d77 SHA256 ffe716530aba4cf0ec4069d86c2b09f9a4dbfca541d7f467c579f871cf78c0de
+EBUILD proftpd-1.3.3_rc1.ebuild 6984 RMD160 2a6c760bc0158c99d1cdb3ffc36a1f4c9eb26808 SHA1 1d856cce596e8b10437b21bd07a403e138d9d79f SHA256 a63abc9e7b2bfc454a149fd1543fde4659d53e5cd1234d9135527230beb63aac
+MISC ChangeLog 35049 RMD160 e02f7061a27cb3cde0e3ce77c12bc96d412a4020 SHA1 041a977e84b49926fda98745365a57c16913d0a5 SHA256 ad17ab8726965358b504293541d8a57347c55b4179a4c78a229dfbd74ad5a9ec
+MISC metadata.xml 1903 RMD160 a15236976f8f0d3f1102ca97f5d9ee1d3e9abe42 SHA1 7cad7067da6c4fe1a5e882792f1516b8a0bb53a6 SHA256 0283e9ccb80ad1b1892a1ee84074210add15433c59b6e4daad5a55d39ff30fd7
diff --git a/net-ftp/proftpd/files/proftpd.conf.sample b/net-ftp/proftpd/files/proftpd.conf.sample
new file mode 100644
index 000000000000..c943de35fdae
--- /dev/null
+++ b/net-ftp/proftpd/files/proftpd.conf.sample
@@ -0,0 +1,54 @@
+# This is a sample ProFTPD configuration file for Gentoo Linux (rename
+# it to 'proftpd.conf' for actual use). It establishes a single server
+# and a single anonymous login.
+
+ServerName "ProFTPD Default Server"
+ServerType standalone
+DefaultServer on
+RequireValidShell off
+AuthPAM off
+AuthPAMConfig ftp
+
+# Listen on the standard FTP port 21 and disable IPv6 support.
+Port 21
+UseIPv6 off
+
+# New directories and files should not be group or world writable.
+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.
+MaxInstances 30
+
+# The server will run under ftp/ftp.
+User ftp
+Group ftp
+
+# Every FTP sessions is "jailed" into the user's home directory.
+DefaultRoot ~
+
+# Generally files are overwritable.
+AllowOverwrite on
+
+# Disallow the use of the SITE CHMOD command.
+<Limit SITE_CHMOD>
+ DenyAll
+</Limit>
+
+# A basic anonymous FTP account without an upload directory.
+<Anonymous ~ftp>
+ User ftp
+ Group ftp
+
+ # Clients can login with the username "anonymous" and "ftp".
+ UserAlias anonymous ftp
+
+ # Limit the maximum number of parallel anonymous logins to 10.
+ MaxClients 10
+
+ # Prohibit the WRITE command for the anonymous users.
+ <Limit WRITE>
+ DenyAll
+ </Limit>
+</Anonymous>
diff --git a/net-ftp/proftpd/files/proftpd.rc7 b/net-ftp/proftpd/files/proftpd.rc7
new file mode 100644
index 000000000000..ae8978fe9cda
--- /dev/null
+++ b/net-ftp/proftpd/files/proftpd.rc7
@@ -0,0 +1,54 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/files/proftpd.rc7,v 1.1 2009/09/08 16:27:22 voyageur Exp $
+
+opts="reload"
+
+depend() {
+ need net
+ use dns
+}
+
+check_configuration() {
+ if [ ! -e /etc/proftpd/proftpd.conf ] ; then
+ eerror "To execute the ProFTPD server you need a /etc/proftpd/proftpd.conf configuration"
+ eerror "file. In /etc/proftpd you can find a sample configuration."
+ return 1
+ fi
+ ebegin "Checking ProFTPD configuration"
+ /usr/sbin/proftpd -t -c /etc/proftpd/proftpd.conf
+ eend $? "A configuration error was found. You have to fix your configuration file."
+}
+
+start() {
+ if [ "${RC_CMD}" != "restart" ] ; then
+ check_configuration || return 1
+ fi
+ ebegin "Starting ProFTPD"
+ start-stop-daemon --start --quiet \
+ --exec /usr/sbin/proftpd \
+ --pidfile /var/run/proftpd/proftpd.pid
+ eend $?
+}
+
+stop() {
+ if [ "${RC_CMD}" = "restart" ] ; then
+ check_configuration || return 1
+ fi
+ ebegin "Stopping ProFTPD"
+ start-stop-daemon --stop --quiet --retry 20 \
+ --pidfile /var/run/proftpd/proftpd.pid
+ eend $?
+}
+
+reload() {
+ if [ ! -f /var/run/proftpd/proftpd.pid ] ; then
+ eerror "ProFTPD is not running."
+ return 1
+ fi
+ check_configuration || return 1
+ ebegin "Reloading ProFTPD"
+ kill -HUP `cat /var/run/proftpd/proftpd.pid` &>/dev/null
+ eend $?
+}
diff --git a/net-ftp/proftpd/metadata.xml b/net-ftp/proftpd/metadata.xml
index 1f3fc70595ed..50a0fbd2d1fa 100644
--- a/net-ftp/proftpd/metadata.xml
+++ b/net-ftp/proftpd/metadata.xml
@@ -13,14 +13,21 @@ server.</longdescription>
<flag name='authfile'>Enable support for the auth-file module</flag>
<flag name='ban'>Enable support for the mod_ban module</flag>
<flag name='case'>Enable support for the mod_case module</flag>
+ <flag name='ctrls'>Enable support for the mod_ctrls and mod_ctrls_admin modules</flag>
<flag name='deflate'>Enable support for the mod_deflate module</flag>
+ <flag name='exec'>Enable support for the mod_exec module. WARNING: this could be a security risk</flag>
+ <flag name='ident'>Enable support for the mod_ident module</flag>
<flag name='ifsession'>Enable support for the ifsession module</flag>
<flag name='noauthunix'>Disable support for the auth-unix module</flag>
<flag name='opensslcrypt'>Enable support for OpenSSL crypto</flag>
+ <flag name='ratio'>Enable support for the mod_ratio module</flag>
+ <flag name='readme'>Enable support for the mod_readme module</flag>
<flag name='rewrite'>Enable support for the rewrite module</flag>
<flag name='shaper'>Enable support for the mod_shaper module</flag>
+ <flag name='sftp'>Enable support for the mod_sftp module and optionally mod_sftp_sql and mod_sftp_pam if matching USE flags are enabled</flag>
<flag name='sitemisc'>Enable support for the sitemisc module</flag>
<flag name='softquota'>Enable support for the quotatab module</flag>
+ <flag name='trace'>Build with trace support. Should not be enabled on production servers</flag>
<flag name='vroot'>Enable support for the virtual root module</flag>
</use>
</pkgmetadata>
diff --git a/net-ftp/proftpd/proftpd-1.3.3_rc1.ebuild b/net-ftp/proftpd/proftpd-1.3.3_rc1.ebuild
new file mode 100644
index 000000000000..c5819781302a
--- /dev/null
+++ b/net-ftp/proftpd/proftpd-1.3.3_rc1.ebuild
@@ -0,0 +1,202 @@
+# 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 $
+
+EAPI="2"
+inherit autotools eutils
+
+CASE_VER="0.3"
+CLAMAV_VER="0.11rc"
+DEFLATE_VER="0.3.3"
+GSS_VER="1.3.2"
+VROOT_VER="0.8.5"
+
+DESCRIPTION="An advanced and very configurable FTP server."
+HOMEPAGE="http://www.proftpd.org/
+ http://www.castaglia.org/proftpd/
+ http://www.thrallingpenguin.com/resources/mod_clamav.htm
+ http://gssmod.sourceforge.net/"
+SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2
+ case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz )
+ clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${CLAMAV_VER}.tar.gz )
+ deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz )
+ kerberos? ( mirror://sourceforge/gssmod/mod_gss-${GSS_VER}.tar.gz )
+ vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )"
+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"
+
+DEPEND="acl? ( sys-apps/acl sys-apps/attr )
+ caps? ( sys-libs/libcap )
+ clamav? ( app-antivirus/clamav )
+ kerberos? ( || ( <app-crypt/mit-krb5-1.7 app-crypt/heimdal ) )
+ 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 )
+ tcpd? ( sys-apps/tcp-wrappers )
+ xinetd? ( virtual/inetd )"
+RDEPEND="${DEPEND}
+ net-ftp/ftpbase
+ selinux? ( sec-policy/selinux-ftpd )"
+
+S="${WORKDIR}/${P/_/}"
+
+__prepare_plugin() {
+ mv "${WORKDIR}"/$1/$1.c contrib
+ mv "${WORKDIR}"/$1/$1.html doc/contrib
+ rm -rf "${WORKDIR}"/$1
+}
+
+src_prepare() {
+ use case && __prepare_plugin mod_case
+ if use clamav ; then
+ mv "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/mod_clamav.{c,h} contrib
+ epatch "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/${PN}.patch
+ rm -rf "${WORKDIR}"/mod_clamav-${CLAMAV_VER}
+ fi
+ use deflate && __prepare_plugin mod_deflate
+ use vroot && __prepare_plugin mod_vroot
+
+ # Fix MySQL includes
+ sed -i -e "s/<mysql.h>/<mysql\/mysql.h>/g" contrib/mod_sql_mysql.c
+
+ # Manipulate build system
+ sed -i -e "s/utils install-conf install/utils install/g" Makefile.in
+ sed -i -e "s/ @INSTALL_STRIP@//g" Make.rules.in
+ sed -e "/libtool\.m4/q" aclocal.m4 > acinclude.m4
+ rm -f aclocal.m4
+ eautoreconf
+}
+
+src_configure() {
+ local myconf mylibs mymodules
+
+ use acl && mymodules="${mymodules}:mod_facl"
+ 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"
+ use deflate && mymodules="${mymodules}:mod_deflate"
+ use exec && mymodules="${mymodules}:mod_exec"
+ if use kerberos ; then
+ cd "${WORKDIR}"/mod_gss-${GSS_VER}
+ if has_version app-crypt/mit-krb5 ; then
+ econf --enable-mit
+ else
+ econf --enable-heimdal
+ fi
+ mv mod_{auth_gss,gss}.c "${S}"/contrib
+ mv mod_gss.h "${S}"/include
+ mv README.mod_{authgss,gss} "${S}"
+ mv mod_gss.html "${S}"/doc/contrib
+ mv rfc{1509,2228}.txt "${S}"/doc/rfc
+ cd "${S}"
+ rm -rf "${WORKDIR}"/mod_gss-${GSS_VER}
+ mymodules="${mymodules}:mod_gss:mod_auth_gss"
+ fi
+ if use ldap ; then
+ mylibs="${mylibs} -lresolv"
+ mymodules="${mymodules}:mod_ldap"
+ fi
+ if use mysql || use postgres ; then
+ mymodules="${mymodules}:mod_sql"
+ if use mysql ; then
+ myconf="${myconf} --with-includes=/usr/include/mysql"
+ mymodules="${mymodules}:mod_sql_mysql"
+ fi
+ if use postgres ; then
+ myconf="${myconf} --with-includes=/usr/include/postgresql"
+ mymodules="${mymodules}:mod_sql_postgres"
+ fi
+ fi
+ if use ssl || use sftp; then
+ CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
+ myconf="${myconf} --with-includes=/usr/include/openssl"
+ myconf="${myconf} --enable-openssl"
+ mylibs="${mylibs} -lcrypto"
+ fi
+ use radius && mymodules="${mymodules}:mod_radius"
+ use ratio && mymodules="${mymodules}:mod_ratio"
+ use readme && mymodules="${mymodules}:mod_readme"
+ use rewrite && mymodules="${mymodules}:mod_rewrite"
+ if use sftp ; then
+ mymodules="${mymodules}:mod_sftp"
+ use pam && mymodules="${mymodules}:mod_sftp_pam"
+ if use mysql || use postgres ; then
+ mymodules="${mymodules}:mod_sftp_sql"
+ fi
+ fi
+ use shaper && mymodules="${mymodules}:mod_shaper"
+ use sitemisc && mymodules="${mymodules}:mod_site_misc"
+ if use softquota ; then
+ mymodules="${mymodules}:mod_quotatab:mod_quotatab_file"
+ use ldap && mymodules="${mymodules}:mod_quotatab_ldap"
+ use radius && mymodules="${mymodules}:mod_quotatab_radius"
+ if use mysql || use postgres ; then
+ mymodules="${mymodules}:mod_quotatab_sql"
+ fi
+ fi
+ use ssl && mymodules="${mymodules}:mod_tls:mod_tls_shmcache"
+ use tcpd && mymodules="${mymodules}:mod_wrap"
+ use vroot && mymodules="${mymodules}:mod_vroot"
+ # mod_ifsession needs to be the last module in the mymodules list.
+ use ifsession && mymodules="${mymodules}:mod_ifsession"
+
+ [ ! -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) \
+ $(use_enable ident) \
+ $(use_enable ipv6) \
+ $(use_enable ncurses) \
+ $(use_enable nls) \
+ $(use_enable trace) \
+ $(use_enable pam auth-pam) \
+ ${myconf} || die "econf failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ keepdir /var/run/proftpd
+ newinitd "${FILESDIR}"/proftpd.rc7 proftpd
+ if use xinetd ; then
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/proftpd.xinetd proftpd
+ fi
+ insinto /etc/proftpd
+ doins "${FILESDIR}"/proftpd.conf.sample
+
+ dodoc ChangeLog CREDITS INSTALL NEWS README* RELEASE_NOTES
+ if use doc ; then
+ dohtml doc/*.html doc/contrib/*.html doc/howto/*.html doc/modules/*.html
+ docinto rfc
+ dodoc doc/rfc/*.txt
+ fi
+}
+
+pkg_postinst() {
+ if use mysql && use postgres ; then
+ elog "ProFTPD has been built with the MySQL and PostgreSQL modules."
+ 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
+ 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"
+ ewarn "opens up the server to the mentioned possibilities of compromise or disclosure"
+ ewarn "via those programs."
+ ewarn "YOU HAVE BEEN WARNED"
+ ewarn "USE AT YOUR OWN RISK"
+ fi
+}