summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2005-09-24 23:26:26 +0000
committerDaniel Black <dragonheart@gentoo.org>2005-09-24 23:26:26 +0000
commit312419d644381348dca267fc1ca83cd88b24862b (patch)
tree89a28cdd61ede97bbf7046a9c762769dcbe1d553 /net-misc/l7-filter
parentupdated to use l7-filter-2.0-beta (diff)
downloadgentoo-2-312419d644381348dca267fc1ca83cd88b24862b.tar.gz
gentoo-2-312419d644381348dca267fc1ca83cd88b24862b.tar.bz2
gentoo-2-312419d644381348dca267fc1ca83cd88b24862b.zip
version bump as per bug #106009.
(Portage version: 2.0.52-r1)
Diffstat (limited to 'net-misc/l7-filter')
-rw-r--r--net-misc/l7-filter/ChangeLog8
-rw-r--r--net-misc/l7-filter/Manifest12
-rw-r--r--net-misc/l7-filter/files/digest-l7-filter-2.0_beta1
-rw-r--r--net-misc/l7-filter/l7-filter-2.0_beta.ebuild122
4 files changed, 132 insertions, 11 deletions
diff --git a/net-misc/l7-filter/ChangeLog b/net-misc/l7-filter/ChangeLog
index 8a0293812456..625ba065d5c7 100644
--- a/net-misc/l7-filter/ChangeLog
+++ b/net-misc/l7-filter/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/l7-filter
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-filter/ChangeLog,v 1.19 2005/09/17 09:17:35 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-filter/ChangeLog,v 1.20 2005/09/24 23:26:26 dragonheart Exp $
+
+*l7-filter-2.0_beta (24 Sep 2005)
+
+ 24 Sep 2005; Daniel Black <dragonheart@gentoo.org>
+ +l7-filter-2.0_beta.ebuild:
+ version bump as per bug #106009 thanks to tomas charvat.
*l7-filter-1.5 (17 Sep 2005)
diff --git a/net-misc/l7-filter/Manifest b/net-misc/l7-filter/Manifest
index 8bf9f061e72a..fb53236dd337 100644
--- a/net-misc/l7-filter/Manifest
+++ b/net-misc/l7-filter/Manifest
@@ -1,16 +1,8 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 e4482333234bfcbf6b53c2a0f1190054 l7-filter-1.4.ebuild 2932
MD5 89edb769612add8464eb3c324f09e197 metadata.xml 374
MD5 5277e2b3923d803eb32cbe2726d11c4f ChangeLog 3477
MD5 a463995d3bbc74163de05f2146962bd8 l7-filter-1.5.ebuild 2880
+MD5 c8c0eab2ce3ce6bacea412a7384f2314 l7-filter-2.0_beta.ebuild 2880
MD5 1900e66a8dde525ef974d0b0615218fc files/digest-l7-filter-1.4 147
MD5 2d66a9bc9bf0c44d3ed5f5981eba4c3e files/digest-l7-filter-1.5 72
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2-ecc0.1.6 (GNU/Linux)
-
-iD8DBQFDK99EmdTrptrqvGERAnhpAJ9JfUJ31ZifxDtSAczhAAVQ0YCtygCeOUN3
-eUmYBpdzJhQSV8yuaBo7pk0=
-=tPCE
------END PGP SIGNATURE-----
+MD5 5fb1153edd1165192db3933bfb5fe642 files/digest-l7-filter-2.0_beta 77
diff --git a/net-misc/l7-filter/files/digest-l7-filter-2.0_beta b/net-misc/l7-filter/files/digest-l7-filter-2.0_beta
new file mode 100644
index 000000000000..c1752ccf46ad
--- /dev/null
+++ b/net-misc/l7-filter/files/digest-l7-filter-2.0_beta
@@ -0,0 +1 @@
+MD5 c760af92bc31c0fbd86faa3155e3f551 netfilter-layer7-v2.0-beta.tar.gz 88369
diff --git a/net-misc/l7-filter/l7-filter-2.0_beta.ebuild b/net-misc/l7-filter/l7-filter-2.0_beta.ebuild
new file mode 100644
index 000000000000..89bc67373f70
--- /dev/null
+++ b/net-misc/l7-filter/l7-filter-2.0_beta.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2005 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_beta.ebuild,v 1.1 2005/09/24 23:26: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"
+
+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-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 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-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 ${PF} for kernel ${KV_FULL}"
+ return 0;
+ 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
+}