net-misc/arpd: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Wed, 3 Jan 2018 18:37:41 +0000 (19:37 +0100)
committerDavid Seifert <soap@gentoo.org>
Wed, 3 Jan 2018 18:37:41 +0000 (19:37 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

net-misc/arpd/arpd-0.2-r1.ebuild
net-misc/arpd/files/arpd-0.2-buildsystem-libevent-test.patch
net-misc/arpd/files/arpd-0.2-libevent.patch
net-misc/arpd/files/arpd.c.patch

index 788d227dc629dd4be8bc324c7ef3093951636015..bd8fb5f5f32dcb04d03f8cbe89d06c270de68354 100644 (file)
@@ -1,11 +1,11 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="3"
+EAPI=6
 
-inherit autotools eutils
+inherit autotools
 
-DESCRIPTION="ARP server which claims all unassigned addresses (for network monitoring or simulation)"
+DESCRIPTION="ARP server claiming all unassigned addresses (for network monitoring/simulation)"
 HOMEPAGE="http://www.citi.umich.edu/u/provos/honeyd/"
 SRC_URI="http://www.citi.umich.edu/u/provos/honeyd/${P}.tar.gz"
 
@@ -14,28 +14,36 @@ SLOT="0"
 KEYWORDS="amd64 hppa ppc ~ppc64 sparc x86"
 IUSE=""
 
-DEPEND=">=dev-libs/libdnet-1.4
+DEPEND="
+       >=dev-libs/libdnet-1.4
        >=dev-libs/libevent-0.6
        net-libs/libpcap
        !sys-apps/iproute2"
+RDEPEND="${DEPEND}"
 
 S=${WORKDIR}/${PN}
 
-src_prepare() {
-       epatch "${FILESDIR}"/arpd.c.patch
-       epatch "${FILESDIR}"/${P}-libevent.patch
+PATCHES=(
+       "${FILESDIR}"/arpd.c.patch
+       "${FILESDIR}"/${P}-libevent.patch
 
-       #fix bug 337481, replace test on libevent.a with libevent.so
-       epatch "${FILESDIR}"/${P}-buildsystem-libevent-test.patch
+       # bug 337481, replace test on libevent.a with libevent.so
+       "${FILESDIR}"/${P}-buildsystem-libevent-test.patch
+)
 
+src_prepare() {
+       default
+       mv configure.{in,ac} || die
        eautoreconf
 }
 
 src_configure() {
-       econf --with-libdnet="${EPREFIX}"/usr --with-libevent="${EPREFIX}"/usr
+       econf \
+               --with-libdnet="${EPREFIX}"/usr \
+               --with-libevent="${EPREFIX}"/usr
 }
 
 src_install() {
-       dosbin arpd || die
-       doman arpd.8 || die
+       dosbin arpd
+       doman arpd.8
 }
index c0c0f47712a89a8b5bfb6237722d2595785468ec..598fd0b737779b2ecb31c951d62f7e5c3a3bcbf0 100644 (file)
@@ -1,5 +1,5 @@
---- configure.in.orig  2003-02-09 19:30:33.000000000 +0100
-+++ configure.in       2010-09-17 00:33:36.138294836 +0200
+--- a/configure.in
++++ b/configure.in
 @@ -62,7 +62,7 @@
       ;;
    *)
index 2d5998f8c8d35387c7ff6996b6f42788b2e2b475..367ae551ad9825ede85e1dd7499239d8c224d83d 100644 (file)
@@ -1,5 +1,5 @@
---- arpd.orig/arpd.c   2010-02-03 20:03:07.098748175 +0100
-+++ arpd/arpd.c        2010-02-03 20:06:24.469749941 +0100
+--- a/arpd.c
++++ b/arpd.c
 @@ -445,9 +445,6 @@
  void
  terminate_handler(int sig)
index 732ed16c92d79abb2ccfd34b1e24ce19a905a12d..b8d2bbdb94b082106a046cb054b678f594a1b425 100644 (file)
@@ -1,5 +1,5 @@
---- arpd.c.orig        2005-03-30 15:13:37.136590624 -0700
-+++ arpd.c     2005-03-30 15:23:50.295231384 -0700
+--- a/arpd.c
++++ b/arpd.c
 @@ -265,7 +265,7 @@
            spa->addr_ip, tha->addr_eth, tpa->addr_ip);