summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-ftp/proftpd/ChangeLog6
-rw-r--r--net-ftp/proftpd/Manifest12
-rw-r--r--net-ftp/proftpd/proftpd-1.3.3e.ebuild220
-rw-r--r--net-ftp/proftpd/proftpd-1.3.3f.ebuild220
4 files changed, 9 insertions, 449 deletions
diff --git a/net-ftp/proftpd/ChangeLog b/net-ftp/proftpd/ChangeLog
index 3f9afce6e30f..29cf8ef83cc0 100644
--- a/net-ftp/proftpd/ChangeLog
+++ b/net-ftp/proftpd/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-ftp/proftpd
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.288 2012/03/19 19:58:44 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.289 2012/03/19 20:03:58 voyageur Exp $
+
+ 19 Mar 2012; Bernard Cafarelli <voyageur@gentoo.org> -proftpd-1.3.3e.ebuild,
+ -proftpd-1.3.3f.ebuild:
+ Remove some old versions now that 1.3.3g has all stable keywords
*proftpd-1.3.4a-r1 (19 Mar 2012)
diff --git a/net-ftp/proftpd/Manifest b/net-ftp/proftpd/Manifest
index 9cfcb703662f..3479c406ebe5 100644
--- a/net-ftp/proftpd/Manifest
+++ b/net-ftp/proftpd/Manifest
@@ -8,8 +8,6 @@ AUX proftpd.initd 1565 RMD160 efa4d3a98202666ba55e91c711fa03832ad5e320 SHA1 18ff
AUX proftpd.xinetd 295 RMD160 c5c829319e901f478fe58b920347cc1b8706a366 SHA1 3f1bd8d6cbb1488301b9aa0346e02b571fd0783a SHA256 150a5701f5c2788ecdf2c6ec228ce674963c9dc7bc1c511ad1eba8dfe05e2d5d
DIST mod_clamav-0.11rc.tar.gz 5115 RMD160 1b7f0bf94ed4664f873848e0fedee493f18726b8 SHA1 26fa4a8106fbb3266e7c94f50f12ed74fb2f3fec SHA256 87630eb1866066d6320ee711897d8998b8f4915c0498b2e78cc0464abd34855a
DIST mod_gss-1.3.3.tar.gz 115098 RMD160 6a772ea215db7af94223fbb3bbb84614d1f7cf30 SHA1 b17015a49e41ee643f1891940f9f3f8a7d77e522 SHA256 24702cf0333720730cc269eb30529061365b1384fdce274bc3d46ccfc300934e
-DIST proftpd-1.3.3e.tar.bz2 4180369 RMD160 12eef0bd466cdb1dbdd342cda8e93c1cb619dd07 SHA1 b347aa72d12e41fe8f43e8d91a7a4eeaac6f472f SHA256 f6c65fe9fea6577ac309f4e9e36c80def271fa5c91c4053fb0758824506127b6
-DIST proftpd-1.3.3f.tar.bz2 4202825 RMD160 1f371ff14fb8c777dc8432f5a8d18fa5584a22cd SHA1 55083ab9bbe1e9ef83084ca9dc9d8cdeac5f6a1c SHA256 3494c1902234bbcdb33b058340e73e9745a0d7f8bbbd60d5941ce2b752421b0b
DIST proftpd-1.3.3g.tar.bz2 4204504 RMD160 29bdade06f63ace05811e809b0a3600ea6ed61fe SHA1 70489c2b32c87b3637fd0cf2520773c5229f4ae3 SHA256 b1104a91e5e4dfafb0aa876492c073cf24b7d00b3e8528fa4443c108d963ae15
DIST proftpd-1.3.4a.tar.bz2 6805631 RMD160 92fcbb63be6098397ad55f05906e154a6c16db11 SHA1 18ea33d8b9f858b6e735cc81af900f0eebee8d25 SHA256 ad92eec86deccc385ac144e3925f9b9cbe085e60f10b33d1de6da91d32f39f3e
DIST proftpd-mod-case-0.4.tar.gz 4849 RMD160 fdf579587461c0ad2136f6cc1e3064efe31f2eb6 SHA1 01631d4545d9a4995d452278caa2ef94b84e6a1f SHA256 5c724a2a57a00048529bfab6c5672e16c7c0ecb2eb4e2bedd05bb3a1a5bf97fa
@@ -17,17 +15,15 @@ DIST proftpd-mod-case-0.7.tar.gz 13184 RMD160 9514b003b21999a97df59b2fe8b24a71d5
DIST proftpd-mod-deflate-0.5.4.tar.gz 55219678 RMD160 0d9ac70d076de3be521492d0c79089291a1b6dfd SHA1 292ba9dd301a010c46906ec09b5d455ff2b8ee4f SHA256 6ae753608ad126067bd48da8d4ea6ac3ef8eaf339ae924ffdbe30d1819a5e5db
DIST proftpd-mod-diskuse-0.9.tar.gz 18596 RMD160 38629d0a176e11bd10b550a8e49fcc3d8c762470 SHA1 9bf6e14acda088e1663be908df9165650ca13b05 SHA256 424f3fd49237245ec176d27ade0965fe21a0db1d645979d5ae3e55497e3da036
DIST proftpd-mod-vroot-0.9.2.tar.gz 22438 RMD160 8d8620a346b422e57cd775fdde0241a3c0ca144d SHA1 13ec52c688bbb91eaae76a8e4814bfd49e0bc597 SHA256 b0ea7af760ab7a54a62ac294656b5a34a5339665c0227ade0d2f206cc54a10bf
-EBUILD proftpd-1.3.3e.ebuild 7181 RMD160 452f01da3094782974a7cc1c8f2788cdc6127425 SHA1 0a31b7522788638f6a97f57e7e46cd0b91a55ca2 SHA256 1b12ff82ea60f7b18e4b6af606f79d42517ba8ecb7f393f0e6f0400d55ac61f4
-EBUILD proftpd-1.3.3f.ebuild 7187 RMD160 10d00838dc9840d6632674c2cd7ee9db0636a678 SHA1 1c554d29d90275d5fa307e5a6a8282296f98e259 SHA256 f71b0593ff70248b834bf006e062dd7b62090f32b847d53dfadd6d63a9943db3
EBUILD proftpd-1.3.3g.ebuild 7180 RMD160 3e765eabf5d392c5f87d92b723e67ff656fe5a3d SHA1 89dfe43be743c732e16d404123c8dfad7483e9ea SHA256 5370228efc6e02633a8d350662892ebd48e5a29306b7785d21a91a2b325ac4a0
EBUILD proftpd-1.3.4a-r1.ebuild 7302 RMD160 ffa85c7a2df1f15a078459adb4716ad07757808a SHA1 c87334f1130c6c5c8da1ec745786d3813c636070 SHA256 0a67ceba0f68b8293d98ac99cb3c28e763571190d656620d561170491bd1cc9f
EBUILD proftpd-1.3.4a.ebuild 6742 RMD160 729a988d4ff73138531a6ce8c0c6089d560f4c86 SHA1 fda08bed7b8bb8d8d328147c754c8b501ada5786 SHA256 faaaab9366104d67150c328ac6e7088d074a9ab671f7389664b9d6badc3fbdc7
-MISC ChangeLog 50164 RMD160 843877cb2082602caa94866f6e8895019200e8bf SHA1 7082504c93c8fe27abc80fca3cdb93029122dec8 SHA256 a346a194ef0e105a8fbdeaa9e0e30a1cb309bc675aa2b3f0ecbf0390d745d054
+MISC ChangeLog 50337 RMD160 5654a77414ecf93254c62d0d8388a2c53db721e1 SHA1 4a4f2f20e75eb3cdb74ed46b1bfd70dfa730e85e SHA256 e295089ebac5ed5d2d2cbeea2564856e74454f81c2255a226ee445be14316585
MISC metadata.xml 2731 RMD160 92b7e5bc9e157f58383fbf8a143046e5ee59de5c SHA1 21dc2b2c1047dcd431f14f2110634d766e83353c SHA256 7f93382caca116f2a5daf9a8656096f262c926aee5fe246595e17250793a381d
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iF4EAREIAAYFAk9nj/4ACgkQFYEBGcdFJfJ5DgD/Q2tSqvhmZXXIOQ0ZWy/jDJ0p
-qVGK6qGfbG6zTVvmlBABAIPeBDcWnuR3iQL1g413nqBRP7zQZLvxJZEZOTDmsOrw
-=DOKR
+iF4EAREIAAYFAk9nkTkACgkQFYEBGcdFJfImZQD7BHcDEs08Rz6vCyJvMVFvfjcG
+GZgoLV5zb8ABJWBE4L4A/2nsfjKEhnagJlXrzU7BXRcty290wbUZcL2fDSqeLKU3
+=5jLb
-----END PGP SIGNATURE-----
diff --git a/net-ftp/proftpd/proftpd-1.3.3e.ebuild b/net-ftp/proftpd/proftpd-1.3.3e.ebuild
deleted file mode 100644
index ef94512d7145..000000000000
--- a/net-ftp/proftpd/proftpd-1.3.3e.ebuild
+++ /dev/null
@@ -1,220 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3e.ebuild,v 1.9 2011/11/07 12:23:58 voyageur Exp $
-
-EAPI="2"
-inherit eutils autotools
-
-CASE_VER="0.4"
-CLAMAV_VER="0.11rc"
-DEFLATE_VER="0.5.4"
-GSS_VER="1.3.3"
-VROOT_VER="0.9.2"
-
-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 ~arm hppa ~ia64 ~mips ppc ppc64 sparc x86"
-IUSE="acl authfile ban +caps case clamav +ctrls deflate doc exec 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? ( virtual/krb5 )
- ldap? ( net-nds/openldap )
- mysql? ( virtual/mysql )
- ncurses? ( sys-libs/ncurses )
- pam? ( virtual/pam )
- postgres? ( dev-db/postgresql-base )
- sftp? ( dev-libs/openssl )
- ssl? ( dev-libs/openssl )
- tcpd? ( sys-apps/tcp-wrappers )
- xinetd? ( virtual/inetd )"
-RDEPEND="${DEPEND}
- net-ftp/ftpbase
- selinux? ( sec-policy/selinux-ftpd )"
-
-S="${WORKDIR}/${P/_/}"
-
-__prepare_module() {
- mv "${WORKDIR}"/$1/$1.c contrib
- mv "${WORKDIR}"/$1/$1.html doc/contrib
- 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_module 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_module mod_deflate
- use vroot && __prepare_module 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
-
- # Support new versions of mit-krb5 (Gentoo Bugs #284853, #324903)
- if use kerberos ; then
- cd "${WORKDIR}"/mod_gss-${GSS_VER}
- sed -i -e "s/krb5_principal2principalname/_\0/" mod_auth_gss.c.in
- sed -i -e "/ac_gss_libs/s/\-ldes425\ //" configure.in
- eautoreconf
- fi
-}
-
-src_configure() {
- local myc myl mym
-
- use acl && mym="${mym}:mod_facl"
- use ban && mym="${mym}:mod_ban"
- use case && mym="${mym}:mod_case"
- use clamav && mym="${mym}:mod_clamav"
- if use ctrls || use ban || use shaper ; then
- myc="${myc} --enable-ctrls"
- mym="${mym}:mod_ctrls_admin"
- fi
- use deflate && mym="${mym}:mod_deflate"
- use exec && mym="${mym}: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_{auth_gss,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}
- mym="${mym}:mod_gss:mod_auth_gss"
- fi
- if use ldap ; then
- myl="${myl} -lresolv"
- mym="${mym}:mod_ldap"
- fi
- if use mysql || use postgres ; then
- mym="${mym}:mod_sql:mod_sql_passwd"
- if use mysql ; then
- myc="${myc} --with-includes=/usr/include/mysql"
- mym="${mym}:mod_sql_mysql"
- fi
- if use postgres ; then
- myc="${myc} --with-includes=/usr/include/postgresql"
- mym="${mym}:mod_sql_postgres"
- fi
- fi
- if use sftp || use ssl ; then
- CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
- myc="${myc} --enable-openssl --with-includes=/usr/include/openssl"
- myl="${myl} -lcrypto"
- fi
- use radius && mym="${mym}:mod_radius"
- use ratio && mym="${mym}:mod_ratio"
- use readme && mym="${mym}:mod_readme"
- use rewrite && mym="${mym}:mod_rewrite"
- if use sftp ; then
- mym="${mym}:mod_sftp"
- use pam && mym="${mym}:mod_sftp_pam"
- if use mysql || use postgres ; then
- mym="${mym}:mod_sftp_sql"
- fi
- fi
- use shaper && mym="${mym}:mod_shaper"
- use sitemisc && mym="${mym}:mod_site_misc"
- if use softquota ; then
- mym="${mym}:mod_quotatab:mod_quotatab_file"
- use ldap && mym="${mym}:mod_quotatab_ldap"
- use radius && mym="${mym}:mod_quotatab_radius"
- if use mysql || use postgres ; then
- mym="${mym}:mod_quotatab_sql"
- fi
- fi
- use ssl && mym="${mym}:mod_tls:mod_tls_shmcache"
- use tcpd && mym="${mym}:mod_wrap"
- use vroot && mym="${mym}:mod_vroot"
- # mod_ifsession needs to be the last module in the mym list.
- use ifsession && mym="${mym}:mod_ifsession"
-
- [ -z ${mym} ] || myc="${myc} --with-modules=${mym:1}"
- LIBS="${myl:1}" econf --sbindir=/usr/sbin --localstatedir=/var/run/proftpd \
- --sysconfdir=/etc/proftpd --enable-shadow --enable-autoshadow ${myc:1} \
- $(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)
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "install failed"
-
- insinto /etc/proftpd
- doins "${FILESDIR}"/proftpd.conf.sample
- newinitd "${FILESDIR}"/proftpd.initd proftpd
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/proftpd.xinetd proftpd
- fi
-
- 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
- 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."
- elog
- fi
- if use exec ; then
- ewarn
- ewarn "ProFTPD has been built with the mod_exec module. This module"
- ewarn "can be a security risk for your server as it executes external"
- ewarn "programs. Vulnerables in these external programs may disclose"
- ewarn "information or even compromise your server."
- ewarn "You have been warned! Use this module at your own risk!"
- ewarn
- fi
-}
diff --git a/net-ftp/proftpd/proftpd-1.3.3f.ebuild b/net-ftp/proftpd/proftpd-1.3.3f.ebuild
deleted file mode 100644
index 4a5957ded94e..000000000000
--- a/net-ftp/proftpd/proftpd-1.3.3f.ebuild
+++ /dev/null
@@ -1,220 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3f.ebuild,v 1.4 2011/11/07 12:23:58 voyageur Exp $
-
-EAPI="2"
-inherit eutils autotools
-
-CASE_VER="0.4"
-CLAMAV_VER="0.11rc"
-DEFLATE_VER="0.5.4"
-GSS_VER="1.3.3"
-VROOT_VER="0.9.2"
-
-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 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="acl authfile ban +caps case clamav +ctrls deflate doc exec 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? ( virtual/krb5 )
- ldap? ( net-nds/openldap )
- mysql? ( virtual/mysql )
- ncurses? ( sys-libs/ncurses )
- pam? ( virtual/pam )
- postgres? ( dev-db/postgresql-base )
- sftp? ( dev-libs/openssl )
- ssl? ( dev-libs/openssl )
- tcpd? ( sys-apps/tcp-wrappers )
- xinetd? ( virtual/inetd )"
-RDEPEND="${DEPEND}
- net-ftp/ftpbase
- selinux? ( sec-policy/selinux-ftpd )"
-
-S="${WORKDIR}/${P/_/}"
-
-__prepare_module() {
- mv "${WORKDIR}"/$1/$1.c contrib
- mv "${WORKDIR}"/$1/$1.html doc/contrib
- 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_module 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_module mod_deflate
- use vroot && __prepare_module 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
-
- # Support new versions of mit-krb5 (Gentoo Bugs #284853, #324903)
- if use kerberos ; then
- cd "${WORKDIR}"/mod_gss-${GSS_VER}
- sed -i -e "s/krb5_principal2principalname/_\0/" mod_auth_gss.c.in
- sed -i -e "/ac_gss_libs/s/\-ldes425\ //" configure.in
- eautoreconf
- fi
-}
-
-src_configure() {
- local myc myl mym
-
- use acl && mym="${mym}:mod_facl"
- use ban && mym="${mym}:mod_ban"
- use case && mym="${mym}:mod_case"
- use clamav && mym="${mym}:mod_clamav"
- if use ctrls || use ban || use shaper ; then
- myc="${myc} --enable-ctrls"
- mym="${mym}:mod_ctrls_admin"
- fi
- use deflate && mym="${mym}:mod_deflate"
- use exec && mym="${mym}: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_{auth_gss,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}
- mym="${mym}:mod_gss:mod_auth_gss"
- fi
- if use ldap ; then
- myl="${myl} -lresolv"
- mym="${mym}:mod_ldap"
- fi
- if use mysql || use postgres ; then
- mym="${mym}:mod_sql:mod_sql_passwd"
- if use mysql ; then
- myc="${myc} --with-includes=/usr/include/mysql"
- mym="${mym}:mod_sql_mysql"
- fi
- if use postgres ; then
- myc="${myc} --with-includes=/usr/include/postgresql"
- mym="${mym}:mod_sql_postgres"
- fi
- fi
- if use sftp || use ssl ; then
- CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
- myc="${myc} --enable-openssl --with-includes=/usr/include/openssl"
- myl="${myl} -lcrypto"
- fi
- use radius && mym="${mym}:mod_radius"
- use ratio && mym="${mym}:mod_ratio"
- use readme && mym="${mym}:mod_readme"
- use rewrite && mym="${mym}:mod_rewrite"
- if use sftp ; then
- mym="${mym}:mod_sftp"
- use pam && mym="${mym}:mod_sftp_pam"
- if use mysql || use postgres ; then
- mym="${mym}:mod_sftp_sql"
- fi
- fi
- use shaper && mym="${mym}:mod_shaper"
- use sitemisc && mym="${mym}:mod_site_misc"
- if use softquota ; then
- mym="${mym}:mod_quotatab:mod_quotatab_file"
- use ldap && mym="${mym}:mod_quotatab_ldap"
- use radius && mym="${mym}:mod_quotatab_radius"
- if use mysql || use postgres ; then
- mym="${mym}:mod_quotatab_sql"
- fi
- fi
- use ssl && mym="${mym}:mod_tls:mod_tls_shmcache"
- use tcpd && mym="${mym}:mod_wrap"
- use vroot && mym="${mym}:mod_vroot"
- # mod_ifsession needs to be the last module in the mym list.
- use ifsession && mym="${mym}:mod_ifsession"
-
- [ -z ${mym} ] || myc="${myc} --with-modules=${mym:1}"
- LIBS="${myl:1}" econf --sbindir=/usr/sbin --localstatedir=/var/run/proftpd \
- --sysconfdir=/etc/proftpd --enable-shadow --enable-autoshadow ${myc:1} \
- $(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)
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "install failed"
-
- insinto /etc/proftpd
- doins "${FILESDIR}"/proftpd.conf.sample
- newinitd "${FILESDIR}"/proftpd.initd proftpd
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}"/proftpd.xinetd proftpd
- fi
-
- 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
- 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."
- elog
- fi
- if use exec ; then
- ewarn
- ewarn "ProFTPD has been built with the mod_exec module. This module"
- ewarn "can be a security risk for your server as it executes external"
- ewarn "programs. Vulnerables in these external programs may disclose"
- ewarn "information or even compromise your server."
- ewarn "You have been warned! Use this module at your own risk!"
- ewarn
- fi
-}