summaryrefslogtreecommitdiff
path: root/net-mgmt/arpwatch/Makefile
blob: eba00932e0124286b122e2355b768ac0d05b3051 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# New ports collection makefile for:    arpwatch
# Version required:     2.0.2a1
# Date created:         March 24 1997
# Whom:                 Brian Somers <brian@awfulhak.org>
#
# $Id: Makefile,v 1.7 1997/08/01 05:34:03 obrien Exp $
#

DISTNAME=	arpwatch-2.0.2
CATEGORIES=	net
MASTER_SITES=	ftp://ftp.ee.lbl.gov/ \
		ftp://ftp.cso.uiuc.edu/pub/security/coast/unix/arpwatch/
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	brian@awfulhak.org

HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--quiet
MAKE_FLAGS=	CCOPT="${CFLAGS} -DPATH_SENDMAIL=\\\"/usr/sbin/sendmail\\\""
INSTALL_TARGET=	install install-man
MAN8=		arpwatch.8 arpsnmp.8

post-install:
	if [ ! -d ${PREFIX}/arpwatch ]; then				\
		${MKDIR} ${PREFIX}/arpwatch;				\
		chmod 775 ${PREFIX}/arpwatch;				\
		chown root.operator ${PREFIX}/arpwatch;			\
	fi
	${TOUCH} ${PREFIX}/arpwatch/arp.dat
	chmod 644 ${PREFIX}/arpwatch/arp.dat
	for file in ethercodes.dat d.awk e.awk p.awk; do		\
		${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/arpwatch/.;	\
	done
	${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${PREFIX}/arpwatch/.
	${INSTALL_SCRIPT} ${FILESDIR}/arpwatch.sh ${PREFIX}/etc/rc.d/.

.include <bsd.port.mk>