public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-libs/libnet/files/, net-libs/libnet/
@ 2017-12-02 12:00 Jeroen Roovers
  0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Roovers @ 2017-12-02 12:00 UTC (permalink / raw
  To: gentoo-commits

commit:     a0d152a7a6bee296ad8730d8c854b641d8c4b28f
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  2 11:59:11 2017 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Dec  2 11:59:59 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0d152a7

net-libs/libnet: Fix libnet-1.0-config --defines.

Package-Manager: Portage-2.3.16, Repoman-2.3.6

 net-libs/libnet/files/libnet-1.0.2a-_SOURCE.patch | 11 +++++
 net-libs/libnet/files/libnet-1.0.2a-funroll.patch | 12 +++++
 net-libs/libnet/libnet-1.0.2a-r6.ebuild           | 58 +++++++++++++++++++++++
 3 files changed, 81 insertions(+)

diff --git a/net-libs/libnet/files/libnet-1.0.2a-_SOURCE.patch b/net-libs/libnet/files/libnet-1.0.2a-_SOURCE.patch
new file mode 100644
index 00000000000..5c81dbfe948
--- /dev/null
+++ b/net-libs/libnet/files/libnet-1.0.2a-_SOURCE.patch
@@ -0,0 +1,11 @@
+--- a/configure.in
++++ b/configure.in
+@@ -143,7 +143,7 @@
+     AC_DEFINE(_BSD_SOURCE)
+     AC_DEFINE(__BSD_SOURCE)
+     AC_DEFINE(__FAVOR_BSD)
+-    LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
++    LIBNET_CONFIG_DEFINES="-D_DEFAULT_SOURCE -D__FAVOR_BSD"
+     AC_CHECK_HEADERS(net/ethernet.h, \
+         LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H")
+     MAN_PREFIX="$prefix/man/man3/"

diff --git a/net-libs/libnet/files/libnet-1.0.2a-funroll.patch b/net-libs/libnet/files/libnet-1.0.2a-funroll.patch
new file mode 100644
index 00000000000..dd77d05dff2
--- /dev/null
+++ b/net-libs/libnet/files/libnet-1.0.2a-funroll.patch
@@ -0,0 +1,12 @@
+--- a/configure.in.JeR
++++ b/configure.in
+@@ -51,8 +51,7 @@
+ dnl
+ if test $ac_cv_prog_gcc = yes; then
+ dnl if test -z $CFLAGS; then 
+-    CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
+-    CFLAGS="$CCOPTS"
++:
+ dnl fi
+ fi
+ 

diff --git a/net-libs/libnet/libnet-1.0.2a-r6.ebuild b/net-libs/libnet/libnet-1.0.2a-r6.ebuild
new file mode 100644
index 00000000000..adba36bff7d
--- /dev/null
+++ b/net-libs/libnet/libnet-1.0.2a-r6.ebuild
@@ -0,0 +1,58 @@
+# 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 ~x86-fbsd"
+
+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/*
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-libs/libnet/files/, net-libs/libnet/
@ 2017-12-02 12:00 Jeroen Roovers
  0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Roovers @ 2017-12-02 12:00 UTC (permalink / raw
  To: gentoo-commits

commit:     6886f9b98158264ceb539805cbe749a4acf964f0
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  2 11:56:57 2017 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Dec  2 11:59:56 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6886f9b9

net-libs/libnet: Clean up patches.

Package-Manager: Portage-2.3.16, Repoman-2.3.6

 .../files/{1.0.2a-endian.patch => libnet-1.0.2a-endian.patch}     | 0
 .../files/{libnet-gcc33-fix => libnet-1.0.2a-gcc33-fix.patch}     | 4 ++--
 .../libnet/files/{1.0.2a-slot.patch => libnet-1.0.2a-slot.patch}  | 0
 net-libs/libnet/libnet-1.0.2a-r5.ebuild                           | 8 ++++----
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/net-libs/libnet/files/1.0.2a-endian.patch b/net-libs/libnet/files/libnet-1.0.2a-endian.patch
similarity index 100%
rename from net-libs/libnet/files/1.0.2a-endian.patch
rename to net-libs/libnet/files/libnet-1.0.2a-endian.patch

diff --git a/net-libs/libnet/files/libnet-gcc33-fix b/net-libs/libnet/files/libnet-1.0.2a-gcc33-fix.patch
similarity index 73%
rename from net-libs/libnet/files/libnet-gcc33-fix
rename to net-libs/libnet/files/libnet-1.0.2a-gcc33-fix.patch
index 6f711abc8eb..c4f3ae92570 100644
--- a/net-libs/libnet/files/libnet-gcc33-fix
+++ b/net-libs/libnet/files/libnet-1.0.2a-gcc33-fix.patch
@@ -1,5 +1,5 @@
---- Libnet-1.0.2a-orig/include/libnet.h	2001-02-07 00:19:25.000000000 +0100
-+++ Libnet-1.0.2a/include/libnet.h	2003-07-24 18:34:33.000000000 +0200
+--- a/include/libnet.h
++++ b/include/libnet.h
 @@ -84,8 +84,8 @@
  #define LIBNET_VERSION  "1.0.2a"
  

diff --git a/net-libs/libnet/files/1.0.2a-slot.patch b/net-libs/libnet/files/libnet-1.0.2a-slot.patch
similarity index 100%
rename from net-libs/libnet/files/1.0.2a-slot.patch
rename to net-libs/libnet/files/libnet-1.0.2a-slot.patch

diff --git a/net-libs/libnet/libnet-1.0.2a-r5.ebuild b/net-libs/libnet/libnet-1.0.2a-r5.ebuild
index babc5f8db28..cef3b46b4cf 100644
--- a/net-libs/libnet/libnet-1.0.2a-r5.ebuild
+++ b/net-libs/libnet/libnet-1.0.2a-r5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=4
@@ -16,10 +16,10 @@ IUSE=""
 S=${WORKDIR}/Libnet-${PV}
 
 src_prepare() {
-	epatch "${FILESDIR}"/libnet-gcc33-fix \
-		"${FILESDIR}"/${PV}-slot.patch
+	epatch "${FILESDIR}"/${PN}-1.0.2a-gcc33-fix.patch \
+		"${FILESDIR}"/${PN}-1.0.2a-slot.patch
 
-	use arm && epatch "${FILESDIR}"/${PV}-endian.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"


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-02 12:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-02 12:00 [gentoo-commits] repo/gentoo:master commit in: net-libs/libnet/files/, net-libs/libnet/ Jeroen Roovers
  -- strict thread matches above, loose matches on Subject: below --
2017-12-02 12:00 Jeroen Roovers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox