[Openvas-commits] r1191 - trunk/openvas-plugins/packaging/debian

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Aug 22 04:51:14 CEST 2008


Author: jfs
Date: 2008-08-22 04:51:14 +0200 (Fri, 22 Aug 2008)
New Revision: 1191

Modified:
   trunk/openvas-plugins/packaging/debian/rules
Log:
Enable the .NES code and change the audit code to use upstream's

Modified: trunk/openvas-plugins/packaging/debian/rules
===================================================================
--- trunk/openvas-plugins/packaging/debian/rules	2008-08-22 02:49:34 UTC (rev 1190)
+++ trunk/openvas-plugins/packaging/debian/rules	2008-08-22 02:51:14 UTC (rev 1191)
@@ -19,6 +19,7 @@
 build-stamp: config.status
 	dh_testdir
 	$(MAKE) 
+	( cd audit &&  sh exclude-plugins >exclude-list )
 	touch $@
 
 config.status: configure patch
@@ -32,14 +33,18 @@
 	dh_testroot
 	touch openvas.tmpl
 	[ ! -f Makefile ] || $(MAKE) distclean
-	-rm -rf debian/extra
+	-rm -rf audit/exclude-list
 	dh_clean build-stamp
 
 install: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
+# Before we install we audit the plugins available
+# If the audit passes we continue
 	$(MAKE) install prefix=$(tmp)/usr sysconfdir=$(tmp)/etc localstatedir=$(tmp)/var/run libdir=$(tmp)/var/lib
+	( cd $(tmp)/var/lib/openvas/plugins ; cat $(CURDIR)/audit/exclude-list $(CURDIR)/audit/remove-list | xargs rm -f )
+	( cd audit &&  sh audit-plugins $(tmp)/var/lib/openvas/plugins )
 	rm -rf $(tmp)/var/run 
 
 binary-indep:
@@ -55,18 +60,15 @@
 	dh_installchangelogs 
 ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" ""
 	dh_strip
-# Enable this only when there are .nes files (none currently)
-#	strip --strip-unneeded --remove-section=.comment --remove-section=.note \
-#          $(tmp)/var/lib/openvas/plugins/*.nes
+	strip --strip-unneeded --remove-section=.comment --remove-section=.note \
+          $(tmp)/var/lib/openvas/plugins/*.nes
 endif
 	dh_compress
 	dh_fixperms
-# Enable this only when there are .nes files (none currently)
-#	chmod -x $(tmp)/var/lib/openvas/plugins/*.nes
+	chmod -x $(tmp)/var/lib/openvas/plugins/*.nes
 	dh_installdeb
-# Enable this only when there are .nes files (none currently)
-#	dpkg-shlibdeps -Tdebian/openvas-plugins.substvars \
-#          $(tmp)/var/lib/openvas/plugins/*.nes
+	dpkg-shlibdeps -Tdebian/openvas-plugins.substvars \
+          $(tmp)/var/lib/openvas/plugins/*.nes
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb



More information about the Openvas-commits mailing list