summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/l7-protocols/l7-protocols-2005.07.28.ebuild')
-rw-r--r--net-misc/l7-protocols/l7-protocols-2005.07.28.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/net-misc/l7-protocols/l7-protocols-2005.07.28.ebuild b/net-misc/l7-protocols/l7-protocols-2005.07.28.ebuild
new file mode 100644
index 000000000000..effdd88f4325
--- /dev/null
+++ b/net-misc/l7-protocols/l7-protocols-2005.07.28.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/l7-protocols/l7-protocols-2005.07.28.ebuild,v 1.1 2005/07/30 10:25:16 dragonheart Exp $
+
+inherit 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="~amd64 ~ppc ~sparc ~x86"
+S=${WORKDIR}/${MY_P}
+
+RDEPEND="net-misc/l7-filter"
+
+
+src_compile() {
+ sed -i -e "s/gcc.*-O2/$(tc-getCC) ${CFLAGS}/g" testing/Makefile
+ sed -i -e 's/-1/-n 1/g' testing/*.sh
+ emake -C testing
+}
+
+# NOTE Testing mechanism is currently broken:
+# stack smashing attack in function main()
+
+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}
+ cd testing
+ cp -a randprintable randchars test_speed match README *.sh ${D}/usr/share/${PN}
+ cd ${S}
+
+ dodoc README CHANGELOG HOWTO WANTED
+ newdoc README.weakpatterns
+ newdoc extra/README README.extra
+ newdoc file_types/README README.file_types
+ newdoc malware/README README.malware
+ newdoc testing/README README.testing
+ rm -rf README CHANGELOG HOWTO LICENSE WANTED */README testing
+
+ make PREFIX=${D} install || die
+ rm ${D}/etc/${PN}/Makefile
+ chown -R root:root ${D}
+}