summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2009-09-07 16:46:33 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2009-09-07 16:46:33 +0000
commit73ad789f58f9ca14354d90c58d49921c6fad7729 (patch)
treed495a8884a0b7b9f288575203c7da73295a22763 /net-ftp
parentopenvas-server bump (diff)
downloadhistorical-73ad789f58f9ca14354d90c58d49921c6fad7729.tar.gz
historical-73ad789f58f9ca14354d90c58d49921c6fad7729.tar.bz2
historical-73ad789f58f9ca14354d90c58d49921c6fad7729.zip
Remove old versions, bump to 1.3.2a (with some modules), thanks to Bernd Lommerzheim <bernd@lommerzheim.com> in bug #276371. Also fix bug #280150, updating mit-krb5 dependency
Package-Manager: portage-2.2_rc40/cvs/Linux x86_64
Diffstat (limited to 'net-ftp')
-rw-r--r--net-ftp/proftpd/ChangeLog21
-rw-r--r--net-ftp/proftpd/Manifest35
-rw-r--r--net-ftp/proftpd/files/proftpd-1.3.1-CVE-2008-4242.patch172
-rw-r--r--net-ftp/proftpd/files/proftpd-1.3.1-bug208840.patch35
-rw-r--r--net-ftp/proftpd/files/proftpd-1.3.1-bug218850.patch12
-rw-r--r--net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug164612.patch23
-rw-r--r--net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug167003.patch15
-rw-r--r--net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug175082.patch354
-rw-r--r--net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug178866.patch68
-rw-r--r--net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug181712.patch35
-rw-r--r--net-ftp/proftpd/files/proftpd-1.3.2_rc2-CVE-2008-4242.patch192
-rw-r--r--net-ftp/proftpd/proftpd-1.3.1-r1.ebuild256
-rw-r--r--net-ftp/proftpd/proftpd-1.3.1.ebuild247
-rw-r--r--net-ftp/proftpd/proftpd-1.3.1_rc2-r3.ebuild219
-rw-r--r--net-ftp/proftpd/proftpd-1.3.2.ebuild253
-rw-r--r--net-ftp/proftpd/proftpd-1.3.2_rc2-r1.ebuild241
-rw-r--r--net-ftp/proftpd/proftpd-1.3.2_rc2-r2.ebuild250
-rw-r--r--net-ftp/proftpd/proftpd-1.3.2_rc2.ebuild214
-rw-r--r--net-ftp/proftpd/proftpd-1.3.2a.ebuild (renamed from net-ftp/proftpd/proftpd-1.3.2-r1.ebuild)51
19 files changed, 64 insertions, 2629 deletions
diff --git a/net-ftp/proftpd/ChangeLog b/net-ftp/proftpd/ChangeLog
index 3e92d0be0ad8..a477d0950ae3 100644
--- a/net-ftp/proftpd/ChangeLog
+++ b/net-ftp/proftpd/ChangeLog
@@ -1,6 +1,25 @@
# 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.204 2009/05/02 15:57:27 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.205 2009/09/07 16:46:32 voyageur Exp $
+
+*proftpd-1.3.2a (07 Sep 2009)
+
+ 07 Sep 2009; Bernard Cafarelli <voyageur@gentoo.org>
+ -proftpd-1.3.1_rc2-r3.ebuild, -proftpd-1.3.1.ebuild,
+ -proftpd-1.3.1-r1.ebuild, -files/proftpd-1.3.1-CVE-2008-4242.patch,
+ -files/proftpd-1.3.1-bug208840.patch,
+ -files/proftpd-1.3.1-bug218850.patch,
+ -files/proftpd-1.3.1_rc2-bug164612.patch,
+ -files/proftpd-1.3.1_rc2-bug167003.patch,
+ -files/proftpd-1.3.1_rc2-bug175082.patch,
+ -files/proftpd-1.3.1_rc2-bug178866.patch,
+ -files/proftpd-1.3.1_rc2-bug181712.patch, -proftpd-1.3.2_rc2.ebuild,
+ -proftpd-1.3.2_rc2-r1.ebuild, -proftpd-1.3.2_rc2-r2.ebuild,
+ -proftpd-1.3.2.ebuild, -proftpd-1.3.2-r1.ebuild,
+ -files/proftpd-1.3.2_rc2-CVE-2008-4242.patch, +proftpd-1.3.2a.ebuild:
+ Remove old versions, bump to 1.3.2a (with some modules), thanks to Bernd
+ Lommerzheim <bernd@lommerzheim.com> in bug #276371. Also fix bug #280150,
+ updating mit-krb5 dependency
02 May 2009; Jeroen Roovers <jer@gentoo.org> proftpd-1.3.2-r2.ebuild:
Stable for HPPA (bug #264370).
diff --git a/net-ftp/proftpd/Manifest b/net-ftp/proftpd/Manifest
index 800dcb318a97..1f1883fc1b4a 100644
--- a/net-ftp/proftpd/Manifest
+++ b/net-ftp/proftpd/Manifest
@@ -1,45 +1,22 @@
-AUX proftpd-1.3.1-CVE-2008-4242.patch 5186 RMD160 1da8efc5d06ae9f8cac7d2bc78df2e76a5f36f75 SHA1 bdb766d56fe10b0a26fcefc6163a5ba6065037b0 SHA256 cfdf5af3c674f3c87f04e421a75013c0562470bcb32dacb8a863018b81696a75
-AUX proftpd-1.3.1-bug208840.patch 1000 RMD160 f8cc6aadf4496c3d88a2968d18479f021d40abb8 SHA1 4de215408ec6be835133c41db3015f4dd24a7774 SHA256 b0c0d16ffaeb12e118c929e535e5d8297b8265894ee80b4c8ea32c8c0f0fbb5e
-AUX proftpd-1.3.1-bug218850.patch 482 RMD160 934f1a9efdae189df9b30390d1b579a96a7ed99e SHA1 6a4c5225de5a15958868eca42cc44e034e5b28df SHA256 383c1146f40d57845532147e0c28f8df4b116603e6d089d46c5b4c5691f62be4
-AUX proftpd-1.3.1_rc2-bug164612.patch 779 RMD160 3bb73beff421ff27d153a6051299ada6bc532330 SHA1 cbf74c1c6a2ed794b1558e39cc85a41650bac21d SHA256 68b0bb47c3f46b931ff1887f299028803a15888641dfaad47865615bb0d6952c
-AUX proftpd-1.3.1_rc2-bug167003.patch 316 RMD160 7fcade6de378727081d0a14775b2e240f2a5aa31 SHA1 14439ace9c84932c460df3baace3fcbb10968c03 SHA256 55b87a0da8df2c4f257cbeb090d7a6fafda142a9db88c97728281358ac4792ff
-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-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-1.3.2_rc2-CVE-2008-4242.patch 5522 RMD160 a0f73525f1b6b9f06fd6b6ff0b5eb6112a8abe5b SHA1 6f51a0653ce994c6a0f4e447f152b5676b213a19 SHA256 4d77366e9bc08058f906d7e93c9ec8427fb5d36ba85db9cec74c510ca40ba728
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
-DIST mod_clamav_new.c 7399 RMD160 ae4de6385245a3c79d3c54bb7af9d2fe45a59feb SHA1 f037c573b6c0052f8ed5ee427504a8cd8834f15c SHA256 a5a3860c73c8bc3781516cbc912d7736517a92a15a6fd8352eeed638bcce60c1
-DIST mod_clamav_new.html 4645 RMD160 bc853541e6859e7929c0ed9b01b8f220e09b8ca2 SHA1 58479f3aae082effad3636026a27c09ddb232905 SHA256 ac0ab5f44cfc6c8118664c2a7300450486f52fb3bcde332b4bb9c506dd765a1e
+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 proftpd-1.3.1.tar.bz2 2243888 RMD160 ed47f7a7c446b01c3d00d2d25d89573c787da905 SHA1 0b54286492967172c5355e2f489f9665b46591e5 SHA256 03bc023e5b7b1c04d8eb2d5dca53b931b3e02cc7aba7dd8f629b0878535dc91b
-DIST proftpd-1.3.1rc2.tar.bz2 1516464 RMD160 aa928315880cf1e9d1980850ce2bb07193d2ac46 SHA1 7db6435707983fe8e865064661cedb159ebc1cf6 SHA256 7494ea061ef28efc7afa63ffe0a80d598a55909d06dede9254e955c67e6440da
+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.2rc2.tar.bz2 2356053 RMD160 4048327e14ce4e03075bbfdb6de4adb4d5e23f61 SHA1 94c5e71a7be7e65ae04d97df62c8b3675398c3b6 SHA256 1fb46b8b0d1ac11ed80a3106e261e15fd4c0b3bc83c198ab9620a852d31f96b7
+DIST proftpd-1.3.2a.tar.bz2 2506692 RMD160 7a2d84a4a0fdeedb78fd20a4da1267a6126e730b SHA1 a1972d656091963b60194949ca347cc704abf3ec SHA256 59d5ff059763d23c0693b0e73ebb6de35a2ab38280994c4b8e7c3f0067af5dcd
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.tar.gz 7704 RMD160 dd51a966942642b2a5ae1cd1c3b3b6f47721637c SHA1 9d08a32da1c1e7e8b126e1fdbc172aa6889bccbc SHA256 dd6650e1cb69ee118319c19bbaa9dbe277b92675ab26e9c70a93e1e93f724adb
-DIST proftpd-mod-shaper-0.6.2.tar.gz 19002 RMD160 3d1fdb82596672c9177009ebb30459a017e74c53 SHA1 930d6dc6b8785da48dc7102db5f1eb20546ccd75 SHA256 59f39bca40462c3bba20feb7be031d7453c366adb4b7fa6d8f50974eb45ae99e
-DIST proftpd-mod-shaper-0.6.3.tar.gz 19040 RMD160 9978fda37d0099c48d755e53132482506c948c05 SHA1 a5c9a1889c441b9290f2c571ad7fc06bebaf9326 SHA256 a6947836461872adca53dab2708b1e140fa6ce7a8b93ccbe2dafbc3ca63fde67
-DIST proftpd-mod-shaper-0.6.4.tar.gz 19172 RMD160 867829eaeb47a737382f14cca19ffdb319df329c SHA1 e4751801b5210562c6ac6274174f71057c0f42e4 SHA256 0d06d58dd5cbabb5ece68a67e9851cc46b7cf61e6f39155bead6f77f65f18a3c
+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.7.2.tar.gz 6071 RMD160 b152162b3714910d5b9378611313041c3e7e17d4 SHA1 3fc4c5874deba4bbe989b0bd54a7478a47f3d876 SHA256 cab5a42390eac4e0b8bdcbe1e6d15804c8029d51da9ad3bd428b46a80cd69d5a
DIST proftpd-mod-vroot-0.8.3.tar.gz 6999 RMD160 7a8d5a29e7c2754b774cebe649f8a28fc4bf9f85 SHA1 c5448ca0a7c2f1a73093ae6834f6516092cd1508 SHA256 ed3031d8330467e4c1ccb7a395b41a1d5628a89f4fcde80e3bb7ed62e987d85a
-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 7401 RMD160 a65b80edbf5b38f8b6be77c6e89f8e48a56172c4 SHA1 3f42c06fe1efbc265aa3c8d21e1c94fdef48b013 SHA256 57d03a91f2c234cece656fed7d6e8988f9ea10dad7386d5780c5fa0234a2c5c7
EBUILD proftpd-1.3.2-r2.ebuild 8258 RMD160 ff347403170e81ceef75b3a67a96bc81c33787c3 SHA1 b9443a84b36ee8e5cb74039ef3d5ec8e51eff587 SHA256 cd85a13ac1b5dbe65a529c82e61ed0cfe1f78a2b6ce980c0ca80c2d36723519a
-EBUILD proftpd-1.3.2.ebuild 7293 RMD160 427d2426db875a0e6241e841bd1c9a6fdda39467 SHA1 08cd02554233a51cc8d746e0ad97822f7b32178c SHA256 ce0c245ce2e9a3616533b612dbea732b95f4ee200ddd5813f303fb87ebbca509
-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 33827 RMD160 8c3de23eb542e406c3edcc7e297cc814e0afe5b1 SHA1 87f712697a5e37e9076d9b901e33d3c8bd0a63f3 SHA256 9d0ebb212102131a122409760f7202e999bbdd47f85911debfaa6c25fb93e4a6
+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
diff --git a/net-ftp/proftpd/files/proftpd-1.3.1-CVE-2008-4242.patch b/net-ftp/proftpd/files/proftpd-1.3.1-CVE-2008-4242.patch
deleted file mode 100644
index 9b08cade2ab9..000000000000
--- a/net-ftp/proftpd/files/proftpd-1.3.1-CVE-2008-4242.patch
+++ /dev/null
@@ -1,172 +0,0 @@
-Patch taken from debian, closes
-http://secunia.com/advisories/cve_reference/CVE-2008-4242/
-https://bugs.gentoo.org/show_bug.cgi?id=238762
-diff -urNad trunk~/src/main.c trunk/src/main.c
---- trunk~/src/main.c 2008-09-21 23:50:55.000000000 +0200
-+++ trunk/src/main.c 2008-09-21 23:50:55.000000000 +0200
-@@ -674,12 +674,17 @@
- while (TRUE) {
- pr_signals_handle();
-
-+ memset(buf,'\0',sizeof(buf));
-+
- if (pr_netio_telnet_gets(buf, sizeof(buf)-1, session.c->instrm,
- session.c->outstrm) == NULL) {
-
-- if (PR_NETIO_ERRNO(session.c->instrm) == EINTR)
-- /* Simple interrupted syscall */
-+ if (errno == E2BIG) {
-+ /* The client sent a too-long command which was ignored; give
-+ * them another chance?
-+ */
- continue;
-+ }
-
- #ifndef PR_DEVEL_NO_DAEMON
- /* Otherwise, EOF */
-@@ -695,20 +700,31 @@
-
- if (cmd_buf_size == -1) {
- int *bufsz = get_param_ptr(main_server->conf, "CommandBufferSize", FALSE);
-+ size_t default_cmd_bufsz;
-+
-+ /* It's possible for the admin to select a PR_TUNABLE_BUFFER_SIZE which
-+ * is smaller than PR_DEFAULT_CMD_BUFSZ. We need to handle such cases
-+ * properly.
-+ */
-+ default_cmd_bufsz = PR_DEFAULT_CMD_BUFSZ;
-+ if (default_cmd_bufsz > sizeof(buf)) {
-+ default_cmd_bufsz = sizeof(buf);
-+ }
-+
- if (bufsz == NULL) {
-- cmd_buf_size = PR_DEFAULT_CMD_BUFSZ;
-+ cmd_buf_size = default_cmd_bufsz;
-
- } else if (*bufsz <= 0) {
- pr_log_pri(PR_LOG_WARNING, "invalid CommandBufferSize size (%d) "
- "given, using default buffer size (%u) instead",
-- *bufsz, PR_DEFAULT_CMD_BUFSZ);
-- cmd_buf_size = PR_DEFAULT_CMD_BUFSZ;
-+ *bufsz, default_cmd_bufsz);
-+ cmd_buf_size = default_cmd_bufsz;
-
- } else if (*bufsz + 1 > sizeof(buf)) {
- pr_log_pri(PR_LOG_WARNING, "invalid CommandBufferSize size (%d) "
- "given, using default buffer size (%u) instead",
-- *bufsz, PR_DEFAULT_CMD_BUFSZ);
-- cmd_buf_size = PR_DEFAULT_CMD_BUFSZ;
-+ *bufsz, default_cmd_bufsz);
-+ cmd_buf_size = default_cmd_bufsz;
-
- } else {
- pr_log_debug(DEBUG1, "setting CommandBufferSize to %d", *bufsz);
-diff -urNad trunk~/src/netio.c trunk/src/netio.c
---- trunk~/src/netio.c 2008-09-21 23:39:34.000000000 +0200
-+++ trunk/src/netio.c 2008-09-21 23:52:17.000000000 +0200
-@@ -1,6 +1,6 @@
- /*
- * ProFTPD - FTP server daemon
-- * Copyright (c) 2001-2007 The ProFTPD Project team
-+ * Copyright (c) 2001-2008 The ProFTPD Project team
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
-@@ -30,19 +30,19 @@
- #include <signal.h>
-
- #ifndef IAC
--#define IAC 255
-+# define IAC 255
- #endif
- #ifndef DONT
--#define DONT 254
-+# define DONT 254
- #endif
- #ifndef DO
--#define DO 253
-+# define DO 253
- #endif
- #ifndef WONT
--#define WONT 252
-+# define WONT 252
- #endif
- #ifndef WILL
--#define WILL 251
-+# define WILL 251
- #endif
-
- static const char *trace_channel = "netio";
-@@ -51,6 +51,17 @@
- static pr_netio_t *core_data_netio = NULL, *data_netio = NULL;
- static pr_netio_t *core_othr_netio = NULL, *othr_netio = NULL;
-
-+/* Used to track whether the previous text read from the client's control
-+ * connection was a properly-terminated command. If so, then read in the
-+ * next/current text as per normal. If NOT (e.g. the client sent a too-long
-+ * command), then read in the next/current text, but ignore it. Only clear
-+ * this flag if the next/current command can be read as per normal.
-+ *
-+ * The pr_netio_telnet_gets() uses this variable, in conjunction with its
-+ * saw_newline flag, for handling too-long commands from clients.
-+ */
-+static int properly_terminated_prev_command = TRUE;
-+
- static pr_netio_stream_t *netio_stream_alloc(pool *parent_pool) {
- pool *netio_pool = NULL;
- pr_netio_stream_t *nstrm = NULL;
-@@ -911,7 +922,7 @@
- char *bp = buf;
- unsigned char cp;
- static unsigned char mode = 0;
-- int toread;
-+ int toread, saw_newline = FALSE;
- pr_buffer_t *pbuf = NULL;
-
- if (buflen == 0) {
-@@ -940,8 +951,9 @@
- *bp = '\0';
- return buf;
-
-- } else
-+ } else {
- return NULL;
-+ }
- }
-
- pbuf->remaining = pbuf->buflen - toread;
-@@ -1004,6 +1016,8 @@
- toread--;
- *bp++ = *pbuf->current++;
- pbuf->remaining++;
-+
-+ saw_newline = TRUE;
- break;
- }
-
-@@ -1011,6 +1025,25 @@
- pbuf->current = NULL;
- }
-
-+ if (!saw_newline) {
-+ /* If we haven't seen a newline, then assume the client is deliberately
-+ * sending a too-long command, trying to exploit buffer sizes and make
-+ * the server make some possibly bad assumptions.
-+ */
-+
-+ properly_terminated_prev_command = FALSE;
-+ errno = E2BIG;
-+ return NULL;
-+ }
-+
-+ if (!properly_terminated_prev_command) {
-+ properly_terminated_prev_command = TRUE;
-+ pr_log_pri(PR_LOG_NOTICE, "client sent too-long command, ignoring");
-+ errno = E2BIG;
-+ return NULL;
-+ }
-+
-+ properly_terminated_prev_command = TRUE;
- *bp = '\0';
- return buf;
- }
diff --git a/net-ftp/proftpd/files/proftpd-1.3.1-bug208840.patch b/net-ftp/proftpd/files/proftpd-1.3.1-bug208840.patch
deleted file mode 100644
index 90931f99f50f..000000000000
--- a/net-ftp/proftpd/files/proftpd-1.3.1-bug208840.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- acconfig.h 2002/12/15 18:05:09 1.15
-+++ acconfig.h 2007/10/15 17:27:25 1.16
-@@ -12,9 +12,6 @@
- /* Define to `int' if <sys/types.h> doesn't define. */
- #undef ino_t
-
--/* Define to `mode_t' if <sys/types.h> doesn't define. */
--#undef umode_t
--
- /* Define to `int' if <sys/socket.h> doesn't define. */
- #undef socklen_t
-
---- config.h.in 2007/10/13 03:05:27 1.118
-+++ config.h.in 2007/10/15 17:27:25 1.119
-@@ -37,9 +37,6 @@
- /* Define to `int' if <sys/socket.h> doesn't define. */
- #undef socklen_t
-
--/* Define to `mode_t' if <sys/types.h> doesn't define. */
--#undef umode_t
--
- /* Define if you have AIX send_file() semantics. */
- #undef HAVE_AIX_SENDFILE
-
---- configure.in 2007/10/13 03:05:27 1.261
-+++ configure.in 2007/10/15 17:27:25 1.262
-@@ -1119,7 +1119,7 @@
- AC_CHECK_SIZEOF(time_t, 0)
-
- dnl Check for generic typedefs
--AC_CHECK_TYPE(umode_t, mode_t)
-+AC_CHECK_TYPE(mode_t, mode_t)
- AC_CHECK_TYPE(ino_t, ino_t)
- AC_CHECK_TYPE(intptr_t, AC_DEFINE(HAVE_INTPTR_T),, [
- #if HAVE_INTTYPES_H
diff --git a/net-ftp/proftpd/files/proftpd-1.3.1-bug218850.patch b/net-ftp/proftpd/files/proftpd-1.3.1-bug218850.patch
deleted file mode 100644
index 3e2adf34ea5c..000000000000
--- a/net-ftp/proftpd/files/proftpd-1.3.1-bug218850.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- lib/libcap/libcap.h 2008-04-24 19:46:29.475883739 +0200
-+++ lib/libcap/libcap.h 2008-04-24 19:48:31.116088563 +0200
-@@ -52,7 +52,8 @@
- */
-
- #if !defined(_LINUX_CAPABILITY_VERSION) || \
-- (_LINUX_CAPABILITY_VERSION != 0x19980330)
-+ ((_LINUX_CAPABILITY_VERSION != 0x19980330) && \
-+ (_LINUX_CAPABILITY_VERSION != 0x20071026))
-
- # error "Kernel <linux/capability.h> does not match library"
- # error "file "libcap.h" --> fix and recompile libcap"
diff --git a/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug164612.patch b/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug164612.patch
deleted file mode 100644
index 060fc9518456..000000000000
--- a/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug164612.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- modules/mod_lang.c 2007/01/19 21:59:44 1.4
-+++ modules/mod_lang.c 2007/01/19 23:01:25 1.5
-@@ -262,10 +262,19 @@
-
- static int lang_init(void) {
- if (setlocale(LC_ALL, "") == NULL) {
-- pr_log_pri(PR_LOG_NOTICE, "unable to set locale: %s", strerror(errno));
-+ pr_log_pri(PR_LOG_NOTICE, "unable to set LC_ALL: %s", strerror(errno));
- return -1;
- }
-
-+ /* Preserve the POSIX/portable handling of number formatting; local
-+ * formatting of decimal points, for example, can cause problems with
-+ * numbers in SQL queries.
-+ */
-+ if (setlocale(LC_NUMERIC, "C") == NULL) {
-+ pr_log_pri(PR_LOG_NOTICE, "unable to set LC_NUMERIC: %s",
-+ strerror(errno));
-+ }
-+
- lang_pool = make_sub_pool(permanent_pool);
- pr_pool_tag(lang_pool, MOD_LANG_VERSION);
-
diff --git a/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug167003.patch b/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug167003.patch
deleted file mode 100644
index d6ce55a148b0..000000000000
--- a/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug167003.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- modules/mod_facl.c 2007/04/18 15:31:28 1.6
-+++ modules/mod_facl.c 2007/04/30 17:47:34 1.7
-@@ -826,10 +826,10 @@
- "facl",
-
- /* Module configuration directive handlers */
-- NULL,
-+ facl_conftab,
-
- /* Module command handlers */
-- facl_conftab,
-+ NULL,
-
- /* Module authentication handlers */
- NULL,
diff --git a/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug175082.patch b/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug175082.patch
deleted file mode 100644
index 7e3b6cf6f4ac..000000000000
--- a/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug175082.patch
+++ /dev/null
@@ -1,354 +0,0 @@
---- include/auth.h 2005/06/10 17:21:10 1.4
-+++ include/auth.h 2007/04/17 21:33:40 1.5
-@@ -86,6 +86,7 @@
- config_rec *pr_auth_get_anon_config(pool *p, char **, char **, char **);
-
- /* For internal use only. */
-+int init_auth(void);
- int set_groups(pool *, gid_t, array_header *);
-
- #endif /* PR_MODULES_H */
---- modules/mod_core.c 2007/03/09 16:20:54 1.298
-+++ modules/mod_core.c 2007/04/17 21:33:40 1.299
-@@ -4418,6 +4418,8 @@
- config_rec *c = NULL;
- unsigned int *debug_level = NULL;
-
-+ init_auth();
-+
- /* Check for a server-specific TimeoutIdle. */
- c = find_config(main_server->conf, CONF_PARAM, "TimeoutIdle", FALSE);
- if (c != NULL)
---- src/auth.c 2007/01/08 22:59:28 1.47
-+++ src/auth.c 2007/04/17 21:33:40 1.48
-@@ -30,6 +30,10 @@
-
- #include "conf.h"
-
-+static pool *auth_pool = NULL;
-+static pr_table_t *auth_tab = NULL;
-+static const char *trace_channel = "auth";
-+
- /* The difference between this function, and pr_cmd_alloc(), is that this
- * allocates the cmd_rec directly from the given pool, whereas pr_cmd_alloc()
- * will allocate a subpool from the given pool, and allocate its cmd_rec
-@@ -63,7 +67,7 @@
- return c;
- }
-
--static modret_t *dispatch_auth(cmd_rec *cmd, char *match) {
-+static modret_t *dispatch_auth(cmd_rec *cmd, char *match, module **m) {
- authtable *start_tab = NULL, *iter_tab = NULL;
- modret_t *mr = NULL;
-
-@@ -74,7 +78,12 @@
- while (iter_tab) {
- pr_signals_handle();
-
-- pr_trace_msg("auth", 6, "dispatching auth request \"%s\" to module mod_%s",
-+ if (m && *m && *m != iter_tab->m) {
-+ goto next;
-+ }
-+
-+ pr_trace_msg(trace_channel, 6,
-+ "dispatching auth request \"%s\" to module mod_%s",
- match, iter_tab->m->name);
-
- mr = call_module(iter_tab->m, iter_tab->handler, cmd);
-@@ -83,9 +92,19 @@
- break;
-
- if (MODRET_ISHANDLED(mr) ||
-- MODRET_ISERROR(mr))
-+ MODRET_ISERROR(mr)) {
-+
-+ /* Return a pointer, if requested, to the module which answered the
-+ * auth request. This is used, for example, by auth_getpwnam() for
-+ * associating the answering auth module with the data looked up.
-+ */
-+ if (m)
-+ *m = iter_tab->m;
-+
- break;
-+ }
-
-+ next:
- iter_tab = pr_stash_get_symbol(PR_SYM_AUTH, match, iter_tab,
- &cmd->stash_index);
-
-@@ -106,7 +125,7 @@
- modret_t *mr = NULL;
-
- cmd = make_cmd(p, 0);
-- mr = dispatch_auth(cmd, "setpwent");
-+ mr = dispatch_auth(cmd, "setpwent", NULL);
-
- if (cmd->tmp_pool) {
- destroy_pool(cmd->tmp_pool);
-@@ -121,13 +140,20 @@
- modret_t *mr = NULL;
-
- cmd = make_cmd(p, 0);
-- mr = dispatch_auth(cmd, "endpwent");
-+ mr = dispatch_auth(cmd, "endpwent", NULL);
-
- if (cmd->tmp_pool) {
- destroy_pool(cmd->tmp_pool);
- cmd->tmp_pool = NULL;
- }
-
-+ if (auth_tab) {
-+ pr_trace_msg(trace_channel, 5, "emptying authcache");
-+ (void) pr_table_empty(auth_tab);
-+ (void) pr_table_free(auth_tab);
-+ auth_tab = NULL;
-+ }
-+
- return;
- }
-
-@@ -136,7 +162,7 @@
- modret_t *mr = NULL;
-
- cmd = make_cmd(p, 0);
-- mr = dispatch_auth(cmd, "setgrent");
-+ mr = dispatch_auth(cmd, "setgrent", NULL);
-
- if (cmd->tmp_pool) {
- destroy_pool(cmd->tmp_pool);
-@@ -151,7 +177,7 @@
- modret_t *mr = NULL;
-
- cmd = make_cmd(p, 0);
-- mr = dispatch_auth(cmd, "endgrent");
-+ mr = dispatch_auth(cmd, "endgrent", NULL);
-
- if (cmd->tmp_pool) {
- destroy_pool(cmd->tmp_pool);
-@@ -167,7 +193,7 @@
- struct passwd *res = NULL;
-
- cmd = make_cmd(p, 0);
-- mr = dispatch_auth(cmd, "getpwent");
-+ mr = dispatch_auth(cmd, "getpwent", NULL);
-
- if (MODRET_ISHANDLED(mr) && MODRET_HASDATA(mr))
- res = mr->data;
-@@ -201,7 +227,7 @@
- struct group *res = NULL;
-
- cmd = make_cmd(p, 0);
-- mr = dispatch_auth(cmd, "getgrent");
-+ mr = dispatch_auth(cmd, "getgrent", NULL);
-
- if (MODRET_ISHANDLED(mr) && MODRET_HASDATA(mr))
- res = mr->data;
-@@ -228,11 +254,13 @@
- cmd_rec *cmd = NULL;
- modret_t *mr = NULL;
- struct passwd *res = NULL;
-+ module *m = NULL;
-
- cmd = make_cmd(p, 1, name);
-- mr = dispatch_auth(cmd, "getpwnam");
-+ mr = dispatch_auth(cmd, "getpwnam", &m);
-
-- if (MODRET_ISHANDLED(mr) && MODRET_HASDATA(mr))
-+ if (MODRET_ISHANDLED(mr) &&
-+ MODRET_HASDATA(mr))
- res = mr->data;
-
- if (cmd->tmp_pool) {
-@@ -257,6 +285,46 @@
- return NULL;
- }
-
-+ if (!auth_tab && auth_pool) {
-+ auth_tab = pr_table_alloc(auth_pool, 0);
-+ }
-+
-+ if (m && auth_tab) {
-+ int count = 0;
-+ void *value = NULL;
-+
-+ value = palloc(auth_pool, sizeof(module *));
-+ *((module **) value) = m;
-+
-+ count = pr_table_exists(auth_tab, name);
-+ if (count <= 0) {
-+ if (pr_table_add(auth_tab, pstrdup(auth_pool, name), value,
-+ sizeof(module *)) < 0) {
-+ pr_trace_msg(trace_channel, 3,
-+ "error adding module 'mod_%s.c' for user '%s' to the authcache: %s",
-+ m->name, name, strerror(errno));
-+
-+ } else {
-+ pr_trace_msg(trace_channel, 5,
-+ "stashed module 'mod_%s.c' for user '%s' in the authcache",
-+ m->name, name);
-+ }
-+
-+ } else {
-+ if (pr_table_set(auth_tab, pstrdup(auth_pool, name), value,
-+ sizeof(module *)) < 0) {
-+ pr_trace_msg(trace_channel, 3,
-+ "error setting module 'mod_%s.c' for user '%s' in the authcache: %s",
-+ m->name, name, strerror(errno));
-+
-+ } else {
-+ pr_trace_msg(trace_channel, 5,
-+ "stashed module 'mod_%s.c' for user '%s' in the authcache",
-+ m->name, name);
-+ }
-+ }
-+ }
-+
- pr_log_debug(DEBUG10, "retrieved UID %lu for user '%s'",
- (unsigned long) res->pw_uid, name);
- return res;
-@@ -268,7 +336,7 @@
- struct passwd *res = NULL;
-
- cmd = make_cmd(p, 1, (void *) &uid);
-- mr = dispatch_auth(cmd, "getpwuid");
-+ mr = dispatch_auth(cmd, "getpwuid", NULL);
-
- if (MODRET_ISHANDLED(mr) && MODRET_HASDATA(mr))
- res = mr->data;
-@@ -306,7 +374,7 @@
- struct group *res = NULL;
-
- cmd = make_cmd(p, 1, name);
-- mr = dispatch_auth(cmd, "getgrnam");
-+ mr = dispatch_auth(cmd, "getgrnam", NULL);
-
- if (MODRET_ISHANDLED(mr) && MODRET_HASDATA(mr))
- res = mr->data;
-@@ -339,7 +407,7 @@
- struct group *res = NULL;
-
- cmd = make_cmd(p, 1, (void *) &gid);
-- mr = dispatch_auth(cmd, "getgrgid");
-+ mr = dispatch_auth(cmd, "getgrgid", NULL);
-
- if (MODRET_ISHANDLED(mr) && MODRET_HASDATA(mr))
- res = mr->data;
-@@ -369,10 +437,25 @@
- int pr_auth_authenticate(pool *p, const char *name, const char *pw) {
- cmd_rec *cmd = NULL;
- modret_t *mr = NULL;
-+ module *m = NULL;
- int res = PR_AUTH_NOPWD;
-
- cmd = make_cmd(p, 2, name, pw);
-- mr = dispatch_auth(cmd, "auth");
-+
-+ if (auth_tab) {
-+
-+ /* Fetch the specific module to be used for authenticating this user. */
-+ void *v = pr_table_get(auth_tab, name, NULL);
-+ if (v) {
-+ m = *((module **) v);
-+
-+ pr_trace_msg(trace_channel, 4,
-+ "using module 'mod_%s.c' from authcache to authenticate user '%s'",
-+ m->name, name);
-+ }
-+ }
-+
-+ mr = dispatch_auth(cmd, "auth", m ? &m : NULL);
-
- if (MODRET_ISHANDLED(mr))
- res = MODRET_HASDATA(mr) ? PR_AUTH_RFC2228_OK : PR_AUTH_OK;
-@@ -391,10 +474,25 @@
- int pr_auth_check(pool *p, const char *cpw, const char *name, const char *pw) {
- cmd_rec *cmd = NULL;
- modret_t *mr = NULL;
-+ module *m = NULL;
- int res = PR_AUTH_BADPWD;
-
- cmd = make_cmd(p, 3, cpw, name, pw);
-- mr = dispatch_auth(cmd, "check");
-+
-+ if (auth_tab) {
-+
-+ /* Fetch the specific module to be used for authenticating this user. */
-+ void *v = pr_table_get(auth_tab, name, NULL);
-+ if (v) {
-+ m = *((module **) v);
-+
-+ pr_trace_msg(trace_channel, 4,
-+ "using module 'mod_%s.c' from authcache to authenticate user '%s'",
-+ m->name, name);
-+ }
-+ }
-+
-+ mr = dispatch_auth(cmd, "check", m ? &m : NULL);
-
- if (MODRET_ISHANDLED(mr))
- res = MODRET_HASDATA(mr) ? PR_AUTH_RFC2228_OK : PR_AUTH_OK;
-@@ -413,7 +511,7 @@
- int res = TRUE;
-
- cmd = make_cmd(p, 1, name);
-- mr = dispatch_auth(cmd, "requires_pass");
-+ mr = dispatch_auth(cmd, "requires_pass", NULL);
-
- if (MODRET_ISHANDLED(mr))
- res = FALSE;
-@@ -438,7 +536,7 @@
- memset(namebuf, '\0', sizeof(namebuf));
-
- cmd = make_cmd(p, 1, (void *) &uid);
-- mr = dispatch_auth(cmd, "uid2name");
-+ mr = dispatch_auth(cmd, "uid2name", NULL);
-
- if (MODRET_ISHANDLED(mr) && MODRET_HASDATA(mr)) {
- res = mr->data;
-@@ -463,7 +561,7 @@
- memset(namebuf, '\0', sizeof(namebuf));
-
- cmd = make_cmd(p, 1, (void *) &gid);
-- mr = dispatch_auth(cmd, "gid2name");
-+ mr = dispatch_auth(cmd, "gid2name", NULL);
-
- if (MODRET_ISHANDLED(mr) && MODRET_HASDATA(mr)) {
- res = mr->data;
-@@ -485,7 +583,7 @@
- uid_t res = (uid_t) -1;
-
- cmd = make_cmd(p, 1, name);
-- mr = dispatch_auth(cmd, "name2uid");
-+ mr = dispatch_auth(cmd, "name2uid", NULL);
-
- if (MODRET_ISHANDLED(mr))
- res = *((uid_t *) mr->data);
-@@ -506,7 +604,7 @@
- gid_t res = (gid_t) -1;
-
- cmd = make_cmd(p, 1, name);
-- mr = dispatch_auth(cmd, "name2gid");
-+ mr = dispatch_auth(cmd, "name2gid", NULL);
-
- if (MODRET_ISHANDLED(mr))
- res = *((gid_t *) mr->data);
-@@ -538,7 +636,7 @@
- cmd = make_cmd(p, 3, name, group_ids ? *group_ids : NULL,
- group_names ? *group_names : NULL);
-
-- mr = dispatch_auth(cmd, "getgroups");
-+ mr = dispatch_auth(cmd, "getgroups", NULL);
-
- if (MODRET_ISHANDLED(mr) && MODRET_HASDATA(mr)) {
- res = *((int *) mr->data);
-@@ -832,3 +930,10 @@
- return res;
- }
-
-+/* Internal use only. To be called in the session process. */
-+int init_auth(void) {
-+ auth_pool = make_sub_pool(permanent_pool);
-+ pr_pool_tag(auth_pool, "Auth API");
-+
-+ return 0;
-+}
diff --git a/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug178866.patch b/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug178866.patch
deleted file mode 100644
index 206ffb0d6384..000000000000
--- a/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug178866.patch
+++ /dev/null
@@ -1,68 +0,0 @@
---- src/auth.c 2007/04/17 21:33:40 1.48
-+++ src/auth.c 2007/05/21 15:19:41 1.49
-@@ -442,6 +442,32 @@
-
- cmd = make_cmd(p, 2, name, pw);
-
-+ /* First, check for the mod_auth_pam.c module.
-+ *
-+ * PAM is a bit of hack in this Auth API, because PAM only provides
-+ * yes/no checks, and is not a source of user information.
-+ */
-+ m = pr_module_get("mod_auth_pam.c");
-+ if (m) {
-+ pr_trace_msg(trace_channel, 4,
-+ "using module 'mod_auth_pam.c' to authenticate user '%s'", name);
-+
-+ mr = dispatch_auth(cmd, "auth", &m);
-+
-+ if (MODRET_ISHANDLED(mr)) {
-+ res = MODRET_HASDATA(mr) ? PR_AUTH_RFC2228_OK : PR_AUTH_OK;
-+
-+ if (cmd->tmp_pool) {
-+ destroy_pool(cmd->tmp_pool);
-+ cmd->tmp_pool = NULL;
-+ }
-+
-+ return res;
-+ }
-+
-+ m = NULL;
-+ }
-+
- if (auth_tab) {
-
- /* Fetch the specific module to be used for authenticating this user. */
-@@ -479,6 +505,32 @@
-
- cmd = make_cmd(p, 3, cpw, name, pw);
-
-+ /* First, check for the mod_auth_pam.c module.
-+ *
-+ * PAM is a bit of hack in this Auth API, because PAM only provides
-+ * yes/no checks, and is not a source of user information.
-+ */
-+ m = pr_module_get("mod_auth_pam.c");
-+ if (m) {
-+ pr_trace_msg(trace_channel, 4,
-+ "using module 'mod_auth_pam.c' to authenticate user '%s'", name);
-+
-+ mr = dispatch_auth(cmd, "auth", &m);
-+
-+ if (MODRET_ISHANDLED(mr)) {
-+ res = MODRET_HASDATA(mr) ? PR_AUTH_RFC2228_OK : PR_AUTH_OK;
-+
-+ if (cmd->tmp_pool) {
-+ destroy_pool(cmd->tmp_pool);
-+ cmd->tmp_pool = NULL;
-+ }
-+
-+ return res;
-+ }
-+
-+ m = NULL;
-+ }
-+
- if (auth_tab) {
-
- /* Fetch the specific module to be used for authenticating this user. */
diff --git a/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug181712.patch b/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug181712.patch
deleted file mode 100644
index fbe8fed1f1f0..000000000000
--- a/net-ftp/proftpd/files/proftpd-1.3.1_rc2-bug181712.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- src/auth.c 21 May 2007 15:19:41 -0000 1.49
-+++ src/auth.c 12 Jun 2007 18:54:15 -0000
-@@ -449,12 +449,12 @@
- */
- m = pr_module_get("mod_auth_pam.c");
- if (m) {
-- pr_trace_msg(trace_channel, 4,
-- "using module 'mod_auth_pam.c' to authenticate user '%s'", name);
--
- mr = dispatch_auth(cmd, "auth", &m);
-
- if (MODRET_ISHANDLED(mr)) {
-+ pr_trace_msg(trace_channel, 4,
-+ "module 'mod_auth_pam.c' used for authenticating user '%s'", name);
-+
- res = MODRET_HASDATA(mr) ? PR_AUTH_RFC2228_OK : PR_AUTH_OK;
-
- if (cmd->tmp_pool) {
-@@ -512,12 +512,12 @@
- */
- m = pr_module_get("mod_auth_pam.c");
- if (m) {
-- pr_trace_msg(trace_channel, 4,
-- "using module 'mod_auth_pam.c' to authenticate user '%s'", name);
--
-- mr = dispatch_auth(cmd, "auth", &m);
-+ mr = dispatch_auth(cmd, "check", &m);
-
- if (MODRET_ISHANDLED(mr)) {
-+ pr_trace_msg(trace_channel, 4,
-+ "module 'mod_auth_pam.c' used for authenticating user '%s'", name);
-+
- res = MODRET_HASDATA(mr) ? PR_AUTH_RFC2228_OK : PR_AUTH_OK;
-
- if (cmd->tmp_pool) {
diff --git a/net-ftp/proftpd/files/proftpd-1.3.2_rc2-CVE-2008-4242.patch b/net-ftp/proftpd/files/proftpd-1.3.2_rc2-CVE-2008-4242.patch
deleted file mode 100644
index 1b95d3c239d5..000000000000
--- a/net-ftp/proftpd/files/proftpd-1.3.2_rc2-CVE-2008-4242.patch
+++ /dev/null
@@ -1,192 +0,0 @@
-This fixes CVE-2008-4242 (Gentoo bug 238762)
-Source: http://bugs.proftpd.org/show_bug.cgi?id=3115
-
-Index: src/main.c
-===================================================================
-RCS file: /cvsroot/proftp/proftpd/src/main.c,v
-retrieving revision 1.344
-diff -u -r1.344 main.c
---- src/main.c 8 Sep 2008 00:47:11 -0000 1.344
-+++ src/main.c 20 Sep 2008 20:10:49 -0000
-@@ -516,20 +516,32 @@
- static long get_max_cmd_len(size_t buflen) {
- long res;
- int *bufsz = NULL;
-+ size_t default_cmd_bufsz;
-
-+ /* It's possible for the admin to select a PR_TUNABLE_BUFFER_SIZE which
-+ * is smaller than PR_DEFAULT_CMD_BUFSZ. We need to handle such cases
-+ * properly.
-+ */
-+ default_cmd_bufsz = PR_DEFAULT_CMD_BUFSZ;
-+ if (default_cmd_bufsz > buflen) {
-+ default_cmd_bufsz = buflen;
-+ }
-+
- bufsz = get_param_ptr(main_server->conf, "CommandBufferSize", FALSE);
- if (bufsz == NULL) {
-- res = PR_DEFAULT_CMD_BUFSZ;
-+ res = default_cmd_bufsz;
-
- } else if (*bufsz <= 0) {
- pr_log_pri(PR_LOG_WARNING, "invalid CommandBufferSize size (%d) given, "
-- "using default buffer size (%u) instead", *bufsz, PR_DEFAULT_CMD_BUFSZ);
-- res = PR_DEFAULT_CMD_BUFSZ;
-+ "using default buffer size (%lu) instead", *bufsz,
-+ (unsigned long) default_cmd_bufsz);
-+ res = default_cmd_bufsz;
-
- } else if (*bufsz + 1 > buflen) {
- pr_log_pri(PR_LOG_WARNING, "invalid CommandBufferSize size (%d) given, "
-- "using default buffer size (%u) instead", *bufsz, PR_DEFAULT_CMD_BUFSZ);
-- res = PR_DEFAULT_CMD_BUFSZ;
-+ "using default buffer size (%lu) instead", *bufsz,
-+ (unsigned long) default_cmd_bufsz);
-+ res = default_cmd_bufsz;
-
- } else {
- pr_log_debug(DEBUG1, "setting CommandBufferSize to %d", *bufsz);
-@@ -577,11 +589,26 @@
- return -1;
- }
-
-- memset(buf, '\0', sizeof(buf));
-+ while (TRUE) {
-+ pr_signals_handle();
-
-- if (pr_netio_telnet_gets(buf, sizeof(buf)-1, session.c->instrm,
-- session.c->outstrm) == NULL)
-- return -1;
-+ memset(buf, '\0', sizeof(buf));
-+
-+ if (pr_netio_telnet_gets(buf, sizeof(buf)-1, session.c->instrm,
-+ session.c->outstrm) == NULL) {
-+
-+ if (errno == E2BIG) {
-+ /* The client sent a too-long command which was ignored; give
-+ * them another chance?
-+ */
-+ continue;
-+ }
-+
-+ return -1;
-+ }
-+
-+ break;
-+ }
-
- if (cmd_bufsz == -1)
- cmd_bufsz = get_max_cmd_len(sizeof(buf));
-Index: src/netio.c
-===================================================================
-RCS file: /cvsroot/proftp/proftpd/src/netio.c,v
-retrieving revision 1.33
-diff -u -r1.33 netio.c
---- src/netio.c 3 Apr 2008 03:14:31 -0000 1.33
-+++ src/netio.c 20 Sep 2008 20:10:49 -0000
-@@ -1,6 +1,6 @@
- /*
- * ProFTPD - FTP server daemon
-- * Copyright (c) 2001-2007 The ProFTPD Project team
-+ * Copyright (c) 2001-2008 The ProFTPD Project team
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
-@@ -30,19 +30,19 @@
- #include <signal.h>
-
- #ifndef IAC
--#define IAC 255
-+# define IAC 255
- #endif
- #ifndef DONT
--#define DONT 254
-+# define DONT 254
- #endif
- #ifndef DO
--#define DO 253
-+# define DO 253
- #endif
- #ifndef WONT
--#define WONT 252
-+# define WONT 252
- #endif
- #ifndef WILL
--#define WILL 251
-+# define WILL 251
- #endif
-
- static const char *trace_channel = "netio";
-@@ -51,6 +51,17 @@
- static pr_netio_t *core_data_netio = NULL, *data_netio = NULL;
- static pr_netio_t *core_othr_netio = NULL, *othr_netio = NULL;
-
-+/* Used to track whether the previous text read from the client's control
-+ * connection was a properly-terminated command. If so, then read in the
-+ * next/current text as per normal. If NOT (e.g. the client sent a too-long
-+ * command), then read in the next/current text, but ignore it. Only clear
-+ * this flag if the next/current command can be read as per normal.
-+ *
-+ * The pr_netio_telnet_gets() uses this variable, in conjunction with its
-+ * saw_newline flag, for handling too-long commands from clients.
-+ */
-+static int properly_terminated_prev_command = TRUE;
-+
- static pr_netio_stream_t *netio_stream_alloc(pool *parent_pool) {
- pool *netio_pool = NULL;
- pr_netio_stream_t *nstrm = NULL;
-@@ -950,7 +961,7 @@
- char *bp = buf;
- unsigned char cp;
- static unsigned char mode = 0;
-- int toread, handle_iac = TRUE;
-+ int toread, handle_iac = TRUE, saw_newline = FALSE;
- pr_buffer_t *pbuf = NULL;
-
- if (buflen == 0) {
-@@ -983,8 +994,9 @@
- *bp = '\0';
- return buf;
-
-- } else
-+ } else {
- return NULL;
-+ }
- }
-
- pbuf->remaining = pbuf->buflen - toread;
-@@ -1049,6 +1061,8 @@
- toread--;
- *bp++ = *pbuf->current++;
- pbuf->remaining++;
-+
-+ saw_newline = TRUE;
- break;
- }
-
-@@ -1056,6 +1070,25 @@
- pbuf->current = NULL;
- }
-
-+ if (!saw_newline) {
-+ /* If we haven't seen a newline, then assume the client is deliberately
-+ * sending a too-long command, trying to exploit buffer sizes and make
-+ * the server make some possibly bad assumptions.
-+ */
-+
-+ properly_terminated_prev_command = FALSE;
-+ errno = E2BIG;
-+ return NULL;
-+ }
-+
-+ if (!properly_terminated_prev_command) {
-+ properly_terminated_prev_command = TRUE;
-+ pr_log_pri(PR_LOG_NOTICE, "client sent too-long command, ignoring");
-+ errno = E2BIG;
-+ return NULL;
-+ }
-+
-+ properly_terminated_prev_command = TRUE;
- *bp = '\0';
- return buf;
- }
diff --git a/net-ftp/proftpd/proftpd-1.3.1-r1.ebuild b/net-ftp/proftpd/proftpd-1.3.1-r1.ebuild
deleted file mode 100644
index 479f625a6dab..000000000000
--- a/net-ftp/proftpd/proftpd-1.3.1-r1.ebuild
+++ /dev/null
@@ -1,256 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.1-r1.ebuild,v 1.1 2008/11/09 11:56:30 hoffie 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.7"
-DEFLATE_VER="0.3"
-SHAPER_VER="0.6.3"
-VROOT_VER="0.7.2"
-
-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 )
- 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}"
-
- epatch "${FILESDIR}/${P}-CVE-2008-4242.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 #218850
- epatch "${FILESDIR}/${P}-bug218850.patch"
-
- # Fix bug #208840
- epatch "${FILESDIR}/${P}-bug208840.patch"
-
- # Fix bug #221275
- # extract custom PR_ macros from aclocal.m4 to acinclude.m4
- # and delete the provided aclocal.m4 before running autoreconf
- elog "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
-
- 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"
- append-ldflags "-lresolv"
- if use ssl ; then
- CFLAGS="${CFLAGS} -DUSE_LDAP_TLS"
- fi
- fi
-
- if use opensslcrypt ; then
- myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl"
- append-ldflags "-lcrypto"
- CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
- fi
-
- if use nls ; then
- myconf="${myconf} --enable-nls"
- fi
-
- if use mysql && use postgres ; then
- ewarn "ProFTPD only supports either the MySQL or PostgreSQL modules."
- ewarn "Presently this ebuild defaults to mysql. If you would like to"
- ewarn "change the default behaviour, merge ProFTPD with:"
- ewarn "USE='-mysql postgres' emerge proftpd"
- epause 5
- fi
-
- if use mysql ; then
- modules="${modules}:mod_sql:mod_sql_mysql"
- myconf="${myconf} --with-includes=/usr/include/mysql"
- elif use postgres ; then
- modules="${modules}:mod_sql:mod_sql_postgres"
- myconf="${myconf} --with-includes=/usr/include/postgresql"
- 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
-
- 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 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
-}
diff --git a/net-ftp/proftpd/proftpd-1.3.1.ebuild b/net-ftp/proftpd/proftpd-1.3.1.ebuild
deleted file mode 100644
index b8faf7d85d01..000000000000
--- a/net-ftp/proftpd/proftpd-1.3.1.ebuild
+++ /dev/null
@@ -1,247 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.1.ebuild,v 1.3 2008/04/24 18:04:56 chtekk 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.7"
-DEFLATE_VER="0.3"
-SHAPER_VER="0.6.3"
-VROOT_VER="0.7.2"
-
-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 )
- 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 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 #218850
- epatch "${FILESDIR}/${P}-bug218850.patch"
-
- # Fix bug #208840
- epatch "${FILESDIR}/${P}-bug208840.patch"
-
- eautoreconf
-}
-
-src_compile() {
- addpredict /etc/krb5.conf
- local modules myconf
-
- 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"
- append-ldflags "-lresolv"
- if use ssl ; then
- CFLAGS="${CFLAGS} -DUSE_LDAP_TLS"
- fi
- fi
-
- if use opensslcrypt ; then
- myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl"
- append-ldflags "-lcrypto"
- CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
- fi
-
- if use nls ; then
- myconf="${myconf} --enable-nls"
- fi
-
- if use mysql && use postgres ; then
- ewarn "ProFTPD only supports either the MySQL or PostgreSQL modules."
- ewarn "Presently this ebuild defaults to mysql. If you would like to"
- ewarn "change the default behaviour, merge ProFTPD with:"
- ewarn "USE='-mysql postgres' emerge proftpd"
- epause 5
- fi
-
- if use mysql ; then
- modules="${modules}:mod_sql:mod_sql_mysql"
- myconf="${myconf} --with-includes=/usr/include/mysql"
- elif use postgres ; then
- modules="${modules}:mod_sql:mod_sql_postgres"
- myconf="${myconf} --with-includes=/usr/include/postgresql"
- 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
-
- 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 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
-}
diff --git a/net-ftp/proftpd/proftpd-1.3.1_rc2-r3.ebuild b/net-ftp/proftpd/proftpd-1.3.1_rc2-r3.ebuild
deleted file mode 100644
index 06afc70deda3..000000000000
--- a/net-ftp/proftpd/proftpd-1.3.1_rc2-r3.ebuild
+++ /dev/null
@@ -1,219 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.1_rc2-r3.ebuild,v 1.5 2008/07/16 16:00:28 chtekk Exp $
-
-inherit eutils flag-o-matic toolchain-funcs
-
-KEYWORDS="alpha amd64 hppa ~mips ppc ppc64 sparc x86"
-
-IUSE="acl authfile clamav hardened ifsession ipv6 ldap mysql ncurses nls noauthunix opensslcrypt pam postgres radius rewrite selinux shaper sitemisc softquota ssl tcpd vroot xinetd"
-
-SHAPER_VER="0.6.2"
-VROOT_VER="0.7.2"
-
-DESCRIPTION="An advanced and very configurable FTP server."
-SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2
- clamav? ( http://www.uglyboxindustries.com/mod_clamav_new.c http://www.uglyboxindustries.com/mod_clamav_new.html )
- 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.uglyboxindustries.com/open-source.php"
-
-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 bugs #164612, #167003, #175082, #178866 and #181712
- epatch "${FILESDIR}/${P}-bug164612.patch"
- epatch "${FILESDIR}/${P}-bug167003.patch"
- epatch "${FILESDIR}/${P}-bug175082.patch"
- epatch "${FILESDIR}/${P}-bug178866.patch"
- epatch "${FILESDIR}/${P}-bug181712.patch"
-
- # Fix stripping of files
- sed -e "s| @INSTALL_STRIP@||g" -i Make*
-
- if use shaper ; then
- unpack ${PN}-mod-shaper-${SHAPER_VER}.tar.gz
- cp -f mod_shaper/mod_shaper.c contrib/
- fi
-
- if use clamav ; then
- cp -f "${DISTDIR}/mod_clamav_new.c" contrib/mod_clamav.c
- cp -f "${DISTDIR}/mod_clamav_new.html" doc/mod_clamav.html
- 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
-}
-
-src_compile() {
- addpredict /etc/krb5.conf
- local modules myconf
-
- modules="mod_ratio:mod_readme"
- use acl && modules="${modules}:mod_facl"
- use clamav && modules="${modules}:mod_clamav"
- 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"
- append-ldflags "-lresolv"
- fi
-
- if use opensslcrypt ; then
- append-ldflags "-lcrypto"
- myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl"
- CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
- fi
-
- if use nls ; then
- myconf="${myconf} --enable-nls"
- fi
-
- if use mysql && use postgres ; then
- ewarn "ProFTPD only supports either the MySQL or PostgreSQL modules."
- ewarn "Presently this ebuild defaults to mysql. If you would like to"
- ewarn "change the default behaviour, merge ProFTPD with:"
- ewarn "USE='-mysql postgres' emerge proftpd"
- epause 5
- fi
-
- if use mysql ; then
- modules="${modules}:mod_sql:mod_sql_mysql"
- myconf="${myconf} --with-includes=/usr/include/mysql"
- elif use postgres ; then
- modules="${modules}:mod_sql:mod_sql_postgres"
- myconf="${myconf} --with-includes=/usr/include/postgresql"
- fi
-
- if use softquota ; then
- modules="${modules}:mod_quotatab"
- if use mysql || use postgres ; then
- modules="${modules}:mod_quotatab_sql"
- 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
-
- 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() {
- # Note rundir needs to be specified to avoid sandbox violation
- # on initial install. See Make.rules
- 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
-
- use shaper && dohtml mod_shaper/mod_shaper.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 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
-}
diff --git a/net-ftp/proftpd/proftpd-1.3.2.ebuild b/net-ftp/proftpd/proftpd-1.3.2.ebuild
deleted file mode 100644
index f64974d29529..000000000000
--- a/net-ftp/proftpd/proftpd-1.3.2.ebuild
+++ /dev/null
@@ -1,253 +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.ebuild,v 1.5 2009/02/25 20:45:05 maekke 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/_/}.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 mysql include when both backends are enabled
- epatch "${FILESDIR}"/${P}-mysql-include.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
- elog "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
-
- 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"
- append-ldflags "-lresolv"
- if use ssl ; then
- CFLAGS="${CFLAGS} -DUSE_LDAP_TLS"
- fi
- fi
-
- if use opensslcrypt ; then
- myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl"
- append-ldflags "-lcrypto"
- CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
- fi
-
- if use nls ; then
- myconf="${myconf} --enable-nls"
- fi
-
- if use mysql && use postgres ; then
- ewarn "ProFTPD only supports either the MySQL or PostgreSQL modules."
- ewarn "Presently this ebuild defaults to mysql. If you would like to"
- ewarn "change the default behaviour, merge ProFTPD with:"
- ewarn "USE='-mysql postgres' emerge proftpd"
- epause 5
- fi
-
- if use mysql ; then
- modules="${modules}:mod_sql:mod_sql_mysql"
- myconf="${myconf} --with-includes=/usr/include/mysql"
- elif use postgres ; then
- modules="${modules}:mod_sql:mod_sql_postgres"
- myconf="${myconf} --with-includes=/usr/include/postgresql"
- 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
-
- 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 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
-}
diff --git a/net-ftp/proftpd/proftpd-1.3.2_rc2-r1.ebuild b/net-ftp/proftpd/proftpd-1.3.2_rc2-r1.ebuild
deleted file mode 100644
index 4af930f328ef..000000000000
--- a/net-ftp/proftpd/proftpd-1.3.2_rc2-r1.ebuild
+++ /dev/null
@@ -1,241 +0,0 @@
-# Copyright 1999-2008 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_rc2-r1.ebuild,v 1.1 2008/11/07 18:28:40 hoffie 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.7"
-DEFLATE_VER="0.3"
-SHAPER_VER="0.6.3"
-VROOT_VER="0.7.2"
-
-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 )
- 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}"
-
- epatch "${FILESDIR}/${P}-CVE-2008-4242.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
-}
-
-src_compile() {
- addpredict /etc/krb5.conf
- local modules myconf
-
- 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"
- append-ldflags "-lresolv"
- if use ssl ; then
- CFLAGS="${CFLAGS} -DUSE_LDAP_TLS"
- fi
- fi
-
- if use opensslcrypt ; then
- myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl"
- append-ldflags "-lcrypto"
- CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
- fi
-
- if use nls ; then
- myconf="${myconf} --enable-nls"
- fi
-
- if use mysql && use postgres ; then
- ewarn "ProFTPD only supports either the MySQL or PostgreSQL modules."
- ewarn "Presently this ebuild defaults to mysql. If you would like to"
- ewarn "change the default behaviour, merge ProFTPD with:"
- ewarn "USE='-mysql postgres' emerge proftpd"
- epause 5
- fi
-
- if use mysql ; then
- modules="${modules}:mod_sql:mod_sql_mysql"
- myconf="${myconf} --with-includes=/usr/include/mysql"
- elif use postgres ; then
- modules="${modules}:mod_sql:mod_sql_postgres"
- myconf="${myconf} --with-includes=/usr/include/postgresql"
- 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
-
- 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 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
-}
diff --git a/net-ftp/proftpd/proftpd-1.3.2_rc2-r2.ebuild b/net-ftp/proftpd/proftpd-1.3.2_rc2-r2.ebuild
deleted file mode 100644
index 288f9308d978..000000000000
--- a/net-ftp/proftpd/proftpd-1.3.2_rc2-r2.ebuild
+++ /dev/null
@@ -1,250 +0,0 @@
-# Copyright 1999-2008 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_rc2-r2.ebuild,v 1.6 2008/11/15 10:35:19 maekke 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"
-SHAPER_VER="0.6.4"
-VROOT_VER="0.7.2"
-
-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 )
- 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}"
-
- epatch "${FILESDIR}/${P}-CVE-2008-4242.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
- elog "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
-
- 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"
- append-ldflags "-lresolv"
- if use ssl ; then
- CFLAGS="${CFLAGS} -DUSE_LDAP_TLS"
- fi
- fi
-
- if use opensslcrypt ; then
- myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl"
- append-ldflags "-lcrypto"
- CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
- fi
-
- if use nls ; then
- myconf="${myconf} --enable-nls"
- fi
-
- if use mysql && use postgres ; then
- ewarn "ProFTPD only supports either the MySQL or PostgreSQL modules."
- ewarn "Presently this ebuild defaults to mysql. If you would like to"
- ewarn "change the default behaviour, merge ProFTPD with:"
- ewarn "USE='-mysql postgres' emerge proftpd"
- epause 5
- fi
-
- if use mysql ; then
- modules="${modules}:mod_sql:mod_sql_mysql"
- myconf="${myconf} --with-includes=/usr/include/mysql"
- elif use postgres ; then
- modules="${modules}:mod_sql:mod_sql_postgres"
- myconf="${myconf} --with-includes=/usr/include/postgresql"
- 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
-
- 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 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
-}
diff --git a/net-ftp/proftpd/proftpd-1.3.2_rc2.ebuild b/net-ftp/proftpd/proftpd-1.3.2_rc2.ebuild
deleted file mode 100644
index f169544d8fe9..000000000000
--- a/net-ftp/proftpd/proftpd-1.3.2_rc2.ebuild
+++ /dev/null
@@ -1,214 +0,0 @@
-# Copyright 1999-2008 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_rc2.ebuild,v 1.6 2008/11/08 19:57:30 klausman Exp $
-
-inherit eutils flag-o-matic toolchain-funcs
-
-KEYWORDS="alpha amd64 hppa ~ia64 ~mips ppc ppc64 ~sparc x86"
-
-IUSE="acl authfile clamav hardened ifsession ipv6 ldap mysql ncurses nls noauthunix opensslcrypt pam postgres radius rewrite selinux shaper sitemisc softquota ssl tcpd vroot xinetd"
-
-SHAPER_VER="0.6.2"
-VROOT_VER="0.7.2"
-
-DESCRIPTION="An advanced and very configurable FTP server."
-SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2
- clamav? ( http://www.uglyboxindustries.com/mod_clamav_new.c http://www.uglyboxindustries.com/mod_clamav_new.html )
- 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.uglyboxindustries.com/open-source.php"
-
-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}"
-
- epatch "${FILESDIR}/${P}-CVE-2008-4242.patch"
-
- # Fix stripping of files
- sed -e "s| @INSTALL_STRIP@||g" -i Make*
-
- if use shaper ; then
- unpack ${PN}-mod-shaper-${SHAPER_VER}.tar.gz
- cp -f mod_shaper/mod_shaper.c contrib/
- fi
-
- if use clamav ; then
- cp -f "${DISTDIR}/mod_clamav_new.c" contrib/mod_clamav.c
- cp -f "${DISTDIR}/mod_clamav_new.html" doc/mod_clamav.html
- 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
-}
-
-src_compile() {
- addpredict /etc/krb5.conf
- local modules myconf
-
- modules="mod_ratio:mod_readme"
- use acl && modules="${modules}:mod_facl"
- use clamav && modules="${modules}:mod_clamav"
- 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"
- append-ldflags "-lresolv"
- fi
-
- if use opensslcrypt ; then
- append-ldflags "-lcrypto"
- myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl"
- CFLAGS="${CFLAGS} -DHAVE_OPENSSL"
- fi
-
- if use nls ; then
- myconf="${myconf} --enable-nls"
- fi
-
- if use mysql && use postgres ; then
- ewarn "ProFTPD only supports either the MySQL or PostgreSQL modules."
- ewarn "Presently this ebuild defaults to mysql. If you would like to"
- ewarn "change the default behaviour, merge ProFTPD with:"
- ewarn "USE='-mysql postgres' emerge proftpd"
- epause 5
- fi
-
- if use mysql ; then
- modules="${modules}:mod_sql:mod_sql_mysql"
- myconf="${myconf} --with-includes=/usr/include/mysql"
- elif use postgres ; then
- modules="${modules}:mod_sql:mod_sql_postgres"
- myconf="${myconf} --with-includes=/usr/include/postgresql"
- fi
-
- if use softquota ; then
- modules="${modules}:mod_quotatab"
- if use mysql || use postgres ; then
- modules="${modules}:mod_quotatab_sql"
- 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
-
- 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() {
- # Note rundir needs to be specified to avoid sandbox violation
- # on initial install. See Make.rules
- 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
-
- use shaper && dohtml mod_shaper/mod_shaper.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 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
-}
diff --git a/net-ftp/proftpd/proftpd-1.3.2-r1.ebuild b/net-ftp/proftpd/proftpd-1.3.2a.ebuild
index 8572cee9f542..c0c9695a8e98 100644
--- a/net-ftp/proftpd/proftpd-1.3.2-r1.ebuild
+++ b/net-ftp/proftpd/proftpd-1.3.2a.ebuild
@@ -1,16 +1,17 @@
# 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.6 2009/02/25 16:21:07 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.2a.ebuild,v 1.1 2009/09/07 16:46:32 voyageur Exp $
inherit eutils flag-o-matic toolchain-funcs autotools
-KEYWORDS="alpha ~amd64 ~hppa ~ia64 ~mips ppc ppc64 ~sparc ~x86"
+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"
+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"
+CLAMAV_VER="0.11rc"
+DEFLATE_VER="0.3.3"
+MODGSS_VER="1.3.2"
SHAPER_VER="0.6.5"
VROOT_VER="0.8.3"
@@ -18,20 +19,23 @@ 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 )
+ 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-${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://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-1.7 app-crypt/heimdal ) )
ldap? ( >=net-nds/openldap-1.2.11 )
mysql? ( virtual/mysql )
ncurses? ( sys-libs/ncurses )
@@ -59,12 +63,12 @@ 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 parallel build (committed upstream in 1.3.3rc1)
+ epatch "${FILESDIR}"/${PN}-1.3.2-parallel-build.patch
# Fix mysql include when both backends are enabled
- epatch "${FILESDIR}"/${P}-mysql-include.patch
+ epatch "${FILESDIR}"/${PN}-1.3.2-mysql-include.patch
+ # Do not use bundled libltdl when compiling mod_dso
+ epatch "${FILESDIR}"/${PN}-1.3.2-system-libltdl.patch
# Fix stripping of files
sed -e "s| @INSTALL_STRIP@||g" -i Make*
@@ -87,6 +91,10 @@ src_unpack() {
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/
@@ -113,7 +121,7 @@ src_compile() {
addpredict /etc/krb5.conf
local modules myconf mylibs
- modules="mod_ratio:mod_readme"
+ 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"
@@ -186,6 +194,23 @@ src_compile() {
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 \