summaryrefslogtreecommitdiff
path: root/net-misc/arpd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/arpd
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/arpd')
-rw-r--r--net-misc/arpd/Manifest8
-rw-r--r--net-misc/arpd/arpd-0.2-r1.ebuild41
-rw-r--r--net-misc/arpd/files/arpd-0.2-buildsystem-libevent-test.patch11
-rw-r--r--net-misc/arpd/files/arpd-0.2-libevent.patch28
-rw-r--r--net-misc/arpd/files/arpd.c.patch42
-rw-r--r--net-misc/arpd/metadata.xml8
6 files changed, 138 insertions, 0 deletions
diff --git a/net-misc/arpd/Manifest b/net-misc/arpd/Manifest
new file mode 100644
index 000000000000..c6e634229e31
--- /dev/null
+++ b/net-misc/arpd/Manifest
@@ -0,0 +1,8 @@
+AUX arpd-0.2-buildsystem-libevent-test.patch 446 SHA256 121094275b09266409ba29efda150c9acd0e8d840c0d099ba0cdd8390ed98d8a SHA512 391ad8f47d4f921d65eca692e70706c08804c1af65d779946bae8a520b6165921c0c3bd5e95a19ed078ffc7771f1b7247fce8d9e229834de2a0920853dbd0874 WHIRLPOOL fcbe5cce8c176b801a915c019a04ea3979470b114ef60e5ed117384cc00de55427f757832de1741a1ad07a5771e2e4ca7c57ebf86d9a1bf91ccaaa63fa113453
+AUX arpd-0.2-libevent.patch 506 SHA256 bb8baa1df8f6bf4b019875e27fc6f8e9f0599f0bbfb37ba7749503b3dd897187 SHA512 2b67af23366ed32a7354db84d372f1491571171b9b017d6c4eb3c52bc465fa9b5c1763327a5b99b69d89c46efab42590fcfc928442bd142485853cb0bbea7091 WHIRLPOOL 3883b6a8330423f4c05239492545ed1482f78474fa22e2bd7795eb29e071e6b6965d9b5b50a4d63522d5d440f1767da4720cac3f1548935b3ac5db4a3d308bed
+AUX arpd.c.patch 1477 SHA256 d193c5216b3c39741d6c00180d641471be9c80c68cc6a2100412671ae5e8627a SHA512 04ef9a49ddeca1543a8098b499c26cfea4ba470d488a92d33ccaded9dcfe0a2e1f01de2596ae0fe1e220f73ceed54fbcea20024152ce886d65af560234bb21a4 WHIRLPOOL 9952f837a9ef7ce79e25ddf4a74dcbf6158711ad4bbe1d2cf9744860fa46ec42be4125ee5c26ea08352db91111efa1ee35273fef6d29f7cb9b85fe0f990360e6
+DIST arpd-0.2.tar.gz 49437 SHA256 21d55de1506b3dbbfddb1b57e782a5fbf7140d299fbb08f4a8e48daaaa8489e7 SHA512 24bd4626188d74e172a46312790f8453619af2ac634c23379d1922c789ed97ef5db8a73ae13fccd98c94457da79682d6a1d7ccc3236c787f9d2eb15f64716ea2 WHIRLPOOL af0e590c0033daaf086bc70cb25129d69798ffd056fedd47707d0fc058f980a068b3ac682cbfcf7db4616872a0310b9ee8df7dc26ef5e6747f1def06bf673324
+EBUILD arpd-0.2-r1.ebuild 940 SHA256 a2bda7aa18776cc02a490dcb79fd7842650e41a69f11a1675ed6bf7ebeeff9fb SHA512 3d3315ad473ed88f20b788b290c2e04f142dc317489142db4cd35ad4b75efd034c6cc6617e234a97d09e1dfb86099a8313a329471efabe3f9440cc755891c327 WHIRLPOOL 6b0497dd7852edfb5164c8151aa80a3d2428ab52b3dd5f3190b67789e06657e0284c4231a38b04a61ca9e09c2c9566bbc55d8a8a18895586e284af234096c8e4
+MISC ChangeLog 2273 SHA256 c2f69c705ea8648a6c57979a08ff88b06838876d2065b51e24a5a8cfdc64bf38 SHA512 edd54ab93df396cb88ba694750f040aaa2e5131d9f88cbc29e85d6637df9e4fe6f053f333a596433a093de4c996fe1f2e8135f5cd3569d128b2eb654a1a51f76 WHIRLPOOL 2520ac5dc3a2ddaf2296a69f2c73e803c39127a1f002ec113c73b4426956fc361b63a3dc925cc86b2dc20d64e43a3bc4dc09ebfe33af56e140eacd4cbd28717e
+MISC ChangeLog-2015 2587 SHA256 a2945295dfa14c931200ad2a05df66cae11fdbf16f50030614e9548c1d31db61 SHA512 a57aa207d0eaf45ca51862bb09d731d1f71d8a8e2b83e9b30d9a5e490286d3caa324bf4f307653cb72c84dec63a9e66314b7e1a41d50b9f418b4093033d0e0a2 WHIRLPOOL d31fffbada20e72cf860740bab0f0f8ee32b96d6898e81c9132f93f1d32e8b53755d9dcc02dba8f1c858d5826a185e15bf1bcbed089495239fd598c617432360
+MISC metadata.xml 243 SHA256 ea7c9e5f065da7aa5425675f3750400b765c0eff02f0593783bb069401f73564 SHA512 efed1be9deecfbfc884a140e4ecb918eb473ec755a7910ab9afd29fa236d3c34c09c8d11454a0f8c26331539cbad1461f4824ff348b7fb7335cc88fb51d3882b WHIRLPOOL 4028c4779286eb8eece0b9834f1f83ea8bd212c5255dbfb60605cabb7559ede33da53884a1788100998b2dcf26abed2cf82468a3275cabac58f9eceb1e596757
diff --git a/net-misc/arpd/arpd-0.2-r1.ebuild b/net-misc/arpd/arpd-0.2-r1.ebuild
new file mode 100644
index 000000000000..788d227dc629
--- /dev/null
+++ b/net-misc/arpd/arpd-0.2-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit autotools eutils
+
+DESCRIPTION="ARP server which claims all unassigned addresses (for network monitoring or simulation)"
+HOMEPAGE="http://www.citi.umich.edu/u/provos/honeyd/"
+SRC_URI="http://www.citi.umich.edu/u/provos/honeyd/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc ~ppc64 sparc x86"
+IUSE=""
+
+DEPEND=">=dev-libs/libdnet-1.4
+ >=dev-libs/libevent-0.6
+ net-libs/libpcap
+ !sys-apps/iproute2"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/arpd.c.patch
+ epatch "${FILESDIR}"/${P}-libevent.patch
+
+ #fix bug 337481, replace test on libevent.a with libevent.so
+ epatch "${FILESDIR}"/${P}-buildsystem-libevent-test.patch
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --with-libdnet="${EPREFIX}"/usr --with-libevent="${EPREFIX}"/usr
+}
+
+src_install() {
+ dosbin arpd || die
+ doman arpd.8 || die
+}
diff --git a/net-misc/arpd/files/arpd-0.2-buildsystem-libevent-test.patch b/net-misc/arpd/files/arpd-0.2-buildsystem-libevent-test.patch
new file mode 100644
index 000000000000..c0c0f47712a8
--- /dev/null
+++ b/net-misc/arpd/files/arpd-0.2-buildsystem-libevent-test.patch
@@ -0,0 +1,11 @@
+--- configure.in.orig 2003-02-09 19:30:33.000000000 +0100
++++ configure.in 2010-09-17 00:33:36.138294836 +0200
+@@ -62,7 +62,7 @@
+ ;;
+ *)
+ AC_MSG_RESULT($withval)
+- if test -f $withval/include/event.h -a -f $withval/lib/libevent.a; then
++ if test -f $withval/include/event.h -a -f $withval/lib/libevent.so; then
+ owd=`pwd`
+ if cd $withval; then withval=`pwd`; cd $owd; fi
+ EVENTINC="-I$withval/include"
diff --git a/net-misc/arpd/files/arpd-0.2-libevent.patch b/net-misc/arpd/files/arpd-0.2-libevent.patch
new file mode 100644
index 000000000000..2d5998f8c8d3
--- /dev/null
+++ b/net-misc/arpd/files/arpd-0.2-libevent.patch
@@ -0,0 +1,28 @@
+--- arpd.orig/arpd.c 2010-02-03 20:03:07.098748175 +0100
++++ arpd/arpd.c 2010-02-03 20:06:24.469749941 +0100
+@@ -445,9 +445,6 @@
+ void
+ terminate_handler(int sig)
+ {
+- extern int event_gotsig;
+-
+- event_gotsig = 1;
+ arpd_sig = sig;
+ }
+
+@@ -464,7 +461,6 @@
+ main(int argc, char *argv[])
+ {
+ struct event recv_ev;
+- extern int (*event_sigcb)(void);
+ char *dev;
+ int c, debug;
+ FILE *fp;
+@@ -524,7 +520,6 @@
+ perror("signal");
+ return (-1);
+ }
+- event_sigcb = arpd_signal;
+
+ event_dispatch();
+
diff --git a/net-misc/arpd/files/arpd.c.patch b/net-misc/arpd/files/arpd.c.patch
new file mode 100644
index 000000000000..732ed16c92d7
--- /dev/null
+++ b/net-misc/arpd/files/arpd.c.patch
@@ -0,0 +1,42 @@
+--- arpd.c.orig 2005-03-30 15:13:37.136590624 -0700
++++ arpd.c 2005-03-30 15:23:50.295231384 -0700
+@@ -265,7 +265,7 @@
+ spa->addr_ip, tha->addr_eth, tpa->addr_ip);
+
+ if (op == ARP_OP_REQUEST) {
+- syslog(LOG_DEBUG, __FUNCTION__ ": who-has %s tell %s",
++ syslog(LOG_DEBUG, __FUNCTION__, ": who-has %s tell %s",
+ addr_ntoa(tpa), addr_ntoa(spa));
+ } else if (op == ARP_OP_REPLY) {
+ syslog(LOG_INFO, "arp reply %s is-at %s",
+@@ -282,7 +282,7 @@
+ int error;
+
+ if (addr_cmp(addr, &arpd_ifent.intf_addr) == 0) {
+- syslog(LOG_DEBUG, __FUNCTION__ ": %s at %s",
++ syslog(LOG_DEBUG, __FUNCTION__, ": %s at %s",
+ addr_ntoa(addr), addr_ntoa(&arpd_ifent.intf_link_addr));
+ return (0);
+ }
+@@ -291,10 +291,10 @@
+ error = arp_get(arpd_arp, &arpent);
+
+ if (error == -1) {
+- syslog(LOG_DEBUG, __FUNCTION__ ": no entry for %s",
++ syslog(LOG_DEBUG, __FUNCTION__, ": no entry for %s",
+ addr_ntoa(addr));
+ } else {
+- syslog(LOG_DEBUG, __FUNCTION__ ": %s at %s",
++ syslog(LOG_DEBUG, __FUNCTION__, ": %s at %s",
+ addr_ntoa(addr), addr_ntoa(&arpent.arp_ha));
+ }
+ return (error);
+@@ -423,7 +423,7 @@
+ if ((req = SPLAY_FIND(tree, &arpd_reqs, &tmp)) != NULL) {
+ addr_pack(&src.arp_ha, ADDR_TYPE_ETH, ETH_ADDR_BITS,
+ ethip->ar_sha, ETH_ADDR_LEN);
+- syslog(LOG_DEBUG, __FUNCTION__ ": %s at %s",
++ syslog(LOG_DEBUG, __FUNCTION__, ": %s at %s",
+ addr_ntoa(&req->pa), addr_ntoa(&src.arp_ha));
+
+ /* This address is claimed */
diff --git a/net-misc/arpd/metadata.xml b/net-misc/arpd/metadata.xml
new file mode 100644
index 000000000000..3c3d5ced6412
--- /dev/null
+++ b/net-misc/arpd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+</pkgmetadata>