summaryrefslogtreecommitdiff
path: root/net-misc/l7-protocols
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/l7-protocols
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/l7-protocols')
-rw-r--r--net-misc/l7-protocols/Manifest5
-rw-r--r--net-misc/l7-protocols/l7-protocols-2009.05.28.ebuild63
-rw-r--r--net-misc/l7-protocols/metadata.xml17
3 files changed, 85 insertions, 0 deletions
diff --git a/net-misc/l7-protocols/Manifest b/net-misc/l7-protocols/Manifest
new file mode 100644
index 000000000000..712d6dfba22e
--- /dev/null
+++ b/net-misc/l7-protocols/Manifest
@@ -0,0 +1,5 @@
+DIST l7-protocols-2009-05-28.tar.gz 142050 SHA256 d6bf98a69268558543bd32fccea287cb3f14b37521d18c790e2b6f8dcfaa5381 SHA512 020730d0170537213080dcefd847439a2306eea759317e4054549d12e344520e9db222ca48f74c184cb17ba5ff244270b688fb7e89ed0dd21a196e02721e4477 WHIRLPOOL d40993652acac332261fba3555cbce1196e3d35cc52e68ac1fc71b6e5623bce31caa059f021823a6e8225e1d6bcf0a2f529921bd25a15403e912e8f11cbb6245
+EBUILD l7-protocols-2009.05.28.ebuild 1595 SHA256 926c8f4a047299b6393f4dd020a2a5df5d60b4ae3341c38679a20252a5854bf0 SHA512 9d4fe158c99110bfc3f7dcb58130b887aef282ef259db04952fab0e47cd54b71d41e85c64395af01dcacfc63ddc5f3bd7e64d6c370a14ac0abfb6a518c7d03c0 WHIRLPOOL c55f3018ab4e91858732195fcf2a8ad4ad6ebf23030401701867642fb2045615e55b0408043ef661a33a0f2e22c766dedd702c677f48ea8117e2fb7270e2e0e5
+MISC ChangeLog 2201 SHA256 32aade3520460236f5eb94a09e9632dc10dd09b42c482614dc6e2f5d49c4e1df SHA512 af06a1fcb685afed7407e1b07355ee48ffa99de0e8f2bab33b02bb99b53f825592587efa03db32e3c4f809bf098a4f09490711925e76e0c86cf81cef93e16637 WHIRLPOOL 03a0c4e04745e6777ab720192ddf282c60aa101de11e3d3249e7623dc4b238d237fba01f6086981ff771a9d7fb25b36d1d977aab1386cb023c61aecee8378144
+MISC ChangeLog-2015 12428 SHA256 b80bd7cdf31071eaadac4e0496cc8a116deac7c6a56035ff16abe28c584adf32 SHA512 85975d2b9749472be1b81003dd7a13ce3b57c855adbab8868720a2ecf15113a29cdec05066ee39447afc71dee1f9c6f88dba191d3f00be0efc3635a38ea67113 WHIRLPOOL a9c2b4e29a992c107c9f822b7e2967e19c32a41823733143c8affd4916bc50e235b494a0abc034c4411f959385879e284dd5f1876986c9f9c0313d12379a64ec
+MISC metadata.xml 675 SHA256 fc64297fcff50b259b5c0f4b951cb795c1a3ebbc438f53390e478111070860b7 SHA512 de1be10711122953af535fc50b2a15a32fbed1daf550b2b50bea0be912167a01ea2e3d1ae4a6d591ee7697e1b0c1738d5c76fbfd76f4620e03c0f271bde487d6 WHIRLPOOL 647bfbcf45639200e8c841d2106268b905d6d15f6c8c3463fbed1e390f2d535477a04d5856a973c61446bbe4599a8e728e0a289ad493642076fa9bc9da69ba4a
diff --git a/net-misc/l7-protocols/l7-protocols-2009.05.28.ebuild b/net-misc/l7-protocols/l7-protocols-2009.05.28.ebuild
new file mode 100644
index 000000000000..89bc410ceb78
--- /dev/null
+++ b/net-misc/l7-protocols/l7-protocols-2009.05.28.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 *.sh data "${D}"/usr/share/${PN}
+ popd > /dev/null
+ mv example_traffic "${D}"/usr/share/${PN}
+
+ dodoc README CHANGELOG HOWTO WANTED || die
+ 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}"
+}
diff --git a/net-misc/l7-protocols/metadata.xml b/net-misc/l7-protocols/metadata.xml
new file mode 100644
index 000000000000..30de8b041c0b
--- /dev/null
+++ b/net-misc/l7-protocols/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+ <longdescription>
+ These are patterns (protocol definitions) for the Linux layer 7 packet
+ classifier (l7-filter). To use them, you need the kernel and iptables patches
+ (or l7-filter userspace version) available trough ebuild tree as
+ net-misc/l7-filter and net-firewall/iptables built with l7filter USE flag.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">l7-filter</remote-id>
+ </upstream>
+</pkgmetadata>