summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/libnet')
-rw-r--r--net-libs/libnet/Manifest1
-rw-r--r--net-libs/libnet/files/libnet-1.1.6-musl.patch29
-rw-r--r--net-libs/libnet/files/libnet-1.2-_SOURCE.patch20
-rw-r--r--net-libs/libnet/files/libnet-1.2-rc.patch11
-rw-r--r--net-libs/libnet/files/libnet-1.2-sizeof.patch11
-rw-r--r--net-libs/libnet/files/libnet-1.2-socklen_t.patch11
-rw-r--r--net-libs/libnet/libnet-1.0.2a-r5.ebuild63
-rw-r--r--net-libs/libnet/libnet-1.0.2a-r6.ebuild58
-rw-r--r--net-libs/libnet/libnet-1.2_rc3-r1.ebuild50
9 files changed, 0 insertions, 254 deletions
diff --git a/net-libs/libnet/Manifest b/net-libs/libnet/Manifest
index 0392bfec5f9b..b64b987126b2 100644
--- a/net-libs/libnet/Manifest
+++ b/net-libs/libnet/Manifest
@@ -1,3 +1,2 @@
DIST libnet-1.0.2a.tar.gz 140191 BLAKE2B 4107cb714b7be901250759ce5288a86922bd7cc20081a9d2c93758150d74c55844db98c43874befdfb593ec25e128d6ae2389eff7c46da79dcbb9681f649e059 SHA512 2e9a73bd767e1f46eea92e18ddd83cc3179144c8cc5b1a22b4dba50fee16173c951be4dd647a247bd7067c33b9e33489a6efb313ce1ea0c61c4a06009c3c4d95
-DIST libnet-1.2-rc3.tar.gz 676205 BLAKE2B f1aa199489e9aacc6b2bf567f5885e3b54b1044fb292693581c8fbc8fb99c565e0a9436b35914bdbda65798b00527049f279da3b3b6048e32f575f51b92c3309 SHA512 4f1c5c1a72e2c35ca3add772cb1af63e8245bb5c127e4a74fb9f619f987a4ea047bf17caaa292e9b7fa7642635773b90975d013644be0383dca93d688ca8430d
DIST libnet-1.2.tar.gz 649191 BLAKE2B bc463c7869e0327ec2f7663c2e66a27302e368f9846235f6774f36aed66263655badaf980e7e7fb08cc2f9a7f2620129c193bbdd49bbee58401f229a69c50c2a SHA512 84430f24e000eb7728b1fbb5e620716d13d193e8b9e024cf56a08fbeeeaaf56c9122caaf7647f01e6b38b73212e592fa5cc4e8ff56b1d5f5a73aea462e84edd6
diff --git a/net-libs/libnet/files/libnet-1.1.6-musl.patch b/net-libs/libnet/files/libnet-1.1.6-musl.patch
deleted file mode 100644
index 238fb8acbef1..000000000000
--- a/net-libs/libnet/files/libnet-1.1.6-musl.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- a/src/libnet_link_linux.c
-+++ b/src/libnet_link_linux.c
-@@ -30,26 +30,15 @@
- #include <sys/time.h>
-
- #include <net/if.h>
--#if (__GLIBC__)
- #include <netinet/if_ether.h>
- #include <net/if_arp.h>
--#else
--#include <linux/if_arp.h>
--#include <linux/if_ether.h>
--#endif
-
- #if (HAVE_PACKET_SOCKET)
- #ifndef SOL_PACKET
- #define SOL_PACKET 263
- #endif /* SOL_PACKET */
--#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
- #include <netpacket/packet.h>
- #include <net/ethernet.h> /* the L2 protocols */
--#else
--#include <asm/types.h>
--#include <linux/if_packet.h>
--#include <linux/if_ether.h> /* The L2 protocols */
--#endif
- #endif /* HAVE_PACKET_SOCKET */
-
- #include "../include/libnet.h"
diff --git a/net-libs/libnet/files/libnet-1.2-_SOURCE.patch b/net-libs/libnet/files/libnet-1.2-_SOURCE.patch
deleted file mode 100644
index d9c74f40e300..000000000000
--- a/net-libs/libnet/files/libnet-1.2-_SOURCE.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/configure.ac
-+++ b/configure.ac
-@@ -157,14 +157,14 @@
- case "$target_os" in
-
- *linux*)
-- AC_DEFINE(_BSD_SOURCE, 1,
-+ AC_DEFINE(_DEFAULT_SOURCE, 1,
- [Define as necessary to "unhide" header symbols.])
-- AC_DEFINE(__BSD_SOURCE, 1,
-+ AC_DEFINE(__DEFAULT_SOURCE, 1,
- [Define as necessary to "unhide" header symbols.])
- AC_DEFINE(__FAVOR_BSD, 1,
- [Define if we should favor the BSD APIs when possible in Linux.])
-
-- LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
-+ LIBNET_CONFIG_DEFINES="-D_DEFAULT_SOURCE -D__DEFAULT_SOURCE -D__FAVOR_BSD"
- AC_CHECK_HEADERS(net/ethernet.h, \
- LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H")
- ;;
diff --git a/net-libs/libnet/files/libnet-1.2-rc.patch b/net-libs/libnet/files/libnet-1.2-rc.patch
deleted file mode 100644
index b9e44a3491cb..000000000000
--- a/net-libs/libnet/files/libnet-1.2-rc.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/configure.ac
-+++ b/configure.ac
-@@ -4,7 +4,7 @@
- dnl
- dnl Process this file with autoconf to produce a configure script.
-
--AC_INIT([libnet],[1.2-rc3])
-+AC_INIT([libnet],[1.2])
- AC_MSG_RESULT(beginning autoconfiguration process for libnet-${PACKAGE_VERSION} ...)
- AC_CANONICAL_TARGET
- AC_CONFIG_SRCDIR([src/libnet_build_ip.c])
diff --git a/net-libs/libnet/files/libnet-1.2-sizeof.patch b/net-libs/libnet/files/libnet-1.2-sizeof.patch
deleted file mode 100644
index 603224267fdf..000000000000
--- a/net-libs/libnet/files/libnet-1.2-sizeof.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/sample/sebek.c
-+++ b/sample/sebek.c
-@@ -167,7 +167,7 @@
-
- if (payload_flag)
- {
-- memset(cmd, 0, sizeof(cmd));
-+ memset(cmd, 0, length);
- memcpy(cmd, payload, (payload_s < 12 ? payload_s : 12));
- length = payload_s;
- }
diff --git a/net-libs/libnet/files/libnet-1.2-socklen_t.patch b/net-libs/libnet/files/libnet-1.2-socklen_t.patch
deleted file mode 100644
index bce36704477f..000000000000
--- a/net-libs/libnet/files/libnet-1.2-socklen_t.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/src/libnet_raw.c
-+++ b/src/libnet_raw.c
-@@ -77,7 +77,7 @@
- #else
- BOOL n;
- #endif
-- int len;
-+ socklen_t len;
-
- #ifdef SO_SNDBUF
-
diff --git a/net-libs/libnet/libnet-1.0.2a-r5.ebuild b/net-libs/libnet/libnet-1.0.2a-r5.ebuild
deleted file mode 100644
index 4aca81dda4a0..000000000000
--- a/net-libs/libnet/libnet-1.0.2a-r5.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-inherit autotools eutils toolchain-funcs
-
-DESCRIPTION="library to provide an API for commonly used low-level network functions (mainly packet injection)"
-HOMEPAGE="http://www.packetfactory.net/libnet/"
-SRC_URI="http://www.packetfactory.net/libnet/dist/deprecated/${P}.tar.gz"
-
-LICENSE="BSD BSD-2 HPND"
-SLOT="1.0"
-KEYWORDS="~alpha amd64 arm hppa ppc ppc64 sparc x86"
-IUSE=""
-
-S=${WORKDIR}/Libnet-${PV}
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-1.0.2a-gcc33-fix.patch \
- "${FILESDIR}"/${PN}-1.0.2a-slot.patch
-
- use arm && epatch "${FILESDIR}"/${PN}-1.0.2a-endian.patch
-
- cd "${S}"
- mv libnet-config.in libnet-${SLOT}-config.in || die "moving libnet-config"
-
- cd "${S}"/include
- ln -s libnet.h libnet-${SLOT}.h
-
- cd libnet
- for f in *.h ; do
- ln -s ${f} ${f/-/-${SLOT}-} || die "linking ${f}"
- done
-
- cd "${S}"/doc
- ln -s libnet.3 libnet-${SLOT}.3 || die "linking manpage"
-
- cd "${S}"
- sed -i configure.in -e '/CCOPTS=/d;/CFLAGS=/s|.*|:|' || die
-
- eautoconf
-
- tc-export AR RANLIB
-}
-
-src_install() {
- default
- doman "${D}"/usr/man/man3/libnet-1.0.3
- rm -r "${D}"/usr/man
-
- dodoc VERSION doc/{README,TODO*,CHANGELOG*}
- newdoc README README.1st
- docinto example ; dodoc example/libnet*
- docinto Ancillary ; dodoc doc/Ancillary/*
-}
-
-pkg_postinst(){
- elog "libnet ${SLOT} is deprecated !"
- elog "config script: libnet-${SLOT}-config"
- elog "manpage: libnet-${SLOT}"
- elog "library: libnet-${SLOT}.a"
- elog "include: libnet-${SLOT}.h"
-}
diff --git a/net-libs/libnet/libnet-1.0.2a-r6.ebuild b/net-libs/libnet/libnet-1.0.2a-r6.ebuild
deleted file mode 100644
index 850469f76099..000000000000
--- a/net-libs/libnet/libnet-1.0.2a-r6.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit autotools eutils toolchain-funcs
-
-DESCRIPTION="library providing an API for commonly used low-level network functions"
-HOMEPAGE="http://www.packetfactory.net/libnet/"
-SRC_URI="http://www.packetfactory.net/libnet/dist/deprecated/${P}.tar.gz"
-
-LICENSE="BSD BSD-2 HPND"
-SLOT="1.0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-1.0.2a-gcc33-fix.patch
- "${FILESDIR}"/${PN}-1.0.2a-slot.patch
- "${FILESDIR}"/${PN}-1.0.2a-endian.patch
- "${FILESDIR}"/${PN}-1.0.2a-_SOURCE.patch
- "${FILESDIR}"/${PN}-1.0.2a-funroll.patch
-
-)
-S=${WORKDIR}/Libnet-${PV}
-
-src_prepare() {
- default
-
- cd "${S}"
- mv libnet-config.in libnet-${SLOT}-config.in || die "moving libnet-config"
-
- cd "${S}"/include
- ln -s libnet.h libnet-${SLOT}.h
-
- cd libnet
- for f in *.h ; do
- ln -s ${f} ${f/-/-${SLOT}-} || die
- done
-
- cd "${S}"/doc
- ln -s libnet.3 libnet-${SLOT}.3 || die
-
- cd "${S}"
-
- eautoconf
-
- tc-export AR RANLIB
-}
-
-src_install() {
- default
- doman "${D}"/usr/man/man3/libnet-1.0.3
- rm -r "${D}"/usr/man
-
- dodoc VERSION doc/{README,TODO*,CHANGELOG*}
- newdoc README README.1st
- docinto example ; dodoc example/libnet*
- docinto Ancillary ; dodoc doc/Ancillary/*
-}
diff --git a/net-libs/libnet/libnet-1.2_rc3-r1.ebuild b/net-libs/libnet/libnet-1.2_rc3-r1.ebuild
deleted file mode 100644
index f5eef85a2c3e..000000000000
--- a/net-libs/libnet/libnet-1.2_rc3-r1.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit autotools eutils
-
-DESCRIPTION="library providing an API for commonly used low-level network functions"
-HOMEPAGE="http://libnet-dev.sourceforge.net/ https://github.com/sam-github/libnet"
-SRC_URI="mirror://sourceforge/project/${PN}-dev/${P/_/-}.tar.gz"
-
-LICENSE="BSD BSD-2 HPND"
-SLOT="1.1"
-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"
-IUSE="doc static-libs"
-
-DOCS=(
- README doc/{CHANGELOG,CONTRIB,DESIGN_NOTES,MIGRATION}
- doc/{PACKET_BUILDING,PORTED,RAWSOCKET_NON_SEQUITUR,TODO}
-)
-
-S=${WORKDIR}/${P/_/-}
-PATCHES=(
- "${FILESDIR}"/${PN}-1.1.6-musl.patch
- "${FILESDIR}"/${PN}-1.2-_SOURCE.patch
- "${FILESDIR}"/${PN}-1.2-rc.patch
- "${FILESDIR}"/${PN}-1.2-sizeof.patch
- "${FILESDIR}"/${PN}-1.2-socklen_t.patch
-)
-
-src_prepare() {
- default
-
- eautoreconf
-}
-src_configure() {
- econf $(use_enable static-libs static)
-}
-
-src_install() {
- default
-
- if use doc ; then
- docinto html
- dodoc -r doc/html/*
- docinto sample
- dodoc sample/*.[ch]
- fi
-
- prune_libtool_files
-}