diff options
author | adrianp <adrianp@pkgsrc.org> | 2008-09-08 17:27:56 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2008-09-08 17:27:56 +0000 |
commit | 9b38bb6c528ee8c72ef807916721d4c82d5302f1 (patch) | |
tree | 30c76b619980d025ed2399576203125d9ae757ba | |
parent | e3deb90788192e45883f98cc0e82ef67919be1a7 (diff) | |
download | pkgsrc-9b38bb6c528ee8c72ef807916721d4c82d5302f1.tar.gz |
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.
-rw-r--r-- | net/libnipper/DESCR | 4 | ||||
-rw-r--r-- | net/libnipper/Makefile | 33 | ||||
-rw-r--r-- | net/libnipper/PLIST | 7 | ||||
-rw-r--r-- | net/libnipper/buildlink3.mk | 19 | ||||
-rw-r--r-- | net/libnipper/distinfo | 6 | ||||
-rw-r--r-- | net/libnipper/patches/patch-aa | 16 |
6 files changed, 85 insertions, 0 deletions
diff --git a/net/libnipper/DESCR b/net/libnipper/DESCR new file mode 100644 index 00000000000..040dd62de1f --- /dev/null +++ b/net/libnipper/DESCR @@ -0,0 +1,4 @@ +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. diff --git a/net/libnipper/Makefile b/net/libnipper/Makefile new file mode 100644 index 00000000000..0a982429d90 --- /dev/null +++ b/net/libnipper/Makefile @@ -0,0 +1,33 @@ +# $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" diff --git a/net/libnipper/PLIST b/net/libnipper/PLIST new file mode 100644 index 00000000000..ec1c222f2f2 --- /dev/null +++ b/net/libnipper/PLIST @@ -0,0 +1,7 @@ +@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 diff --git a/net/libnipper/buildlink3.mk b/net/libnipper/buildlink3.mk new file mode 100644 index 00000000000..6d39ec67eb3 --- /dev/null +++ b/net/libnipper/buildlink3.mk @@ -0,0 +1,19 @@ +# $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/+$//} diff --git a/net/libnipper/distinfo b/net/libnipper/distinfo new file mode 100644 index 00000000000..1f17b7ba8ed --- /dev/null +++ b/net/libnipper/distinfo @@ -0,0 +1,6 @@ +$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 diff --git a/net/libnipper/patches/patch-aa b/net/libnipper/patches/patch-aa new file mode 100644 index 00000000000..14f6102a618 --- /dev/null +++ b/net/libnipper/patches/patch-aa @@ -0,0 +1,16 @@ +$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) |