summaryrefslogtreecommitdiff
path: root/net/libnipper/Makefile
blob: 594c2ca6aaface9ee44f0f70dcf0eedcb90c508b (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
36
# $NetBSD: Makefile,v 1.3 2010/02/11 22:06:14 joerg Exp $
#

DISTNAME=	libnipper-0.12.1
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=nipper/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://nipper.sourceforge.net/
COMMENT=	Performs security audits of network device configuration

PKG_DESTDIR_SUPPORT=	user-destdir

USE_LANGUAGES=	c++
USE_CMAKE=	yes

CONF_FILES+=	${PREFIX}/share/examples/nipper.conf \
		${PKG_SYSCONFDIR}/nipper.conf

SUBST_CLASSES+=		config
SUBST_STAGE.config=	post-patch
SUBST_FILES.config=	CMakeLists.txt libnipper.cpp nipper.cpp
SUBST_SED.config=	-e "s|@@PREFIX@@|${PREFIX}|g"
SUBST_SED.config+=	-e "s|@@PKGMANDIR@@|${PKGMANDIR}|g"
SUBST_SED.config+=	-e "s|/etc|${PKG_SYSONFDIR}|g"
SUBST_MESSAGE.config=	Fixing configuration files.

INSTALLATION_DIRS+=	share/examples

post-install:
	${INSTALL_DATA} ${WRKSRC}/nipper.conf \
	    ${DESTDIR}${PREFIX}/share/examples/nipper.conf

.include "../../devel/cmake/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"