pkgsrc/net/arpwatch/Makefile

31 lines
776 B
Makefile

# $NetBSD: Makefile,v 1.10 2000/01/10 00:57:15 wiz Exp $
#
DISTNAME= arpwatch-2.1a4
CATEGORIES= net
MASTER_SITES= ftp://ftp.ee.lbl.gov/
EXTRACT_SUFX= .tar.Z
MAINTAINER= bouyer@netbsd.org
GNU_CONFIGURE= yes
pre-patch:
f=arpwatch.h; \
${MV} ${WRKSRC}/$$f ${WRKSRC}/$$f-prepatch; \
${SED} -e '/Header/s|\$$||g' ${WRKSRC}/$$f-prepatch > ${WRKSRC}/$$f
post-install:
${INSTALL_MAN} ${WRKSRC}/arpwatch.8 ${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/arpsnmp.8 ${PREFIX}/man/man8
@${TEST} -e /var/db/arpwatch || ${MKDIR} /var/db/arpwatch
${TOUCH} /var/db/arpwatch/arp.dat
${INSTALL_DATA} ${WRKSRC}/ethercodes.dat ${PREFIX}/etc
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
DEPENDS+= libpcap-0.4:../../net/libpcap
.endif
.include "../../mk/bsd.pkg.mk"