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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun Oct 11 22:19:14 CEST 2009


Author: waja
Date: 2009-10-11 22:19:13 +0200 (Sun, 11 Oct 2009)
New Revision: 5479

Added:
   trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-base.postrm
   trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-base.preinst
Removed:
   trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-dfsg.postrm
   trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-dfsg.preinst
Modified:
   trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/changelog
Log:
maintainers scripts to openvas-plugins-base

Modified: trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/changelog
===================================================================
--- trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/changelog	2009-10-11 19:08:38 UTC (rev 5478)
+++ trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/changelog	2009-10-11 20:19:13 UTC (rev 5479)
@@ -1,6 +1,6 @@
 openvas-plugins-dfsg (1.0.7-5+svn20090921) UNRELEASED; urgency=low
 
-  * NOT RELEASED YET
+  * Move Maintainers scripts to openvas-plugins-base
 
  -- Jan Wagner <waja at cyconet.org>  Sun, 11 Oct 2009 20:23:34 +0200
 

Copied: trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-base.postrm (from rev 5474, trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-dfsg.postrm)

Copied: trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-base.preinst (from rev 5474, trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-dfsg.preinst)

Deleted: trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-dfsg.postrm
===================================================================
--- trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-dfsg.postrm	2009-10-11 19:08:38 UTC (rev 5478)
+++ trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-dfsg.postrm	2009-10-11 20:19:13 UTC (rev 5479)
@@ -1,32 +0,0 @@
-#!/bin/sh -e
-
-if [ "$1" = "purge" ] && [ -d /usr/lib/openvas/plugins ]; then
-  echo ""
-  echo "The /usr/lib/openvas/plugins directory still exists."
-  echo "This might be because you downloaded additional plugins into it"
-  echo "when using a previous OpenVAS version."
-  echo -n "Do you want to remove the full directory now? (yes/no) "
-  read ANSWER
-  case $ANSWER in
-    [yY]*) rm -rf /usr/lib/openvas/plugins ;;
-  esac
-fi
-
-if [ "$1" = "purge" ] && [ -d /var/lib/openvas/plugins ]; then
-  echo ""
-  echo "The /var/lib/openvas/plugins directory still exists."
-  echo "This might be because you downloaded additional plugins into it."
-  if [ -d /var/lib/openvas/plugins/.desc ]; then
-  echo "Or because the openvas-server package was not fully purged."
-  fi
-  echo ""
-  echo -n "Do you want to remove the full directory now? (yes/no) "
-  read ANSWER
-  case $ANSWER in
-    [yY]*) rm -rf /var/lib/openvas/plugins ;;
-  esac
-fi
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-dfsg.preinst
===================================================================
--- trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-dfsg.preinst	2009-10-11 19:08:38 UTC (rev 5478)
+++ trunk/openvas-packaging/openvas-plugins/debian/trunk/debian/openvas-plugins-dfsg.preinst	2009-10-11 20:19:13 UTC (rev 5479)
@@ -1,39 +0,0 @@
-#!/bin/sh -e
-# Preinst script for openvas-plugins
-# (c) 2004-2007 Javier Fernández-Sanguino
-
-PLUGINDIR=/var/lib/openvas/plugins/
-OPLUGINDIR=/usr/lib/openvas/plugins/
-
-# Basicly, check if there is anything 
-
-[ ! -d $OPLUGINDIR ] && exit 0
-
-echo -n "Moving plugins from $OPLUGINDIR to $PLUGINDIR ..."
-if [ ! -d $PLUGINDIR ] ; then
-	mkdir -p $PLUGINDIR
-	chown root:root $PLUGINDIR
-	chmod 0766 $PLUGINDIR
-fi
-
-# Now, we don't care about descriptions, they will be regenerated
-[ -d "$OPLUGINDIR/.desc" ] && rm -rf $OPLUGINDIR/.desc
-[ ! -d "$PLUGINDIR/.desc" ] && mkdir $PLUGINDIR/.desc
-
-find $OPLUGINDIR -maxdepth 1 -mindepth 1 ! -name *.nes | 
-while read content; do
-	base=`basename $content`
-	if [ -e "$PLUGINDIR/$base" ]; then
-		cp -a "$OPLUGINDIR/$base" $PLUGINDIR
-		rm -rf "$OPLUGINDIR/$base"
-	else
-		mv "$OPLUGINDIR/$base" $PLUGINDIR
-	fi
-done
-			
-
-echo ".done"
-
-#DEBHELPER#
-
-exit 0



More information about the Openvas-commits mailing list