summaryrefslogtreecommitdiff
path: root/net/sdig/Makefile
blob: 82c20d80244e138f0d8da7fdd8517bc9b135358f (plain)
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
# $NetBSD: Makefile,v 1.21 2017/09/04 18:00:58 wiz Exp $

DISTNAME=	sdig-0.30
PKGREVISION=	3
CATEGORIES=	net
#MASTER_SITES=	http://www.exploits.org/sdig/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} mactable.gz

MAINTAINER=	pkgsrc-users@NetBSD.org
#HOMEPAGE=	http://www.exploits.org/sdig/
COMMENT=	Switch Digger finds port assignment for hosts on a switched Ethernet

SUBST_CLASSES+=		sdig
SUBST_STAGE.sdig=	post-build
SUBST_MESSAGE.sdig=	Inserting the correct prefix directory.
SUBST_FILES.sdig=	sdig.conf
SUBST_SED.sdig=		-e 's,\$${PREFIX},${PREFIX},g'

INSTALLATION_DIRS+=	bin ${PKGMANDIR}/man8 ${PKGMANDIR}/man5 share/doc \
			share/examples share/misc

post-install:
	${INSTALL_DATA} ${WRKSRC}/sdig.conf ${DESTDIR}${PREFIX}/share/examples/
	${INSTALL_DATA} ${WRKDIR}/mactable ${DESTDIR}${PREFIX}/share/misc/
	${INSTALL_DATA} ${WRKSRC}/sdig.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/
	${INSTALL_DATA} ${WRKSRC}/sdig.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/

.include "../../net/net-snmp/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"