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-libs/libnet/, net-libs/libnet/files/
Date: Mon, 27 Jan 2020 00:54:28
Message-Id: 1580086460.ecd205fb78fa52836a18d835c1468e0afd03b38d.jer@gentoo
1 commit: ecd205fb78fa52836a18d835c1468e0afd03b38d
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 27 00:53:03 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 27 00:54:20 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecd205fb
7
8 net-libs/libnet: Old
9
10 Package-Manager: Portage-2.3.85, Repoman-2.3.20
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-libs/libnet/Manifest | 1 -
14 net-libs/libnet/files/libnet-1.1.6-musl.patch | 29 -----------
15 net-libs/libnet/files/libnet-1.2-_SOURCE.patch | 20 --------
16 net-libs/libnet/files/libnet-1.2-rc.patch | 11 -----
17 net-libs/libnet/files/libnet-1.2-sizeof.patch | 11 -----
18 net-libs/libnet/files/libnet-1.2-socklen_t.patch | 11 -----
19 net-libs/libnet/libnet-1.0.2a-r5.ebuild | 63 ------------------------
20 net-libs/libnet/libnet-1.0.2a-r6.ebuild | 58 ----------------------
21 net-libs/libnet/libnet-1.2_rc3-r1.ebuild | 50 -------------------
22 9 files changed, 254 deletions(-)
23
24 diff --git a/net-libs/libnet/Manifest b/net-libs/libnet/Manifest
25 index 0392bfec5f9..b64b987126b 100644
26 --- a/net-libs/libnet/Manifest
27 +++ b/net-libs/libnet/Manifest
28 @@ -1,3 +1,2 @@
29 DIST libnet-1.0.2a.tar.gz 140191 BLAKE2B 4107cb714b7be901250759ce5288a86922bd7cc20081a9d2c93758150d74c55844db98c43874befdfb593ec25e128d6ae2389eff7c46da79dcbb9681f649e059 SHA512 2e9a73bd767e1f46eea92e18ddd83cc3179144c8cc5b1a22b4dba50fee16173c951be4dd647a247bd7067c33b9e33489a6efb313ce1ea0c61c4a06009c3c4d95
30 -DIST libnet-1.2-rc3.tar.gz 676205 BLAKE2B f1aa199489e9aacc6b2bf567f5885e3b54b1044fb292693581c8fbc8fb99c565e0a9436b35914bdbda65798b00527049f279da3b3b6048e32f575f51b92c3309 SHA512 4f1c5c1a72e2c35ca3add772cb1af63e8245bb5c127e4a74fb9f619f987a4ea047bf17caaa292e9b7fa7642635773b90975d013644be0383dca93d688ca8430d
31 DIST libnet-1.2.tar.gz 649191 BLAKE2B bc463c7869e0327ec2f7663c2e66a27302e368f9846235f6774f36aed66263655badaf980e7e7fb08cc2f9a7f2620129c193bbdd49bbee58401f229a69c50c2a SHA512 84430f24e000eb7728b1fbb5e620716d13d193e8b9e024cf56a08fbeeeaaf56c9122caaf7647f01e6b38b73212e592fa5cc4e8ff56b1d5f5a73aea462e84edd6
32
33 diff --git a/net-libs/libnet/files/libnet-1.1.6-musl.patch b/net-libs/libnet/files/libnet-1.1.6-musl.patch
34 deleted file mode 100644
35 index 238fb8acbef..00000000000
36 --- a/net-libs/libnet/files/libnet-1.1.6-musl.patch
37 +++ /dev/null
38 @@ -1,29 +0,0 @@
39 ---- a/src/libnet_link_linux.c
40 -+++ b/src/libnet_link_linux.c
41 -@@ -30,26 +30,15 @@
42 - #include <sys/time.h>
43 -
44 - #include <net/if.h>
45 --#if (__GLIBC__)
46 - #include <netinet/if_ether.h>
47 - #include <net/if_arp.h>
48 --#else
49 --#include <linux/if_arp.h>
50 --#include <linux/if_ether.h>
51 --#endif
52 -
53 - #if (HAVE_PACKET_SOCKET)
54 - #ifndef SOL_PACKET
55 - #define SOL_PACKET 263
56 - #endif /* SOL_PACKET */
57 --#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
58 - #include <netpacket/packet.h>
59 - #include <net/ethernet.h> /* the L2 protocols */
60 --#else
61 --#include <asm/types.h>
62 --#include <linux/if_packet.h>
63 --#include <linux/if_ether.h> /* The L2 protocols */
64 --#endif
65 - #endif /* HAVE_PACKET_SOCKET */
66 -
67 - #include "../include/libnet.h"
68
69 diff --git a/net-libs/libnet/files/libnet-1.2-_SOURCE.patch b/net-libs/libnet/files/libnet-1.2-_SOURCE.patch
70 deleted file mode 100644
71 index d9c74f40e30..00000000000
72 --- a/net-libs/libnet/files/libnet-1.2-_SOURCE.patch
73 +++ /dev/null
74 @@ -1,20 +0,0 @@
75 ---- a/configure.ac
76 -+++ b/configure.ac
77 -@@ -157,14 +157,14 @@
78 - case "$target_os" in
79 -
80 - *linux*)
81 -- AC_DEFINE(_BSD_SOURCE, 1,
82 -+ AC_DEFINE(_DEFAULT_SOURCE, 1,
83 - [Define as necessary to "unhide" header symbols.])
84 -- AC_DEFINE(__BSD_SOURCE, 1,
85 -+ AC_DEFINE(__DEFAULT_SOURCE, 1,
86 - [Define as necessary to "unhide" header symbols.])
87 - AC_DEFINE(__FAVOR_BSD, 1,
88 - [Define if we should favor the BSD APIs when possible in Linux.])
89 -
90 -- LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
91 -+ LIBNET_CONFIG_DEFINES="-D_DEFAULT_SOURCE -D__DEFAULT_SOURCE -D__FAVOR_BSD"
92 - AC_CHECK_HEADERS(net/ethernet.h, \
93 - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H")
94 - ;;
95
96 diff --git a/net-libs/libnet/files/libnet-1.2-rc.patch b/net-libs/libnet/files/libnet-1.2-rc.patch
97 deleted file mode 100644
98 index b9e44a3491c..00000000000
99 --- a/net-libs/libnet/files/libnet-1.2-rc.patch
100 +++ /dev/null
101 @@ -1,11 +0,0 @@
102 ---- a/configure.ac
103 -+++ b/configure.ac
104 -@@ -4,7 +4,7 @@
105 - dnl
106 - dnl Process this file with autoconf to produce a configure script.
107 -
108 --AC_INIT([libnet],[1.2-rc3])
109 -+AC_INIT([libnet],[1.2])
110 - AC_MSG_RESULT(beginning autoconfiguration process for libnet-${PACKAGE_VERSION} ...)
111 - AC_CANONICAL_TARGET
112 - AC_CONFIG_SRCDIR([src/libnet_build_ip.c])
113
114 diff --git a/net-libs/libnet/files/libnet-1.2-sizeof.patch b/net-libs/libnet/files/libnet-1.2-sizeof.patch
115 deleted file mode 100644
116 index 603224267fd..00000000000
117 --- a/net-libs/libnet/files/libnet-1.2-sizeof.patch
118 +++ /dev/null
119 @@ -1,11 +0,0 @@
120 ---- a/sample/sebek.c
121 -+++ b/sample/sebek.c
122 -@@ -167,7 +167,7 @@
123 -
124 - if (payload_flag)
125 - {
126 -- memset(cmd, 0, sizeof(cmd));
127 -+ memset(cmd, 0, length);
128 - memcpy(cmd, payload, (payload_s < 12 ? payload_s : 12));
129 - length = payload_s;
130 - }
131
132 diff --git a/net-libs/libnet/files/libnet-1.2-socklen_t.patch b/net-libs/libnet/files/libnet-1.2-socklen_t.patch
133 deleted file mode 100644
134 index bce36704477..00000000000
135 --- a/net-libs/libnet/files/libnet-1.2-socklen_t.patch
136 +++ /dev/null
137 @@ -1,11 +0,0 @@
138 ---- a/src/libnet_raw.c
139 -+++ b/src/libnet_raw.c
140 -@@ -77,7 +77,7 @@
141 - #else
142 - BOOL n;
143 - #endif
144 -- int len;
145 -+ socklen_t len;
146 -
147 - #ifdef SO_SNDBUF
148 -
149
150 diff --git a/net-libs/libnet/libnet-1.0.2a-r5.ebuild b/net-libs/libnet/libnet-1.0.2a-r5.ebuild
151 deleted file mode 100644
152 index 4aca81dda4a..00000000000
153 --- a/net-libs/libnet/libnet-1.0.2a-r5.ebuild
154 +++ /dev/null
155 @@ -1,63 +0,0 @@
156 -# Copyright 1999-2017 Gentoo Foundation
157 -# Distributed under the terms of the GNU General Public License v2
158 -
159 -EAPI=4
160 -inherit autotools eutils toolchain-funcs
161 -
162 -DESCRIPTION="library to provide an API for commonly used low-level network functions (mainly packet injection)"
163 -HOMEPAGE="http://www.packetfactory.net/libnet/"
164 -SRC_URI="http://www.packetfactory.net/libnet/dist/deprecated/${P}.tar.gz"
165 -
166 -LICENSE="BSD BSD-2 HPND"
167 -SLOT="1.0"
168 -KEYWORDS="~alpha amd64 arm hppa ppc ppc64 sparc x86"
169 -IUSE=""
170 -
171 -S=${WORKDIR}/Libnet-${PV}
172 -
173 -src_prepare() {
174 - epatch "${FILESDIR}"/${PN}-1.0.2a-gcc33-fix.patch \
175 - "${FILESDIR}"/${PN}-1.0.2a-slot.patch
176 -
177 - use arm && epatch "${FILESDIR}"/${PN}-1.0.2a-endian.patch
178 -
179 - cd "${S}"
180 - mv libnet-config.in libnet-${SLOT}-config.in || die "moving libnet-config"
181 -
182 - cd "${S}"/include
183 - ln -s libnet.h libnet-${SLOT}.h
184 -
185 - cd libnet
186 - for f in *.h ; do
187 - ln -s ${f} ${f/-/-${SLOT}-} || die "linking ${f}"
188 - done
189 -
190 - cd "${S}"/doc
191 - ln -s libnet.3 libnet-${SLOT}.3 || die "linking manpage"
192 -
193 - cd "${S}"
194 - sed -i configure.in -e '/CCOPTS=/d;/CFLAGS=/s|.*|:|' || die
195 -
196 - eautoconf
197 -
198 - tc-export AR RANLIB
199 -}
200 -
201 -src_install() {
202 - default
203 - doman "${D}"/usr/man/man3/libnet-1.0.3
204 - rm -r "${D}"/usr/man
205 -
206 - dodoc VERSION doc/{README,TODO*,CHANGELOG*}
207 - newdoc README README.1st
208 - docinto example ; dodoc example/libnet*
209 - docinto Ancillary ; dodoc doc/Ancillary/*
210 -}
211 -
212 -pkg_postinst(){
213 - elog "libnet ${SLOT} is deprecated !"
214 - elog "config script: libnet-${SLOT}-config"
215 - elog "manpage: libnet-${SLOT}"
216 - elog "library: libnet-${SLOT}.a"
217 - elog "include: libnet-${SLOT}.h"
218 -}
219
220 diff --git a/net-libs/libnet/libnet-1.0.2a-r6.ebuild b/net-libs/libnet/libnet-1.0.2a-r6.ebuild
221 deleted file mode 100644
222 index 850469f7609..00000000000
223 --- a/net-libs/libnet/libnet-1.0.2a-r6.ebuild
224 +++ /dev/null
225 @@ -1,58 +0,0 @@
226 -# Copyright 1999-2017 Gentoo Foundation
227 -# Distributed under the terms of the GNU General Public License v2
228 -
229 -EAPI=6
230 -inherit autotools eutils toolchain-funcs
231 -
232 -DESCRIPTION="library providing an API for commonly used low-level network functions"
233 -HOMEPAGE="http://www.packetfactory.net/libnet/"
234 -SRC_URI="http://www.packetfactory.net/libnet/dist/deprecated/${P}.tar.gz"
235 -
236 -LICENSE="BSD BSD-2 HPND"
237 -SLOT="1.0"
238 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
239 -
240 -PATCHES=(
241 - "${FILESDIR}"/${PN}-1.0.2a-gcc33-fix.patch
242 - "${FILESDIR}"/${PN}-1.0.2a-slot.patch
243 - "${FILESDIR}"/${PN}-1.0.2a-endian.patch
244 - "${FILESDIR}"/${PN}-1.0.2a-_SOURCE.patch
245 - "${FILESDIR}"/${PN}-1.0.2a-funroll.patch
246 -
247 -)
248 -S=${WORKDIR}/Libnet-${PV}
249 -
250 -src_prepare() {
251 - default
252 -
253 - cd "${S}"
254 - mv libnet-config.in libnet-${SLOT}-config.in || die "moving libnet-config"
255 -
256 - cd "${S}"/include
257 - ln -s libnet.h libnet-${SLOT}.h
258 -
259 - cd libnet
260 - for f in *.h ; do
261 - ln -s ${f} ${f/-/-${SLOT}-} || die
262 - done
263 -
264 - cd "${S}"/doc
265 - ln -s libnet.3 libnet-${SLOT}.3 || die
266 -
267 - cd "${S}"
268 -
269 - eautoconf
270 -
271 - tc-export AR RANLIB
272 -}
273 -
274 -src_install() {
275 - default
276 - doman "${D}"/usr/man/man3/libnet-1.0.3
277 - rm -r "${D}"/usr/man
278 -
279 - dodoc VERSION doc/{README,TODO*,CHANGELOG*}
280 - newdoc README README.1st
281 - docinto example ; dodoc example/libnet*
282 - docinto Ancillary ; dodoc doc/Ancillary/*
283 -}
284
285 diff --git a/net-libs/libnet/libnet-1.2_rc3-r1.ebuild b/net-libs/libnet/libnet-1.2_rc3-r1.ebuild
286 deleted file mode 100644
287 index f5eef85a2c3..00000000000
288 --- a/net-libs/libnet/libnet-1.2_rc3-r1.ebuild
289 +++ /dev/null
290 @@ -1,50 +0,0 @@
291 -# Copyright 1999-2018 Gentoo Foundation
292 -# Distributed under the terms of the GNU General Public License v2
293 -
294 -EAPI=6
295 -inherit autotools eutils
296 -
297 -DESCRIPTION="library providing an API for commonly used low-level network functions"
298 -HOMEPAGE="http://libnet-dev.sourceforge.net/ https://github.com/sam-github/libnet"
299 -SRC_URI="mirror://sourceforge/project/${PN}-dev/${P/_/-}.tar.gz"
300 -
301 -LICENSE="BSD BSD-2 HPND"
302 -SLOT="1.1"
303 -KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
304 -IUSE="doc static-libs"
305 -
306 -DOCS=(
307 - README doc/{CHANGELOG,CONTRIB,DESIGN_NOTES,MIGRATION}
308 - doc/{PACKET_BUILDING,PORTED,RAWSOCKET_NON_SEQUITUR,TODO}
309 -)
310 -
311 -S=${WORKDIR}/${P/_/-}
312 -PATCHES=(
313 - "${FILESDIR}"/${PN}-1.1.6-musl.patch
314 - "${FILESDIR}"/${PN}-1.2-_SOURCE.patch
315 - "${FILESDIR}"/${PN}-1.2-rc.patch
316 - "${FILESDIR}"/${PN}-1.2-sizeof.patch
317 - "${FILESDIR}"/${PN}-1.2-socklen_t.patch
318 -)
319 -
320 -src_prepare() {
321 - default
322 -
323 - eautoreconf
324 -}
325 -src_configure() {
326 - econf $(use_enable static-libs static)
327 -}
328 -
329 -src_install() {
330 - default
331 -
332 - if use doc ; then
333 - docinto html
334 - dodoc -r doc/html/*
335 - docinto sample
336 - dodoc sample/*.[ch]
337 - fi
338 -
339 - prune_libtool_files
340 -}