[med-svn] r2481 - trunk/packages/agdbnet/trunk/debian

tille at alioth.debian.org tille at alioth.debian.org
Thu Sep 11 09:00:29 UTC 2008


Author: tille
Date: 2008-09-11 09:00:26 +0000 (Thu, 11 Sep 2008)
New Revision: 2481

Added:
   trunk/packages/agdbnet/trunk/debian/dirs
   trunk/packages/agdbnet/trunk/debian/postinst
   trunk/packages/agdbnet/trunk/debian/postrm
   trunk/packages/agdbnet/trunk/debian/rules
Modified:
   trunk/packages/agdbnet/trunk/debian/control
Log:
Adapted some packaging templates


Modified: trunk/packages/agdbnet/trunk/debian/control
===================================================================
--- trunk/packages/agdbnet/trunk/debian/control	2008-09-11 07:38:54 UTC (rev 2480)
+++ trunk/packages/agdbnet/trunk/debian/control	2008-09-11 09:00:26 UTC (rev 2481)
@@ -1,10 +1,10 @@
 Source: agdbnet
-Section: unknown
+Section: science
 Priority: optional
 Maintainer: Debian-Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 DM-Upload-Allowed: Yes
 Uploaders: Andreas Tille <tille at debian.org>
-Build-Depends: debhelper (>= 7), quilt
+Build-Depends: debhelper (>= 7), quilt, cdbs
 Standards-Version: 3.8.0
 Vcs-Browser: http://svn.debian.org/wsvn/debian-med/trunk/packages/agdbnet/trunk/?rev=0&sc=0
 Vcs-Svn: svn://svn.debian.org/svn/debian-med/trunk/packages/agdbnet/trunk/

Added: trunk/packages/agdbnet/trunk/debian/dirs
===================================================================
--- trunk/packages/agdbnet/trunk/debian/dirs	                        (rev 0)
+++ trunk/packages/agdbnet/trunk/debian/dirs	2008-09-11 09:00:26 UTC (rev 2481)
@@ -0,0 +1 @@
+/etc/agdbnet

Added: trunk/packages/agdbnet/trunk/debian/postinst
===================================================================
--- trunk/packages/agdbnet/trunk/debian/postinst	                        (rev 0)
+++ trunk/packages/agdbnet/trunk/debian/postinst	2008-09-11 09:00:26 UTC (rev 2481)
@@ -0,0 +1,41 @@
+#!/bin/sh
+# postinst script for agdbnet
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+TMPDIR=/var/www/agdbnet/tmp
+
+case "$1" in
+    configure)
+	[ -d ${TMPDIR} ] || mkdir -p ${TMPDIR}
+	chmod +w www-data ${TMPDIR}
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+

Added: trunk/packages/agdbnet/trunk/debian/postrm
===================================================================
--- trunk/packages/agdbnet/trunk/debian/postrm	                        (rev 0)
+++ trunk/packages/agdbnet/trunk/debian/postrm	2008-09-11 09:00:26 UTC (rev 2481)
@@ -0,0 +1,42 @@
+#!/bin/sh
+# postrm script for agdbnet
+#
+# 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
+
+TMPDIR=/var/www/agdbnet/tmp
+
+case "$1" in
+    purge)
+	# If package should be purged also purge temporary web directory
+	rm -rf ${TMPDIR}
+    ;;
+    
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+

Added: trunk/packages/agdbnet/trunk/debian/rules
===================================================================
--- trunk/packages/agdbnet/trunk/debian/rules	                        (rev 0)
+++ trunk/packages/agdbnet/trunk/debian/rules	2008-09-11 09:00:26 UTC (rev 2481)
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+# debian/rules for agdbnet
+# Andreas Tille <tille at debian.org>; GPL
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+pkg=agdbnet
+
+common-binary-post-install-arch::
+	# Directory conf has to be copied to /etc/agdbnet
+	cp -a conf debian/$(pkg)/etc/$(pkg)


Property changes on: trunk/packages/agdbnet/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *




More information about the debian-med-commit mailing list