- HAS_CONFIGURE -> CONFIGURE_STYLE
- remove FAKE - add RCS ids to patches and PLIST - add arp.dat to PLIST - do not install rc.arpwatch in /etc - add patch to make arpwatch work on interfaces without IP
This commit is contained in:
parent
22149fbc56
commit
7c6b47ac05
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2000/04/21 14:50:41 kevlo Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 2000/10/12 09:37:35 camield Exp $
|
||||
|
||||
DISTNAME= arpwatch-2.1a4
|
||||
CATEGORIES= net
|
||||
@ -14,8 +14,7 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
FAKE= Yes
|
||||
HAS_CONFIGURE= Yes
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS= --quiet
|
||||
INSTALL_TARGET= install install-man
|
||||
|
||||
@ -31,6 +30,5 @@ post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/arpwatch; \
|
||||
done
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch
|
||||
@${INSTALL_SCRIPT} ${FILESDIR}/arpwatch.sh /etc/rc.arpwatch
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,5 @@
|
||||
$OpenBSD: patch-aa,v 1.2 2000/10/12 09:37:35 camield Exp $
|
||||
|
||||
*** arp2ethers.orig Tue Mar 29 11:44:52 1994
|
||||
--- arp2ethers Tue Jul 1 02:34:40 1997
|
||||
***************
|
||||
|
@ -1,3 +1,5 @@
|
||||
$OpenBSD: patch-ab,v 1.2 2000/10/12 09:37:35 camield Exp $
|
||||
|
||||
--- p.awk.orig Wed Mar 25 15:01:16 1998
|
||||
+++ p.awk Wed Mar 25 15:01:43 1998
|
||||
@@ -3,7 +3,7 @@
|
||||
|
20
net/arpwatch/patches/patch-no_ip
Normal file
20
net/arpwatch/patches/patch-no_ip
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-no_ip,v 1.1 2000/10/12 09:37:35 camield Exp $
|
||||
|
||||
Do not bail if the interface does not have an IP assigned.
|
||||
|
||||
--- arpwatch.c.orig Tue Feb 10 01:35:15 1998
|
||||
+++ arpwatch.c Tue Oct 10 10:13:08 2000
|
||||
@@ -191,9 +193,10 @@
|
||||
|
||||
/* Determine network and netmask */
|
||||
if (pcap_lookupnet(interface, &net, &netmask, errbuf) < 0) {
|
||||
- (void)fprintf(stderr, "%s: bad interface %s: %s\n",
|
||||
- prog, interface, errbuf);
|
||||
- exit(1);
|
||||
+ (void)fprintf(stderr, "%s: WARNING: %s\n",
|
||||
+ prog, errbuf);
|
||||
+ net = 0;
|
||||
+ netmask = 0;
|
||||
}
|
||||
|
||||
/* Drop into the background if not debugging */
|
@ -1,9 +1,12 @@
|
||||
@comment $OpenBSD: PLIST,v 1.4 2000/10/12 09:37:35 camield Exp $
|
||||
sbin/arpwatch
|
||||
sbin/arpsnmp
|
||||
man/man8/arpwatch.8
|
||||
man/man8/arpsnmp.8
|
||||
arpwatch/arp.dat
|
||||
arpwatch/arp2ethers
|
||||
arpwatch/ethercodes.dat
|
||||
arpwatch/d.awk
|
||||
arpwatch/e.awk
|
||||
arpwatch/p.awk
|
||||
@dirrm arpwatch
|
||||
|
Loading…
Reference in New Issue
Block a user