summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2000-08-27 20:43:24 +0000
committerhubertf <hubertf@pkgsrc.org>2000-08-27 20:43:24 +0000
commitf14794369b098ecdbb16fac4654cf0df0f9dfc87 (patch)
tree35ac57533ee22daa1bc16088f573494f25c9e29a /net
parent9ba8bdaa9803232beaeff6ac76258a235b18652f (diff)
downloadpkgsrc-f14794369b098ecdbb16fac4654cf0df0f9dfc87.tar.gz
arp daemon, e.g. to do proxy-arp for whole subnets, etc.
Added after it was mentioned on tech-net.
Diffstat (limited to 'net')
-rw-r--r--net/arpd/Makefile17
-rw-r--r--net/arpd/files/md53
-rw-r--r--net/arpd/files/patch-sum5
-rw-r--r--net/arpd/patches/patch-aa33
-rw-r--r--net/arpd/patches/patch-ab12
-rw-r--r--net/arpd/patches/patch-ac13
-rw-r--r--net/arpd/pkg/COMMENT1
-rw-r--r--net/arpd/pkg/DESCR7
-rw-r--r--net/arpd/pkg/PLIST4
9 files changed, 95 insertions, 0 deletions
diff --git a/net/arpd/Makefile b/net/arpd/Makefile
new file mode 100644
index 00000000000..f5d8947d40d
--- /dev/null
+++ b/net/arpd/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/08/27 20:43:24 hubertf Exp $
+#
+
+DISTNAME= arpd
+PKGNAME= arpd-1.0
+CATEGORIES= net
+MASTER_SITES= ftp://subzero.campus.luth.se/pub/arpd/
+
+MAINTAINER= hubertf@netbsd.org
+
+MAKE_ENV+= BINDIR=${PREFIX}/sbin
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/arpd.README
+ ${INSTALL_DATA} ${WRKSRC}/arpd.conf ${PREFIX}/etc/arpd.conf.example
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/arpd/files/md5 b/net/arpd/files/md5
new file mode 100644
index 00000000000..527334dc5bc
--- /dev/null
+++ b/net/arpd/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/08/27 20:43:24 hubertf Exp $
+
+MD5 (arpd.tar.gz) = f1d8c301919d0a60fc976764ccc0bba6
diff --git a/net/arpd/files/patch-sum b/net/arpd/files/patch-sum
new file mode 100644
index 00000000000..74d7f30884f
--- /dev/null
+++ b/net/arpd/files/patch-sum
@@ -0,0 +1,5 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/08/27 20:43:24 hubertf Exp $
+
+MD5 (patch-aa) = 6fc1813739854685b3b9f6c57d6cb05b
+MD5 (patch-ab) = e4b8a2f458ebaa1e591f4230e00797a2
+MD5 (patch-ac) = 06b1f961b15971a0e54fdb608e4f5f7a
diff --git a/net/arpd/patches/patch-aa b/net/arpd/patches/patch-aa
new file mode 100644
index 00000000000..c3178b7e8a1
--- /dev/null
+++ b/net/arpd/patches/patch-aa
@@ -0,0 +1,33 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/08/27 20:43:24 hubertf Exp $
+
+--- arpd.c.orig Sun May 24 16:14:13 1998
++++ arpd.c
+@@ -49,6 +49,7 @@
+ #include <syslog.h>
+ #include <varargs.h>
+ #include <pcap.h>
++#include <errno.h>
+ #include "error.h"
+ #include "arpd.h"
+ #include "wraplib.h"
+@@ -205,12 +206,15 @@
+ struct if_elm *pIf_elm;
+
+ progname = "arpd"; /* for err_xxx */
+- if (argc > 1)
++ if (argc > 1) {
+ pF = fopen(argv[1], "r");
+- else
+- pF = fopen("/usr/local/etc/arpd.conf", "r");
+- if (pF == NULL)
+- err_sys("fopen");
++ if (pF == NULL)
++ err_sys("fopen %s", argv[1]);
++ } else {
++ pF = fopen(PREFIX "/etc/arpd.conf", "r");
++ if (pF == NULL)
++ err_sys("fopen " PREFIX "/etc/arpd.conf");
++ }
+
+ Read_conf(pF);
+ fclose(pF);
diff --git a/net/arpd/patches/patch-ab b/net/arpd/patches/patch-ab
new file mode 100644
index 00000000000..a227f702faa
--- /dev/null
+++ b/net/arpd/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/08/27 20:43:24 hubertf Exp $
+
+--- error.c.orig Sun Aug 27 22:26:49 2000
++++ error.c
+@@ -30,6 +30,7 @@
+ #include <stdio.h>
+ #include <syslog.h> /* for syslog() */
+ #include <string.h>
++#include <errno.h>
+ #include "arpd.h"
+
+ int daemon_proc; /* set nonzero by daemon_init() */
diff --git a/net/arpd/patches/patch-ac b/net/arpd/patches/patch-ac
new file mode 100644
index 00000000000..ff5f6332f97
--- /dev/null
+++ b/net/arpd/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/08/27 20:43:24 hubertf Exp $
+
+--- Makefile.orig Sun May 24 16:14:13 1998
++++ Makefile
+@@ -2,7 +2,7 @@
+ PROG= arpd
+ SRCS= arpd.c error.c wraplib.c util.c readconfig.c
+
+-CFLAGS+= -g -Wall
++CFLAGS+= -O2 -Wall -DPREFIX=\"${PREFIX}\"
+
+ LDADD+= -lcompat
+
diff --git a/net/arpd/pkg/COMMENT b/net/arpd/pkg/COMMENT
new file mode 100644
index 00000000000..de3db1ab8c2
--- /dev/null
+++ b/net/arpd/pkg/COMMENT
@@ -0,0 +1 @@
+arp daemon
diff --git a/net/arpd/pkg/DESCR b/net/arpd/pkg/DESCR
new file mode 100644
index 00000000000..f1680cf0aae
--- /dev/null
+++ b/net/arpd/pkg/DESCR
@@ -0,0 +1,7 @@
+Look in the sample arpd.conf file. You can only have one aprnet
+for each interface, but as many nonet, dont and proxy as you want.
+On startup arpd will try to open /usr/local/etc/arpd.conf . If you
+want another config file, specify that as an argument to arpd.
+
+If you have any questions/suggestions, don't hesitate to ask/tell
+Jens A Nilsson, jnilsson@ludd.luth.se.
diff --git a/net/arpd/pkg/PLIST b/net/arpd/pkg/PLIST
new file mode 100644
index 00000000000..e13a0a7dd95
--- /dev/null
+++ b/net/arpd/pkg/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/08/27 20:43:24 hubertf Exp $
+sbin/arpd
+etc/arpd.conf.example
+share/doc/arpd.README