From 03504698ab4fe3f1007f2b4a44db152a9d561a6d Mon Sep 17 00:00:00 2001 From: adrianp Date: Mon, 8 Sep 2008 17:39:29 +0000 Subject: This is a major update of nipper from 0.10.5->0.12.0 which includes it being split between net/libnipper and the CLI in this package Lots of devices supported including: * 3Com SuperStack 3 Firewall * Bay Networks Accelar * CheckPoint Firewall Module * CheckPoint Management Module * Cisco IOS-based Router * Cisco IOS-based Catalyst Switch * Cisco PIX-based Firewall * Cisco ASA-based Firewall * Cisco FWSM-based Firewall * Cisco CatOS-based Catalyst * Cisco NMP-based Catalyst * Cisco Content Services Switch * HP ProCurve Switches * Juniper NetScreen Firewall * Nokia IP Firewall * Nortel Ethernet Routing Switch 8300 * Nortel Passport Device * SonicWall SonicOS Firewall For more details of changes between specific release see: http://nipper.titania.co.uk/news.php --- net/nipper/Makefile | 24 ++++++++++++++---------- net/nipper/PLIST | 8 ++------ net/nipper/distinfo | 9 +++++---- net/nipper/patches/patch-aa | 12 ++++++++++++ 4 files changed, 33 insertions(+), 20 deletions(-) create mode 100644 net/nipper/patches/patch-aa (limited to 'net/nipper') diff --git a/net/nipper/Makefile b/net/nipper/Makefile index 9f2135b9fd5..cb785ed9c24 100644 --- a/net/nipper/Makefile +++ b/net/nipper/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.1.1.1 2007/09/01 22:33:53 adrianp Exp $ +# $NetBSD: Makefile,v 1.2 2008/09/08 17:39:29 adrianp Exp $ # -DISTNAME= nipper-0.10.5 +DISTNAME= nipper-cli-0.12.0 +PKGNAME= ${DISTNAME:S/-cli//} CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nipper/} EXTRACT_SUFX= .tgz @@ -10,14 +11,17 @@ MAINTAINER= adrianp@NetBSD.org HOMEPAGE= http://nipper.sourceforge.net/ COMMENT= Performs security audits of network device configuration -INSTALLATION_DIRS= ${PREFIX}/share/doc/nipper +USE_LANGUAGES= c++ c +USE_CMAKE= yes -do-build: - cd ${WRKSRC} && \ - ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o nipper nipper.c - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/nipper ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${PREFIX}/share/doc/nipper +SUBST_CLASSES+= config +SUBST_STAGE.config= post-patch +SUBST_FILES.config= CMakeLists.txt 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_SYSCONFDIR}|g" +SUBST_MESSAGE.config= Fixing configuration files. +.include "../../net/libnipper/buildlink3.mk" +.include "../../devel/cmake/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/net/nipper/PLIST b/net/nipper/PLIST index bae1a30704c..3d6e546bb9a 100644 --- a/net/nipper/PLIST +++ b/net/nipper/PLIST @@ -1,7 +1,3 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2007/09/01 22:33:53 adrianp Exp $ +@comment $NetBSD: PLIST,v 1.2 2008/09/08 17:39:29 adrianp Exp $ bin/nipper -share/doc/nipper/Features.txt -share/doc/nipper/Options.txt -share/doc/nipper/Quickstart.txt -share/doc/nipper/XML.txt -@dirrm share/doc/nipper +man/man1/nipper.1 diff --git a/net/nipper/distinfo b/net/nipper/distinfo index f2c0b6e3434..2abdfb4c7af 100644 --- a/net/nipper/distinfo +++ b/net/nipper/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2007/09/01 22:33:53 adrianp Exp $ +$NetBSD: distinfo,v 1.2 2008/09/08 17:39:29 adrianp Exp $ -SHA1 (nipper-0.10.5.tgz) = f99faf8e0731b81463f82d7ff64f86a9d5f762e2 -RMD160 (nipper-0.10.5.tgz) = 40322e68376ec19a01a5654d2792aff0a98b0fee -Size (nipper-0.10.5.tgz) = 198770 bytes +SHA1 (nipper-cli-0.12.0.tgz) = 8e5717e5891d4ecdd3a4d73cde2c97f75dc3fb71 +RMD160 (nipper-cli-0.12.0.tgz) = c0a83f4c21941556bacee777801288d162b4fdea +Size (nipper-cli-0.12.0.tgz) = 34157 bytes +SHA1 (patch-aa) = 0ffd30ecd32ccb32746b03942e9b47df38508540 diff --git a/net/nipper/patches/patch-aa b/net/nipper/patches/patch-aa new file mode 100644 index 00000000000..962842280f4 --- /dev/null +++ b/net/nipper/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1 2008/09/08 17:39:29 adrianp Exp $ + +--- CMakeLists.txt.orig 2008-08-30 18:06:30.000000000 +0100 ++++ CMakeLists.txt +@@ -7,5 +7,5 @@ SET_TARGET_PROPERTIES(nipper-cli PROPERT + TARGET_LINK_LIBRARIES(nipper-cli nipper) + + # Install... +-INSTALL(TARGETS nipper-cli DESTINATION /usr/bin) +-INSTALL(FILES man/nipper.1 DESTINATION /usr/share/man/man1) ++INSTALL(TARGETS nipper-cli DESTINATION @@PREFIX@@/bin) ++INSTALL(FILES man/nipper.1 DESTINATION @@PREFIX@@/@@PKGMANDIR@@/man1) -- cgit v1.2.3