diff options
author | Daniel Black <dragonheart@gentoo.org> | 2005-03-21 21:05:13 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2005-03-21 21:05:13 +0000 |
commit | d885d2d2a14646da229b98b02024734d7d9c3b0d (patch) | |
tree | 925aa0ec178573fb04cc1190548632ffd1fb814c /net-misc/l7-filter | |
parent | removed old version, also added dummy src_test to fix #72439 (diff) | |
download | gentoo-2-d885d2d2a14646da229b98b02024734d7d9c3b0d.tar.gz gentoo-2-d885d2d2a14646da229b98b02024734d7d9c3b0d.tar.bz2 gentoo-2-d885d2d2a14646da229b98b02024734d7d9c3b0d.zip |
Version bump in bug #85314 also solves bug #85058
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-misc/l7-filter')
-rw-r--r-- | net-misc/l7-filter/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/l7-filter/Manifest | 12 | ||||
-rw-r--r-- | net-misc/l7-filter/files/digest-l7-filter-1.1 | 1 | ||||
-rw-r--r-- | net-misc/l7-filter/l7-filter-1.1.ebuild | 93 |
4 files changed, 103 insertions, 11 deletions
diff --git a/net-misc/l7-filter/ChangeLog b/net-misc/l7-filter/ChangeLog index 645c2812a3ed..2a5ca37340a8 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.7 2005/03/12 01:50:00 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-filter/ChangeLog,v 1.8 2005/03/21 21:05:13 dragonheart Exp $ + +*l7-filter-1.1 (22 Mar 2005) + + 22 Mar 2005; Daniel Black <dragonheart@gentoo.org> +l7-filter-1.1.ebuild: + Version bump thanks to Arne Stäcker <arnestaecker@web.de> in bug #85314. + Version bump also solves bug #85058. 12 Mar 2005; Daniel Black <dragonheart@gentoo.org> -l7-filter-0.9.1.ebuild: remove old kernel-info eclass using ebuild diff --git a/net-misc/l7-filter/Manifest b/net-misc/l7-filter/Manifest index 8f3d00712f1f..51a4aafdf4fe 100644 --- a/net-misc/l7-filter/Manifest +++ b/net-misc/l7-filter/Manifest @@ -1,16 +1,8 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - +MD5 b37787ba1cfbe0bcf1f6700c9d1d8aec l7-filter-1.1.ebuild 1966 MD5 89edb769612add8464eb3c324f09e197 metadata.xml 374 MD5 54b16a90b05a68a60703d582d4aaf6dd ChangeLog 1281 MD5 5f9e3850e00952295020f159410dcbcc l7-filter-0.9.1-r1.ebuild 2358 MD5 528fde16448d7ef5b735db3ab37659c5 l7-filter-1.0.ebuild 1857 +MD5 1e7b9db5aede442a458cec1f3473e155 files/digest-l7-filter-1.1 72 MD5 3b5e56dbb295b185a8c4dabd56868feb files/digest-l7-filter-0.9.1-r1 259 MD5 3f59c20abb1b5831a039f43e8702662e files/digest-l7-filter-1.0 72 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.0 (GNU/Linux) - -iD8DBQFCMkrOmdTrptrqvGERAvc8AJ0bxnunuTdFrtbvvX6qDXPA7s7NxgCfarss -PH7LYxHa2h1N8tCejR0m8xk= -=qWDc ------END PGP SIGNATURE----- diff --git a/net-misc/l7-filter/files/digest-l7-filter-1.1 b/net-misc/l7-filter/files/digest-l7-filter-1.1 new file mode 100644 index 000000000000..e8f15c4bbc90 --- /dev/null +++ b/net-misc/l7-filter/files/digest-l7-filter-1.1 @@ -0,0 +1 @@ +MD5 2f00bc94246201af54646ff6e9943d39 netfilter-layer7-v1.1.tar.gz 71333 diff --git a/net-misc/l7-filter/l7-filter-1.1.ebuild b/net-misc/l7-filter/l7-filter-1.1.ebuild new file mode 100644 index 000000000000..f025e919cabe --- /dev/null +++ b/net-misc/l7-filter/l7-filter-1.1.ebuild @@ -0,0 +1,93 @@ +# 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-1.1.ebuild,v 1.1 2005/03/21 21:05: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" + +LICENSE="GPL-2" +KEYWORDS="~x86 ~ppc" +IUSE="" +SLOT="${KV}" +S=${WORKDIR}/${MY_P} +DEPEND="" + +src_unpack() { + + pkg_postinst + + unpack ${A} + + cd ${S} + + mkdir kernel + mkdir kernel/Documentation + + + local PATCH + if kernel_is 2 4 + then + PATCH=for_older_kernels/kernel-${KV_MAJOR}.${KV_MINOR}-layer7-0.9.1.patch + elif kernel_is ge 2 6 9 + then + if kernel_is ge 2 6 11 + then + PATCH=kernel-2.6.11-layer7-${PV}.patch + else + PATCH=for_older_kernels/kernel-2.6.9-2.6.10-layer7-${PV}.patch + fi + else + # 2.6.0-2.6.8.1 + PATCH=for_older_kernels/kernel-2.6.0-2.6.8.1-layer7-0.9.1.patch + fi + + if [ ! -f ${PATCH} ]; + then + die "Kernel version ${KV_FULL} not 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 < ${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 ${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." + ewarn "This only patches the current kernel source code. (${KV_DIR})" + ewarn "Its up to you to recompile the kernel with the l7 options" +} + |