summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2019-10-23 10:34:00 +0200
committerJeroen Roovers <jer@gentoo.org>2019-10-23 10:34:37 +0200
commit3311ad27a34632ddbb2040aba6fd3bc530ba2462 (patch)
treef26d5107ec5f048d456c2e1f824354404630b551 /net-analyzer
parentnet-analyzer/netselect: Respect CC, use CFLAGS while linking (diff)
downloadgentoo-3311ad27a34632ddbb2040aba6fd3bc530ba2462.tar.gz
gentoo-3311ad27a34632ddbb2040aba6fd3bc530ba2462.tar.bz2
gentoo-3311ad27a34632ddbb2040aba6fd3bc530ba2462.zip
net-analyzer/netselect: Old
Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/netselect/Manifest1
-rw-r--r--net-analyzer/netselect/files/netselect-0.3-bsd.patch56
-rw-r--r--net-analyzer/netselect/files/netselect-0.3-glibc.patch11
-rw-r--r--net-analyzer/netselect/netselect-0.3-r3.ebuild42
-rw-r--r--net-analyzer/netselect/netselect-0.3-r4.ebuild42
5 files changed, 0 insertions, 152 deletions
diff --git a/net-analyzer/netselect/Manifest b/net-analyzer/netselect/Manifest
index c5c1b317a02..b0a81164dab 100644
--- a/net-analyzer/netselect/Manifest
+++ b/net-analyzer/netselect/Manifest
@@ -1,3 +1,2 @@
-DIST netselect-0.3.tar.gz 22047 BLAKE2B b0039ee21382f541446c49b3a536e400e70120513217969ffb7168c906c5938d099e5e072f05f68a95829410fd013da386527ee1280938714c00a006ae6a248d SHA512 04a4b79c357a0110dcf377ad04ac729ed7854bec4b064ad16da632367ce1870379546fffc8396ea770bfa580618d7c0495c16b0ba30f736419511b890ce5dca5
DIST netselect-0.4-ipv6.patch.xz 18272 BLAKE2B 6197057085e892c156a9fb3a82ac0030a2ff1b4276dde48405de2d2bcfdcef066c4f3eeff174f766af23d2807085f97e459dbffc87b2a2950a472e7964f2e3fc SHA512 422b54df5be45379fe7d6776b6e653a8e49df6fb77421527f2eb6c687597f36cccc7ab5cc5206e9823c318f6facd84fb4e8c0dbffbf9641cee593401cb73abea
DIST netselect-0.4.tar.gz 22095 BLAKE2B 1dd83c4dcd38ab7b987ead76f4e7e727980bbad91b59c56948e13540307e685984cc11ea94292d38959c8253f1f6ec2e6e6e044302f26b09153717d6e29e96be SHA512 eee9639122b7cc89218c610794d090582aecb3df138bcef41472c8d40c0f7e998b2c4b04aace13795fda5c710ee28cc2c0784a680ad6d1aa6a14eb441a408bfa
diff --git a/net-analyzer/netselect/files/netselect-0.3-bsd.patch b/net-analyzer/netselect/files/netselect-0.3-bsd.patch
deleted file mode 100644
index e9624d87215..00000000000
--- a/net-analyzer/netselect/files/netselect-0.3-bsd.patch
+++ /dev/null
@@ -1,56 +0,0 @@
---- a/netselect.c
-+++ b/netselect.c
-@@ -39,14 +39,14 @@
- * hey, great! Let me know. -- apenwarr
- */
-
--#ifdef __EMX__
--# include <io.h>
--# include <fcntl.h>
--# include <sys/types.h>
--# include <sys/select.h>
--# include <machine/endian.h>
--#else
--# include <endian.h>
-+#ifdef __linux__
-+#include <endian.h>
-+#include <sys/types.h>
-+#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
-+#if defined(__OpenBSD__)
-+#include <machine/types.h>
-+#endif
-+#include <machine/endian.h>
- #endif
-
- #include <sys/param.h>
-@@ -152,6 +152,7 @@
- extern int optind;
- int hostcount, startcount, endcount = 0, sent_one, lag, min_lag = 100;
- int ch, seq, ttl, max_ttl = 30, min_tries = 10, num_score = 1;
-+ int on = 1;
- struct timeval now;
- struct timezone tz;
- OPacket outpacket; /* last output (udp) packet */
-@@ -234,7 +235,12 @@
- if (verbose >= 1)
- fprintf(stderr, "Running netselect to choose %d out of %d address%s.\n",
- num_score, numhosts, numhosts==1 ? "" : "es");
--
-+
-+ if (setsockopt(sndsock, IPPROTO_IP, IP_HDRINCL, &on, sizeof(on)) < 0) {
-+ perror("IP_HDRINCL");
-+ _exit(EXIT_FAILURE);
-+ }
-+
- /* keep going until most of the hosts have been finished */
- must_continue = numhosts;
- while (must_continue && must_continue >= numhosts/2)
-@@ -712,7 +718,7 @@
- ip->ip_off = 0;
- ip->ip_hl = sizeof(*ip) >> 2;
- ip->ip_p = IPPROTO_UDP;
-- ip->ip_len = 0; /* kernel fills this in */
-+ ip->ip_len = sizeof(OPacket);
- ip->ip_ttl = ttl;
- ip->ip_v = IPVERSION;
- ip->ip_id = htons(ident + seq);
diff --git a/net-analyzer/netselect/files/netselect-0.3-glibc.patch b/net-analyzer/netselect/files/netselect-0.3-glibc.patch
deleted file mode 100644
index 053e5865b34..00000000000
--- a/net-analyzer/netselect/files/netselect-0.3-glibc.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/netselect.c
-+++ b/netselect.c
-@@ -780,7 +780,7 @@
- #if !defined(__GLIBC__)
- int fromlen = sizeof(from);
- #else /* __GLIBC__ */
-- size_t fromlen = sizeof(from);
-+ socklen_t fromlen = sizeof(from);
- #endif /* __GLIBC__ */
-
- FD_ZERO(&fds);
diff --git a/net-analyzer/netselect/netselect-0.3-r3.ebuild b/net-analyzer/netselect/netselect-0.3-r3.ebuild
deleted file mode 100644
index 5709db974bb..00000000000
--- a/net-analyzer/netselect/netselect-0.3-r3.ebuild
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit eutils flag-o-matic toolchain-funcs
-
-DESCRIPTION="Ultrafast implementation of ping"
-HOMEPAGE="http://apenwarr.ca/netselect/"
-SRC_URI="${HOMEPAGE}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
-
-S=${WORKDIR}/${PN}
-
-src_prepare() {
- epatch \
- "${FILESDIR}/${P}-bsd.patch" \
- "${FILESDIR}/${P}-glibc.patch"
-
- sed -i \
- -e "s:PREFIX =.*:PREFIX = ${ED}usr:" \
- -e "s:CFLAGS =.*:CFLAGS = -Wall -I. ${CFLAGS}:" \
- -e "s:LDFLAGS =.*:LDFLAGS = ${LDFLAGS}:" \
- -e '23,27d' \
- -e '34d' \
- Makefile || die
-}
-
-src_compile() {
- emake CC="$(tc-getCC)"
-}
-
-src_install () {
- dobin netselect
- if ! use prefix ; then
- fowners root:wheel /usr/bin/netselect
- fperms 4711 /usr/bin/netselect
- fi
- dodoc ChangeLog HISTORY README*
-}
diff --git a/net-analyzer/netselect/netselect-0.3-r4.ebuild b/net-analyzer/netselect/netselect-0.3-r4.ebuild
deleted file mode 100644
index 59c62667dfa..00000000000
--- a/net-analyzer/netselect/netselect-0.3-r4.ebuild
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit eutils flag-o-matic toolchain-funcs
-
-DESCRIPTION="Ultrafast implementation of ping"
-HOMEPAGE="http://apenwarr.ca/netselect/"
-SRC_URI="${HOMEPAGE}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
-
-S=${WORKDIR}/${PN}
-
-src_prepare() {
- epatch \
- "${FILESDIR}/${P}-bsd.patch" \
- "${FILESDIR}/${P}-glibc.patch"
-
- sed -i \
- -e "s:PREFIX =.*:PREFIX = ${ED}usr:" \
- -e "s:CFLAGS =.*:CFLAGS = -Wall -I. ${CFLAGS}:" \
- -e "s:LDFLAGS =.*:LDFLAGS = ${LDFLAGS}:" \
- -e '23,27d' \
- -e '34d' \
- Makefile || die
-}
-
-src_compile() {
- emake CC="$(tc-getCC)"
-}
-
-src_install () {
- dobin netselect
- if ! use prefix ; then
- fowners root:wheel /usr/bin/netselect
- fperms 4711 /usr/bin/netselect
- fi
- dodoc ChangeLog HISTORY README*
-}