summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2005-01-04 09:28:13 +0000
committerDaniel Black <dragonheart@gentoo.org>2005-01-04 09:28:13 +0000
commit7f847315b95476b5fb94b8a6b7ecf13c4108c199 (patch)
tree0762bb2ceb511b6364e62689087188ff818d213a /net-misc/l7-filter
parentVersion bump. (Manifest recommit) (diff)
downloadgentoo-2-7f847315b95476b5fb94b8a6b7ecf13c4108c199.tar.gz
gentoo-2-7f847315b95476b5fb94b8a6b7ecf13c4108c199.tar.bz2
gentoo-2-7f847315b95476b5fb94b8a6b7ecf13c4108c199.zip
revision bump to transition to linux-info eclass and 2.6.10 support added
Diffstat (limited to 'net-misc/l7-filter')
-rw-r--r--net-misc/l7-filter/ChangeLog10
-rw-r--r--net-misc/l7-filter/Manifest16
-rw-r--r--net-misc/l7-filter/files/digest-l7-filter-0.9.1-r13
-rw-r--r--net-misc/l7-filter/l7-filter-0.9.1-r1.ebuild95
-rw-r--r--net-misc/l7-filter/l7-filter-0.9.1.ebuild4
5 files changed, 112 insertions, 16 deletions
diff --git a/net-misc/l7-filter/ChangeLog b/net-misc/l7-filter/ChangeLog
index 511fdf50f219..6aa588efc715 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-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-filter/ChangeLog,v 1.3 2004/12/02 11:38:54 dragonheart Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-filter/ChangeLog,v 1.4 2005/01/04 09:28:13 dragonheart Exp $
+
+*l7-filter-0.9.1-r1 (04 Jan 2005)
+
+ 04 Jan 2005; Daniel Black <dragonheart@gentoo.org>
+ +l7-filter-0.9.1-r1.ebuild:
+ revision bump to transition to linux-info eclass and 2.6.10 support added
02 Dec 2004; Daniel Black <dragonheart@gentoo.org> l7-filter-0.9.1.ebuild:
Fixes for bug #69279 kernel 2.6.9 support. bug #65770 - kernel 2.4 support.
diff --git a/net-misc/l7-filter/Manifest b/net-misc/l7-filter/Manifest
index eb4ccb06d195..b85c53a07ddc 100644
--- a/net-misc/l7-filter/Manifest
+++ b/net-misc/l7-filter/Manifest
@@ -1,14 +1,6 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 f153c05327a8b4e5084bcf6d3c1dd401 l7-filter-0.9.1.ebuild 2126
+MD5 0447b52b0777eaf04ddc97bc8f92f4a7 l7-filter-0.9.1.ebuild 2126
MD5 89edb769612add8464eb3c324f09e197 metadata.xml 374
-MD5 d5871517e8c624d4c4d5f11c52056697 ChangeLog 786
+MD5 a164436d8a2b6c87985a024ef9dd36a8 ChangeLog 981
+MD5 edea1aad3d4b822b722efca6b299ac98 l7-filter-0.9.1-r1.ebuild 2357
MD5 006fbe75d4408bba49e102262ea75a34 files/digest-l7-filter-0.9.1 166
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFBrv7VmdTrptrqvGERAoR9AJ9drpXkRktDOkGa/lJoB9HwDSNyPACfQho2
-5C2TCptcuRujVp79FcdJR68=
-=oyIp
------END PGP SIGNATURE-----
+MD5 3b5e56dbb295b185a8c4dabd56868feb files/digest-l7-filter-0.9.1-r1 259
diff --git a/net-misc/l7-filter/files/digest-l7-filter-0.9.1-r1 b/net-misc/l7-filter/files/digest-l7-filter-0.9.1-r1
new file mode 100644
index 000000000000..b9a9e383d324
--- /dev/null
+++ b/net-misc/l7-filter/files/digest-l7-filter-0.9.1-r1
@@ -0,0 +1,3 @@
+MD5 6190f1152bf243bb5e30cf9d0592928f netfilter-layer7-v0.9.1.tar.gz 38606
+MD5 292ef3578eacec54efcd0eb122e063a7 kernel-2.6-layer7-0.9.1+working_with_2.6.9.patch 58525
+MD5 172dd90981e32e9fea2e2fcd085e9e1c kernel-2.6-layer7-0.9.1+working_with_2.6.10.patch 58530
diff --git a/net-misc/l7-filter/l7-filter-0.9.1-r1.ebuild b/net-misc/l7-filter/l7-filter-0.9.1-r1.ebuild
new file mode 100644
index 000000000000..99d3b0cf716f
--- /dev/null
+++ b/net-misc/l7-filter/l7-filter-0.9.1-r1.ebuild
@@ -0,0 +1,95 @@
+# 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-0.9.1-r1.ebuild,v 1.1 2005/01/04 09:28:13 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://sourceforge/l7-filter/kernel-2.6-layer7-${PV}+working_with_2.6.9.patch
+ mirror://gentoo/kernel-2.6-layer7-0.9.1+working_with_2.6.10.patch"
+
+# 2.6.10 patch from
+# http://sourceforge.net/tracker/download.php?group_id=80085&atid=558670&file_id=113753&aid=1092484
+
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc"
+IUSE=""
+SLOT="${KV}"
+S=${WORKDIR}/${MY_P}
+DEPEND=""
+
+src_unpack() {
+
+ ewarn "This may not work with all kernels."
+ ewarn "This only patches the current kernel source code. (${KV_DIR})"
+ ewarn "Its up to you to recompile the kernel with the l7 options"
+
+ unpack ${MY_P}.tar.gz
+
+ cd ${S}
+
+ mkdir kernel
+ mkdir kernel/Documentation
+
+
+ local PATCH
+ if kernel_is 2 4
+ then
+ PATCH=${S}/kernel-${KV_MAJOR}.${KV_MINOR}-layer7-${PV}.patch
+ elif kernel_is 2 6 9
+ then
+ PATCH=${DISTDIR}/kernel-2.6-layer7-${PV}+working_with_2.6.9.patch
+ elif kernel_is ge 2 6 10
+ then
+ PATCH=${DISTDIR}/kernel-2.6-layer7-0.9.1+working_with_2.6.10.patch
+ else
+ PATCH=${S}/kernel-${KV_MAJOR}.${KV_MINOR}-layer7-${PV}.patch
+ fi
+
+ if [ ! -f ${PATCH} ];
+ then
+ die "Kernel version ${KV_FULL} no supported"
+ fi
+
+ # 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 < ${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 ${PATCH} || die "Failed to apply patch"
+}
+
+src_compile() {
+ einfo "no compiling - just patching source"
+}
+
+src_install() {
+ dodir ${KV_DIR}
+ cp -a kernel/* ${D}/${KV_DIR}
+ chown -R root:root ${D}
+}
+
+
+pkg_postinst() {
+ ewarn "This may not work with all kernels."
+ ewarn "This only patches the current kernel source code (${KV_DIR})"
+}
diff --git a/net-misc/l7-filter/l7-filter-0.9.1.ebuild b/net-misc/l7-filter/l7-filter-0.9.1.ebuild
index 696f688f63fb..b20f03847d32 100644
--- a/net-misc/l7-filter/l7-filter-0.9.1.ebuild
+++ b/net-misc/l7-filter/l7-filter-0.9.1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# 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-0.9.1.ebuild,v 1.3 2004/12/02 11:38:54 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-filter/l7-filter-0.9.1.ebuild,v 1.4 2005/01/04 09:28:13 dragonheart Exp $
inherit kernel-mod eutils