diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-01-21 18:54:47 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-01-21 18:54:47 +0000 |
commit | 72d8ba47bfb252a16be4b59543e4f8da05b46c96 (patch) | |
tree | 3f266d14ff3eaaae3729415aa881ca4d5bba1ff9 | |
parent | renamed to netkit-ftpd (diff) | |
download | gentoo-2-72d8ba47bfb252a16be4b59543e4f8da05b46c96.tar.gz gentoo-2-72d8ba47bfb252a16be4b59543e4f8da05b46c96.tar.bz2 gentoo-2-72d8ba47bfb252a16be4b59543e4f8da05b46c96.zip |
rename from "ftpd" and update for security #155317
(Portage version: 2.1.2-r1)
-rw-r--r-- | net-ftp/netkit-ftpd/ChangeLog | 130 | ||||
-rw-r--r-- | net-ftp/netkit-ftpd/Manifest | 52 | ||||
-rw-r--r-- | net-ftp/netkit-ftpd/files/digest-netkit-ftpd-0.17-r4 | 6 | ||||
-rw-r--r-- | net-ftp/netkit-ftpd/files/digest-netkit-ftpd-0.17-r5 | 6 | ||||
-rw-r--r-- | net-ftp/netkit-ftpd/files/ftp.xinetd | 13 | ||||
-rw-r--r-- | net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-build.patch | 43 | ||||
-rw-r--r-- | net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup-ssl.patch | 10 | ||||
-rw-r--r-- | net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup.patch | 10 | ||||
-rw-r--r-- | net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-gcc41.patch | 32 | ||||
-rw-r--r-- | net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-setguid.patch | 66 | ||||
-rw-r--r-- | net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-shadowfix.patch | 28 | ||||
-rw-r--r-- | net-ftp/netkit-ftpd/metadata.xml | 5 | ||||
-rw-r--r-- | net-ftp/netkit-ftpd/netkit-ftpd-0.17-r4.ebuild | 57 | ||||
-rw-r--r-- | net-ftp/netkit-ftpd/netkit-ftpd-0.17-r5.ebuild | 58 |
14 files changed, 516 insertions, 0 deletions
diff --git a/net-ftp/netkit-ftpd/ChangeLog b/net-ftp/netkit-ftpd/ChangeLog new file mode 100644 index 000000000000..0207ab2e8479 --- /dev/null +++ b/net-ftp/netkit-ftpd/ChangeLog @@ -0,0 +1,130 @@ +# ChangeLog for net-ftp/netkit-ftpd +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/netkit-ftpd/ChangeLog,v 1.1 2007/01/21 18:54:47 vapier Exp $ + +*ftpd-0.17-r5 (21 Jan 2007) + + 21 Jan 2007; Mike Frysinger <vapier@gentoo.org> +ftpd-0.17-r5.ebuild, + +netkit-ftpd-0.17-build.patch, +netkit-ftpd-0.17-cleanup.patch, + +netkit-ftpd-0.17-cleanup-ssl.patch, netkit-ftpd-0.17-setguid.patch: + Version bump to fix security issues #155317. + + 08 Jan 2007; Danny van Dyk <kugelfang@gentoo.org> -ftpd-0.17-r3.ebuild: + QA: Removed unused versions. + + 17 Oct 2006; Gustavo Zacarias <gustavoz@gentoo.org> ftpd-0.17-r4.ebuild: + sparc stable for real + + 15 Oct 2006; Jason Wever <weeve@gentoo.org> ChangeLog: + Stable on SPARC wrt security bug #150292. + + 14 Oct 2006; Aron Griffis <agriffis@gentoo.org> ftpd-0.17-r4.ebuild: + Mark 0.17-r4 ~ia64 + + 14 Oct 2006; Thomas Cort <tcort@gentoo.org> ftpd-0.17-r4.ebuild: + Stable on alpha and amd64 wrt security Bug #150292. + + 12 Oct 2006; Paul Varner <fuzzyray@gentoo.org> ftpd-0.17-r4.ebuild: + Stable on x86 - Bug #150292 + + 11 Oct 2006; Tobias Scherbaum <dertobi123@gentoo.org> ftpd-0.17-r4.ebuild: + ppc stable, bug #150292 + +*ftpd-0.17-r4 (11 Oct 2006) + + 11 Oct 2006; Chris White <chriswhite@gentoo.org> + +files/ftpd-0.17-setguid.patch, +ftpd-0.17-r4.ebuild: + Security bump for bug #384454. + + 05 Aug 2006; Chris White <chriswhite@gentoo.org> -ftpd-0.17.ebuild, + -ftpd-0.17-r1.ebuild, -ftpd-0.17-r2.ebuild: + Security punts for bug #140498. + + 20 Jun 2006; Stefan Schweizer <genstef@gentoo.org> + +files/ftpd-0.17-gcc41.patch, +metadata.xml, ftpd-0.17-r3.ebuild: + Gcc41 patch thanks to Piotr Jaroszynski <peper@aster.pl> in bug 135713 + thanks to Frank T. Lofaro Jr. <ftlofaro@yahoo.com>, add maintainer-needed + metadata.xml + + 28 Jan 2006; Simon Stelling <blubb@gentoo.org> ftpd-0.17.ebuild, + ftpd-0.17-r1.ebuild, ftpd-0.17-r2.ebuild: + move binary files to mirrors + + 11 Nov 2005; Simon Stelling <blubb@gentoo.org> ftpd-0.17-r3.ebuild: + stable on amd64 wrt bug 111573 + + 10 Nov 2005; Jose Luis Rivero <yoswink@gentoo.org> ftpd-0.17-r3.ebuild: + Stable on alpha wrt security bug #111573 + + 10 Nov 2005; Jason Wever <weeve@gentoo.org> ftpd-0.17-r3.ebuild: + Stable on SPARC wrt bug #111573. + + 10 Nov 2005; Mark Loeser <halcy0n@gentoo.org> ftpd-0.17-r3.ebuild: + Stable on x86; bug #111573 + +*ftpd-0.17-r3 (09 Nov 2005) + + 09 Nov 2005; Daniel Black <dragonheart@gentoo.org> + +ftpd-0.17-r3.ebuild: + bumped with a better patch from solar + +*ftpd-0.17-r2 (06 Nov 2005) + + 06 Nov 2005; Daniel Black <dragonheart@gentoo.org> + +files/ftpd-0.17+ssl-0.3-overflowpatch.diff, +ftpd-0.17-r2.ebuild: + fix remote hole in linux-ftpd-ssl - security bug #111573 - patch thanks to + James Longstreet, bug thanks to Wernfried Haas + + 26 Jul 2005; David Holm <dholm@gentoo.org> ftpd-0.17-r1.ebuild: + Added to ~ppc. + + 19 Oct 2004; Dylan Carlson <absinthe@gentoo.org> ftpd-0.17-r1.ebuild: + Stable on amd64. + + 14 Aug 2004; Sven Wegener <swegener@gentoo.org> files/ftp.xinetd: + Fixed CVS Header. + + 19 Jun 2004; Jason Wever <weeve@gentoo.org> ftpd-0.17-r1.ebuild: + Stable on sparc. + + 09 Jun 2004; Aron Griffis <agriffis@gentoo.org> ftpd-0.17-r1.ebuild, + ftpd-0.17.ebuild: + Fix use invocation + + 13 Aug 2003; Aron Griffis <agriffis@gentoo.org> ftpd-0.17-r1.ebuild: + Mark stable on alpha for LiveCD + + 08 Jun 2003; Seemant Kulleen <seemant@gentoo.org> ftpd-0.17-r1.ebuild: + shadow fix patch is not ssl specific, moved out of ssl USE check. Thanks again + to: Frank Straetz + +*ftpd-0.17-r1 (07 Jun 2003) + + 07 Jun 2003; Seemant Kulleen <seemant@gentoo.org> ftpd-0.17-r1.ebuild, + files/ftpd-0.17-shadowfix.patch: + fix for shadow passwords, to close bug #12353 opened by Adam Bolte + <adam@vivid.net.au>. Fix provided by Frank Straetz <Frank@KTHXBYE.de> + +*ftpd-0.17 (25 Nov 2002) + + 29 Apr 2003; Jason Wever <weeve@gentoo.org> ftpd-0.17.ebuild: + Added ~sparc to keywords. + + 19 Apr 2003; Martin Holzer <mholzer@gentoo.org> ftpd-0.17.ebuild: + Changed to virtual/inetd depend. + + 09 Feb 2003; Seemant Kulleen <seemant@gentoo.org> ftpd-0.17.ebuild : + + Sed expression delimiter from / to :, closing bug #15006 by Blu3 + <david+gentoo.org@blue-labs.org> + + 15 Jan 2003; Nick Hadaway <raker@gentoo.org> ftpd-0.17.ebuild : + Fixed a typo in postinst and added xinetd as an RDEPEND and now + installing an /etc/xinetd.d/ftp. Also changed to epatch. + + 05 Dec 2002; Nick Hadaway <raker@gentoo.org> ftpd-0.17.ebuild : + Marked stable. + + 25 Nov 2002; Nick Hadaway <raker@gentoo.org> ftpd-0.17.ebuild, + files/digest-ftpd-0.17.ebuild, files/ssl.diff.gz : + New ebuild. Your basic netkit linux-ftpd patched for ssl support. diff --git a/net-ftp/netkit-ftpd/Manifest b/net-ftp/netkit-ftpd/Manifest new file mode 100644 index 000000000000..7fa4f14d35da --- /dev/null +++ b/net-ftp/netkit-ftpd/Manifest @@ -0,0 +1,52 @@ +AUX ftp.xinetd 313 RMD160 ff141a45ea3b93ccb56b595ce5a888fd94f29794 SHA1 9d33ac90722d87fc21d185078b4932ace610c7b1 SHA256 ee08270697e8880aa190de3453fb715a545febdf07071e0cf8d342f781748562 +MD5 c77f5bcf2f56d61c7e8845d94df88164 files/ftp.xinetd 313 +RMD160 ff141a45ea3b93ccb56b595ce5a888fd94f29794 files/ftp.xinetd 313 +SHA256 ee08270697e8880aa190de3453fb715a545febdf07071e0cf8d342f781748562 files/ftp.xinetd 313 +AUX netkit-ftpd-0.17-build.patch 862 RMD160 601b57beddbc66386173721c4777084121c3f761 SHA1 49b3d2ebf5ee837a72c02757e7a08d1b9fd3490f SHA256 2dabb6d6df74c15a1f97ea6fa90ed9ed7f437c5ebeb26f6ba4183362119b769c +MD5 4c696e29949aff21a55e00d785020953 files/netkit-ftpd-0.17-build.patch 862 +RMD160 601b57beddbc66386173721c4777084121c3f761 files/netkit-ftpd-0.17-build.patch 862 +SHA256 2dabb6d6df74c15a1f97ea6fa90ed9ed7f437c5ebeb26f6ba4183362119b769c files/netkit-ftpd-0.17-build.patch 862 +AUX netkit-ftpd-0.17-cleanup-ssl.patch 279 RMD160 3bfb7342b300749b2754828ad994043c45dce3f9 SHA1 d31f8108a5e0c311ad85b95dea4571e5782e032e SHA256 110d1de5c37f29de6e9e753114d97c03742793481f1f377fd91a7b4dc5483076 +MD5 acc667b819450ea8215d44e1cd978a37 files/netkit-ftpd-0.17-cleanup-ssl.patch 279 +RMD160 3bfb7342b300749b2754828ad994043c45dce3f9 files/netkit-ftpd-0.17-cleanup-ssl.patch 279 +SHA256 110d1de5c37f29de6e9e753114d97c03742793481f1f377fd91a7b4dc5483076 files/netkit-ftpd-0.17-cleanup-ssl.patch 279 +AUX netkit-ftpd-0.17-cleanup.patch 186 RMD160 4e9690b7d03cd49783bc8f2f1ca0c021eddce117 SHA1 476bbf54d6bb1a1abb373813a745dea10ada38ba SHA256 5eb8134a8be569f1fc448bb781193f1820bddd36e735b1d164de2dfd4071a12f +MD5 c4967c150312787be69aaea3127feb88 files/netkit-ftpd-0.17-cleanup.patch 186 +RMD160 4e9690b7d03cd49783bc8f2f1ca0c021eddce117 files/netkit-ftpd-0.17-cleanup.patch 186 +SHA256 5eb8134a8be569f1fc448bb781193f1820bddd36e735b1d164de2dfd4071a12f files/netkit-ftpd-0.17-cleanup.patch 186 +AUX netkit-ftpd-0.17-gcc41.patch 770 RMD160 d9c69b0b8d1ded60b399ec36e0f975f8e14e57af SHA1 87db2260da0d0ae00d558de586853794b27c168e SHA256 d5ebda1221b9dbce3ba7ddccae846da65a0c7c5e544a0a8625d93396a3a1ea50 +MD5 7e94d8f9f93abba34bff5b358dead289 files/netkit-ftpd-0.17-gcc41.patch 770 +RMD160 d9c69b0b8d1ded60b399ec36e0f975f8e14e57af files/netkit-ftpd-0.17-gcc41.patch 770 +SHA256 d5ebda1221b9dbce3ba7ddccae846da65a0c7c5e544a0a8625d93396a3a1ea50 files/netkit-ftpd-0.17-gcc41.patch 770 +AUX netkit-ftpd-0.17-setguid.patch 1809 RMD160 971cb07d1060d6bc7c721d506bbabd3a2daa7e4d SHA1 90f0a2ca39b3cd24f0b990d280c16fa29f4d67ca SHA256 7cf4924713e629bce9f0e7c483332046b336480da16156d6db5fa094b6d38424 +MD5 118d4e8406cc2e3d0df3e865b9e10adf files/netkit-ftpd-0.17-setguid.patch 1809 +RMD160 971cb07d1060d6bc7c721d506bbabd3a2daa7e4d files/netkit-ftpd-0.17-setguid.patch 1809 +SHA256 7cf4924713e629bce9f0e7c483332046b336480da16156d6db5fa094b6d38424 files/netkit-ftpd-0.17-setguid.patch 1809 +AUX netkit-ftpd-0.17-shadowfix.patch 587 RMD160 118077a510b651086547693e0da7bf140573bd21 SHA1 9fd30dc953c996254205beae44b43aa29dccc27e SHA256 93c43a7033f24c3232438d81c5442e75cd4d38a2a6a9cf90ed73dc962d1203b6 +MD5 ada9181d7bbf4c0cd37be66a7fe6cae3 files/netkit-ftpd-0.17-shadowfix.patch 587 +RMD160 118077a510b651086547693e0da7bf140573bd21 files/netkit-ftpd-0.17-shadowfix.patch 587 +SHA256 93c43a7033f24c3232438d81c5442e75cd4d38a2a6a9cf90ed73dc962d1203b6 files/netkit-ftpd-0.17-shadowfix.patch 587 +DIST linux-ftpd-0.17-ssl.patch 36459 RMD160 5a0d7301f69b4c1714f36419f98134f9aa0ce874 SHA1 a684c075dbc7603b40704713350c1bb95d98a4c5 SHA256 0082ee6a71fdd83f61e63166f7bbba97c204cdc67f9e1bf10f2df31590fba780 +DIST linux-ftpd-0.17.tar.gz 46763 RMD160 869e410d8f063c764c04f1d3b41b625a9d679d22 SHA1 b348e2c9561d746a42b7a24ba8730a3adc203dfb SHA256 65a0b249e38bf3c3a16dbd4d3edd2657683ca8f47b307e92007f378b21d2fa65 +EBUILD netkit-ftpd-0.17-r4.ebuild 1468 RMD160 bd8079090ec33f89f5941319aab4f0fe35045fd6 SHA1 7af9ade1c6ee260fb0a02925c9d10ef7b403f2fa SHA256 fedc1c32bacab8c951b2ea396e2f7911d70cc5c8a249b99cd21af35b46b895ec +MD5 6087a2cee6aaea1697a3be3822f2ba83 netkit-ftpd-0.17-r4.ebuild 1468 +RMD160 bd8079090ec33f89f5941319aab4f0fe35045fd6 netkit-ftpd-0.17-r4.ebuild 1468 +SHA256 fedc1c32bacab8c951b2ea396e2f7911d70cc5c8a249b99cd21af35b46b895ec netkit-ftpd-0.17-r4.ebuild 1468 +EBUILD netkit-ftpd-0.17-r5.ebuild 1571 RMD160 f7cd89eed5678f295d25f9c9f8a140221a6b7cf9 SHA1 5592f65f298b0521901d1542944ed17e867a31fd SHA256 16291205b355f5b68db8b9e6e660e6191fbbeb7db9f7a8ee25d125b06b085f2f +MD5 be35a61f5306d99512ca9e02df5b8e6b netkit-ftpd-0.17-r5.ebuild 1571 +RMD160 f7cd89eed5678f295d25f9c9f8a140221a6b7cf9 netkit-ftpd-0.17-r5.ebuild 1571 +SHA256 16291205b355f5b68db8b9e6e660e6191fbbeb7db9f7a8ee25d125b06b085f2f netkit-ftpd-0.17-r5.ebuild 1571 +MISC ChangeLog 4708 RMD160 59ca922e1b6f765502d496768c52e3809b13a0ab SHA1 1c002fedb5addebb352f494dc71a82a379e4b4b2 SHA256 57a5d78785607c71eede5a8b37e6d3f3482e221d61a1904d87f0baaa5ad2c833 +MD5 7e49ed03951f8392a55dae9028bb6708 ChangeLog 4708 +RMD160 59ca922e1b6f765502d496768c52e3809b13a0ab ChangeLog 4708 +SHA256 57a5d78785607c71eede5a8b37e6d3f3482e221d61a1904d87f0baaa5ad2c833 ChangeLog 4708 +MISC metadata.xml 165 RMD160 1c3eeab5c3fc7c211e19ce70d30db054b3448591 SHA1 e5bc9fac08f72762fdc827e1b520ed403667be37 SHA256 0879c713d0d1ea2f39c1088bf4717b1328b4ab06d6f5dd6968c5559750422ae6 +MD5 2fde084ac8d62be622a13e156d25f684 metadata.xml 165 +RMD160 1c3eeab5c3fc7c211e19ce70d30db054b3448591 metadata.xml 165 +SHA256 0879c713d0d1ea2f39c1088bf4717b1328b4ab06d6f5dd6968c5559750422ae6 metadata.xml 165 +MD5 a5158bf958d1411f9daefa3a43b7f12e files/digest-netkit-ftpd-0.17-r4 497 +RMD160 db856b5782788330427703698f410c205225d8e2 files/digest-netkit-ftpd-0.17-r4 497 +SHA256 193c18b7c4e2467ed5453bee8fc5e2b66ab314c429cc4a2daf79fbe652de26ba files/digest-netkit-ftpd-0.17-r4 497 +MD5 a5158bf958d1411f9daefa3a43b7f12e files/digest-netkit-ftpd-0.17-r5 497 +RMD160 db856b5782788330427703698f410c205225d8e2 files/digest-netkit-ftpd-0.17-r5 497 +SHA256 193c18b7c4e2467ed5453bee8fc5e2b66ab314c429cc4a2daf79fbe652de26ba files/digest-netkit-ftpd-0.17-r5 497 diff --git a/net-ftp/netkit-ftpd/files/digest-netkit-ftpd-0.17-r4 b/net-ftp/netkit-ftpd/files/digest-netkit-ftpd-0.17-r4 new file mode 100644 index 000000000000..9c0de1ba222e --- /dev/null +++ b/net-ftp/netkit-ftpd/files/digest-netkit-ftpd-0.17-r4 @@ -0,0 +1,6 @@ +MD5 0b9185d5144904798b721354ea9ff156 linux-ftpd-0.17-ssl.patch 36459 +RMD160 5a0d7301f69b4c1714f36419f98134f9aa0ce874 linux-ftpd-0.17-ssl.patch 36459 +SHA256 0082ee6a71fdd83f61e63166f7bbba97c204cdc67f9e1bf10f2df31590fba780 linux-ftpd-0.17-ssl.patch 36459 +MD5 f5f491564812db5d8783daa538c49186 linux-ftpd-0.17.tar.gz 46763 +RMD160 869e410d8f063c764c04f1d3b41b625a9d679d22 linux-ftpd-0.17.tar.gz 46763 +SHA256 65a0b249e38bf3c3a16dbd4d3edd2657683ca8f47b307e92007f378b21d2fa65 linux-ftpd-0.17.tar.gz 46763 diff --git a/net-ftp/netkit-ftpd/files/digest-netkit-ftpd-0.17-r5 b/net-ftp/netkit-ftpd/files/digest-netkit-ftpd-0.17-r5 new file mode 100644 index 000000000000..9c0de1ba222e --- /dev/null +++ b/net-ftp/netkit-ftpd/files/digest-netkit-ftpd-0.17-r5 @@ -0,0 +1,6 @@ +MD5 0b9185d5144904798b721354ea9ff156 linux-ftpd-0.17-ssl.patch 36459 +RMD160 5a0d7301f69b4c1714f36419f98134f9aa0ce874 linux-ftpd-0.17-ssl.patch 36459 +SHA256 0082ee6a71fdd83f61e63166f7bbba97c204cdc67f9e1bf10f2df31590fba780 linux-ftpd-0.17-ssl.patch 36459 +MD5 f5f491564812db5d8783daa538c49186 linux-ftpd-0.17.tar.gz 46763 +RMD160 869e410d8f063c764c04f1d3b41b625a9d679d22 linux-ftpd-0.17.tar.gz 46763 +SHA256 65a0b249e38bf3c3a16dbd4d3edd2657683ca8f47b307e92007f378b21d2fa65 linux-ftpd-0.17.tar.gz 46763 diff --git a/net-ftp/netkit-ftpd/files/ftp.xinetd b/net-ftp/netkit-ftpd/files/ftp.xinetd new file mode 100644 index 000000000000..2081ba9be2be --- /dev/null +++ b/net-ftp/netkit-ftpd/files/ftp.xinetd @@ -0,0 +1,13 @@ +# default: off +# $Header: /var/cvsroot/gentoo-x86/net-ftp/netkit-ftpd/files/ftp.xinetd,v 1.1 2007/01/21 18:54:47 vapier Exp $ +# description: The netkit ftp daemon with optional SSL support. + +service ftp +{ + socket_type = stream + protocol = tcp + wait = no + user = root + server = /usr/bin/ftpd + disable = yes +} diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-build.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-build.patch new file mode 100644 index 000000000000..6df58378c93f --- /dev/null +++ b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-build.patch @@ -0,0 +1,43 @@ +--- configure ++++ configure +@@ -114,40 +114,6 @@ + echo 'no' + fi + +-if [ x$DEBUG = x ]; then +- echo -n "Checking if $CC accepts -O2... " +- if ( +- $CC -O2 __conftest.c -o __conftest +- ) >/dev/null 2>&1; then +- echo 'yes' +- CFLAGS="$CFLAGS -O2" +- else +- echo 'no' +- echo -n "Checking if $CC accepts -O... " +- if ( +- $CC -O __conftest.c -o __conftest +- ) >/dev/null 2>&1; then +- echo 'yes' +- CFLAGS="$CFLAGS -O" +- else +- echo 'no' +- fi +- fi +- +-else +- echo -n "Checking if $CC accepts -g... " +- if ( +- $CC -g __conftest.c -o __conftest +- ) >/dev/null 2>&1; then +- echo 'yes' +- CFLAGS="$CFLAGS -g" +- else +- echo 'no' +- fi +- +-fi +- +-LDFLAGS= + LIBS= + + rm -f __conftest* diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup-ssl.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup-ssl.patch new file mode 100644 index 000000000000..e228eaceda5f --- /dev/null +++ b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup-ssl.patch @@ -0,0 +1,10 @@ +--- ftpd/ftpcmd.y ++++ ftpd/ftpcmd.y +@@ -109,6 +109,7 @@ + typedef struct ssl_st SSL; + int SSL_write(SSL *ssl,const char *buf,int num); + extern int do_ssl_start(void); ++int ssl_getc(SSL *ssl_con); + extern int ssl_secure_flag; + extern int ssl_active_flag; + extern SSL *ssl_con; diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup.patch new file mode 100644 index 000000000000..73289adfba05 --- /dev/null +++ b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup.patch @@ -0,0 +1,10 @@ +--- ftpd/logwtmp.c ++++ ftpd/logwtmp.c +@@ -43,6 +43,7 @@ + #include <sys/types.h> + #include <sys/time.h> + #include <sys/stat.h> ++#include <time.h> + + #include <fcntl.h> + #include <utmp.h> diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-gcc41.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-gcc41.patch new file mode 100644 index 000000000000..5f516ce5d356 --- /dev/null +++ b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-gcc41.patch @@ -0,0 +1,32 @@ +--- linux-ftpd-0.17/ftpd/ftpcmd.y ++++ linux-ftpd-0.17/ftpd/ftpcmd.y +@@ -125,7 +125,14 @@ + char cbuf[512]; + char *fromname; + +-struct tab; ++struct tab { ++ const char *name; ++ short token; ++ short state; ++ short implemented; /* 1 if command is implemented */ ++ const char *help; ++}; ++ + static int yylex __P((void)); + static void sizecmd __P((char *)); + static void help __P((struct tab *, char *)); +@@ -891,13 +898,6 @@ + #define SITECMD 7 /* SITE command */ + #define NSTR 8 /* Number followed by a string */ + +-struct tab { +- const char *name; +- short token; +- short state; +- short implemented; /* 1 if command is implemented */ +- const char *help; +-}; + + struct tab cmdtab[] = { /* In order defined in RFC 765 */ + { "AUTH", AUTH, STR1, 1, "<sp> auth_type" }, diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-setguid.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-setguid.patch new file mode 100644 index 000000000000..f5d0cf75fcfd --- /dev/null +++ b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-setguid.patch @@ -0,0 +1,66 @@ +--- linux-ftpd-0.17/ftpd/popen.c ++++ linux-ftpd-0.17/ftpd/popen.c +@@ -169,8 +169,13 @@ + * XXX: this doesn't seem right... and shouldn't + * we initgroups, or at least setgroups(0,0)? + */ +- setgid(getegid()); +- setuid(i); ++ ++/* ++ * PSz 25 Aug 06 Must check the return status of these setgid/setuid calls, ++ * see http://www.bress.net/blog/archives/34-setuid-madness.html ++ */ ++ if ( setgid(getegid()) != 0 ) _exit(1); ++ if ( setuid(i) != 0 ) _exit(1); + + #ifndef __linux__ + /* +--- linux-ftpd-0.17/ftpd/ftpd.c ++++ linux-ftpd-0.17/ftpd/ftpd.c +@@ -1159,6 +1159,13 @@ + } + strcpy(pw->pw_dir, "/"); + setenv("HOME", "/", 1); ++ } ++ /* PSz 25 Aug 06 chdir for real users done after setting UID */ ++ if (seteuid((uid_t)pw->pw_uid) < 0) { ++ reply(550, "Can't set uid."); ++ goto bad; ++ } ++ if (guest || dochroot) { /* do nothing, handled above */ + } else if (chdir(pw->pw_dir) < 0) { + if (chdir("/") < 0) { + reply(530, "User %s: can't change directory to %s.", +@@ -1167,10 +1174,7 @@ + } else + lreply(230, "No directory! Logging in with home=/"); + } +- if (seteuid((uid_t)pw->pw_uid) < 0) { +- reply(550, "Can't set uid."); +- goto bad; +- } ++ + sigfillset(&allsigs); + sigprocmask(SIG_UNBLOCK,&allsigs,NULL); + +@@ -1408,7 +1412,8 @@ + goto bad; + sleep(tries); + } +- (void) seteuid((uid_t)pw->pw_uid); ++/* PSz 25 Aug 06 Check return status */ ++ if (seteuid((uid_t)pw->pw_uid) != 0) _exit(1); + sigfillset(&allsigs); + sigprocmask (SIG_UNBLOCK, &allsigs, NULL); + +@@ -1440,7 +1445,8 @@ + bad: + /* Return the real value of errno (close may change it) */ + t = errno; +- (void) seteuid((uid_t)pw->pw_uid); ++/* PSz 25 Aug 06 Check return status */ ++ if (seteuid((uid_t)pw->pw_uid) != 0) _exit(1); + sigfillset (&allsigs); + sigprocmask (SIG_UNBLOCK, &allsigs, NULL); + (void) close(s); diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-shadowfix.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-shadowfix.patch new file mode 100644 index 000000000000..79a241ff9c51 --- /dev/null +++ b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-shadowfix.patch @@ -0,0 +1,28 @@ +--- linux-ftpd-0.17/ftpd/Makefile ++++ linux-ftpd-0.17-patched/ftpd/Makefile +@@ -19,7 +19,11 @@ + all: ftpd + + %.o: %.c ++ ifdef USE_SHADOW ++ $(CC) $(CFLAGS) -DUSE_SHADOW -DHASSETPROCTITLE $< -c ++ else + $(CC) $(CFLAGS) -DHASSETPROCTITLE $< -c ++ endif + + ftpcmd.c: %.c: %.y + $(YACC) $< +--- linux-ftpd-0.17/support/Makefile ++++ linux-ftpd-0.17-patched/support/Makefile +@@ -5,7 +5,11 @@ + all: libsupport.a + + %.o: %.c ++ ifdef USE_SHADOW ++ $(CC) $(CFLAGS) -DUSE_SHADOW -DHASSETPROCTITLE $< -c ++ else + $(CC) $(CFLAGS) -DHASSETPROCTITLE $< -c ++ endif + + libsupport.a: $(OBJS) + ar -cruv $@ $^ diff --git a/net-ftp/netkit-ftpd/metadata.xml b/net-ftp/netkit-ftpd/metadata.xml new file mode 100644 index 000000000000..0384a4ab03a7 --- /dev/null +++ b/net-ftp/netkit-ftpd/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +</pkgmetadata> diff --git a/net-ftp/netkit-ftpd/netkit-ftpd-0.17-r4.ebuild b/net-ftp/netkit-ftpd/netkit-ftpd-0.17-r4.ebuild new file mode 100644 index 000000000000..85f2e9666d2c --- /dev/null +++ b/net-ftp/netkit-ftpd/netkit-ftpd-0.17-r4.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/netkit-ftpd/netkit-ftpd-0.17-r4.ebuild,v 1.1 2007/01/21 18:54:47 vapier Exp $ + +inherit eutils ssl-cert + +MY_P="linux-ftpd-${PV}" +DESCRIPTION="The netkit FTP server with optional SSL support" +HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html" +SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${MY_P}.tar.gz + mirror://gentoo/${MY_P}-ssl.patch" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="alpha amd64 ~ia64 ppc sparc x86" +IUSE="ssl" + +DEPEND="ssl? ( dev-libs/openssl )" +RDEPEND="${DEPEND} + virtual/inetd" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + use ssl && epatch "${DISTDIR}"/${MY_P}-ssl.patch + epatch "${FILESDIR}"/${P}-shadowfix.patch + epatch "${FILESDIR}"/${P}-gcc41.patch + epatch "${FILESDIR}"/${P}-setguid.patch +} + +src_compile() { + ./configure --prefix=/usr || die "configure failed" + sed -i -e "s:-pipe -O2:${CFLAGS}:" MCONFIG + emake || die "parallel make failed" +} + +src_install() { + dobin ftpd/ftpd || die + doman ftpd/ftpd.8 + dodoc README ChangeLog + insinto /etc/xinetd.d + newins "${FILESDIR}"/ftp.xinetd ftp + if use ssl ; then + insinto /etc/ssl/certs + docert ftpd + fi +} + +pkg_postinst() { + if use ssl ; then + einfo "In order to start the server with SSL support" + einfo "You need a certificate /etc/ssl/certs/ftpd.pem." + einfo "A temporary certificiate has been created." + fi +} diff --git a/net-ftp/netkit-ftpd/netkit-ftpd-0.17-r5.ebuild b/net-ftp/netkit-ftpd/netkit-ftpd-0.17-r5.ebuild new file mode 100644 index 000000000000..821a517b42a5 --- /dev/null +++ b/net-ftp/netkit-ftpd/netkit-ftpd-0.17-r5.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/netkit-ftpd/netkit-ftpd-0.17-r5.ebuild,v 1.1 2007/01/21 18:54:47 vapier Exp $ + +inherit eutils ssl-cert + +MY_P="linux-ftpd-${PV}" +DESCRIPTION="The netkit FTP server with optional SSL support" +HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html" +SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${MY_P}.tar.gz + mirror://gentoo/${MY_P}-ssl.patch" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~s390 ~sh ~sparc ~x86" +IUSE="ssl" + +DEPEND="ssl? ( dev-libs/openssl )" +RDEPEND="${DEPEND} + virtual/inetd" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${MY_P}.tar.gz + cd "${S}" + use ssl && epatch "${DISTDIR}"/${MY_P}-ssl.patch "${FILESDIR}"/${P}-cleanup-ssl.patch + epatch "${FILESDIR}"/${P}-cleanup.patch + epatch "${FILESDIR}"/${P}-build.patch + epatch "${FILESDIR}"/${P}-shadowfix.patch + epatch "${FILESDIR}"/${P}-gcc41.patch + epatch "${FILESDIR}"/${P}-setguid.patch +} + +src_compile() { + ./configure --prefix=/usr || die "configure failed" + emake || die "parallel make failed" +} + +src_install() { + dobin ftpd/ftpd || die + doman ftpd/ftpd.8 + dodoc README ChangeLog + insinto /etc/xinetd.d + newins "${FILESDIR}"/ftp.xinetd ftp + if use ssl ; then + insinto /etc/ssl/certs + docert ftpd + fi +} + +pkg_postinst() { + if use ssl ; then + einfo "In order to start the server with SSL support" + einfo "You need a certificate /etc/ssl/certs/ftpd.pem." + einfo "A temporary certificiate has been created." + fi +} |