diff options
author | Sam James <sam@gentoo.org> | 2023-10-13 15:58:49 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-10-13 15:59:52 +0100 |
commit | 1a148b3092766ef0b1ebb515eb42ae10a6aa5c42 (patch) | |
tree | 6aa28c10aacfb0e66c0c593c649f4001db0619c9 /net-libs/libnet | |
parent | net-libs/libnet: drop 1.2.9999 (diff) | |
download | gentoo-1a148b3092766ef0b1ebb515eb42ae10a6aa5c42.tar.gz gentoo-1a148b3092766ef0b1ebb515eb42ae10a6aa5c42.tar.bz2 gentoo-1a148b3092766ef0b1ebb515eb42ae10a6aa5c42.zip |
net-libs/libnet: add 1.3
Closes: https://bugs.gentoo.org/875107
Closes: https://bugs.gentoo.org/832385
Closes: https://bugs.gentoo.org/881031
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs/libnet')
-rw-r--r-- | net-libs/libnet/Manifest | 1 | ||||
-rw-r--r-- | net-libs/libnet/libnet-1.3.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/net-libs/libnet/Manifest b/net-libs/libnet/Manifest index a0cec350a696..53731e2c05bd 100644 --- a/net-libs/libnet/Manifest +++ b/net-libs/libnet/Manifest @@ -1 +1,2 @@ DIST libnet-1.2.tar.gz 649191 BLAKE2B bc463c7869e0327ec2f7663c2e66a27302e368f9846235f6774f36aed66263655badaf980e7e7fb08cc2f9a7f2620129c193bbdd49bbee58401f229a69c50c2a SHA512 84430f24e000eb7728b1fbb5e620716d13d193e8b9e024cf56a08fbeeeaaf56c9122caaf7647f01e6b38b73212e592fa5cc4e8ff56b1d5f5a73aea462e84edd6 +DIST libnet-1.3.tar.gz 595500 BLAKE2B b43f15143e6a1de3350b814d7acd4a41d61eb08e6dfeb729868e55f65c445942ae52905953f3a4fad00402b47fc5119634233ea3ae28806c1869bb34ef6fba9b SHA512 c434327108b61e73b61acc5f2b346d049ab5d58e494db21971368eac733a9a0a3e9d95e0b4523c20629b02ed0feef086c50c582719635f21e980c440d55dd462 diff --git a/net-libs/libnet/libnet-1.3.ebuild b/net-libs/libnet/libnet-1.3.ebuild new file mode 100644 index 000000000000..ec34798e5bdc --- /dev/null +++ b/net-libs/libnet/libnet-1.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Library for commonly used low-level network functions" +HOMEPAGE="http://libnet-dev.sourceforge.net/ https://github.com/libnet/libnet" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="BSD BSD-2" +SLOT="1.1" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="static-libs test" +# Fails in sandbox, tries to access /proc/self/uid_map. +RESTRICT="!test? ( test ) test" + +# doxygen needed for man pages +BDEPEND=" + app-doc/doxygen + test? ( dev-util/cmocka ) +" + +DOCS=( ChangeLog.md README.md doc/MIGRATION.md ) + +src_configure() { + local myeconfargs=( + --enable-doxygen-man + + $(use_enable static-libs static) + $(use_enable test tests) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + find "${D}" -name '*.la' -delete || die +} |