diff options
author | Daniel Black <dragonheart@gentoo.org> | 2006-07-09 11:19:00 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2006-07-09 11:19:00 +0000 |
commit | 5ff085c2af1fa357301d8598222041e0262c999a (patch) | |
tree | 458d1c213ba73d5e0b6203832ff422487f3db2fd /net-misc/l7-filter | |
parent | - ppc32/ppc64 fail to compile busybox when using -pie so auto enable nopie (diff) | |
download | gentoo-2-5ff085c2af1fa357301d8598222041e0262c999a.tar.gz gentoo-2-5ff085c2af1fa357301d8598222041e0262c999a.tar.bz2 gentoo-2-5ff085c2af1fa357301d8598222041e0262c999a.zip |
remove old versions. Remodeled the uninstall portion of l7-filter to not break so easily (bug #110249)
(Portage version: 2.1.1_pre2-r6)
(Signed Manifest commit)
Diffstat (limited to 'net-misc/l7-filter')
-rw-r--r-- | net-misc/l7-filter/Manifest | 48 | ||||
-rw-r--r-- | net-misc/l7-filter/files/digest-l7-filter-1.5 | 3 | ||||
-rw-r--r-- | net-misc/l7-filter/files/digest-l7-filter-2.0 | 6 | ||||
-rw-r--r-- | net-misc/l7-filter/files/digest-l7-filter-2.1_p1 | 6 | ||||
-rw-r--r-- | net-misc/l7-filter/l7-filter-1.5.ebuild | 125 | ||||
-rw-r--r-- | net-misc/l7-filter/l7-filter-2.0.ebuild | 133 | ||||
-rw-r--r-- | net-misc/l7-filter/l7-filter-2.1_p1.ebuild | 134 |
7 files changed, 12 insertions, 443 deletions
diff --git a/net-misc/l7-filter/Manifest b/net-misc/l7-filter/Manifest index 40e9596181f0..9243cc6f65bc 100644 --- a/net-misc/l7-filter/Manifest +++ b/net-misc/l7-filter/Manifest @@ -3,34 +3,19 @@ Hash: SHA1 DIST additional_patch_for_2.6.13.diff 4962 RMD160 8faa60214d5695c797b24a11fe95858a785258a3 SHA1 26aac9fe4646892776a4880974d84c7e265c01fc SHA256 c0e2b7bb7024c8e35b554eb33263b5c34dd2356aaea739b07231f717eae8f58d DIST netfilter-layer7-v1.4.tar.gz 72293 RMD160 7d9376e2c7708249ee92a0c460600b145eb1da0f SHA1 ef406ba265ce2931b6e6972f6943d75c5757853b SHA256 a52ef64864a285bf96a7408ef61a73e7df1931fdcd70c90d1f76044f9a026cb3 -DIST netfilter-layer7-v1.5.tar.gz 88140 RMD160 4b9cf87ea743385f3a861f915152e917c406fbe6 SHA1 146307d9a1c3efd58f78750c362bfbcda6877e7e SHA256 53d6da316a17069facfb818e6ad8497c3c225907d6930c067a6004defb50b725 -DIST netfilter-layer7-v2.0.tar.gz 88489 RMD160 8e2f76f44db06d5b1b098c2ea37a10befd28e8a8 SHA1 ea3b4276ec593f2aebc502fa3b1c4556c2d8af3c SHA256 1a454c77a07c6447a2c641cc9d5f255023f1c1d5363b463825da5f3d5942168f -DIST netfilter-layer7-v2.1-p1.tar.gz 89286 RMD160 4c553e60d27dd117def62a89f9065d1e2767e33f SHA1 f139a7947860f9c294a5a25cae9aeef842132b15 SHA256 49b518b3560bb08d8f49e84fc1e5131213ed7ef5153ff523c14c8bebc2b8ce8f DIST netfilter-layer7-v2.2.tar.gz 88944 RMD160 cf421e6ef4acf5b9107feacaee6566d55ad21683 SHA1 55eaad3b4e46feff09910cd5e3c76c57ac12dc58 SHA256 e82cc356ece2bea3da2bb4b467063a96337ced4bde6127a44f0296245e74d57d EBUILD l7-filter-1.4.ebuild 3081 RMD160 9f3e3a14b0d2bf6f57419a00fa246e83ece32287 SHA1 15b737dca549368ca8be43665fe438fa67fe3526 SHA256 06c1844bc6691a7b73310c9a42b99d627cfec72280a5e581b9eafdde4ff885f9 MD5 2f14aeee750e32e2e8339fc234f17acb l7-filter-1.4.ebuild 3081 RMD160 9f3e3a14b0d2bf6f57419a00fa246e83ece32287 l7-filter-1.4.ebuild 3081 SHA256 06c1844bc6691a7b73310c9a42b99d627cfec72280a5e581b9eafdde4ff885f9 l7-filter-1.4.ebuild 3081 -EBUILD l7-filter-1.5.ebuild 3043 RMD160 988bdfb018cf82fcd9b1fa2aa0520a69c02a6f82 SHA1 c4eb95fdb742fc7e84dede7e8c1bdafca7da3508 SHA256 77fa68aa10b9dc1384f8a7bb581ff804393a605ee6a4f6e27477ae11535c30f2 -MD5 3480cbafedc505d51822ed744681b617 l7-filter-1.5.ebuild 3043 -RMD160 988bdfb018cf82fcd9b1fa2aa0520a69c02a6f82 l7-filter-1.5.ebuild 3043 -SHA256 77fa68aa10b9dc1384f8a7bb581ff804393a605ee6a4f6e27477ae11535c30f2 l7-filter-1.5.ebuild 3043 -EBUILD l7-filter-2.0.ebuild 3279 RMD160 8bcde54cebea47ba98af0914613757ac1c63eb55 SHA1 5cb4a1680d82bc6c9fd596d7f4dad0a7ece47b6e SHA256 eb7de7c021df4a5eef53d42ff95d50f4e154d6b2cb9b66cb89bc93580d3bd46c -MD5 b1bc21b845b873fa46c88ec0eefff8de l7-filter-2.0.ebuild 3279 -RMD160 8bcde54cebea47ba98af0914613757ac1c63eb55 l7-filter-2.0.ebuild 3279 -SHA256 eb7de7c021df4a5eef53d42ff95d50f4e154d6b2cb9b66cb89bc93580d3bd46c l7-filter-2.0.ebuild 3279 -EBUILD l7-filter-2.1_p1.ebuild 3333 RMD160 72d8b752a2de10e9d35ad14b97365e4a92846f28 SHA1 ffdd67cd850294c28010e4604e897027608a4d97 SHA256 6f6a5d680b1706d7172be0b6ae8721a97555172430011e90bfc8a9e351b1f7ab -MD5 230f41ca5a1db3e383a73e12f1f70412 l7-filter-2.1_p1.ebuild 3333 -RMD160 72d8b752a2de10e9d35ad14b97365e4a92846f28 l7-filter-2.1_p1.ebuild 3333 -SHA256 6f6a5d680b1706d7172be0b6ae8721a97555172430011e90bfc8a9e351b1f7ab l7-filter-2.1_p1.ebuild 3333 -EBUILD l7-filter-2.2.ebuild 3279 RMD160 068a893e5a0db2a71991c937cb340e141e75dbf5 SHA1 c7b8b9298e909bf904b9a664f5172be5cae6190a SHA256 1fcd8a6c7f22112fba41e75009579e1b79dd2193b3a9ee02c0fd9c9188eea61b -MD5 9cb3d4b31187dc468a39e1da5a4f6dab l7-filter-2.2.ebuild 3279 -RMD160 068a893e5a0db2a71991c937cb340e141e75dbf5 l7-filter-2.2.ebuild 3279 -SHA256 1fcd8a6c7f22112fba41e75009579e1b79dd2193b3a9ee02c0fd9c9188eea61b l7-filter-2.2.ebuild 3279 -MISC ChangeLog 5165 RMD160 8a15f8eeb01de56ef9a41d889eb234935855c36c SHA1 aad4be5913a2fbc342e85d27a6a1b58c5059325e SHA256 d96ed015eabefa3601af78dd5fce998a5275542d914c0c7eaacdb23eb4dae68e -MD5 f9fd7f09a8f28f6c9217ef401e0e06f7 ChangeLog 5165 -RMD160 8a15f8eeb01de56ef9a41d889eb234935855c36c ChangeLog 5165 -SHA256 d96ed015eabefa3601af78dd5fce998a5275542d914c0c7eaacdb23eb4dae68e ChangeLog 5165 +EBUILD l7-filter-2.2.ebuild 4008 RMD160 5f963a99123f19844cce9ddf7ed7542155f465fd SHA1 136116b17bb6b2a4e33a2bd9ffb3c4dd07991d81 SHA256 449db5aca26f019eeaae5b60e8e3a7e98885c20bbd9c49ec3c48d6d93f9767da +MD5 42fa0ff2558ea14dd1f9748849c7edaf l7-filter-2.2.ebuild 4008 +RMD160 5f963a99123f19844cce9ddf7ed7542155f465fd l7-filter-2.2.ebuild 4008 +SHA256 449db5aca26f019eeaae5b60e8e3a7e98885c20bbd9c49ec3c48d6d93f9767da l7-filter-2.2.ebuild 4008 +MISC ChangeLog 5462 RMD160 9dc220d4f0aac9dd2b9d464cd7de4c9976d90a42 SHA1 d35404a17dbc6cb77313c7ef3f0ddd035bbc0dc4 SHA256 4753294cbf1dfb540e057a1dc363826e42f2084e4bda5578ec27f84f4cac1a78 +MD5 d825bcd1f52f4dac1ee53288f108a88d ChangeLog 5462 +RMD160 9dc220d4f0aac9dd2b9d464cd7de4c9976d90a42 ChangeLog 5462 +SHA256 4753294cbf1dfb540e057a1dc363826e42f2084e4bda5578ec27f84f4cac1a78 ChangeLog 5462 MISC metadata.xml 374 RMD160 36c7b587b04bba133b9b106083dd7b485d9d2e45 SHA1 1d33c3e413603911ecb01f7a6ac8bb89c544562b SHA256 4638653661df3aa277ddfab4579d87598d17211e8b4d10114d4eeba5ddf2b7f1 MD5 89edb769612add8464eb3c324f09e197 metadata.xml 374 RMD160 36c7b587b04bba133b9b106083dd7b485d9d2e45 metadata.xml 374 @@ -38,22 +23,13 @@ SHA256 4638653661df3aa277ddfab4579d87598d17211e8b4d10114d4eeba5ddf2b7f1 metadata MD5 5d1ea11da08f36510569be1cea5af300 files/digest-l7-filter-1.4 533 RMD160 21179657609388944e15b29837004d1f76ce1fd8 files/digest-l7-filter-1.4 533 SHA256 181a4c32ab2661c1358356027bacf57fb9752cc9910e7eab05bbebcd305010d3 files/digest-l7-filter-1.4 533 -MD5 0fd27f4a359058785fbb9d3811792960 files/digest-l7-filter-1.5 262 -RMD160 736fa368379a7b5a08bcf6f6edfaef342f376ed5 files/digest-l7-filter-1.5 262 -SHA256 c01939160e058150286e162d5baf4cf10d00edf52d4f734bd4ed96764360bc68 files/digest-l7-filter-1.5 262 -MD5 07f018c5172bb29e2f4a2b2cd9edc97d files/digest-l7-filter-2.0 533 -RMD160 c25c08aeeccd8d7d037e78a186c4778f42766bd9 files/digest-l7-filter-2.0 533 -SHA256 4936370dcfceb8af806e2947915bb60a9d8439d1719f0e7451ae1311914a8abd files/digest-l7-filter-2.0 533 -MD5 5906a49dbc1ff487c7ca9c8ffdce422d files/digest-l7-filter-2.1_p1 542 -RMD160 04f05aad2c64a0e6aa130dd19563032b88547e51 files/digest-l7-filter-2.1_p1 542 -SHA256 88d814b8babe72cbcde7691068ba411fd6024e810f63a890b45110259612703a files/digest-l7-filter-2.1_p1 542 MD5 3a9e2c12e20b0bcf1228986666d7f511 files/digest-l7-filter-2.2 533 RMD160 39e5f48b5e63860ad7c37fe97c7ecb2c6802a0cb files/digest-l7-filter-2.2 533 SHA256 119d634833ec549593d3e6172b221f6a2552373384d797f38e19c54a74640b7d files/digest-l7-filter-2.2 533 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.3-ecc0.1.6 (GNU/Linux) +Version: GnuPG v1.4.4-ecc0.1.6 (GNU/Linux) -iD8DBQFEgtoBmdTrptrqvGERAix3AJ43sb/8c4dIAyLgzk5203u07Dk68ACfeVuj -uIDYA0QhxsF8DwWKlt9q57s= -=msoc +iD8DBQFEsOfTmdTrptrqvGERAuW6AJ9NDfYZYL/A72eaFkwgKANeWDQC6QCdEVWt +vUklMdiQcJNZ/IOIVzLjBxY= +=KED1 -----END PGP SIGNATURE----- diff --git a/net-misc/l7-filter/files/digest-l7-filter-1.5 b/net-misc/l7-filter/files/digest-l7-filter-1.5 deleted file mode 100644 index 23a305835556..000000000000 --- a/net-misc/l7-filter/files/digest-l7-filter-1.5 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 73d57c4b63c18c6593bcb346821fe0d6 netfilter-layer7-v1.5.tar.gz 88140 -RMD160 4b9cf87ea743385f3a861f915152e917c406fbe6 netfilter-layer7-v1.5.tar.gz 88140 -SHA256 53d6da316a17069facfb818e6ad8497c3c225907d6930c067a6004defb50b725 netfilter-layer7-v1.5.tar.gz 88140 diff --git a/net-misc/l7-filter/files/digest-l7-filter-2.0 b/net-misc/l7-filter/files/digest-l7-filter-2.0 deleted file mode 100644 index 1b0cee2d3f0f..000000000000 --- a/net-misc/l7-filter/files/digest-l7-filter-2.0 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 6e8ff4d1b7b0281a7596a74789b79f8d additional_patch_for_2.6.13.diff 4962 -RMD160 8faa60214d5695c797b24a11fe95858a785258a3 additional_patch_for_2.6.13.diff 4962 -SHA256 c0e2b7bb7024c8e35b554eb33263b5c34dd2356aaea739b07231f717eae8f58d additional_patch_for_2.6.13.diff 4962 -MD5 dda42e68897845546e1b9715131c729b netfilter-layer7-v2.0.tar.gz 88489 -RMD160 8e2f76f44db06d5b1b098c2ea37a10befd28e8a8 netfilter-layer7-v2.0.tar.gz 88489 -SHA256 1a454c77a07c6447a2c641cc9d5f255023f1c1d5363b463825da5f3d5942168f netfilter-layer7-v2.0.tar.gz 88489 diff --git a/net-misc/l7-filter/files/digest-l7-filter-2.1_p1 b/net-misc/l7-filter/files/digest-l7-filter-2.1_p1 deleted file mode 100644 index 78a8ad94cf7a..000000000000 --- a/net-misc/l7-filter/files/digest-l7-filter-2.1_p1 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 6e8ff4d1b7b0281a7596a74789b79f8d additional_patch_for_2.6.13.diff 4962 -RMD160 8faa60214d5695c797b24a11fe95858a785258a3 additional_patch_for_2.6.13.diff 4962 -SHA256 c0e2b7bb7024c8e35b554eb33263b5c34dd2356aaea739b07231f717eae8f58d additional_patch_for_2.6.13.diff 4962 -MD5 650386d2042abda3bb96edf9b2b10927 netfilter-layer7-v2.1-p1.tar.gz 89286 -RMD160 4c553e60d27dd117def62a89f9065d1e2767e33f netfilter-layer7-v2.1-p1.tar.gz 89286 -SHA256 49b518b3560bb08d8f49e84fc1e5131213ed7ef5153ff523c14c8bebc2b8ce8f netfilter-layer7-v2.1-p1.tar.gz 89286 diff --git a/net-misc/l7-filter/l7-filter-1.5.ebuild b/net-misc/l7-filter/l7-filter-1.5.ebuild deleted file mode 100644 index 149e219d408b..000000000000 --- a/net-misc/l7-filter/l7-filter-1.5.ebuild +++ /dev/null @@ -1,125 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-filter/l7-filter-1.5.ebuild,v 1.3 2006/01/06 10:34:12 dragonheart Exp $ - -inherit linux-info eutils - -MY_P=netfilter-layer7-v${PV} -DESCRIPTION="Kernel modules for layer 7 iptables filtering" -HOMEPAGE="http://l7-filter.sourceforge.net" -SRC_URI="mirror://sourceforge/l7-filter/${MY_P}.tar.gz" - -LICENSE="GPL-2" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="" -#break repoman -#SLOT="${KV}" -SLOT="0" -S=${WORKDIR}/${MY_P} -RDEPEND="net-misc/l7-protocols" - - -which_patch() { - if kernel_is ge 2 6 13 - then - PATCH=kernel-2.6.13-layer7-${PV}.patch - elif kernel_is ge 2 6 11 - then - PATCH=for_older_kernels/kernel-2.6.11-2.6.12-layer7-1.4.patch - elif kernel_is ge 2 6 9 - then - PATCH=for_older_kernels/kernel-2.6.9-2.6.10-layer7-1.2.patch - elif kernel_is 2 6 - then - # 2.6.0-2.6.8.1 - PATCH=for_older_kernels/kernel-2.6.0-2.6.8.1-layer7-0.9.2.patch - elif kernel_is 2 4 - then - PATCH=kernel-2.4-layer7-${PV}.patch - else - die "No L7-filter patch for Kernel version ${KV_FULL} - sorry not supported" - fi -} - -pkg_setup() { - pkg_postinst -} - -src_unpack() { - - which_patch - - if [ -f ${KV_DIR}/include/linux/netfilter_ipv4/ipt_layer7.h ] - then - ewarn "already installed ${PN} for kernel ${KV_FULL}" - ewarn "If this is an upgrade attempt, try unmerging first." - ewarn "If this failes remove your kernel source from /usr/src" - ewarn "and remerge your kernel sources" - die - fi - - unpack ${MY_P}.tar.gz - - [ ! -f "${S}/${PATCH}" ] && \ - die "patch ${PATCH} not found. Please enter a bug at bugs.gentoo.org" - - - cd ${S} - - mkdir kernel - mkdir kernel/Documentation - - - # create needed directories - mkdir -p ${S}/kernel/net/ipv4/netfilter/regexp/ - mkdir -p ${S}/kernel/include/linux/netfilter_ipv4/ - - cd ${KV_DIR} - - # start to copy needed files, if file not exists create an empty file - FILES=$(patch -t --dry-run -p1 < ${S}/${PATCH} | grep "^patching file" | cut -f 3 -d ' ') - for F in ${FILES}; - do - if [ -f ${F} ]; - then - cp -P ${F} ${S}/kernel/${F} - else - touch ${S}/kernel/${F} - fi - done - - #patch the copied kernel source - cd ${S}/kernel - EPATCH_OPTS="-F 3" epatch "${S}/${PATCH}" -} - -src_compile() { - einfo "no compiling - just patching source" -} - -src_install() { - insinto "${KV_DIR}" - doins -r kernel/* - dodoc CHANGELOG README -} - - -pkg_postinst() { - ewarn "This may not work with all kernels. If it does not work please enter a bug at bugs.gentoo.org" - ewarn "This only patches the current kernel source code. (${KV_DIR})" - ewarn "Its up to you to recompile the kernel with the l7 options" - ewarn - ewarn 'You will also need to emerge iptables with the "extensions" USE flag' -} - -pkg_prerm() { - if [ -f ${ROOT}/usr/src/linux/include/linux/netfilter_ipv4/ipt_layer7.h ] - then - einfo 'attempting to unpatch l7-patch from kernel' - which_patch - cd ${T} - unpack ${MY_P}.tar.gz - EPATCH_SINGLE_MSG="removing previous patch" \ - EPATCH_OPTS="-F 3 -d ${ROOT}/usr/src/linux -R" epatch "${T}/${MY_P}/${PATCH}" - fi -} diff --git a/net-misc/l7-filter/l7-filter-2.0.ebuild b/net-misc/l7-filter/l7-filter-2.0.ebuild deleted file mode 100644 index 4131c331f647..000000000000 --- a/net-misc/l7-filter/l7-filter-2.0.ebuild +++ /dev/null @@ -1,133 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-filter/l7-filter-2.0.ebuild,v 1.2 2006/01/06 10:34:12 dragonheart Exp $ - -inherit linux-info eutils - -MY_P=netfilter-layer7-v${PV/_/-} -DESCRIPTION="Kernel modules for layer 7 iptables filtering" -HOMEPAGE="http://l7-filter.sourceforge.net" -SRC_URI="mirror://sourceforge/l7-filter/${MY_P}.tar.gz - mirror://gentoo/additional_patch_for_2.6.13.diff" - -LICENSE="GPL-2" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="" -#break repoman -#SLOT="${KV}" -SLOT="0" -S=${WORKDIR}/${MY_P} -RDEPEND="net-misc/l7-protocols" - - -which_patch() { - if kernel_is ge 2 6 13 - then - PATCH=kernel-2.6.13-2.6.14-layer7-2.0.patch - elif kernel_is ge 2 6 11 - then - PATCH=for_older_kernels/kernel-2.6.11-2.6.12-layer7-1.4.patch - elif kernel_is ge 2 6 9 - then - PATCH=for_older_kernels/kernel-2.6.9-2.6.10-layer7-1.2.patch - elif kernel_is 2 4 - then - PATCH=kernel-2.4-layer7-2.0.patch - else - die "No L7-filter patch for Kernel version ${KV_FULL} - sorry not supported" - fi -} - -pkg_setup() { - pkg_postinst -} - -src_unpack() { - - which_patch - - if [ -f ${KV_DIR}/include/linux/netfilter_ipv4/ipt_layer7.h ] - then - ewarn "already installed ${PN} for kernel ${KV_FULL}" - ewarn "If this is an upgrade attempt, try unmerging first." - ewarn "If this failes remove your kernel source from /usr/src" - ewarn "and remerge your kernel sources" - die - fi - - unpack ${MY_P}.tar.gz - - [ ! -f "${S}/${PATCH}" ] && \ - die "patch ${PATCH} not found. Please enter a bug at bugs.gentoo.org" - - - cd ${S} - - mkdir kernel - mkdir kernel/Documentation - - - # create needed directories - mkdir -p ${S}/kernel/net/ipv4/netfilter/regexp/ - mkdir -p ${S}/kernel/include/linux/netfilter_ipv4/ - - cd ${KV_DIR} - - # start to copy needed files, if file not exists create an empty file - FILES=$(patch -t --dry-run -p1 < ${S}/${PATCH} | grep "^patching file" | cut -f 3 -d ' ') - for F in ${FILES}; - do - if [ -f ${F} ]; - then - cp -P ${F} ${S}/kernel/${F} - else - touch ${S}/kernel/${F} - fi - done - - #patch the copied kernel source - cd ${S}/kernel - EPATCH_OPTS="-F 3" epatch "${S}/${PATCH}" - - # https://bugs.gentoo.org/show_bug.cgi?id=106009#c5 - if kernel_is eq 2 6 12 - then - epatch ${DISTDIR}/additional_patch_for_2.6.13.diff - fi -} - -src_compile() { - einfo "no compiling - just patching source" -} - -src_install() { - insinto "${KV_DIR}" - doins -r kernel/* - dodoc CHANGELOG README -} - - -pkg_postinst() { - ewarn "This may not work with all kernels. If it does not work please enter a bug at bugs.gentoo.org" - ewarn "This only patches the current kernel source code. (${KV_DIR})" - ewarn "Its up to you to recompile the kernel with the l7 options" - ewarn - ewarn 'You will also need to emerge iptables with the "extensions" USE flag' -} - -pkg_prerm() { - if [ -f ${ROOT}/usr/src/linux/include/linux/netfilter_ipv4/ipt_layer7.h ] - then - einfo 'attempting to unpatch l7-patch from kernel ${KV_FULL}' - which_patch - if kernel_is eq 2 6 12 - then - patch -F 3 -d ${ROOT}/usr/src/linux -R -p1 \ - < ${DISTDIR}/additional_patch_for_2.6.13.diff - fi - cd ${T} - unpack ${MY_P}.tar.gz - EPATCH_SINGLE_MSG="removing previous patch" \ - EPATCH_OPTS="-F 3 -d ${ROOT}/usr/src/linux -R" epatch "${T}/${MY_P}/${PATCH}" - fi -} diff --git a/net-misc/l7-filter/l7-filter-2.1_p1.ebuild b/net-misc/l7-filter/l7-filter-2.1_p1.ebuild deleted file mode 100644 index 3d69948ef7f6..000000000000 --- a/net-misc/l7-filter/l7-filter-2.1_p1.ebuild +++ /dev/null @@ -1,134 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-filter/l7-filter-2.1_p1.ebuild,v 1.2 2006/06/04 13:01:26 dragonheart Exp $ - -inherit linux-info eutils - -MY_P=netfilter-layer7-v${PV/_/-} -DESCRIPTION="Kernel modules for layer 7 iptables filtering" -HOMEPAGE="http://l7-filter.sourceforge.net" -#SRC_URI="mirror://sourceforge/l7-filter/${MY_P}.tar.gz -SRC_URI="mirror://gentoo/l7-filter/${MY_P}.tar.gz - mirror://gentoo/additional_patch_for_2.6.13.diff" - -LICENSE="GPL-2" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="" -#break repoman -#SLOT="${KV}" -SLOT="0" -S=${WORKDIR}/${MY_P} -RDEPEND="net-misc/l7-protocols" - - -which_patch() { - if kernel_is ge 2 6 13 - then - PATCH=kernel-2.6.13-2.6.15-layer7-2.1.patch - elif kernel_is ge 2 6 11 - then - PATCH=for_older_kernels/kernel-2.6.11-2.6.12-layer7-1.4.patch - elif kernel_is ge 2 6 9 - then - PATCH=for_older_kernels/kernel-2.6.9-2.6.10-layer7-1.2.patch - elif kernel_is 2 4 - then - PATCH=kernel-2.4-layer7-2.1.patch - else - die "No L7-filter patch for Kernel version ${KV_FULL} - sorry not supported" - fi -} - -pkg_setup() { - pkg_postinst -} - -src_unpack() { - - which_patch - - if [ -f ${KV_DIR}/include/linux/netfilter_ipv4/ipt_layer7.h ] - then - ewarn "already installed ${PN} for kernel ${KV_FULL}" - ewarn "If this is an upgrade attempt, try unmerging first." - ewarn "If this failes remove your kernel source from /usr/src" - ewarn "and remerge your kernel sources" - die - fi - - unpack ${MY_P}.tar.gz - - [ ! -f "${S}/${PATCH}" ] && \ - die "patch ${PATCH} not found. Please enter a bug at bugs.gentoo.org" - - - cd ${S} - - mkdir kernel - mkdir kernel/Documentation - - - # create needed directories - mkdir -p ${S}/kernel/net/ipv4/netfilter/regexp/ - mkdir -p ${S}/kernel/include/linux/netfilter_ipv4/ - - cd ${KV_DIR} - - # start to copy needed files, if file not exists create an empty file - FILES=$(patch -t --dry-run -p1 < ${S}/${PATCH} | grep "^patching file" | cut -f 3 -d ' ') - for F in ${FILES}; - do - if [ -f ${F} ]; - then - cp -P ${F} ${S}/kernel/${F} - else - touch ${S}/kernel/${F} - fi - done - - #patch the copied kernel source - cd ${S}/kernel - EPATCH_OPTS="-F 3" epatch "${S}/${PATCH}" - - # https://bugs.gentoo.org/show_bug.cgi?id=106009#c5 - if kernel_is eq 2 6 12 - then - epatch ${DISTDIR}/additional_patch_for_2.6.13.diff - fi -} - -src_compile() { - einfo "no compiling - just patching source" -} - -src_install() { - insinto "${KV_DIR}" - doins -r kernel/* - dodoc CHANGELOG README -} - - -pkg_postinst() { - ewarn "This may not work with all kernels. If it does not work please enter a bug at bugs.gentoo.org" - ewarn "This only patches the current kernel source code. (${KV_DIR})" - ewarn "Its up to you to recompile the kernel with the l7 options" - ewarn - ewarn 'You will also need to emerge iptables with the "extensions" USE flag' -} - -pkg_prerm() { - if [ -f ${ROOT}/usr/src/linux/include/linux/netfilter_ipv4/ipt_layer7.h ] - then - einfo 'attempting to unpatch l7-patch from kernel ${KV_FULL}' - which_patch - if kernel_is eq 2 6 12 - then - patch -F 3 -d ${ROOT}/usr/src/linux -R -p1 \ - < ${DISTDIR}/additional_patch_for_2.6.13.diff - fi - cd ${T} - unpack ${MY_P}.tar.gz - EPATCH_SINGLE_MSG="removing previous patch" \ - EPATCH_OPTS="-F 3 -d ${ROOT}/usr/src/linux -R" epatch "${T}/${MY_P}/${PATCH}" - fi -} |