summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2006-04-23 03:52:40 +0000
committerDaniel Black <dragonheart@gentoo.org>2006-04-23 03:52:40 +0000
commit9be934b40dbcb5414dc520ddeef4bf5ea1ec09bb (patch)
treec6978756e75e95971f6032841a41265bed5bb243 /net-misc/l7-filter
parent revison 1.0.8, security fixes (diff)
downloadgentoo-2-9be934b40dbcb5414dc520ddeef4bf5ea1ec09bb.tar.gz
gentoo-2-9be934b40dbcb5414dc520ddeef4bf5ea1ec09bb.tar.bz2
gentoo-2-9be934b40dbcb5414dc520ddeef4bf5ea1ec09bb.zip
version bump as per bug #124663
(Portage version: 2.1_pre9-r2)
Diffstat (limited to 'net-misc/l7-filter')
-rw-r--r--net-misc/l7-filter/ChangeLog7
-rw-r--r--net-misc/l7-filter/files/digest-l7-filter-1.46
-rw-r--r--net-misc/l7-filter/files/digest-l7-filter-1.52
-rw-r--r--net-misc/l7-filter/files/digest-l7-filter-2.04
-rw-r--r--net-misc/l7-filter/files/digest-l7-filter-2.16
-rw-r--r--net-misc/l7-filter/l7-filter-2.1.ebuild133
6 files changed, 156 insertions, 2 deletions
diff --git a/net-misc/l7-filter/ChangeLog b/net-misc/l7-filter/ChangeLog
index 263307f697e0..b3c6ccf27827 100644
--- a/net-misc/l7-filter/ChangeLog
+++ b/net-misc/l7-filter/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-misc/l7-filter
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-filter/ChangeLog,v 1.23 2006/01/06 10:34:12 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-filter/ChangeLog,v 1.24 2006/04/23 03:52:40 dragonheart Exp $
+
+*l7-filter-2.1 (23 Apr 2006)
+
+ 23 Apr 2006; Daniel Black <dragonheart@gentoo.org> +l7-filter-2.1.ebuild:
+ version bump as per bug #124663 thanks to Janosch Kalateh
06 Jan 2006; Daniel Black <dragonheart@gentoo.org> l7-filter-1.4.ebuild,
l7-filter-1.5.ebuild, l7-filter-2.0.ebuild:
diff --git a/net-misc/l7-filter/files/digest-l7-filter-1.4 b/net-misc/l7-filter/files/digest-l7-filter-1.4
index 496deea271c1..caf67237d9cb 100644
--- a/net-misc/l7-filter/files/digest-l7-filter-1.4
+++ b/net-misc/l7-filter/files/digest-l7-filter-1.4
@@ -1,2 +1,6 @@
-MD5 7ce3a8ca7635ffbd231cc061fad3c228 netfilter-layer7-v1.4.tar.gz 72293
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 7ce3a8ca7635ffbd231cc061fad3c228 netfilter-layer7-v1.4.tar.gz 72293
+RMD160 7d9376e2c7708249ee92a0c460600b145eb1da0f netfilter-layer7-v1.4.tar.gz 72293
+SHA256 a52ef64864a285bf96a7408ef61a73e7df1931fdcd70c90d1f76044f9a026cb3 netfilter-layer7-v1.4.tar.gz 72293
diff --git a/net-misc/l7-filter/files/digest-l7-filter-1.5 b/net-misc/l7-filter/files/digest-l7-filter-1.5
index dc90c13ff0a1..23a305835556 100644
--- a/net-misc/l7-filter/files/digest-l7-filter-1.5
+++ b/net-misc/l7-filter/files/digest-l7-filter-1.5
@@ -1 +1,3 @@
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
index b47306a48d81..1b0cee2d3f0f 100644
--- a/net-misc/l7-filter/files/digest-l7-filter-2.0
+++ b/net-misc/l7-filter/files/digest-l7-filter-2.0
@@ -1,2 +1,6 @@
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 b/net-misc/l7-filter/files/digest-l7-filter-2.1
new file mode 100644
index 000000000000..75378690d021
--- /dev/null
+++ b/net-misc/l7-filter/files/digest-l7-filter-2.1
@@ -0,0 +1,6 @@
+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 551626a158c2a2cbfd937d27ecc7fac1 netfilter-layer7-v2.1.tar.gz 89247
+RMD160 cd2d455a16761b4fe2318d6d8a5671a535176d62 netfilter-layer7-v2.1.tar.gz 89247
+SHA256 5022e8a349135f67045f4add47405af0d626c90a5e8b86ee01745755946e1390 netfilter-layer7-v2.1.tar.gz 89247
diff --git a/net-misc/l7-filter/l7-filter-2.1.ebuild b/net-misc/l7-filter/l7-filter-2.1.ebuild
new file mode 100644
index 000000000000..19c645bb81be
--- /dev/null
+++ b/net-misc/l7-filter/l7-filter-2.1.ebuild
@@ -0,0 +1,133 @@
+# 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.ebuild,v 1.1 2006/04/23 03:52:40 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.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.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
+}