[Pkg-mono-svn-commits] rev 591 - xsp-snapshot/trunk/debian/official

Pablo Fischer pabl0-guest@haydn.debian.org
Fri, 16 Apr 2004 21:17:41 -0600


Author: pabl0-guest
Date: 2004-04-16 21:17:33 -0600 (Fri, 16 Apr 2004)
New Revision: 591

Modified:
   xsp-snapshot/trunk/debian/official/asp.net-examples.postinst
   xsp-snapshot/trunk/debian/official/asp.net-examples.postrm
   xsp-snapshot/trunk/debian/official/rules
Log:
Updated the rules, we install the two scripts in sbin and 
in the postrm and postinst scripts we need to check if those files
really exists..



Modified: xsp-snapshot/trunk/debian/official/asp.net-examples.postinst
===================================================================
--- xsp-snapshot/trunk/debian/official/asp.net-examples.postinst	2004-04-17 03:13:26 UTC (rev 590)
+++ xsp-snapshot/trunk/debian/official/asp.net-examples.postinst	2004-04-17 03:17:33 UTC (rev 591)
@@ -2,8 +2,12 @@
 
 case "$1" in
     configure)
-	mono-xsp-update.conf || true
-	mono-server-update.conf || true
+	if [ -x /usr/sbin/mono-xsp-update.conf ]; then
+	    mono-xsp-update.conf || true
+	fi
+	if [ -x /usr/sbin/mono-server-update.conf ]; then
+	    mono-server-update.conf || true
+	fi
 	;;
 
 esac

Modified: xsp-snapshot/trunk/debian/official/asp.net-examples.postrm
===================================================================
--- xsp-snapshot/trunk/debian/official/asp.net-examples.postrm	2004-04-17 03:13:26 UTC (rev 590)
+++ xsp-snapshot/trunk/debian/official/asp.net-examples.postrm	2004-04-17 03:17:33 UTC (rev 591)
@@ -2,8 +2,12 @@
 
 case "$1" in
     purge|remove)
-	mono-xsp-update.conf || true
-	mono-server-update.conf || true
+	if [ -x /usr/sbin/mono-xsp-update.conf ]; then
+	    mono-xsp-update.conf || true
+	fi
+	if [ -x /usr/sbin/mono-server-update.conf ]; then
+	    mono-server-update.conf || true
+	fi
 	;;
     
 esac

Modified: xsp-snapshot/trunk/debian/official/rules
===================================================================
--- xsp-snapshot/trunk/debian/official/rules	2004-04-17 03:13:26 UTC (rev 590)
+++ xsp-snapshot/trunk/debian/official/rules	2004-04-17 03:17:33 UTC (rev 591)
@@ -88,8 +88,8 @@
 	chmod +x $(CURDIR)/debian/mono-server/usr/share/dotnet/monoserver/*.conf
 	chmod +x $(CURDIR)/debian/mono-xsp/usr/share/dotnet/xsp/*.conf
 
-	cd $(CURDIR)/debian/mono-server/usr/bin; ln -s ../share/dotnet/monoserver/*.conf .
-	cd $(CURDIR)/debian/mono-xsp/usr/bin; ln -s ../share/dotnet/xsp/*.conf .
+	cd $(CURDIR)/debian/mono-server/usr/sbin; ln -s ../share/dotnet/monoserver/*.conf .
+	cd $(CURDIR)/debian/mono-xsp/usr/sbin; ln -s ../share/dotnet/xsp/*.conf .
 
 #	ln -s $(CURDIR)/debian/mono-server/usr/share/dotnet/monoserver/*.conf $(CURDIR)/debian/mono-server/usr/bin/ 
 #	ln -s $(CURDIR)/debian/mono-xsp/usr/share/dotnet/xsp/*.conf $(CURDIR)/debian/mono-xsp/usr/bin/ 
@@ -106,6 +106,9 @@
 	dh_installinit
 #	dh_installcron
 #	dh_installinfo
+	if [ -x /usr/bin/dh_installxsp ]; then \
+		dh_installxsp;	\
+	fi;
 	dh_installman doc/xsp.1
 	dh_link
 	dh_strip