[med-svn] r2140 - trunk/packages/emboss-explorer/trunk/debian

plessy at alioth.debian.org plessy at alioth.debian.org
Sat Jul 5 07:03:42 UTC 2008


Author: plessy
Date: 2008-07-05 07:03:41 +0000 (Sat, 05 Jul 2008)
New Revision: 2140

Added:
   trunk/packages/emboss-explorer/trunk/debian/emboss-explorer.postrm
Modified:
   trunk/packages/emboss-explorer/trunk/debian/README.Debian
   trunk/packages/emboss-explorer/trunk/debian/changelog
   trunk/packages/emboss-explorer/trunk/debian/rules
Log:
Added a postinst script that purges the temporary files in
/var/lib/emboss-explorer/output. Documented that Apache may need to be
restarted.


Modified: trunk/packages/emboss-explorer/trunk/debian/README.Debian
===================================================================
--- trunk/packages/emboss-explorer/trunk/debian/README.Debian	2008-07-04 14:35:27 UTC (rev 2139)
+++ trunk/packages/emboss-explorer/trunk/debian/README.Debian	2008-07-05 07:03:41 UTC (rev 2140)
@@ -1,6 +1,10 @@
-emboss-explorer for Debian
+EMBOSS Explorer for Debian
 --------------------------
 
+If you are using Apache, you may have to restart it before being able to use
+EMBOSS explorer. For other http servers, you will have to do the configuration
+by yourself.
+
 Visit http://localhost/emboss-explorer to test EMBOSS explorer.  Site
 configuration (including a list of applications to be excluded from public
 access) is stored in /etc/emboss-explorer/emboss-explorer.conf).

Modified: trunk/packages/emboss-explorer/trunk/debian/changelog
===================================================================
--- trunk/packages/emboss-explorer/trunk/debian/changelog	2008-07-04 14:35:27 UTC (rev 2139)
+++ trunk/packages/emboss-explorer/trunk/debian/changelog	2008-07-05 07:03:41 UTC (rev 2140)
@@ -24,6 +24,8 @@
       documentation in /usr/share/doc/emboss-explorer/ (Closes: #485735).
   * debian/emboss-explorer.manpages, debian/acdcheck.1*, debian/mkstatic.1*
     suppressed to use Upstream's manpages.
+  * debian/emboss-explorer.postrm removes the temporary files when the package
+    is purged.
 
   [ David Paleino ]
   * debian/control:

Added: trunk/packages/emboss-explorer/trunk/debian/emboss-explorer.postrm
===================================================================
--- trunk/packages/emboss-explorer/trunk/debian/emboss-explorer.postrm	                        (rev 0)
+++ trunk/packages/emboss-explorer/trunk/debian/emboss-explorer.postrm	2008-07-05 07:03:41 UTC (rev 2140)
@@ -0,0 +1,43 @@
+#!/bin/sh
+# postrm script for emboss-explorer
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge)
+        [ -d "/var/lib/emboss-explorer/output" ] && find /var/lib/emboss-explorer/output -mindepth 1 -maxdepth 1 -exec rm -rf {} \;
+    ;;
+
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Modified: trunk/packages/emboss-explorer/trunk/debian/rules
===================================================================
--- trunk/packages/emboss-explorer/trunk/debian/rules	2008-07-04 14:35:27 UTC (rev 2139)
+++ trunk/packages/emboss-explorer/trunk/debian/rules	2008-07-05 07:03:41 UTC (rev 2140)
@@ -39,13 +39,13 @@
 	dh_testdir
 	dh_testroot
 	dh_clean -k
+	dh_installdirs
 	# Add commands to install the package into $(TMP) here
 	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
 	[ ! -d $(TMP)/usr/lib/perl5 ] || \
 		rmdir --ignore-fail-on-non-empty --parents --verbose \
 		$(TMP)/usr/lib/perl5
-	dh_installdirs var/lib/emboss-explorer/output
-	chown -R www-data $(CURDIR)/debian/emboss-explorer/var/lib/emboss-explorer/output
+	install -m 755 -o www-data -g www-data -d $(CURDIR)/debian/emboss-explorer/var/lib/emboss-explorer/output
 	# Move ACD.pm to a separate package, that is useful for making
 	# manpages from EMBOSS ACD files without being bothered by the
 	# dependancy on web servers.
@@ -67,8 +67,7 @@
 	dh_link
 	dh_perl
 	dh_compress
-	dh_fixperms
-	chown -R www-data $(CURDIR)/debian/emboss-explorer/var/lib/emboss-explorer/output
+	dh_fixperms -Xoutput
 	dh_installdeb
 	dh_gencontrol
 	dh_md5sums




More information about the debian-med-commit mailing list