[Fusionforge-commits] r8025 - in trunk/gforge: debian packaging/dirs packaging/install

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Aug 27 15:47:04 CEST 2009


Author: lolando
Date: 2009-08-27 15:47:04 +0200 (Thu, 27 Aug 2009)
New Revision: 8025

Added:
   trunk/gforge/debian/gforge-plugin-scmarch.postinst
   trunk/gforge/debian/gforge-plugin-scmarch.prerm
   trunk/gforge/packaging/dirs/plugin-scmarch
   trunk/gforge/packaging/install/plugin-scmarch
Log:
Added missing files for scmarch

Added: trunk/gforge/debian/gforge-plugin-scmarch.postinst
===================================================================
--- trunk/gforge/debian/gforge-plugin-scmarch.postinst	                        (rev 0)
+++ trunk/gforge/debian/gforge-plugin-scmarch.postinst	2009-08-27 13:47:04 UTC (rev 8025)
@@ -0,0 +1,51 @@
+#! /bin/sh
+# postinst script for gforge-plugin-scmarch
+#
+# 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>
+#        * <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
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the `postinst' is called with `abort-upgrade',
+#     `abort-remove' or `abort-deconfigure'.
+
+case "$1" in
+    configure)
+	gforge-config
+
+	# Prepare database
+	su -s /bin/sh gforge -c '/usr/share/gforge/bin/register-plugin scmarch "Arch"'
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst 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
+
+

Added: trunk/gforge/debian/gforge-plugin-scmarch.prerm
===================================================================
--- trunk/gforge/debian/gforge-plugin-scmarch.prerm	                        (rev 0)
+++ trunk/gforge/debian/gforge-plugin-scmarch.prerm	2009-08-27 13:47:04 UTC (rev 8025)
@@ -0,0 +1,45 @@
+#! /bin/sh
+# prerm script for gforge-plugin-scmarch
+#
+# see: dh_installdeb(1)
+set -e
+
+#DEBHELPER#
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|deconfigure)
+	if [ -f /var/run/postgresql/.s.PGSQL.5432 ]
+	then
+		/usr/share/gforge/bin/unregister-plugin scmarch
+	else
+		echo "WARNING: database not available to unregister scmarch plugin"
+	fi
+        ;;
+    upgrade|failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+
+
+exit 0
+
+

Added: trunk/gforge/packaging/dirs/plugin-scmarch
===================================================================
--- trunk/gforge/packaging/dirs/plugin-scmarch	                        (rev 0)
+++ trunk/gforge/packaging/dirs/plugin-scmarch	2009-08-27 13:47:04 UTC (rev 8025)
@@ -0,0 +1,4 @@
+etc/gforge/httpd.d
+etc/gforge/plugins/scmarch
+usr/share/gforge/plugins/scmarch/common
+var/lib/gforge/chroot/scmrepos/arch

Added: trunk/gforge/packaging/install/plugin-scmarch
===================================================================
--- trunk/gforge/packaging/install/plugin-scmarch	                        (rev 0)
+++ trunk/gforge/packaging/install/plugin-scmarch	2009-08-27 13:47:04 UTC (rev 8025)
@@ -0,0 +1,2 @@
+plugins/scmarch/common/*             usr/share/gforge/plugins/scmarch/common/
+plugins/scmarch/etc/plugins/scmarch/* etc/gforge/plugins/scmarch/




More information about the Fusionforge-commits mailing list