diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-11-03 16:06:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-11-03 16:06:58 +0000 |
commit | bd4aeefe33e63f613512604e47bfca7b2187697d (patch) | |
tree | adb35b5a9a00ee7ea591ab0c987f70167c23b597 /net-libs/libnet/libnet-1.0.2a-r7.ebuild | |
parent | 48ece6662cbd443015f5a57ae6d8cbdbd69ef37c (diff) |
gentoo resync : 03.11.2019
Diffstat (limited to 'net-libs/libnet/libnet-1.0.2a-r7.ebuild')
-rw-r--r-- | net-libs/libnet/libnet-1.0.2a-r7.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/net-libs/libnet/libnet-1.0.2a-r7.ebuild b/net-libs/libnet/libnet-1.0.2a-r7.ebuild new file mode 100644 index 000000000000..5419190c2e16 --- /dev/null +++ b/net-libs/libnet/libnet-1.0.2a-r7.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools 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 + "${FILESDIR}"/${PN}-1.0.2a-test.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_test() { + emake -C test +} + +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/* +} |