summaryrefslogtreecommitdiff
path: root/net/sdig/Makefile
blob: e6861918f91e64848e06806d48430d897138d9ee (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
31
32
33
34
35
# $NetBSD: Makefile,v 1.11 2007/01/07 09:14:06 rillig Exp $

DISTNAME=	sdig-0.30
PKGREVISION=	1
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


EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

.include "../../mk/bsd.prefs.mk"

post-extract:
	${GZCAT} < ${DISTDIR}/mactable.gz > ${WRKDIR}/mactable

post-build: my-post-build

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

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

# Note:  this depends on having a MESSAGE file, which we do.
#
my-post-build:
	${SED} ${MESSAGE_SUBST_SED} < ${WRKSRC}/sdig.conf > ${WRKDIR}/sdig.conf