diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-02-23 19:24:10 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-02-23 19:24:10 +0000 |
commit | 575bcb9220287a6f0d2577db1fd9fe55d9d8b745 (patch) | |
tree | 52f12cfa140d4839d32305dd42eebe34e9686234 /net-analyzer/fragroute | |
parent | 4c5bd80830992553e02f099442277e10ee97372d (diff) |
gentoo auto-resync : 23:02:2025 - 19:24:09
Diffstat (limited to 'net-analyzer/fragroute')
-rw-r--r-- | net-analyzer/fragroute/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/fragroute/files/fragroute-1.2.6-missing-includes.patch | 34 | ||||
-rw-r--r-- | net-analyzer/fragroute/fragroute-1.2.6-r5.ebuild | 55 |
3 files changed, 91 insertions, 0 deletions
diff --git a/net-analyzer/fragroute/Manifest b/net-analyzer/fragroute/Manifest index b4c9b84cd941..72efc8c96308 100644 --- a/net-analyzer/fragroute/Manifest +++ b/net-analyzer/fragroute/Manifest @@ -1,5 +1,7 @@ AUX fragroute-1.2.6-libdir.patch 4634 BLAKE2B 71fa0052f4e9b15b8ba143fac4f2a1af8bac19dafc9ecae71056b62cf6090ea0182da0b8e7986eb90318cfd3e4e57e8ae9c3a7146dbfda1ed91595ccf14d9783 SHA512 9013a8d685a66b0c7bd051ea4a95ae45140cefc11db05a1b476c07ecdeb26e99e90bd74f19698c2e7e52d4126e0415b5c3427d8028d260860f40aa1e3f95d727 +AUX fragroute-1.2.6-missing-includes.patch 972 BLAKE2B f6bb3caf5099586aaafdb0259c79950026b4a9def7da46ceaf009d3d15f2599ddc74f7e4f260f53a7ed1ccbd3bd1d9eef167ceb5b0ddb56b2b172b62df61a239 SHA512 960d514bdd24ac1bd5b1da150f196e77571274afddda89acf831e5f49d64ccbf315c4f174a0509f7ffffb7e46dc2f86970591c1a63f01e7a4ecad650b25802d7 AUX fragroute-1.2.6-pcap_open.patch 1171 BLAKE2B cdd664bea732c2abab0813526eba79a7dd7beef3c373a7f86414356d786f47b950561a74ed5bc9d404a7b39f63ab12c5b711835b056fccbda8583f8e7541c5ed SHA512 f60abf95fa5bd8798cf88f40d972311bbee4f877ee46cee1aa6e4438b5e4dd6c3b990b5e2565d24d1ce9c72d23f950ef13abd889d11a2f1bf6f34fb01957e7c6 DIST fragroute-1.2.6-ipv6.tar.gz 163309 BLAKE2B c1927fdb6fbe6873b62fa48c5355b0b0d2be7b2183c94f259b8e0b4b3dec8a171defc4c6fbde507e522b28dffcc86dd68ae0ffe380a9d21eb478ebe7068d4beb SHA512 76c6fbe37100a43df477f0ba455a2bed6ac53c1f369e147d220562a34eca0eb273171e4b9ff4f3fc473c3f99a8344f6d49963c20d7cfaf6879200322a491ffc3 EBUILD fragroute-1.2.6-r4.ebuild 1086 BLAKE2B 1fa32fd70460c0cb60b08f40b633e4138f4e534d0759930c445f4c22a2277d005b7c9c5bc99db8f6dc7e6edd7c562aaa0f252b6ac65259f8a6612df6d037e693 SHA512 d2d7a77d967f631eb9b0be6b08528ff394e5bc1fc86a885c6bf4c3585a728289f149da6b4f74a106db2c96971aecb97e5189f7f825c830dcba7dc18903aca464 +EBUILD fragroute-1.2.6-r5.ebuild 1037 BLAKE2B 889cef6fea23b75af1aee71e78bbc5885fd95f871ad49d6ea2d614129fc821708c7b9b73d505588a1334bd833d941ad58ad6e85a85fdc3b10b8a8d55c744fe11 SHA512 4d0bf972204c326b93732fd522e7bfe175f14a26e5d454a00680d5258fa39cae082b4f4e7928e4e3bd025ae3a59b5ac4596181fa3654d5dd437a2fc5eb2bf0ea MISC metadata.xml 365 BLAKE2B eaccdf170ee91074f81321c0b92d1859be889b9f6431f37ffc17a4b0ec798deee1eae111fffc73459ddcd50fd9ad1dc178adb02467c22c106f0f1568579aed4f SHA512 fd734224fe70b4453e6d7e61d7b61eaf08253a4de6f6f9d8c4a5b715b85f6b74a5c406a9de1cc76729ef3c329cf678cd857bc18a0afc9a75ab9bdc5c73016c24 diff --git a/net-analyzer/fragroute/files/fragroute-1.2.6-missing-includes.patch b/net-analyzer/fragroute/files/fragroute-1.2.6-missing-includes.patch new file mode 100644 index 000000000000..193d228e18c7 --- /dev/null +++ b/net-analyzer/fragroute/files/fragroute-1.2.6-missing-includes.patch @@ -0,0 +1,34 @@ +Add missing includes needed for compilation, including ones in sed +command in previous ebuild. +https://bugs.gentoo.org/945195 +Remove terrible hack in bget.h for ancient compilers. I wonder why they forgotten +to put AC_C_PROTOTYPES in configure.ac... But that macro is dead and unsupported. +--- a/bget.h ++++ b/bget.h +@@ -4,13 +4,7 @@ + + */ + +-#ifndef _ +-#ifdef PROTOTYPES + #define _(x) x /* If compiler knows prototypes */ +-#else +-#define _(x) () /* It it doesn't */ +-#endif /* PROTOTYPES */ +-#endif + +-typedef long bufsize; ++typedef size_t bufsize; + void bpool _((void *buffer, bufsize len)); + +sed -i -e "/#define IPUTIL_H/a#include <stdio.h>\n#include <stdint.h>" iputil.h || die +--- a/iputil.h ++++ b/iputil.h +@@ -1,5 +1,7 @@ + #ifndef IPUTIL_H + #define IPUTIL_H ++#include <stdio.h> ++#include <stdint.h> + + ssize_t inet_add_option(uint16_t eth_type, void *buf, size_t len, + int proto, const void *optbuf, size_t optlen); diff --git a/net-analyzer/fragroute/fragroute-1.2.6-r5.ebuild b/net-analyzer/fragroute/fragroute-1.2.6-r5.ebuild new file mode 100644 index 000000000000..37655c29d469 --- /dev/null +++ b/net-analyzer/fragroute/fragroute-1.2.6-r5.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +MY_P="${P}-ipv6" + +inherit autotools + +DESCRIPTION="Testing of network intrusion detection systems, firewalls and TCP/IP stacks" +HOMEPAGE="https://github.com/stsi/fragroute-ipv6" +SRC_URI="https://fragroute-ipv6.googlecode.com/files/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +RDEPEND=" + >=dev-libs/libdnet-1.14-r1 + dev-libs/libevent:= + net-libs/libpcap + dev-libs/libbsd + +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + app-alternatives/awk +" +DOCS=( INSTALL README TODO ) +PATCHES=( + "${FILESDIR}"/${P}-libdir.patch + "${FILESDIR}"/${P}-pcap_open.patch + "${FILESDIR}"/${P}-missing-includes.patch +) + +src_prepare() { + default + + # Remove broken and old files, autotools will regen needed files + rm *.m4 acconfig.h missing Makefile.in || die + + eautoreconf +} + +src_configure() { + econf \ + DNETINC='' \ + DNETLIB=-ldnet \ + EVENTINC='' \ + EVENTLIB=-levent \ + PCAPINC='' \ + PCAPLIB=-lpcap +} |