diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2009-02-17 22:05:08 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2009-02-17 22:05:08 +0000 |
commit | 33e48e5ebdef64acad368d53a2816962feb825c3 (patch) | |
tree | 1c7aa48b96aea6e6dfe09fcb11e453c8fe72f7e7 /net-ftp | |
parent | Now propagate LDFLAGS, and merge fixes in patch (diff) | |
download | historical-33e48e5ebdef64acad368d53a2816962feb825c3.tar.gz historical-33e48e5ebdef64acad368d53a2816962feb825c3.tar.bz2 historical-33e48e5ebdef64acad368d53a2816962feb825c3.zip |
r1 version that should fix a few currently open bugs
Package-Manager: portage-2.2_rc23/cvs/Linux x86_64
Diffstat (limited to 'net-ftp')
-rw-r--r-- | net-ftp/proftpd/ChangeLog | 14 | ||||
-rw-r--r-- | net-ftp/proftpd/Manifest | 8 | ||||
-rw-r--r-- | net-ftp/proftpd/files/proftpd-1.3.2-parallel-build.patch | 20 | ||||
-rw-r--r-- | net-ftp/proftpd/files/proftpd.conf | 62 | ||||
-rw-r--r-- | net-ftp/proftpd/files/proftpd.rc6 | 4 | ||||
-rw-r--r-- | net-ftp/proftpd/proftpd-1.3.2-r1.ebuild | 250 |
6 files changed, 327 insertions, 31 deletions
diff --git a/net-ftp/proftpd/ChangeLog b/net-ftp/proftpd/ChangeLog index 187922dea77d..4cfdea312ece 100644 --- a/net-ftp/proftpd/ChangeLog +++ b/net-ftp/proftpd/ChangeLog @@ -1,6 +1,18 @@ # ChangeLog for net-ftp/proftpd # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.187 2009/02/17 13:12:04 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.188 2009/02/17 22:05:08 voyageur Exp $ + +*proftpd-1.3.2-r1 (17 Feb 2009) + + 17 Feb 2009; Bernard Cafarelli <voyageur@gentoo.org> + +files/proftpd-1.3.2-parallel-build.patch, files/proftpd.conf, + files/proftpd.rc6, +proftpd-1.3.2-r1.ebuild: + Remove append-ldflag, bug #226907, thanks Dustin Polke. Allows building + ProFTPD with both mysql and postgresql (fixes bug #234003), fix some + parallel building issues, thanks to Bernd Lommerzheim in bug #258838 + (fixes bug #178643). Update proftpd.conf sample file (DisplayFirstChdir + was already deprecated in 1.3.1), fixes bug #235591. Display configuration + errors/result on check, bug #254174 *proftpd-1.3.2 (17 Feb 2009) diff --git a/net-ftp/proftpd/Manifest b/net-ftp/proftpd/Manifest index 1496a5a7efdf..2e1c8269037a 100644 --- a/net-ftp/proftpd/Manifest +++ b/net-ftp/proftpd/Manifest @@ -6,10 +6,11 @@ AUX proftpd-1.3.1_rc2-bug167003.patch 316 RMD160 7fcade6de378727081d0a14775b2e24 AUX proftpd-1.3.1_rc2-bug175082.patch 9671 RMD160 ab5144464b0b0c618ed51d1907694a56f2f72f5c SHA1 65ea3a861dc493439a8b2e2d3271dba57825bbac SHA256 018077db323cb370dd68fb30c284090316a041f53e02e07478cb1e07e22f30dc AUX proftpd-1.3.1_rc2-bug178866.patch 1731 RMD160 11d06f7d5ea2ad4678ff989514daaa10d1b92c2c SHA1 7b15937e55b13985ece4a6275cae4c6487b834cb SHA256 658f2e71e1e062e94e8437b10443576432fbc4dd342d297473aef603c6b450aa AUX proftpd-1.3.1_rc2-bug181712.patch 1098 RMD160 1c4a77dfb401c6d888fabc259e21f5022828335b SHA1 387e079c66df054909a2c7d94485189aa1b09afc SHA256 bdb1364ae5a518f5d50b8a232e94bd83b2d3f846d51566c7ed63550ac3858698 +AUX proftpd-1.3.2-parallel-build.patch 786 RMD160 ff9df4ca01c5d95664bc00650996896300ada1d7 SHA1 c0d6d23c8da22cf6b9b882d01ab6e562d51dd1b3 SHA256 a429b3f7c79d46a279d77357481208f962b6e93fcea5424b2b030e366fe3c662 AUX proftpd-1.3.2-upstream-bug-3183.patch 3032 RMD160 b3acacfadca5a0a8f35a3ca7f16561bc4271f27b SHA1 a967187a682a955369715782409cfd1de2e057bd SHA256 b2f16611b753e4c5d7874d544462217b2e44dc308b45d6a127bb17566c264403 AUX proftpd-1.3.2_rc2-CVE-2008-4242.patch 5522 RMD160 a0f73525f1b6b9f06fd6b6ff0b5eb6112a8abe5b SHA1 6f51a0653ce994c6a0f4e447f152b5676b213a19 SHA256 4d77366e9bc08058f906d7e93c9ec8427fb5d36ba85db9cec74c510ca40ba728 -AUX proftpd.conf 1671 RMD160 1242c9c20e21e4832e5771e5fd57085cc5312066 SHA1 91cadfcbd1034f744f6513492258efa3b95fa9e6 SHA256 d289078ee6c5764b16979e7b720d99bcccf4d87176eecd6108dc9dc37949f0dd -AUX proftpd.rc6 1202 RMD160 03e4bd127d379bdc9c62640dea0e6f65b9defda7 SHA1 f674f0871052d7a031b4ee9886b33d6a041d635d SHA256 0ab218ccb323cbcbd53598e93c3565f00245380a9ee1374cc22c2c1db88f7a37 +AUX proftpd.conf 1968 RMD160 10394bf0fcaa201c59873c1a518a75f7f9d7b53c SHA1 6d3c932efa5a16c3772b49d68bc46e0239472b0b SHA256 82ebf842526eb5b1e6ac2126511063b8242ad66a271095b2ab5d1f18f908c192 +AUX proftpd.rc6 1192 RMD160 09e2e7b9429b123da51331c5cb29b7f79fe03989 SHA1 b7605beebe10749e1adc3204f7a48e45f653690a SHA256 674d614bfaaea90cf9444d84688b8c77e9af482b148bf460919783627ad17918 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.7.tar.gz 3676 RMD160 779203276643343bb54dc5e8225cf16392959533 SHA1 2e9376865eb03d482e2aac89a0ce611a5587e084 SHA256 61aa9d6af9432d1409170305526d87f63742aca198dd299d21ce37a60a8f41e7 @@ -31,9 +32,10 @@ DIST proftpd-mod-vroot-0.8.3.tar.gz 6999 RMD160 7a8d5a29e7c2754b774cebe649f8a28f EBUILD proftpd-1.3.1-r1.ebuild 7268 RMD160 325241cc3f68e24e73c8f627daee64b42490ca7b SHA1 cea90842c97883ed1804db2ae0502430fe98ca89 SHA256 45305301330d44ba4796d40e72d29b56d00679f0942b0d1e9172c1b25dfba7b7 EBUILD proftpd-1.3.1.ebuild 6951 RMD160 f2d030f82d5c73d2312d413aa9ba2f9f8174219d SHA1 69618caa7299ec3a9b4ae935aa71b0096b937b62 SHA256 f8b1ba70aba8cbb6c5b296731e0ed748c7659eac3935ffe2758df0c3363dab1f EBUILD proftpd-1.3.1_rc2-r3.ebuild 6338 RMD160 5af01205da38a4e4cdf4ad4ddfbb8f979b42cfdc SHA1 993a40f69700583842aa7c1d1527ee97f7292cc3 SHA256 5977e86165767799cd4123e14bd391b04cbd14f29c563ecc6081d014f9fadbb2 +EBUILD proftpd-1.3.2-r1.ebuild 7306 RMD160 dea2e8be6c25acc979215a9ba1e677304d4e1765 SHA1 03f0bd2b8ece9291078f8d7143f04b2b7bf702be SHA256 ea279647f865ffe3f4fb270bd19330c9ee08d2307b1727fe29b75f8761cb4956 EBUILD proftpd-1.3.2.ebuild 7201 RMD160 086002839d7119029c2192292edac109dc447e1e SHA1 30061a0de67829b29a4f3cc6e814feca5ac0f183 SHA256 14ea9bdf300072ff91b4f7867f6456d19ccb8c3301c1249ddbb2e746e8d48d01 EBUILD proftpd-1.3.2_rc2-r1.ebuild 6866 RMD160 957abaf1d215e283cf6fba9596c99b38bc0f280b SHA1 7c383e52874c514a07949a103b6492b9379909c5 SHA256 9bd1c563370a5238f7ec4e76bfd35ec62b7ee4bda75e197b058d8a4a58391a63 EBUILD proftpd-1.3.2_rc2-r2.ebuild 7140 RMD160 4dfff1c4625569484d79c6e6f94e09443d1a65ee SHA1 db8a58e69ac73990534b03775a04a3d60fb0c932 SHA256 2243bba7f96ef569c67598885a0585642c6d4cd87337a2d3f1c3ef33942fa30e EBUILD proftpd-1.3.2_rc2.ebuild 6117 RMD160 cc531c8dd2e471301b60968cb8d20dfa90790e1c SHA1 7eabe46dc93f9cbaf850b4c31c1dc7cd17b5cb84 SHA256 76600e594fb69342e0f30f4ea636a3c47020cb3c8268fc2ea96685b587f58039 -MISC ChangeLog 31118 RMD160 ec5a41a6dcdb3764e67843563679b08b537a8e94 SHA1 27b992c58454f4132f4e34c6ad81fd9e67404687 SHA256 830d34be22bd15b3592f3516da66ff89b09aca5fe2c49453d5e2f9e1beafd026 +MISC ChangeLog 31724 RMD160 502c254f02bb719364c3c07462c0b6a21b8524bd SHA1 efc3f96b9de199f50c42c82b8c73107ea6896ccb SHA256 4d7d9a85c788c54a6a46687da638b34067f1f01aeb79f358c9c25788d4abd859 MISC metadata.xml 1266 RMD160 2eb6ab3b7a7c68eca09e193daaea833a2dc08362 SHA1 86bf2fc8f6b6c944bf384e97e9bcdec7d7ec8d77 SHA256 ffe716530aba4cf0ec4069d86c2b09f9a4dbfca541d7f467c579f871cf78c0de diff --git a/net-ftp/proftpd/files/proftpd-1.3.2-parallel-build.patch b/net-ftp/proftpd/files/proftpd-1.3.2-parallel-build.patch new file mode 100644 index 000000000000..cea1c4009aa5 --- /dev/null +++ b/net-ftp/proftpd/files/proftpd-1.3.2-parallel-build.patch @@ -0,0 +1,20 @@ +diff -ru proftpd-1.3.2-orig/Makefile.in proftpd-1.3.2/Makefile.in +--- proftpd-1.3.2-orig/Makefile.in 2008-11-19 04:51:38.000000000 +0100 ++++ proftpd-1.3.2/Makefile.in 2009-02-16 14:28:43.000000000 +0100 +@@ -54,13 +54,13 @@ + proftpd$(EXEEXT): lib src modules dirs locale + $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(MAIN_LDFLAGS) -o $@ $(BUILD_PROFTPD_OBJS) $(BUILD_PROFTPD_ARCHIVES) $(LIBS) $(MAIN_LIBS) + +-ftpcount$(EXEEXT): utils ++ftpcount$(EXEEXT): lib utils + $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPCOUNT_OBJS) $(UTILS_LIBS) + +-ftpdctl$(EXEEXT): src ++ftpdctl$(EXEEXT): lib src + $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPDCTL_OBJS) $(LIBS) + +-ftpshut$(EXEEXT): utils ++ftpshut$(EXEEXT): lib utils + $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPSHUT_OBJS) $(UTILS_LIBS) + + ftptop$(EXEEXT): lib utils diff --git a/net-ftp/proftpd/files/proftpd.conf b/net-ftp/proftpd/files/proftpd.conf index 0d4eb3e6466b..23b8542cdec2 100644 --- a/net-ftp/proftpd/files/proftpd.conf +++ b/net-ftp/proftpd/files/proftpd.conf @@ -1,7 +1,7 @@ # This is a basic ProFTPD configuration file (rename it to -# 'proftpd.conf' for actual use. It establishes a single server -# and a single anonymous login. It assumes that you have a user/group -# "nobody" and "ftp" for normal operation and anonymous access. +# 'proftpd.conf' for actual use. It establishes a single server +# and a single anonymous login. It assumes that you have a user/group +# "proftpd" and "ftp" for normal operation and anon. ServerName "ProFTPD Default Installation" ServerType standalone @@ -9,48 +9,60 @@ DefaultServer on RequireValidShell off AuthPAM off AuthPAMConfig ftp + # Port 21 is the standard FTP port. Port 21 +# Don't use IPv6 support by default. +UseIPv6 off + # Umask 022 is a good standard umask to prevent new dirs and files # from being group and 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. Note that this ONLY works +# to 30. If you need to allow more than 30 concurrent connections +# at once, simply increase this value. Note that this ONLY works # in standalone mode, in inetd mode you should use an inetd server -# that allows you to limit the maximum number of processes per service +# that allows you to limit maximum number of processes per service # (such as xinetd). -MaxInstances 30 +MaxInstances 30 # Set the user and group under which the server will run. User proftpd Group proftpd +# To cause every FTP user to be "jailed" (chrooted) into their home +# directory, uncomment this line. +#DefaultRoot ~ + # Normally, we want files to be overwriteable. -<Directory /> - AllowOverwrite on -</Directory> +AllowOverwrite on + +# Bar use of SITE CHMOD by default +<Limit SITE_CHMOD> + DenyAll +</Limit> -# A basic anonymous configuration, with no upload directories. +# A basic anonymous configuration, no upload directories. If you do not +# want anonymous users, simply delete this entire <Anonymous> section. <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 + # We want clients to be able to login with "anonymous" as well as "ftp" + UserAlias anonymous ftp - # Limit the maximum number of anonymous logins. - MaxClients 10 + # Limit the maximum number of anonymous logins + MaxClients 10 - # We want 'welcome.msg' displayed at login, and '.message' displayed - # in each newly chdired directory. - DisplayLogin welcome.msg - DisplayFirstChdir .message + # We want 'welcome.msg' displayed at login, and '.message' displayed + # in each newly chdired directory. + DisplayLogin welcome.msg + DisplayChdir .message - # Limit WRITE everywhere in the anonymous chroot. - <Limit WRITE> - DenyAll - </Limit> + # Limit WRITE everywhere in the anonymous chroot + <Limit WRITE> + DenyAll + </Limit> </Anonymous> diff --git a/net-ftp/proftpd/files/proftpd.rc6 b/net-ftp/proftpd/files/proftpd.rc6 index c3c9fb03fbba..1a2645460a7a 100644 --- a/net-ftp/proftpd/files/proftpd.rc6 +++ b/net-ftp/proftpd/files/proftpd.rc6 @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/files/proftpd.rc6,v 1.12 2008/04/17 07:57:57 chtekk Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/files/proftpd.rc6,v 1.13 2009/02/17 22:05:07 voyageur Exp $ opts="${opts} reload" @@ -17,7 +17,7 @@ checkconfig() { return 1 fi ebegin "Checking proftpd configuration" - /usr/sbin/proftpd -t -c /etc/proftpd/proftpd.conf &>/dev/null + /usr/sbin/proftpd -t -c /etc/proftpd/proftpd.conf eend $? "Configuration error: please fix your configuration file (/etc/proftpd/proftpd.conf)." } diff --git a/net-ftp/proftpd/proftpd-1.3.2-r1.ebuild b/net-ftp/proftpd/proftpd-1.3.2-r1.ebuild new file mode 100644 index 000000000000..ffc90047af5d --- /dev/null +++ b/net-ftp/proftpd/proftpd-1.3.2-r1.ebuild @@ -0,0 +1,250 @@ +# 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.2-r1.ebuild,v 1.1 2009/02/17 22:05:08 voyageur Exp $ + +inherit eutils flag-o-matic toolchain-funcs autotools + +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" + +IUSE="acl authfile ban case clamav deflate hardened ifsession ipv6 ldap mysql ncurses nls noauthunix opensslcrypt pam postgres radius rewrite selinux shaper sitemisc softquota ssl tcpd vroot xinetd" + +CASE_VER="0.3" +CLAMAV_VER="0.10" +DEFLATE_VER="0.3.1" +SHAPER_VER="0.6.5" +VROOT_VER="0.8.3" + +DESCRIPTION="An advanced and very configurable FTP server." + +SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/w²}.tar.bz2 + case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz ) + clamav? ( http://www.thrallingpenguin.com/resources/mod_clamav-${CLAMAV_VER}.tar.gz ) + deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz ) + shaper? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-shaper-${SHAPER_VER}.tar.gz ) + vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )" + +HOMEPAGE="http://www.proftpd.org/ + http://www.castaglia.org/proftpd/ + http://www.thrallingpenguin.com/resources/mod_clamav.htm" + +SLOT="0" +LICENSE="GPL-2" + +DEPEND="acl? ( sys-apps/acl sys-apps/attr ) + clamav? ( app-antivirus/clamav ) + ldap? ( >=net-nds/openldap-1.2.11 ) + mysql? ( virtual/mysql ) + ncurses? ( sys-libs/ncurses ) + opensslcrypt? ( >=dev-libs/openssl-0.9.6f ) + pam? ( virtual/pam ) + postgres? ( virtual/postgresql-base ) + ssl? ( >=dev-libs/openssl-0.9.6f ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 ) + xinetd? ( virtual/inetd )" + +RDEPEND="${DEPEND} + net-ftp/ftpbase + selinux? ( sec-policy/selinux-ftpd )" + +S="${WORKDIR}/${P/_/}" + +pkg_setup() { + # Add the proftpd user to make the default config + # work out-of-the-box + enewgroup proftpd + enewuser proftpd -1 -1 -1 proftpd +} + +src_unpack() { + unpack ${P/_/}.tar.bz2 + cd "${S}" + + # Fix upstream bug 3183 (incorrect logging to wtmp) + epatch "${FILESDIR}"/${P}-upstream-bug-3183.patch + # Fix parallel build + epatch "${FILESDIR}"/${P}-parallel-build.patch + + # Fix stripping of files + sed -e "s| @INSTALL_STRIP@||g" -i Make* + + if use case ; then + unpack ${PN}-mod-case-${CASE_VER}.tar.gz + cp -f mod_case/mod_case.c contrib/ + cp -f mod_case/mod_case.html doc/ + fi + + if use clamav ; then + unpack mod_clamav-${CLAMAV_VER}.tar.gz + cp -f mod_clamav-${CLAMAV_VER}/mod_clamav.* contrib/ + epatch mod_clamav-${CLAMAV_VER}/${PN}.patch + fi + + if use deflate ; then + unpack ${PN}-mod-deflate-${DEFLATE_VER}.tar.gz + cp -f mod_deflate/mod_deflate.c contrib/ + cp -f mod_deflate/mod_deflate.html doc/ + fi + + if use shaper ; then + unpack ${PN}-mod-shaper-${SHAPER_VER}.tar.gz + cp -f mod_shaper/mod_shaper.c contrib/ + cp -f mod_shaper/mod_shaper.html doc/ + fi + + if use vroot ; then + unpack ${PN}-mod-vroot-${VROOT_VER}.tar.gz + cp -f mod_vroot/mod_vroot.c contrib/ + cp -f mod_vroot/mod_vroot.html doc/ + fi + + # Fix bug #221275 + # extract custom PR_ macros from aclocal.m4 to acinclude.m4 + # and delete the provided aclocal.m4 before running autoreconf + einfo "Extract custom m4 macros from aclocal.m4 ..." + sed -e '/libtool\.m4/q' aclocal.m4 > acinclude.m4 + rm -f aclocal.m4 + + eautoreconf +} + +src_compile() { + addpredict /etc/krb5.conf + local modules myconf mylibs + + modules="mod_ratio:mod_readme" + use acl && modules="${modules}:mod_facl" + use ban && modules="${modules}:mod_ban" + use case && modules="${modules}:mod_case" + use clamav && modules="${modules}:mod_clamav" + use deflate && modules="${modules}:mod_deflate" + use pam && modules="${modules}:mod_auth_pam" + use radius && modules="${modules}:mod_radius" + use rewrite && modules="${modules}:mod_rewrite" + use shaper && modules="${modules}:mod_shaper" + use sitemisc && modules="${modules}:mod_site_misc" + use ssl && modules="${modules}:mod_tls" + use tcpd && modules="${modules}:mod_wrap" + use vroot && modules="${modules}:mod_vroot" + + # pam needs to be explicitely disabled + use pam || myconf="${myconf} --enable-auth-pam=no" + + if use ldap ; then + modules="${modules}:mod_ldap" + mylibs="${mylibs} -lresolv" + use ssl && CFLAGS="${CFLAGS} -DUSE_LDAP_TLS" + fi + + if use opensslcrypt ; then + myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl" + mylibs="${mylibs} -lcrypto" + CFLAGS="${CFLAGS} -DHAVE_OPENSSL" + fi + + use nls && myconf="${myconf} --enable-nls" + + if use mysql || use postgres ; then + modules="${modules}:mod_sql" + if use mysql ; then + modules="${modules}:mod_sql_mysql" + myconf="${myconf} --with-includes=/usr/include/mysql" + fi + if use postgres ; then + modules="${modules}:mod_sql_postgres" + myconf="${myconf} --with-includes=/usr/include/postgresql" + fi + fi + + if use softquota ; then + modules="${modules}:mod_quotatab" + if use mysql || use postgres ; then + modules="${modules}:mod_quotatab_sql" + fi + if use radius ; then + modules="${modules}:mod_quotatab_radius" + fi + if use ldap ; then + modules="${modules}:mod_quotatab_file:mod_quotatab_ldap" + else + modules="${modules}:mod_quotatab_file" + fi + fi + + # mod_ifsession should be the last module in the --with-modules list + # see http://www.castaglia.org/proftpd/modules/mod_ifsession.html#Installation + use ifsession && modules="${modules}:mod_ifsession" + + # bug #30359 + use hardened && echo > lib/libcap/cap_sys.c + gcc-specs-pie && echo > lib/libcap/cap_sys.c + + if use noauthunix ; then + myconf="${myconf} --disable-auth-unix" + else + myconf="${myconf} --enable-auth-unix" + fi + + LIBS="${mylibs}" econf \ + --sbindir=/usr/sbin \ + --localstatedir=/var/run \ + --sysconfdir=/etc/proftpd \ + --enable-shadow \ + --enable-autoshadow \ + --enable-ctrls \ + --with-modules=${modules} \ + $(use_enable acl facl) \ + $(use_enable authfile auth-file) \ + $(use_enable ipv6) \ + $(use_enable ncurses) \ + ${myconf} || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + keepdir /var/run/proftpd + + dodoc "${FILESDIR}/proftpd.conf" \ + COPYING CREDITS ChangeLog NEWS README* \ + doc/license.txt + dohtml doc/*.html + dohtml doc/howto/*.html + + docinto rfc + dodoc doc/rfc/*.txt + + mv -f "${D}/etc/proftpd/proftpd.conf" "${D}/etc/proftpd/proftpd.conf.distrib" + + insinto /etc/proftpd + newins "${FILESDIR}/proftpd.conf" proftpd.conf.sample + + if use xinetd ; then + insinto /etc/xinetd.d + newins "${FILESDIR}/proftpd.xinetd" proftpd + fi + + newinitd "${FILESDIR}/proftpd.rc6" proftpd +} + +pkg_postinst() { + elog + elog "You can find the config files in /etc/proftpd" + elog + ewarn "With the introduction of net-ftp/ftpbase the ftp user is now ftp." + ewarn "Remember to change that in the configuration file." + ewarn + if use mysql && use postgres ; then + ewarn "ProFTPD has been build with the MySQL and PostgreSQL modules." + ewarn "You can use the 'SQLBackend' directive to specify the used SQL" + ewarn "backend. Without this directive the default backend is MySQL." + ewarn + fi + if use clamav ; then + ewarn "mod_clamav was updated to a new version, which uses Clamd" + ewarn "only for virus scanning, so you'll have to set Clamd up" + ewarn "and start it, also re-check the mod_clamav docs." + ewarn + fi +} |