summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-11-29 09:17:02 +0000
committerPeter Volkov <pva@gentoo.org>2008-11-29 09:17:02 +0000
commit3684413127583d5b7d217db0a6333a5cf3469fe0 (patch)
tree3486a1d142e2c0edb43771c55bad3bcf6f7c0745 /net-misc
parentVersion bump. (diff)
downloadgentoo-2-3684413127583d5b7d217db0a6333a5cf3469fe0.tar.gz
gentoo-2-3684413127583d5b7d217db0a6333a5cf3469fe0.tar.bz2
gentoo-2-3684413127583d5b7d217db0a6333a5cf3469fe0.zip
Version bump.
(Portage version: 2.2_rc16/cvs/Linux 2.6.26-openvz.git-89451f9 i686)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/l7-protocols/ChangeLog8
-rw-r--r--net-misc/l7-protocols/l7-protocols-2008.11.23.ebuild64
2 files changed, 71 insertions, 1 deletions
diff --git a/net-misc/l7-protocols/ChangeLog b/net-misc/l7-protocols/ChangeLog
index 9edf92b810e9..17bb38e6fdad 100644
--- a/net-misc/l7-protocols/ChangeLog
+++ b/net-misc/l7-protocols/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/l7-protocols
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-protocols/ChangeLog,v 1.56 2008/11/14 11:19:29 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-protocols/ChangeLog,v 1.57 2008/11/29 09:17:02 pva Exp $
+
+*l7-protocols-2008.11.23 (29 Nov 2008)
+
+ 29 Nov 2008; Peter Volkov <pva@gentoo.org>
+ +l7-protocols-2008.11.23.ebuild:
+ Version bump.
*l7-protocols-2008.11.08 (14 Nov 2008)
diff --git a/net-misc/l7-protocols/l7-protocols-2008.11.23.ebuild b/net-misc/l7-protocols/l7-protocols-2008.11.23.ebuild
new file mode 100644
index 000000000000..bda5ace1e041
--- /dev/null
+++ b/net-misc/l7-protocols/l7-protocols-2008.11.23.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-protocols/l7-protocols-2008.11.23.ebuild,v 1.1 2008/11/29 09:17:02 pva Exp $
+
+inherit eutils fixheadtails toolchain-funcs
+
+IUSE=""
+
+MY_P=${PN}-${PV//./-}
+
+DESCRIPTION="Protocol definitions of l7-filter kernel modules"
+HOMEPAGE="http://l7-filter.sourceforge.net/protocols"
+
+SRC_URI="mirror://sourceforge/l7-filter/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ sed -e "s/gcc.*\-o/$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o/g" \
+ -e "s/g++.*\-o/$(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} -o/g" \
+ -i testing/Makefile
+ ht_fix_file testing/*.sh
+}
+
+src_compile() {
+ emake -C testing || die
+}
+
+# NOTE Testing mechanism is currently broken:
+# stack smashing attack in function main()
+
+# Is also extraordinarly inefficent getting random data.
+#
+#src_test() {
+# cd testing
+# find ${S} -name \*.pat -print -exec ./test_match.sh {} \; \
+# -exec ./timeit.sh {} \; || die "failed tests"
+# einfo "patterns past testing"
+#}
+
+src_install() {
+ dodir /usr/share/${PN}
+ pushd testing > /dev/null
+ cp -pPR randprintable randchars test_speed-{kernel,userspace} README \
+ match_kernel speeds-2007-10-02-450MHz *.sh data "${D}"/usr/share/${PN}
+ popd > /dev/null
+ mv example_traffic "${D}"/usr/share/${PN}
+
+ dodoc README CHANGELOG HOWTO WANTED
+ for dir in extra file_types malware ; do
+ newdoc ${dir}/README README.${dir}
+ done
+ rm -rf README CHANGELOG HOWTO LICENSE Makefile WANTED */README testing
+
+ dodir /etc/l7-protocols
+ cp -R * "${D}"/etc/l7-protocols
+ chown -R root:0 "${D}"
+}