From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 11EFC1382C5 for ; Fri, 5 Feb 2021 17:26:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1CC3AE089A; Fri, 5 Feb 2021 17:26:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F2957E0896 for ; Fri, 5 Feb 2021 17:26:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 50C87342A2D for ; Fri, 5 Feb 2021 17:26:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AEFB84A4 for ; Fri, 5 Feb 2021 17:26:50 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1612542895.302de7d521d48c4b1682a29a3af965c101f64607.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libnet/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libnet/libnet-1.0.2a-r7.ebuild X-VCS-Directories: net-libs/libnet/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 302de7d521d48c4b1682a29a3af965c101f64607 X-VCS-Branch: master Date: Fri, 5 Feb 2021 17:26:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7311d31a-0585-44d7-9294-83ce4f276d63 X-Archives-Hash: 2241ad629b099e5d841ae5202efde9ad commit: 302de7d521d48c4b1682a29a3af965c101f64607 Author: Sam James gentoo org> AuthorDate: Fri Feb 5 16:34:55 2021 +0000 Commit: Sam James gentoo org> CommitDate: Fri Feb 5 16:34:55 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=302de7d5 net-libs/libnet: modernise ebuild for 1.0.2a-r7 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> net-libs/libnet/libnet-1.0.2a-r7.ebuild | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/net-libs/libnet/libnet-1.0.2a-r7.ebuild b/net-libs/libnet/libnet-1.0.2a-r7.ebuild index dfef828f59d..c07ef94b90a 100644 --- a/net-libs/libnet/libnet-1.0.2a-r7.ebuild +++ b/net-libs/libnet/libnet-1.0.2a-r7.ebuild @@ -1,12 +1,14 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 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" +S="${WORKDIR}"/Libnet-${PV} LICENSE="BSD BSD-2 HPND" SLOT="1.0" @@ -21,29 +23,27 @@ PATCHES=( "${FILESDIR}"/${PN}-1.0.2a-test.patch ) -S=${WORKDIR}/Libnet-${PV} src_prepare() { default - cd "${S}" + cd "${S}" || die mv libnet-config.in libnet-${SLOT}-config.in || die "moving libnet-config" - cd "${S}"/include - ln -s libnet.h libnet-${SLOT}.h + cd "${S}"/include || die + ln -s libnet.h libnet-${SLOT}.h || die - cd libnet + cd libnet || die for f in *.h ; do ln -s ${f} ${f/-/-${SLOT}-} || die done - cd "${S}"/doc + cd "${S}"/doc || die ln -s libnet.3 libnet-${SLOT}.3 || die - cd "${S}" - - eautoconf + cd "${S}" || die + eautoreconf tc-export AR RANLIB } @@ -53,11 +53,15 @@ src_test() { src_install() { default - doman "${D}"/usr/man/man3/libnet-1.0.3 - rm -r "${D}"/usr/man + doman "${ED}"/usr/man/man3/libnet-1.0.3 + rm -r "${ED}"/usr/man || die dodoc VERSION doc/{README,TODO*,CHANGELOG*} newdoc README README.1st - docinto example ; dodoc example/libnet* - docinto Ancillary ; dodoc doc/Ancillary/* + + docinto example + dodoc example/libnet* + + docinto Ancillary + dodoc doc/Ancillary/* }