mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-libs/libnet: Fix libnet-1.0-config --defines.
Package-Manager: Portage-2.3.16, Repoman-2.3.6
This commit is contained in:
11
net-libs/libnet/files/libnet-1.0.2a-_SOURCE.patch
Normal file
11
net-libs/libnet/files/libnet-1.0.2a-_SOURCE.patch
Normal file
@@ -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/"
|
||||
12
net-libs/libnet/files/libnet-1.0.2a-funroll.patch
Normal file
12
net-libs/libnet/files/libnet-1.0.2a-funroll.patch
Normal file
@@ -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
|
||||
|
||||
58
net-libs/libnet/libnet-1.0.2a-r6.ebuild
Normal file
58
net-libs/libnet/libnet-1.0.2a-r6.ebuild
Normal file
@@ -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/*
|
||||
}
|
||||
Reference in New Issue
Block a user