summaryrefslogtreecommitdiff
path: root/net-misc
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/l7-protocols/Manifest3
-rw-r--r--net-misc/l7-protocols/files/l7-protocols-2008.02.20-gcc4.3.patch10
-rw-r--r--net-misc/l7-protocols/l7-protocols-2008.12.18.ebuild64
3 files changed, 77 insertions, 0 deletions
diff --git a/net-misc/l7-protocols/Manifest b/net-misc/l7-protocols/Manifest
new file mode 100644
index 00000000..8e4c3c30
--- /dev/null
+++ b/net-misc/l7-protocols/Manifest
@@ -0,0 +1,3 @@
+AUX l7-protocols-2008.02.20-gcc4.3.patch 307 RMD160 6b479f3a50cb0aa421128fa4a9e66f48108bebfc SHA1 a7a127006a97bea80567f73a695a6816cf74657d SHA256 6a22fa11f1b2b8b334b6658f64e63455c5d740ff8053829e79155a2b1dd0ec6a
+DIST l7-protocols-2008-12-18.tar.gz 128951 RMD160 571bd2b3160b157fc7b4f560d5de0a04af0c4a5c SHA1 24ff28f7960758b9ec43285fdbc9b9b0e6e8ec33 SHA256 d38f68ad1bf8699b55f9a159d01a8eee1d7eebdd204bee9bd271baf868408d48
+EBUILD l7-protocols-2008.12.18.ebuild 1742 RMD160 0583e16bd9a36b0218714f1cae01a3e5fbcb58b6 SHA1 ad121ca4cd505eb657eabfaae941ce1a9f4c929a SHA256 498fce161b8428c98c2b4c14342525467b4bc285d552929c826e98f7dc7c438c
diff --git a/net-misc/l7-protocols/files/l7-protocols-2008.02.20-gcc4.3.patch b/net-misc/l7-protocols/files/l7-protocols-2008.02.20-gcc4.3.patch
new file mode 100644
index 00000000..85453978
--- /dev/null
+++ b/net-misc/l7-protocols/files/l7-protocols-2008.02.20-gcc4.3.patch
@@ -0,0 +1,10 @@
+--- testing/test_speed-userspace.cpp.orig 2008-04-21 14:41:58.000000000 +0400
++++ testing/test_speed-userspace.cpp 2008-04-21 14:42:26.000000000 +0400
+@@ -16,6 +16,7 @@
+ #include <fstream>
+ #include <iostream>
+ #include <sys/types.h>
++#include <stdlib.h>
+ #include "l7-parse-patterns.h"
+
+ #define MAX 1500
diff --git a/net-misc/l7-protocols/l7-protocols-2008.12.18.ebuild b/net-misc/l7-protocols/l7-protocols-2008.12.18.ebuild
new file mode 100644
index 00000000..1fb9ac92
--- /dev/null
+++ b/net-misc/l7-protocols/l7-protocols-2008.12.18.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2009 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.12.18.ebuild,v 1.5 2009/06/02 16:53:40 armin76 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}"
+}