Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/netperf/files/, net-analyzer/netperf/
Date: Mon, 02 Jul 2018 11:22:38
Message-Id: 1530530550.8866ee9ebbed912406bec8af2896b3d0421254db.jer@gentoo
1 commit: 8866ee9ebbed912406bec8af2896b3d0421254db
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 2 11:22:06 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 2 11:22:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8866ee9e
7
8 net-analyzer/netperf: Old.
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 net-analyzer/netperf/Manifest | 1 -
13 net-analyzer/netperf/files/netperf-2.2-init | 21 ----------
14 net-analyzer/netperf/netperf-2.6.0-r1.ebuild | 62 ---------------------------
15 net-analyzer/netperf/netperf-2.7.0.ebuild | 63 ----------------------------
16 4 files changed, 147 deletions(-)
17
18 diff --git a/net-analyzer/netperf/Manifest b/net-analyzer/netperf/Manifest
19 index fa201cf029b..f378f80376d 100644
20 --- a/net-analyzer/netperf/Manifest
21 +++ b/net-analyzer/netperf/Manifest
22 @@ -1,2 +1 @@
23 -DIST netperf-2.6.0.tar.bz2 1032953 BLAKE2B c13e6c49b975273e2de97a32e1fbcc2265639b450b532f67aa07cf34a86ae23a34c1e4f90ad1d51c49e8aae5fdfcf97671bcd5969a0fd1bfc4333dd37021da88 SHA512 b3921d2e887088b14a8bbe5ace9b1cc0c8b29951eeaa7857ce3f324933397c8ff6b56eeacfe755181ce1a56c982fe431955f6db55bd20f2343324e22ee23c9b3
24 DIST netperf-2.7.0.tar.bz2 1024430 BLAKE2B 1263a2b3cee0790e4526245e522d29f8692a5a3e9d3b41468d1010bbee4d606a06904d9e0c4ac0af457bde562a476434be4c62a41e3c0dbf0e5c3aeb2ae5652a SHA512 5fb37945bead831247de9c8ba86b33f134ba39e753b483df72de97f536d0846538dadf61acc2dee57f04ab5d16a92afab4890e79a5d7ffa863afd526267fffad
25
26 diff --git a/net-analyzer/netperf/files/netperf-2.2-init b/net-analyzer/netperf/files/netperf-2.2-init
27 deleted file mode 100644
28 index cd2fb35cdd2..00000000000
29 --- a/net-analyzer/netperf/files/netperf-2.2-init
30 +++ /dev/null
31 @@ -1,21 +0,0 @@
32 -#!/sbin/openrc-run
33 -#
34 -# init.d script for net-analyzer/netperf's netserver
35 -#
36 -
37 -depend() {
38 - use net
39 -}
40 -
41 -start() {
42 - ebegin 'Starting netperf server (netserver)'
43 - start-stop-daemon --start --quiet --user nobody \
44 - --exec /usr/sbin/netserver -- ${NETSERVER_ARGS} >/dev/null
45 - eend $?
46 -}
47 -
48 -stop() {
49 - ebegin 'Stopping netperf server (netserver)'
50 - start-stop-daemon --stop --quiet --exec /usr/sbin/netserver
51 - eend $?
52 -}
53
54 diff --git a/net-analyzer/netperf/netperf-2.6.0-r1.ebuild b/net-analyzer/netperf/netperf-2.6.0-r1.ebuild
55 deleted file mode 100644
56 index 869d878465b..00000000000
57 --- a/net-analyzer/netperf/netperf-2.6.0-r1.ebuild
58 +++ /dev/null
59 @@ -1,62 +0,0 @@
60 -# Copyright 1999-2014 Gentoo Foundation
61 -# Distributed under the terms of the GNU General Public License v2
62 -
63 -EAPI=5
64 -inherit eutils flag-o-matic
65 -
66 -DESCRIPTION="Network performance benchmark including tests for TCP, UDP, sockets, ATM and more"
67 -SRC_URI="ftp://ftp.netperf.org/${PN}/${P}.tar.bz2"
68 -KEYWORDS="alpha amd64 arm64 hppa ia64 ppc ppc64 sparc x86"
69 -
70 -HOMEPAGE="http://www.netperf.org/"
71 -LICENSE="netperf"
72 -SLOT="0"
73 -IUSE="demo sctp"
74 -
75 -DEPEND=">=sys-apps/sed-4"
76 -
77 -src_prepare() {
78 - epatch \
79 - "${FILESDIR}"/${PN}-fix-scripts.patch \
80 - "${FILESDIR}"/${P}-log-dir.patch
81 -
82 - # Fixing paths in scripts
83 - sed -i \
84 - -e 's:^\(NETHOME=\).*:\1"/usr/bin":' \
85 - doc/examples/sctp_stream_script \
86 - doc/examples/tcp_range_script \
87 - doc/examples/tcp_rr_script \
88 - doc/examples/tcp_stream_script \
89 - doc/examples/udp_rr_script \
90 - doc/examples/udp_stream_script \
91 - || die
92 -
93 - # netlib.c:2292:5: warning: implicit declaration of function ‘sched_setaffinity’
94 - # nettest_omni.c:2943:5: warning: implicit declaration of function ‘splice’
95 - append-cppflags -D_GNU_SOURCE
96 -}
97 -
98 -src_configure() {
99 - econf \
100 - $(use_enable demo) \
101 - $(use_enable sctp)
102 -}
103 -
104 -src_install () {
105 - default
106 -
107 - # move netserver into sbin as we had it before 2.4 was released with its
108 - # autoconf goodness
109 - dodir /usr/sbin
110 - mv "${D}"/usr/{bin,sbin}/netserver || die
111 -
112 - # init.d / conf.d
113 - newinitd "${FILESDIR}"/${PN}-2.2-init netperf
114 - newconfd "${FILESDIR}"/${PN}-2.2-conf netperf
115 -
116 - # documentation and example scripts
117 - dodoc AUTHORS ChangeLog NEWS README Release_Notes
118 - dodir /usr/share/doc/${PF}/examples
119 - #Scripts no longer get installed by einstall
120 - cp doc/examples/*_script "${D}"/usr/share/doc/${PF}/examples || die
121 -}
122
123 diff --git a/net-analyzer/netperf/netperf-2.7.0.ebuild b/net-analyzer/netperf/netperf-2.7.0.ebuild
124 deleted file mode 100644
125 index 7c1622c9fe9..00000000000
126 --- a/net-analyzer/netperf/netperf-2.7.0.ebuild
127 +++ /dev/null
128 @@ -1,63 +0,0 @@
129 -# Copyright 1999-2015 Gentoo Foundation
130 -# Distributed under the terms of the GNU General Public License v2
131 -
132 -EAPI=5
133 -inherit eutils flag-o-matic
134 -
135 -DESCRIPTION="Network performance benchmark including tests for TCP, UDP, sockets, ATM and more"
136 -SRC_URI="ftp://ftp.netperf.org/${PN}/${P}.tar.bz2"
137 -KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
138 -
139 -HOMEPAGE="http://www.netperf.org/"
140 -LICENSE="netperf"
141 -SLOT="0"
142 -IUSE="demo sctp"
143 -
144 -DEPEND=">=sys-apps/sed-4"
145 -
146 -src_prepare() {
147 - epatch \
148 - "${FILESDIR}"/${PN}-fix-scripts.patch \
149 - "${FILESDIR}"/${PN}-2.6.0-log-dir.patch \
150 - "${FILESDIR}"/${PN}-2.7.0-includes.patch
151 -
152 - # Fixing paths in scripts
153 - sed -i \
154 - -e 's:^\(NETHOME=\).*:\1"/usr/bin":' \
155 - doc/examples/sctp_stream_script \
156 - doc/examples/tcp_range_script \
157 - doc/examples/tcp_rr_script \
158 - doc/examples/tcp_stream_script \
159 - doc/examples/udp_rr_script \
160 - doc/examples/udp_stream_script \
161 - || die
162 -
163 - # netlib.c:2292:5: warning: implicit declaration of function ‘sched_setaffinity’
164 - # nettest_omni.c:2943:5: warning: implicit declaration of function ‘splice’
165 - append-cppflags -D_GNU_SOURCE
166 -}
167 -
168 -src_configure() {
169 - econf \
170 - $(use_enable demo) \
171 - $(use_enable sctp)
172 -}
173 -
174 -src_install () {
175 - default
176 -
177 - # move netserver into sbin as we had it before 2.4 was released with its
178 - # autoconf goodness
179 - dodir /usr/sbin
180 - mv "${D}"/usr/{bin,sbin}/netserver || die
181 -
182 - # init.d / conf.d
183 - newinitd "${FILESDIR}"/${PN}-2.2-init netperf
184 - newconfd "${FILESDIR}"/${PN}-2.2-conf netperf
185 -
186 - # documentation and example scripts
187 - dodoc AUTHORS ChangeLog NEWS README Release_Notes
188 - dodir /usr/share/doc/${PF}/examples
189 - #Scripts no longer get installed by einstall
190 - cp doc/examples/*_script "${D}"/usr/share/doc/${PF}/examples || die
191 -}