summaryrefslogtreecommitdiff
path: root/security/ipguard/Makefile
blob: e2651af0175eb80db2c0da6c7b80be0965271f3c (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
38
39
40
41
42
43
44
# New ports collection makefile for:    ipguard
# Date created:                         2 Sep 2005
# Whom:                                 SeaD
#
# $FreeBSD$
#

PORTNAME=	ipguard
PORTVERSION=	0.04
PORTREVISION=	2
CATEGORIES=	security net
MASTER_SITES=	http://ipguard.deep.perm.ru/files/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Tool designed to protect LAN IP adress space by ARP spoofing

BUILD_DEPENDS=	${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10

MAN8=		ipguard.8

ETHERS?=	/etc/ethers

MAKE_ARGS+=	ETHERS=${ETHERS}

SUB_FILES=	pkg-message
SUB_LIST=	ETHERS=${ETHERS}

LIBNET_CONFIG?=	${LOCALBASE}/bin/libnet10-config

post-patch:
	@${REINPLACE_CMD} -Ee \
		's|libnet-config|${LIBNET_CONFIG}|; \
		 s|^(INCLUDES=).*|\1`${LIBNET_CONFIG} --cflags`|' \
		${WRKSRC}/${MAKEFILE}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ipguard ${PREFIX}/sbin
	${INSTALL_MAN} ${WRKSRC}/doc/ipguard.8 ${MANPREFIX}/man/man8
	${INSTALL_SCRIPT} ${WRKSRC}/doc/ipguard.sh.sample ${PREFIX}/etc/rc.d

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>