diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2009-11-06 14:07:09 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2009-11-06 14:07:09 +0000 |
commit | 50f08f8477cdb61dfd364aee972693c040d09d5d (patch) | |
tree | f37a59e0ae7f817e37759985f389b8c4d0d35bea /net-ftp | |
parent | Remove old (diff) | |
download | historical-50f08f8477cdb61dfd364aee972693c040d09d5d.tar.gz historical-50f08f8477cdb61dfd364aee972693c040d09d5d.tar.bz2 historical-50f08f8477cdb61dfd364aee972693c040d09d5d.zip |
Remove last security vulnerable version, security bug #290664
Package-Manager: portage-2.2_rc48/cvs/Linux x86_64
Diffstat (limited to 'net-ftp')
-rw-r--r-- | net-ftp/proftpd/ChangeLog | 6 | ||||
-rw-r--r-- | net-ftp/proftpd/Manifest | 18 | ||||
-rw-r--r-- | net-ftp/proftpd/files/proftpd-1.3.2-upstream-bug-3183.patch | 101 | ||||
-rw-r--r-- | net-ftp/proftpd/proftpd-1.3.2-r2.ebuild | 279 |
4 files changed, 6 insertions, 398 deletions
diff --git a/net-ftp/proftpd/ChangeLog b/net-ftp/proftpd/ChangeLog index 009d3e2e9fe8..07fe0b773208 100644 --- a/net-ftp/proftpd/ChangeLog +++ b/net-ftp/proftpd/ChangeLog @@ -1,6 +1,10 @@ # 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.217 2009/11/04 11:23:25 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.218 2009/11/06 14:07:08 voyageur Exp $ + + 06 Nov 2009; Bernard Cafarelli <voyageur@gentoo.org> + -proftpd-1.3.2-r2.ebuild, -files/proftpd-1.3.2-upstream-bug-3183.patch: + Remove last security vulnerable version, security bug #290664 04 Nov 2009; Markus Meier <maekke@gentoo.org> proftpd-1.3.2b.ebuild: amd64 stable, bug #290664 diff --git a/net-ftp/proftpd/Manifest b/net-ftp/proftpd/Manifest index bde18e8c9a59..59927d690f44 100644 --- a/net-ftp/proftpd/Manifest +++ b/net-ftp/proftpd/Manifest @@ -1,37 +1,21 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX proftpd-1.3.2-mysql-include.patch 363 RMD160 4406e4ff522580962662f9aa00310a75f4984cbd SHA1 979f0c1272c25e34fe489ac4227f2dce2db35804 SHA256 5be06884923c23ff4e44e5e9e87d27a88aaee2d10bc341daba6cd21d26543330 AUX proftpd-1.3.2-parallel-build.patch 786 RMD160 ff9df4ca01c5d95664bc00650996896300ada1d7 SHA1 c0d6d23c8da22cf6b9b882d01ab6e562d51dd1b3 SHA256 a429b3f7c79d46a279d77357481208f962b6e93fcea5424b2b030e366fe3c662 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 1275 RMD160 199b8cced06d347ef8a2033b68850fd9dd922ccd SHA1 e58e5e7856bc77e159a628717ad1c73e20c5b883 SHA256 a214b3937f319c70976d29cfcd47c2cd937d1d70b7274c2b241b1e97606e89c0 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 -DIST mod_gss-1.3.1.tar.gz 113778 RMD160 b961395bcd4898a39d2867da33594d14aebb29dc SHA1 a4af0c6615b952c18733d6b18ab53ac12d54c7fe SHA256 c6f71458777c76fc09f5fdb5bb5060db7d9e4b69f730633d3a825327004cf54d 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.2b.tar.bz2 2507569 RMD160 eac9ebe625c60b362d96965cc72a0fbb4e2479bb SHA1 facd51ff9c35fa8bf2959d2829da1304a63c646a SHA256 ac99969b0bb12f02098dcdf5c23d45c85b05ba2453b78f56fce5e7352d0ac192 DIST proftpd-1.3.3rc2.tar.bz2 4136569 RMD160 c45497aeffcb90716e3df2d1d7168e463637b3bf SHA1 0d9145ff8eab61b2f1d8797534226886f86172d9 SHA256 9ba5c1acaede560b21a2ee6113e6ffd31722f23340c24150a10d65ed9e15f9ee 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.4.tar.gz 2779844 RMD160 e6c7689b281ef015ceefa1d2939f5cf0a6fffc72 SHA1 2f42c3761445657e032739ea67c1cf359e527a98 SHA256 4451d9af02900aabe769f0d8a5efa80bdf2973efc4db2d138623b01b3ef72b69 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.2b.ebuild 8239 RMD160 6b7bf9da71617d2498e31ba5d367bf63c5c65760 SHA1 29a7288885dae9b010485b98582c673058b74c58 SHA256 0ae557d3d679af92471592a144f8eb31f77a9878a590c6e47d859fd6fc5c6a9f EBUILD proftpd-1.3.3_rc2.ebuild 7143 RMD160 a46f7e5e01812b8cc74947b651dccf8e2b84b6e9 SHA1 0634774df493c6a30a3d639774f24b684379456b SHA256 a8dbebbd4482334b0295b49aea25f07afa7fae5c16ccb4e78c50ee4c84382655 -MISC ChangeLog 36735 RMD160 98b98f3105c3e44d140f822dfcc41f0d557ab9bd SHA1 42c70a56799e596ee45acd5eec3df5562caa61d1 SHA256 f42bdbdcdebd484fbd2d9ca3196ba8d48048381bd72b6f988ac4991c29ff3d11 +MISC ChangeLog 36931 RMD160 7fdfd1f9b3a28c98aa141b65ba79abf9f056b077 SHA1 5576b029e38010fc4d84ac9de14458da6cfdff25 SHA256 70fc2482c5318ee2324b865e5ef810f2262f912f7ccd163bf3caed06596e220d MISC metadata.xml 1903 RMD160 a15236976f8f0d3f1102ca97f5d9ee1d3e9abe42 SHA1 7cad7067da6c4fe1a5e882792f1516b8a0bb53a6 SHA256 0283e9ccb80ad1b1892a1ee84074210add15433c59b6e4daad5a55d39ff30fd7 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.11 (GNU/Linux) - -iEYEARECAAYFAkrxZEIACgkQkKaRLQcq0GKVIACgtMX6HLbgGuA8kYCiuTU3cnr2 -u1YAoIwt8VWaSakI9dzMxv2Ff6GBXcEH -=3Ck1 ------END PGP SIGNATURE----- diff --git a/net-ftp/proftpd/files/proftpd-1.3.2-upstream-bug-3183.patch b/net-ftp/proftpd/files/proftpd-1.3.2-upstream-bug-3183.patch deleted file mode 100644 index 8f7c1267f2dc..000000000000 --- a/net-ftp/proftpd/files/proftpd-1.3.2-upstream-bug-3183.patch +++ /dev/null @@ -1,101 +0,0 @@ -Index: modules/mod_auth.c -=================================================================== -RCS file: /cvsroot/proftp/proftpd/modules/mod_auth.c,v -retrieving revision 1.252 -diff -u -r1.252 mod_auth.c ---- modules/mod_auth.c 11 Feb 2009 06:56:43 -0000 1.252 -+++ modules/mod_auth.c 12 Feb 2009 18:48:16 -0000 -@@ -1074,11 +1074,13 @@ - * through with the login process. Oh well. - */ - -+ memset(sess_ttyname, '\0', sizeof(sess_ttyname)); - #if (defined(BSD) && (BSD >= 199103)) - snprintf(sess_ttyname, sizeof(sess_ttyname), "ftp%ld", (long) getpid()); - #else - snprintf(sess_ttyname, sizeof(sess_ttyname), "ftpd%d", (int) getpid()); - #endif -+ sess_ttyname[sizeof(sess_ttyname)-1] = '\0'; - - /* Perform wtmp logging only if not turned off in <Anonymous> - * or the current server -Index: src/main.c -=================================================================== -RCS file: /cvsroot/proftp/proftpd/src/main.c,v -retrieving revision 1.361 -diff -u -r1.361 main.c ---- src/main.c 11 Feb 2009 05:57:12 -0000 1.361 -+++ src/main.c 12 Feb 2009 18:48:16 -0000 -@@ -92,8 +92,6 @@ - - static unsigned char have_dead_child = FALSE; - --static char sbuf[PR_TUNABLE_BUFFER_SIZE] = {'\0'}; -- - #define PR_DEFAULT_CMD_BUFSZ 512 - - /* From mod_auth_unix.c */ -@@ -108,7 +106,16 @@ - static int syntax_check = 0; - - static const char *protocol_name = "FTP"; -+ -+/* This protocol_name_lc variable is used only by WtmpLog logging. Newer -+ * BSD variants require a name of "ftp" while other, non-BSD variants -+ * prefer "ftpd". -+ */ -+#if (defined(BSD) && (BSD >= 199103)) - static const char *protocol_name_lc = "ftp"; -+#else -+static const char *protocol_name_lc = "ftpd"; -+#endif - - /* Command handling */ - static void cmd_loop(server_rec *, conn_t *); -@@ -185,6 +192,7 @@ - } - - static void end_login_noexit(void) { -+ char wtmp_buf[PR_TUNABLE_BUFFER_SIZE]; - - /* Clear the scoreboard entry. */ - if (ServerType == SERVER_STANDALONE) { -@@ -206,20 +214,25 @@ - strerror(errno)); - } - -+ if (session.wtmp_log) { -+ memset(wtmp_buf, '\0', sizeof(wtmp_buf)); -+ } -+ - /* If session.user is set, we have a valid login */ - if (session.user) { - #if (defined(BSD) && (BSD >= 199103)) -- snprintf(sbuf, sizeof(sbuf), "%s%ld", protocol_name_lc, -+ snprintf(wtmp_buf, sizeof(wtmp_buf), "%s%ld", protocol_name_lc, - (long) (session.pid ? session.pid : getpid())); - #else -- snprintf(sbuf, sizeof(sbuf), "%s%d", protocol_name_lc, -+ snprintf(wtmp_buf, sizeof(wtmp_buf), "%s%d", protocol_name_lc, - (int) (session.pid ? session.pid : getpid())); - #endif -- sbuf[sizeof(sbuf) - 1] = '\0'; -+ wtmp_buf[sizeof(wtmp_buf) - 1] = '\0'; - -- if (session.wtmp_log) -- log_wtmp(sbuf, "", pr_netaddr_get_sess_remote_name(), -+ if (session.wtmp_log) { -+ log_wtmp(wtmp_buf, "", pr_netaddr_get_sess_remote_name(), - pr_netaddr_get_sess_remote_addr()); -+ } - } - - /* These are necessary in order that cleanups associated with these pools -@@ -573,7 +586,6 @@ - } - - protocol_name_lc = lc; -- - return 0; - } - diff --git a/net-ftp/proftpd/proftpd-1.3.2-r2.ebuild b/net-ftp/proftpd/proftpd-1.3.2-r2.ebuild deleted file mode 100644 index b2259ddfaaf6..000000000000 --- a/net-ftp/proftpd/proftpd-1.3.2-r2.ebuild +++ /dev/null @@ -1,279 +0,0 @@ -# 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-r2.ebuild,v 1.8 2009/05/02 15:57:27 jer 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 kerberos 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" -MODGSS_VER="1.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/_/}.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 ) - kerberos? ( mirror://sourceforge/gssmod/mod_gss-${MODGSS_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 - http://gssmod.sourceforge.net" - -SLOT="0" -LICENSE="GPL-2" - -DEPEND="acl? ( sys-apps/acl sys-apps/attr ) - clamav? ( app-antivirus/clamav ) - kerberos? ( || ( app-crypt/mit-krb5 app-crypt/heimdal ) ) - 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 mysql include when both backends are enabled - epatch "${FILESDIR}"/${P}-mysql-include.patch - # Do not use bundled libltdl when compiling mod_dso - epatch "${FILESDIR}"/${P}-system-libltdl.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 kerberos ; then - unpack mod_gss-${MODGSS_VER}.tar.gz - 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:mod_ctrls_admin" - 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 - - if use kerberos ; then - cd "${S}"/mod_gss-${MODGSS_VER} - # Generate source files for installed virtual/krb5 provider - if has_version app-crypt/mit-krb5; then - econf --enable-mit - else - econf --enable-heimdal - fi - cd "${S}" - # copy the generated files - cp -f mod_gss-${MODGSS_VER}/mod_gss.c contrib/ - cp -f mod_gss-${MODGSS_VER}/mod_gss.h include/ - cp -f mod_gss-${MODGSS_VER}/mod_auth_gss.c contrib/ - - myconf="${myconf} --enable-dso --with-shared=mod_gss:mod_auth_gss" - 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 -} |