Mon Sep 8 17:27:56 2008 UTC ()
Nipper performs security audits of network device configuration
files. The report produced by Nipper includes; detailed security-related
issues with recommendations, a configuration report and various
appendices. Nipper has a large number of configuration options.

Status:

Vendor Tag:	TNF
Release Tags:	pkgsrc-base


(adrianp)
diff -r0 -r1.1.1.1 pkgsrc/net/libnipper/Makefile
diff -r0 -r1.1.1.1 pkgsrc/net/libnipper/PLIST
diff -r0 -r1.1.1.1 pkgsrc/net/libnipper/distinfo
diff -r0 -r1.1.1.1 pkgsrc/net/libnipper/DESCR
diff -r0 -r1.1.1.1 pkgsrc/net/libnipper/buildlink3.mk
diff -r0 -r1.1.1.1 pkgsrc/net/libnipper/patches/patch-aa

File Added: pkgsrc/net/libnipper/Makefile
# $NetBSD: Makefile,v 1.1.1.1 2008/09/08 17:27:56 adrianp Exp $
#

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

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

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.

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

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

File Added: pkgsrc/net/libnipper/PLIST
@comment $NetBSD: PLIST,v 1.1.1.1 2008/09/08 17:27:56 adrianp Exp $
include/libnipper/config.h
include/libnipper/libnipper.h
lib/libnipper.so
share/examples/nipper.conf
man/man5/nipper.conf.5
@dirrm include/libnipper

File Added: pkgsrc/net/libnipper/distinfo
$NetBSD: distinfo,v 1.1.1.1 2008/09/08 17:27:56 adrianp Exp $

SHA1 (libnipper-0.12.1.tgz) = 0999540d127588d1be1b9f3baecb25603511e448
RMD160 (libnipper-0.12.1.tgz) = 3ff9bdae5e41a1b1549103c6bea030f662d0d19c
Size (libnipper-0.12.1.tgz) = 450651 bytes
SHA1 (patch-aa) = c4d245196cd901b9f11826bd163df701e1b447a2

File Added: pkgsrc/net/libnipper/DESCR
Nipper performs security audits of network device configuration
files. The report produced by Nipper includes; detailed security-related
issues with recommendations, a configuration report and various
appendices. Nipper has a large number of configuration options.

File Added: pkgsrc/net/libnipper/buildlink3.mk
# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/09/08 17:27:56 adrianp Exp $

BUILDLINK_DEPTH:=		${BUILDLINK_DEPTH}+
LIBNIPPER_BUILDLINK3_MK:=	${LIBNIPPER_BUILDLINK3_MK}+

.if ${BUILDLINK_DEPTH} == "+"
BUILDLINK_DEPENDS+=	libnipper
.endif

BUILDLINK_PACKAGES:=	${BUILDLINK_PACKAGES:Nlibnipper}
BUILDLINK_PACKAGES+=	libnipper
BUILDLINK_ORDER:=	${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libnipper

.if ${LIBNIPPER_BUILDLINK3_MK} == "+"
BUILDLINK_API_DEPENDS.libnipper+=	libnipper>=0.12.1
BUILDLINK_PKGSRCDIR.libnipper?=	../../net/libnipper
.endif	# LIBNIPPER_BUILDLINK3_MK

BUILDLINK_DEPTH:=		${BUILDLINK_DEPTH:S/+$//}

File Added: pkgsrc/net/libnipper/patches/patch-aa
$NetBSD: patch-aa,v 1.1.1.1 2008/09/08 17:27:56 adrianp Exp $

--- CMakeLists.txt.orig	2008-09-05 21:01:55.000000000 +0100
+++ CMakeLists.txt
@@ -319,7 +319,6 @@ SET(libnipper_SRC
 ADD_LIBRARY(nipper SHARED ${libnipper_SRC})
 
 # Install...
-INSTALL(TARGETS nipper LIBRARY DESTINATION /usr/lib)
-INSTALL(FILES nipper.conf DESTINATION /etc)
-INSTALL(FILES libnipper.h config.h DESTINATION /usr/include/libnipper/)
-INSTALL(FILES man/nipper.conf.5 DESTINATION /usr/share/man/man5)
\ No newline at end of file
+INSTALL(TARGETS nipper LIBRARY DESTINATION @@PREFIX@@/lib)
+INSTALL(FILES libnipper.h config.h DESTINATION @@PREFIX@@/include/libnipper/)
+INSTALL(FILES man/nipper.conf.5 DESTINATION @@PREFIX@@/@@PKGMANDIR@@/man5)