diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-17 00:55:45 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-17 00:55:45 +0000 |
commit | 0e33d150b98b9f2354c92788ef9dc739850b40f6 (patch) | |
tree | 5f173b7b9f7cf827f5538b70795e34bc7f1c2c95 /net-analyzer/yersinia | |
parent | 1e3939094253168dfdada63e645d674cad69260e (diff) |
gentoo auto-resync : 17:11:2022 - 00:55:45
Diffstat (limited to 'net-analyzer/yersinia')
-rw-r--r-- | net-analyzer/yersinia/Manifest | 6 | ||||
-rw-r--r-- | net-analyzer/yersinia/files/yersinia-0.8.2-configure-clang16.patch | 53 | ||||
-rw-r--r-- | net-analyzer/yersinia/metadata.xml | 21 | ||||
-rw-r--r-- | net-analyzer/yersinia/yersinia-0.8.2-r1.ebuild (renamed from net-analyzer/yersinia/yersinia-0.8.2.ebuild) | 20 | ||||
-rw-r--r-- | net-analyzer/yersinia/yersinia-9999.ebuild | 59 |
5 files changed, 79 insertions, 80 deletions
diff --git a/net-analyzer/yersinia/Manifest b/net-analyzer/yersinia/Manifest index 3c20f3fddb4f..bc42e3da2819 100644 --- a/net-analyzer/yersinia/Manifest +++ b/net-analyzer/yersinia/Manifest @@ -1,7 +1,7 @@ AUX yersinia-0.7.1-no-ncurses.patch 330 BLAKE2B 86c2cb84542012c6424fdcae398e07769647bcdda300d6efdbb263451c8765e23cd272f76e4e0e84751272df3de46a77b32fd2321a0ab3bc70cc8199b457adf6 SHA512 c0a0ef6456727eaa0ae9ea50667e04a72afb01c5b75d13965836657e4d1946df550840afd091ec58e8875b1a551df5966feb98b655183cec6dadaf4f5de23e4f AUX yersinia-0.7.3-tinfo.patch 563 BLAKE2B 6203584c6ff7b8e5438f57ad74b5b1ee7ee61d08b2bee21234fd4cfbb6aa37b9b1cb69b4a7af11e57434b215e346f6384a195ffdd47b9504fe6eb93b3d2109e9 SHA512 9a53505e050a9658f49809ad989d534e542fb0cf21ae70a9271b536a9a478a4306e49c9b0493ab522d5ffb82849eed043b212e399505c916792372a64d96c319 +AUX yersinia-0.8.2-configure-clang16.patch 1705 BLAKE2B b9cf0fc0181f85894331b2f020fc962b644ace2bc2c8590ebb1ef597999c126dcb7c6537241ade7c3984200dd2e03abf84ef87854ade1fe6c2b28c2510f1bb48 SHA512 93c6698591648cdc332d73148e512818777dc34edb6892df51f123dbe191be5287c8a7a3b3fdb15bea9dad28e35b5b18adf96d38572d297961bfaae03ffc4c27 AUX yersinia-9999-tinfo.patch 563 BLAKE2B ef2b554f82037dde165373fd6db71503ee124062cef4689062e7e1799f5ae26afd5758468f3c860690046aa4cb6e12dafd7ed3189a765a52565b5530a322d11a SHA512 a0edb5a47281bc66f0296914597fc4a9901f0e50640b43b6b31a30ddc4b6a5202220207039c3936f32769161f2c61d78afc5a3d7725d04ea41afd301312efa24 DIST yersinia-0.8.2.tar.gz 387889 BLAKE2B 67fe92b9cd1253874c61fa38c8e89e023f7d0ec3b83fe3001b5bc203d4033e36cb94b453ed56426b34d942036a143bd135f247466425337478f292797a433652 SHA512 2c7c89f19b6791150c472a6066b6ffaf9ac5b3d1a3d2e6a27f91293bba9a0f72d147266731e5e2670e4bf7e67ccf04b6e353071ca42d3d281b25126c9bfcb1dd -EBUILD yersinia-0.8.2.ebuild 1071 BLAKE2B e544e5a50c20bb4a3db8bdc6fa84dc6666784c30925ebdb7b479fcbddb24c4e03830f84aa5a16963ccd4cac1faf940aedbc2742847f6e66011a8251c5aa25b5a SHA512 828b8863805b78620ccefdbfa40da0ecefccf9127965ec890ea80b64072a949df57fbe2f4e772818c2e015146c0b0d1c62ee64248d4078d72f3c8c4fc4df524a -EBUILD yersinia-9999.ebuild 1049 BLAKE2B d39ae8cc02fc3c7196e09d2924278f06eaf7dc229dfd0209a6b60df39f4fd3316638471f608c6ddce08cfb3e1bfc40f6251a9b0ff95dfc395007884f4fd40a84 SHA512 73641e8b11c20b57f5d500da14d9943b39e93b70d8e2551181976c155a60f481c64da39dd250e86c8afc4cd552a291e0c76e7106c422bbbb04b6b6b969f7d8c5 -MISC metadata.xml 514 BLAKE2B 8347567b7a03672ed2c9de05289df8c2b9e2a09656dacc17f6b3ab1d508976a64c43fcf10b76be973232e285bf46ac3a61d6dda6dab8439e9dddfd81ffed36c5 SHA512 bcf98eb021cf9de2187275744c38ce25e1b674f15aa1526d200222eb0d108c1c42ce045017cce16fcb42c43342a84995163ed596feaaf29098a689e54b06adc0 +EBUILD yersinia-0.8.2-r1.ebuild 1132 BLAKE2B aff918191afe85fd7f9a9d5de44ed06adcb8b78ab661c7772e258936851f9adc594e208624219f3a5746b194f8ed5fee689f60a6ad5d5c0997ab80cedec367ec SHA512 f5d3730345d6a57d8a20446897f3c80bd1b5888a52b850b9ea4e776322627bcc00077a0b22f7a7b60cd56337831445cc2e4cb19470b25c05dd6b83c234c9249c +MISC metadata.xml 602 BLAKE2B 17ecc301b7c25dfbe55ca622e293154a6802050de8ea0674697f36418af73c37258e76d191449686d0475368ec3532e66102e85d93ba7c0fb7eb77280ace59a7 SHA512 9fcebd2cd58ae500fc4211de33a31b01a4cfaf67555b6ae1c5b6aa64ba68c53cfe22bc5b93f603919b1cd0653b1885b62cddca15dd6c6597dbea9f363da043fa diff --git a/net-analyzer/yersinia/files/yersinia-0.8.2-configure-clang16.patch b/net-analyzer/yersinia/files/yersinia-0.8.2-configure-clang16.patch new file mode 100644 index 000000000000..f2366c02dfb4 --- /dev/null +++ b/net-analyzer/yersinia/files/yersinia-0.8.2-configure-clang16.patch @@ -0,0 +1,53 @@ +https://github.com/tomac/yersinia/pull/76 + +From ec9d31932fca39e3160b0d0bfd0383db82ff5bcf Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Wed, 16 Nov 2022 23:10:45 +0000 +Subject: [PATCH] configure: fix -Wimplicit-function-declaration, + -Wstrict-prototypes + +Clang 16 makes -Wimplicit-function-declaration an error by default. Unfortunately, +this can lead to misconfiguration or miscompilation of software as configure +tests may then return the wrong result. + +For more information, see LWN.net [0] or LLVM's Discourse [1], the Gentoo wiki [2], +or the (new) c-std-porting mailing list [3]. + +[0] https://lwn.net/Articles/913505/ +[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213 +[2] https://wiki.gentoo.org/wiki/Modern_C_porting +[3] hosted at lists.linux.dev. + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/configure.in ++++ b/configure.in +@@ -233,12 +233,13 @@ dnl fi + + AC_MSG_CHECKING(if libnet is at least version 1.1.2) + AC_TRY_RUN([ +-#include<stdio.h> +-#include<libnet.h> ++#include <stdlib.h> ++#include <stdio.h> ++#include <libnet.h> + #define HOPE_MAJOR 1 + #define HOPE_MEDIUM 1 + #define HOPE_MINOR 2 +-int main() ++int main(void) + { + unsigned int major,medium,minor,current, desired; + desired = HOPE_MAJOR*10000 + HOPE_MEDIUM*100 + HOPE_MINOR; +@@ -419,9 +420,9 @@ AC_CHECK_FUNCS(strerror_r, have_strerror_r=yes,have_strerror_r=no) + if test $have_strerror_r = yes; then + AC_MSG_CHECKING(if strerror_r is on glibc version >= 2.0) + AC_TRY_RUN([ +-#include <stdio.h> ++#include <stdlib.h> + #include <features.h> +-int main() ++int main(void) + { + #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 0 + exit(0); + diff --git a/net-analyzer/yersinia/metadata.xml b/net-analyzer/yersinia/metadata.xml index 3fd38e1109b5..6356df3a0a4c 100644 --- a/net-analyzer/yersinia/metadata.xml +++ b/net-analyzer/yersinia/metadata.xml @@ -1,13 +1,16 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="project"> - <email>netmon@gentoo.org</email> - <name>Gentoo network monitoring and analysis project</name> -</maintainer> -<longdescription> -Yersinia is a network tool designed to take advantage of some weakeness -in different network protocols. It intends to be a solid framework for -analyzing and testing the deployed networks and systems. -</longdescription> + <maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> + </maintainer> + <longdescription> + Yersinia is a network tool designed to take advantage of some weakeness + in different network protocols. It intends to be a solid framework for + analyzing and testing the deployed networks and systems. + </longdescription> + <upstream> + <remote-id type="github">tomac/yersinia</remote-id> + </upstream> </pkgmetadata> diff --git a/net-analyzer/yersinia/yersinia-0.8.2.ebuild b/net-analyzer/yersinia/yersinia-0.8.2-r1.ebuild index e216096f810c..0d001464a4d2 100644 --- a/net-analyzer/yersinia/yersinia-0.8.2.ebuild +++ b/net-analyzer/yersinia/yersinia-0.8.2-r1.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 + inherit autotools flag-o-matic DESCRIPTION="A framework for layer 2 attacks" @@ -14,30 +15,31 @@ KEYWORDS="amd64 x86" IUSE="gtk ncurses" RDEPEND=" + >=net-libs/libnet-1.1.2 + >=net-libs/libpcap-0.9.4 ncurses? ( >=sys-libs/ncurses-5.5:= ) gtk? ( dev-libs/glib:2 x11-libs/gdk-pixbuf =x11-libs/gtk+-2* ) - >=net-libs/libnet-1.1.2 - >=net-libs/libpcap-0.9.4 -" -DEPEND=" - virtual/pkgconfig - ${RDEPEND} " +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + DOCS=( AUTHORS ChangeLog FAQ README THANKS TODO ) + PATCHES=( "${FILESDIR}"/${PN}-0.7.1-no-ncurses.patch "${FILESDIR}"/${PN}-0.7.3-tinfo.patch + "${FILESDIR}"/${PN}-0.8.2-configure-clang16.patch ) src_prepare() { default if ! use gtk; then - #bug #514802 + # bug #514802 sed -i -e '/AM_GLIB_GNU_GETTEXT/d' configure.in || die fi diff --git a/net-analyzer/yersinia/yersinia-9999.ebuild b/net-analyzer/yersinia/yersinia-9999.ebuild deleted file mode 100644 index f2825d6f6f13..000000000000 --- a/net-analyzer/yersinia/yersinia-9999.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit autotools flag-o-matic git-r3 - -DESCRIPTION="A framework for layer 2 attacks" -HOMEPAGE="https://github.com/tomac/yersinia" -EGIT_REPO_URI="https://github.com/tomac/yersinia" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="" -IUSE="gtk ncurses" - -RDEPEND=" - ncurses? ( >=sys-libs/ncurses-5.5:= ) - gtk? ( - dev-libs/glib:2 - x11-libs/gdk-pixbuf - =x11-libs/gtk+-2* - ) - >=net-libs/libnet-1.1.2 - >=net-libs/libpcap-0.9.4 -" -DEPEND=" - virtual/pkgconfig - ${RDEPEND} -" -DOCS=( AUTHORS ChangeLog FAQ README THANKS TODO ) -PATCHES=( - "${FILESDIR}"/${PN}-0.7.1-no-ncurses.patch - "${FILESDIR}"/${PN}-9999-tinfo.patch -) - -src_prepare() { - default - - if ! use gtk; then - #bug #514802 - sed -i -e '/AM_GLIB_GNU_GETTEXT/d' configure.in || die - fi - - eautoreconf -} - -src_configure() { - append-cflags -fcommon - - econf \ - --enable-admin \ - --with-pcap-includes=/usr/include \ - $(use_with ncurses) \ - $(use_enable gtk) -} - -src_compile() { - emake CFLAGS="${CFLAGS}" -} |