summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2007-03-01 09:55:49 +0000
committerDaniel Black <dragonheart@gentoo.org>2007-03-01 09:55:49 +0000
commit1cc48acc3ab0148bf35dc9bf3785ecc9f57db751 (patch)
treea4d8043adad73032d1b370a0b9228b36727d7ab1 /net-misc
parentAdd deps to baselayout on stage1 creation. (diff)
downloadgentoo-2-1cc48acc3ab0148bf35dc9bf3785ecc9f57db751.tar.gz
gentoo-2-1cc48acc3ab0148bf35dc9bf3785ecc9f57db751.tar.bz2
gentoo-2-1cc48acc3ab0148bf35dc9bf3785ecc9f57db751.zip
cleanout
(Portage version: 2.1.2-r11)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/l7-filter/files/digest-l7-filter-2.36
-rw-r--r--net-misc/l7-filter/files/digest-l7-filter-2.66
-rw-r--r--net-misc/l7-filter/l7-filter-2.3.ebuild160
-rw-r--r--net-misc/l7-filter/l7-filter-2.6.ebuild163
4 files changed, 0 insertions, 335 deletions
diff --git a/net-misc/l7-filter/files/digest-l7-filter-2.3 b/net-misc/l7-filter/files/digest-l7-filter-2.3
deleted file mode 100644
index 20dc2c49156d..000000000000
--- a/net-misc/l7-filter/files/digest-l7-filter-2.3
+++ /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 5d8ee8f7b41f562296bfff3eb43406ee netfilter-layer7-v2.3.tar.gz 105587
-RMD160 4c5c5315cf1f193c9ceb605d8d9d9328b515c64d netfilter-layer7-v2.3.tar.gz 105587
-SHA256 4a5e4475d05c8d0998e56d12e8e27eb9acf23ce80a53000783b2f609a6bb33aa netfilter-layer7-v2.3.tar.gz 105587
diff --git a/net-misc/l7-filter/files/digest-l7-filter-2.6 b/net-misc/l7-filter/files/digest-l7-filter-2.6
deleted file mode 100644
index 5d082520125e..000000000000
--- a/net-misc/l7-filter/files/digest-l7-filter-2.6
+++ /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 58135cd1aafaf4ae2fa478159206f064 netfilter-layer7-v2.6.tar.gz 122514
-RMD160 31b68ae3baa0a340f2e4a555fd5124c3b977629d netfilter-layer7-v2.6.tar.gz 122514
-SHA256 c5a842c037e915eb72576e5861f0b048837719f1edf448775d9218b42c48e0aa netfilter-layer7-v2.6.tar.gz 122514
diff --git a/net-misc/l7-filter/l7-filter-2.3.ebuild b/net-misc/l7-filter/l7-filter-2.3.ebuild
deleted file mode 100644
index 246bb5a56783..000000000000
--- a/net-misc/l7-filter/l7-filter-2.3.ebuild
+++ /dev/null
@@ -1,160 +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.3.ebuild,v 1.5 2006/10/03 21:13:04 wolf31o2 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 ppc64 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 17
- then
- PATCH=kernel-2.6.17-layer7-2.3.patch
- elif kernel_is ge 2 6 13
- then
- PATCH=for_older_kernels/kernel-2.6.13-2.6.16-layer7-2.2.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.2.patch
- else
- die "No L7-filter patch for Kernel version ${KV_FULL} - sorry not supported"
- fi
-}
-
-pkg_setup() {
- linux-info_pkg_setup
- pkg_preinstall
- 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 "$(/bin/readlink -f ${KV_DIR})"
- doins -r kernel/*
- dodoc CHANGELOG README
-}
-
-pkg_preinstall() {
- if has collision-protect ${FEATURES}; then
- ewarn
- ewarn "Collisions are expected as this patches kernel code. Disable"
- ewarn "FEATURES=collision-protect before use"
- die 'incompatible FEATURES=collision-protect'
- fi
-}
-
-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" or'
- ewarn '"l7filter" USE flag (depend which version of iptables you emerge)'
-}
-
-#
-# Unpatching of patched files is required to avoid a broken kernel source tree
-
-pkg_prerm() {
- # How to determine what version it was installed against? - measily
- eval $(/bin/fgrep KV=2 ${ROOT}/var/db/pkg/net-misc/${PF}/environment |\
- /bin/head -1)
- KV_DIR=/usr/src/linux-"${KV}"
- if [ -d ${KV_DIR} ]; then
- ewarn "${KV_DIR} nolonger exists"
- return 0;
- fi
- echo "KV_DIR=$KV_DIR"
- if [ -f ${KV_DIR}/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 "${KV_DIR}" -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 "${KV_DIR}" -R" epatch "${T}/${MY_P}/${PATCH}"
- fi
-}
diff --git a/net-misc/l7-filter/l7-filter-2.6.ebuild b/net-misc/l7-filter/l7-filter-2.6.ebuild
deleted file mode 100644
index 03ef2a1c9c09..000000000000
--- a/net-misc/l7-filter/l7-filter-2.6.ebuild
+++ /dev/null
@@ -1,163 +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.6.ebuild,v 1.4 2006/10/14 21:42:51 agriffis 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 ~hppa ~ia64 ~ppc ~ppc64 ~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 18
- then
- PATCH=kernel-2.6.18-layer7-2.6.patch
- elif kernel_is ge 2 6 17
- then
- PATCH=for_older_kernels/kernel-2.6.17-layer7-2.5.patch
- elif kernel_is ge 2 6 13
- then
- PATCH=for_older_kernels/kernel-2.6.13-2.6.16-layer7-2.2.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.2.patch
- else
- die "No L7-filter patch for Kernel version ${KV_FULL} - sorry not supported"
- fi
-}
-
-pkg_setup() {
- linux-info_pkg_setup
- pkg_preinstall
- 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 "$(/bin/readlink -f ${KV_DIR})"
- doins -r kernel/*
- dodoc CHANGELOG README
-}
-
-pkg_preinstall() {
- if has collision-protect ${FEATURES}; then
- ewarn
- ewarn "Collisions are expected as this patches kernel code. Disable"
- ewarn "FEATURES=collision-protect before use"
- die 'incompatible FEATURES=collision-protect'
- fi
-}
-
-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" or'
- ewarn '"l7filter" USE flag (depend which version of iptables you emerge)'
-}
-
-#
-# Unpatching of patched files is required to avoid a broken kernel source tree
-
-pkg_prerm() {
- # How to determine what version it was installed against? - measily
- eval $(/bin/fgrep KV=2 ${ROOT}/var/db/pkg/net-misc/${PF}/environment |\
- /bin/head -1)
- KV_DIR=/usr/src/linux-"${KV}"
- if [ -d ${KV_DIR} ]; then
- ewarn "${KV_DIR} nolonger exists"
- return 0;
- fi
- echo "KV_DIR=$KV_DIR"
- if [ -f ${KV_DIR}/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 "${KV_DIR}" -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 "${KV_DIR}" -R" epatch "${T}/${MY_P}/${PATCH}"
- fi
-}