summaryrefslogtreecommitdiff
path: root/net-misc/l7-protocols
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /net-misc/l7-protocols
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'net-misc/l7-protocols')
-rw-r--r--net-misc/l7-protocols/Manifest1
-rw-r--r--net-misc/l7-protocols/l7-protocols-2009.05.28-r1.ebuild65
-rw-r--r--net-misc/l7-protocols/metadata.xml11
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 000000000000..de4286f31a3e
--- /dev/null
+++ b/net-misc/l7-protocols/Manifest
@@ -0,0 +1 @@
+DIST l7-protocols-2009-05-28.tar.gz 142050 BLAKE2B b70a0c7267bc462fc193cb05ea16849ea064b39d358d1073884ca718b92a39b72e78d5f8cec600a8acdba48bda72dbc07f20bbee76b5f7670d09dee93e164ffc SHA512 020730d0170537213080dcefd847439a2306eea759317e4054549d12e344520e9db222ca48f74c184cb17ba5ff244270b688fb7e89ed0dd21a196e02721e4477
diff --git a/net-misc/l7-protocols/l7-protocols-2009.05.28-r1.ebuild b/net-misc/l7-protocols/l7-protocols-2009.05.28-r1.ebuild
new file mode 100644
index 000000000000..98eef1987757
--- /dev/null
+++ b/net-misc/l7-protocols/l7-protocols-2009.05.28-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit fixheadtails toolchain-funcs
+
+MY_P=${PN}-${PV//./-}
+
+DESCRIPTION="Protocol definitions of l7-filter kernel modules"
+HOMEPAGE="http://l7-filter.sourceforge.net/protocols
+ https://l7-filter.clearos.com/docs/start"
+SRC_URI="https://downloads.sourceforge.net/l7-filter/${MY_P}.tar.gz"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+src_prepare() {
+ sed -i -e "s|gcc.*\-o|$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o|" \
+ -e "s|g++.*\-o|$(tc-getCXX) ${CFLAGS} ${LDFLAGS} -o|" \
+ testing/Makefile || die
+ sed -i -e "s|f in data|f in ${EPREFIX}/usr/share/l7-protocols/data|" \
+ testing/timeit.sh || die
+ ht_fix_file testing/*.sh
+ eapply_user
+}
+
+src_compile() {
+ emake -C testing
+}
+
+# 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,lib}/${PN}
+ mv testing/data example_traffic "${ED}"/usr/share/${PN} || die
+
+ pushd testing >/dev/null || die
+ cp -pPR randprintable randchars test_speed-{kernel,userspace} README \
+ match_kernel *.sh "${ED}"/usr/lib/${PN} || die
+ popd >/dev/null || die
+
+ 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 || die
+
+ dodir /etc/l7-protocols
+ cp -R * "${ED}"/etc/l7-protocols || die
+ chown -R root:0 "${ED}" || die
+}
diff --git a/net-misc/l7-protocols/metadata.xml b/net-misc/l7-protocols/metadata.xml
new file mode 100644
index 000000000000..fcb8117fc100
--- /dev/null
+++ b/net-misc/l7-protocols/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription>
+ These are patterns (protocol definitions) for the Linux layer 7 packet
+ classifier (l7-filter). To use them, you need the l7-filter userspace version
+ available trough ebuild tree as net-misc/l7-filter and <pkg>net-firewall/iptables</pkg>
+ built with netlink USE flag.
+ </longdescription>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>