File:  [cvs.NetBSD.org] / pkgsrc / net / sdig / Makefile
Revision 1.17: download - view: text, annotated - select for diffs
Tue Oct 23 17:19:07 2012 UTC (12 years, 1 month ago) by asau
Branches: MAIN
CVS tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, HEAD
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.

# $NetBSD: Makefile,v 1.17 2012/10/23 17:19:07 asau 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

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 "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>