From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1209596-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1A58E138359 for <garchives@archives.gentoo.org>; Fri, 25 Sep 2020 16:03:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5C638E0824; Fri, 25 Sep 2020 16:03:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 30B96E0824 for <gentoo-commits@lists.gentoo.org>; Fri, 25 Sep 2020 16:03:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0DB3733FE26 for <gentoo-commits@lists.gentoo.org>; Fri, 25 Sep 2020 16:03:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AF525357 for <gentoo-commits@lists.gentoo.org>; Fri, 25 Sep 2020 16:03:01 +0000 (UTC) From: "Jeroen Roovers" <jer@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" <jer@gentoo.org> Message-ID: <1601049780.31829e0c487e47b3a0499780f3b511a616b63d1c.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/nemesis/, net-misc/nemesis/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/nemesis/Manifest net-misc/nemesis/files/nemesis-1.7-fno-common.patch net-misc/nemesis/nemesis-1.4-r2.ebuild net-misc/nemesis/nemesis-1.7.ebuild X-VCS-Directories: net-misc/nemesis/ net-misc/nemesis/files/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 31829e0c487e47b3a0499780f3b511a616b63d1c X-VCS-Branch: master Date: Fri, 25 Sep 2020 16:03:01 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5172494a-6773-4ff8-8e95-246c98240271 X-Archives-Hash: f37af4d8d2b6ff86f31e4e092c461f67 commit: 31829e0c487e47b3a0499780f3b511a616b63d1c Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> AuthorDate: Fri Sep 25 16:02:50 2020 +0000 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> CommitDate: Fri Sep 25 16:03:00 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31829e0c net-misc/nemesis: Version 1.7 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> net-misc/nemesis/Manifest | 1 + .../nemesis/files/nemesis-1.7-fno-common.patch | 86 ++++++++++++++++++++++ net-misc/nemesis/nemesis-1.4-r2.ebuild | 8 +- .../{nemesis-1.4-r2.ebuild => nemesis-1.7.ebuild} | 13 +--- 4 files changed, 95 insertions(+), 13 deletions(-) diff --git a/net-misc/nemesis/Manifest b/net-misc/nemesis/Manifest index f22967545a2..a2667476693 100644 --- a/net-misc/nemesis/Manifest +++ b/net-misc/nemesis/Manifest @@ -1 +1,2 @@ DIST nemesis-1.4.tar.gz 144187 BLAKE2B 9b16fa37283e4a659312bbd24e5ab850cf11cbee9c598f9e57bda517f462448a0a74721425144ec00afb2cde5ba86fcb020d2d7dbf4d6df688b67f7c282d9d38 SHA512 a8d4b434a9b0287e704ab923900c43051dc3aac4a7063e702aa93d7c89cfdeac287a6f40138bdca140e2c889e024f885288c4953940104ac12631cf7394501c8 +DIST nemesis-1.7.tar.gz 93423 BLAKE2B d46d19ae46852ea5a5f745b719779f3e4fbd77b918c8f53eaf743beb53d3ee345fa1663350d98095519481e819c5174fbe41b356da643b0aff9a2d5825494436 SHA512 6085cb91535c895325ca04e7583b29df9073731d8bee1d48ef46d09d25042d5220a73b2d02d77b4101de649877c0a2d0f4af5c06f125389fbd97c7350449134b diff --git a/net-misc/nemesis/files/nemesis-1.7-fno-common.patch b/net-misc/nemesis/files/nemesis-1.7-fno-common.patch new file mode 100644 index 00000000000..fba7641a493 --- /dev/null +++ b/net-misc/nemesis/files/nemesis-1.7-fno-common.patch @@ -0,0 +1,86 @@ +--- a/src/nemesis.h ++++ b/src/nemesis.h +@@ -164,10 +164,10 @@ + extern int verbose; + extern int interval; + extern int count; +-int got_link; +-int got_payload; +-int got_ipoptions; +-int got_tcpoptions; ++extern int got_link; ++extern int got_payload; ++extern int got_ipoptions; ++extern int got_tcpoptions; + + struct file { + uint8_t *file_buf; /* pointer to file memory */ +--- a/src/nemesis.c ++++ b/src/nemesis.c +@@ -10,6 +10,9 @@ + #include <string.h> + #include <unistd.h> + ++int got_payload; ++int mode; ++ + extern int optind; + + static int usage(char *arg) +--- a/src/nemesis-icmp.c ++++ b/src/nemesis-icmp.c +@@ -12,6 +12,8 @@ + #include <pcap.h> + #endif + ++int got_origoptions; ++ + static ETHERhdr etherhdr; + static IPhdr iphdr; + static IPhdr ipunreach; +--- a/src/nemesis-icmp.h ++++ b/src/nemesis-icmp.h +@@ -39,8 +39,8 @@ + #include "nemesis.h" + #include <libnet.h> + +-int mode; /* ICMP injection mode */ +-int got_origoptions; ++extern int mode; /* ICMP injection mode */ ++extern int got_origoptions; + + int buildicmp(ETHERhdr *, IPhdr *, ICMPhdr *, IPhdr *, struct file *, struct file *, struct file *, libnet_t *); + +--- a/src/nemesis-ospf.h ++++ b/src/nemesis-ospf.h +@@ -43,7 +43,7 @@ + extern NETLSAhdr netlsahdr; + extern SUMLSAhdr sumlsahdr; + +-int mode; /* OSPF injection mode */ ++extern int mode; /* OSPF injection mode */ + + int buildospf(ETHERhdr *, IPhdr *, struct file *, struct file *, libnet_t *, int); + +--- a/src/nemesis-dns.c ++++ b/src/nemesis-dns.c +@@ -12,6 +12,8 @@ + #include <pcap.h> + #endif + ++int state; ++ + static ETHERhdr etherhdr; + static IPhdr iphdr; + static TCPhdr tcphdr; +--- a/src/nemesis-dns.h ++++ b/src/nemesis-dns.h +@@ -29,7 +29,7 @@ + #include "nemesis.h" + #include <libnet.h> + +-int state; /* default to UDP */ ++extern int state; /* default to UDP */ + + int builddns(ETHERhdr *, IPhdr *, TCPhdr *, UDPhdr *, DNShdr *, struct file *, struct file *, struct file *, libnet_t *); + diff --git a/net-misc/nemesis/nemesis-1.4-r2.ebuild b/net-misc/nemesis/nemesis-1.4-r2.ebuild index 12ed858e34a..0d74247451f 100644 --- a/net-misc/nemesis/nemesis-1.4-r2.ebuild +++ b/net-misc/nemesis/nemesis-1.4-r2.ebuild @@ -23,10 +23,10 @@ DEPEND=" DOCS="CREDITS ChangeLog README" PATCHES=( - "${FILESDIR}"/${P}-fileio.patch - "${FILESDIR}"/${P}-libnet-1.0.patch - "${FILESDIR}"/${P}-prototcp.patch - "${FILESDIR}"/${P}-fno-common.patch + "${FILESDIR}"/${PN}-1.4-fileio.patch + "${FILESDIR}"/${PN}-1.4-libnet-1.0.patch + "${FILESDIR}"/${PN}-1.4-prototcp.patch + "${FILESDIR}"/${PN}-1.4-fno-common.patch ) src_prepare() { diff --git a/net-misc/nemesis/nemesis-1.4-r2.ebuild b/net-misc/nemesis/nemesis-1.7.ebuild similarity index 59% copy from net-misc/nemesis/nemesis-1.4-r2.ebuild copy to net-misc/nemesis/nemesis-1.7.ebuild index 12ed858e34a..5dce3d23490 100644 --- a/net-misc/nemesis/nemesis-1.4-r2.ebuild +++ b/net-misc/nemesis/nemesis-1.7.ebuild @@ -5,8 +5,8 @@ EAPI=7 inherit autotools DESCRIPTION="A commandline-based, portable human IP stack for UNIX/Linux" -HOMEPAGE="http://nemesis.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P/_}.tar.gz" +HOMEPAGE="https://github.com/libnet/nemesis" +SRC_URI="https://github.com/libnet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" @@ -19,14 +19,9 @@ DEPEND=" ${RDEPEND} =net-libs/libnet-1.0* " - -DOCS="CREDITS ChangeLog README" - +DOCS="ChangeLog.md docs/CONTRIBUTING.md docs/CREDITS README.md" PATCHES=( - "${FILESDIR}"/${P}-fileio.patch - "${FILESDIR}"/${P}-libnet-1.0.patch - "${FILESDIR}"/${P}-prototcp.patch - "${FILESDIR}"/${P}-fno-common.patch + "${FILESDIR}"/${PN}-1.7-fno-common.patch ) src_prepare() {