[Fusionforge-commits] r7717 - in trunk/gforge: deb-specific debian debian/dsf-in

Christian Bayle cbayle at libremir.placard.fr.eu.org
Wed Jun 3 23:04:48 CEST 2009


Author: cbayle
Date: 2009-06-03 23:04:48 +0200 (Wed, 03 Jun 2009)
New Revision: 7717

Added:
   trunk/gforge/debian/dsf-in/
   trunk/gforge/debian/dsf-in/common.config.dsfh-in
   trunk/gforge/debian/dsf-in/common.manpages
   trunk/gforge/debian/dsf-in/common.postinst
   trunk/gforge/debian/dsf-in/common.postrm
   trunk/gforge/debian/dsf-in/common.prerm
   trunk/gforge/debian/dsf-in/common.templates.dsfh-in
   trunk/gforge/debian/dsf-in/config.sgml
   trunk/gforge/debian/dsf-in/db-postgresql.config.dsfh-in
   trunk/gforge/debian/dsf-in/db-postgresql.postinst.dsfh-in
   trunk/gforge/debian/dsf-in/db-postgresql.prerm
   trunk/gforge/debian/dsf-in/db-postgresql.templates.dsfh-in
   trunk/gforge/debian/dsf-in/dns-bind9.config.dsfh-in
   trunk/gforge/debian/dsf-in/dns-bind9.postinst
   trunk/gforge/debian/dsf-in/dns-bind9.prerm
   trunk/gforge/debian/dsf-in/dns-bind9.templates.dsfh-in
   trunk/gforge/debian/dsf-in/ftp-proftpd.postinst
   trunk/gforge/debian/dsf-in/ftp-proftpd.prerm
   trunk/gforge/debian/dsf-in/lists-mailman.postinst
   trunk/gforge/debian/dsf-in/mta-exim4.config.dsfh-in
   trunk/gforge/debian/dsf-in/mta-exim4.postinst
   trunk/gforge/debian/dsf-in/mta-exim4.prerm
   trunk/gforge/debian/dsf-in/mta-exim4.templates.dsfh-in
   trunk/gforge/debian/dsf-in/mta-postfix.config.dsfh-in
   trunk/gforge/debian/dsf-in/mta-postfix.postinst
   trunk/gforge/debian/dsf-in/mta-postfix.prerm
   trunk/gforge/debian/dsf-in/mta-postfix.templates.dsfh-in
   trunk/gforge/debian/dsf-in/plugin-extratabs.postinst
   trunk/gforge/debian/dsf-in/plugin-extratabs.prerm
   trunk/gforge/debian/dsf-in/plugin-globalsearch.postinst
   trunk/gforge/debian/dsf-in/plugin-globalsearch.prerm
   trunk/gforge/debian/dsf-in/plugin-mediawiki.postinst
   trunk/gforge/debian/dsf-in/plugin-mediawiki.prerm
   trunk/gforge/debian/dsf-in/plugin-projectlabels.postinst
   trunk/gforge/debian/dsf-in/plugin-projectlabels.prerm
   trunk/gforge/debian/dsf-in/plugin-scmcvs.postinst
   trunk/gforge/debian/dsf-in/plugin-scmcvs.prerm
   trunk/gforge/debian/dsf-in/plugin-scmsvn.postinst
   trunk/gforge/debian/dsf-in/plugin-scmsvn.prerm
   trunk/gforge/debian/dsf-in/shell-postgresql.postinst
   trunk/gforge/debian/dsf-in/shell-postgresql.prerm
   trunk/gforge/debian/dsf-in/web-apache2.config.dsfh-in
   trunk/gforge/debian/dsf-in/web-apache2.postinst.dsfh-in
   trunk/gforge/debian/dsf-in/web-apache2.prerm
   trunk/gforge/debian/dsf-in/web-apache2.templates.dsfh-in
Removed:
   trunk/gforge/debian/gforge-common.config.dsfh-in
   trunk/gforge/debian/gforge-common.manpages
   trunk/gforge/debian/gforge-common.postinst
   trunk/gforge/debian/gforge-common.postrm
   trunk/gforge/debian/gforge-common.prerm
   trunk/gforge/debian/gforge-common.templates.dsfh-in
   trunk/gforge/debian/gforge-config.sgml
   trunk/gforge/debian/gforge-db-postgresql.config.dsfh-in
   trunk/gforge/debian/gforge-db-postgresql.postinst.dsfh-in
   trunk/gforge/debian/gforge-db-postgresql.prerm
   trunk/gforge/debian/gforge-db-postgresql.templates.dsfh-in
   trunk/gforge/debian/gforge-dns-bind9.config.dsfh-in
   trunk/gforge/debian/gforge-dns-bind9.postinst
   trunk/gforge/debian/gforge-dns-bind9.prerm
   trunk/gforge/debian/gforge-dns-bind9.templates.dsfh-in
   trunk/gforge/debian/gforge-ftp-proftpd.postinst
   trunk/gforge/debian/gforge-ftp-proftpd.prerm
   trunk/gforge/debian/gforge-lists-mailman.postinst
   trunk/gforge/debian/gforge-mta-exim4.config.dsfh-in
   trunk/gforge/debian/gforge-mta-exim4.postinst
   trunk/gforge/debian/gforge-mta-exim4.prerm
   trunk/gforge/debian/gforge-mta-exim4.templates.dsfh-in
   trunk/gforge/debian/gforge-mta-postfix.config.dsfh-in
   trunk/gforge/debian/gforge-mta-postfix.postinst
   trunk/gforge/debian/gforge-mta-postfix.prerm
   trunk/gforge/debian/gforge-mta-postfix.templates.dsfh-in
   trunk/gforge/debian/gforge-plugin-extratabs.postinst
   trunk/gforge/debian/gforge-plugin-extratabs.prerm
   trunk/gforge/debian/gforge-plugin-globalsearch.postinst
   trunk/gforge/debian/gforge-plugin-globalsearch.prerm
   trunk/gforge/debian/gforge-plugin-mediawiki.postinst
   trunk/gforge/debian/gforge-plugin-mediawiki.prerm
   trunk/gforge/debian/gforge-plugin-projectlabels.postinst
   trunk/gforge/debian/gforge-plugin-projectlabels.prerm
   trunk/gforge/debian/gforge-plugin-scmcvs.postinst
   trunk/gforge/debian/gforge-plugin-scmcvs.prerm
   trunk/gforge/debian/gforge-plugin-scmsvn.postinst
   trunk/gforge/debian/gforge-plugin-scmsvn.prerm
   trunk/gforge/debian/gforge-shell-postgresql.postinst
   trunk/gforge/debian/gforge-shell-postgresql.prerm
   trunk/gforge/debian/gforge-web-apache2.config.dsfh-in
   trunk/gforge/debian/gforge-web-apache2.postinst.dsfh-in
   trunk/gforge/debian/gforge-web-apache2.prerm
   trunk/gforge/debian/gforge-web-apache2.templates.dsfh-in
Modified:
   trunk/gforge/deb-specific/dsf-helper.pl
   trunk/gforge/debian/changelog
Log:
Move debian config/postinst/postrm/prerm/... files in debian/dsf-in dir


Modified: trunk/gforge/deb-specific/dsf-helper.pl
===================================================================
--- trunk/gforge/deb-specific/dsf-helper.pl	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/deb-specific/dsf-helper.pl	2009-06-03 21:04:48 UTC (rev 7717)
@@ -23,12 +23,18 @@
 sub pkgfile {
     my $package=shift;
     my $filename=shift;
+    $package =~ s/^.[^-]*-// ;
 
-    if (-f "debian/$package.$filename.dsfh-in") {
-	return "debian/$package.$filename.dsfh-in";
+    if (-f "debian/dsf-in/$package.$filename.dsfh-in") {
+	return "debian/dsf-in/$package.$filename.dsfh-in";
     }
     else {
-	return "";
+	if (-f "debian/dsf-in/$package.$filename") {
+		return "debian/dsf-in/$package.$filename";
+	}
+	else {
+		return "";
+	}
     }
 } ;
 
@@ -71,10 +77,11 @@
    PKGLOOP: for my $pkg (@package_list) {
        my $srcfile = &pkgfile ($pkg, $ext) ;
        next PKGLOOP unless $srcfile ;
-       my $destfile = $srcfile ;
-       $destfile =~ s/\.dsfh-in$// ;
+       #my $destfile = $srcfile ;
+       my $destfile = "debian/$pkg.$ext" ;
+       #$destfile =~ s/\.dsfh-in$// ;
        do {
-	   # print "Removing $destfile\n" ;
+	   print "Removing $destfile\n" ;
 	   unlink $destfile ;
        } if -f $destfile ;
    }
@@ -83,13 +90,15 @@
 }
 
  EXTLOOP: for my $ext (@known_files) {
-     # print "Extension: $ext\n" ;
+     #print "Extension: $ext\n" ;
    PKGLOOP: for my $pkg (@package_list) {
-       # print "  Package: $pkg\n" ;
+       #print "  Package: $pkg\n" ;
        my $srcfile = &pkgfile ($pkg, $ext) ;
+       #print "   SrcPackage: $srcfile\n" ;
        next PKGLOOP unless $srcfile ;
-       my $destfile = $srcfile ;
-       $destfile =~ s/\.dsfh-in$// ;
+#       my $destfile = $srcfile ;
+#       $destfile =~ s/\.dsfh-in$// ;
+       my $destfile = "debian/$pkg.$ext" ;
        print "$srcfile -> $destfile\n" ;
 
        open S, "< $srcfile" ;

Modified: trunk/gforge/debian/changelog
===================================================================
--- trunk/gforge/debian/changelog	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/changelog	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,3 +1,10 @@
+gforge (4.8.52-1) experimental; urgency=low
+
+  * bump to new version because on binary commit
+  * put debian postinst/prerm/config/.. files in dsf-in dir
+
+ -- Christian Bayle <bayle at debian.org>  Wed, 03 Jun 2009 22:49:58 +0200
+
 gforge (4.8.51-1) experimental; urgency=low
 
   * Fixed blackhole syntax for gforge-mta-exim4 so as not to require

Copied: trunk/gforge/debian/dsf-in/common.config.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-common.config.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/common.config.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/common.config.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+#DSFHELPER:handle-mainconffile#
+
+create_mainconffile
+init_debconf_from_mainconffile
+
+#DSFHELPER:common-variables#

Copied: trunk/gforge/debian/dsf-in/common.manpages (from rev 7716, trunk/gforge/debian/gforge-common.manpages)
===================================================================
--- trunk/gforge/debian/dsf-in/common.manpages	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/common.manpages	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,2 @@
+gforge-config.1
+cvssh.1

Copied: trunk/gforge/debian/dsf-in/common.postinst (from rev 7716, trunk/gforge/debian/gforge-common.postinst)
===================================================================
--- trunk/gforge/debian/dsf-in/common.postinst	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/common.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,52 @@
+#! /bin/sh
+# postinst script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+# set -x				# Be verbose, be very verbose.
+
+# 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 /usr/share/doc/packaging-manual/
+#
+# 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'.
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    configure)
+	adduser --system --group --home /var/www/gforge gforge > /dev/null 2>&1
+	adduser --system --group --home /var/lib/gforge/chroot/cvsroot anonscm-gforge > /dev/null 2>&1
+	adduser --system --group --home /var/lib/gforge/chroot/cvsroot scm-gforge > /dev/null 2>&1
+	adduser --system --group --home /var/lib/gforge/chroot/cvsroot www-gforge > /dev/null 2>&1
+
+	gforge-config
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/common.postrm (from rev 7716, trunk/gforge/debian/gforge-common.postrm)
===================================================================
--- trunk/gforge/debian/dsf-in/common.postrm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/common.postrm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,36 @@
+#! /bin/sh
+# postrm script for gforge
+#
+# 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' <r>overwrit>r> <new-version>
+# for details, see /usr/share/doc/packaging-manual/
+
+case "$1" in
+    purge)
+	rm -rf /var/lib/gforge
+	[ -d /etc/gforge ] && rm -rf /etc/gforge
+	;;
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+	;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 0
+
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#

Copied: trunk/gforge/debian/dsf-in/common.prerm (from rev 7716, trunk/gforge/debian/gforge-common.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/common.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/common.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,39 @@
+#! /bin/sh
+# prerm script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# 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 /usr/share/doc/packaging-manual/
+
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/pkg ]; then
+    rm -f /usr/doc/pkg
+fi
+
+case "$1" in
+    remove)
+	rm -f /etc/gforge/local.pl
+	;;
+    upgrade|deconfigure|failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/common.templates.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-common.templates.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/common.templates.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/common.templates.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,10 @@
+# These templates have been reviewed by the debian-l10n-english
+# team
+#
+# If modifications/additions/rewording are needed, please ask
+# debian-l10n-english at lists.debian.org for advice.
+#
+# Even minor modifications require translation updates and such
+# changes should be coordinated with translators and reviewers.
+
+#DSFHELPER:common-variables#

Copied: trunk/gforge/debian/dsf-in/config.sgml (from rev 7716, trunk/gforge/debian/gforge-config.sgml)
===================================================================
--- trunk/gforge/debian/dsf-in/config.sgml	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/config.sgml	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,118 @@
+<!doctype refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>Roland</firstname>">
+  <!ENTITY dhsurname   "<surname>Mas</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>February 14th, 2002</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
+  <!ENTITY dhemail     "<email>lolando at debian.org</email>">
+  <!ENTITY dhusername  "Roland Mas">
+  <!ENTITY dhucpackage "<refentrytitle>Gforge</refentrytitle>">
+  <!ENTITY dhpackage   "gforge-config">
+
+  <!ENTITY debian      "<productname>Debian GNU/Linux</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+]>
+
+<refentry>
+  <docinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2002</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </docinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>Reconfigure Gforge
+    </refpurpose>
+  </refnamediv>
+
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+
+      <!-- <arg><option>-e <replaceable>"foo"</replaceable></option></arg> -->
+    </cmdsynopsis>
+  </refsynopsisdiv>
+
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>
+      This manual page documents briefly the
+      <command>&dhpackage;</command> command.
+    </para>
+
+    <para><command>&dhpackage;</command> replaces (or creates) the
+      configuration files found in /etc/gforge with appropriate
+      files derived from standard fill-in-the-blank templates (found
+      in /usr/share/gforge/templates).  The values used to fill in
+      the blanks are taken from /etc/gforge.conf.
+    </para>
+
+  </refsect1>
+
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <para>
+      None yet.
+    </para>
+  </refsect1>
+
+  <refsect1>
+    <title>SEE ALSO</title>
+
+    <para>Gforge package documentation (ahem).</para>
+  </refsect1>
+
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others).</para>
+
+    <para>Permission is granted to copy, distribute and/or modify
+      this document under the terms of the <acronym>GNU</acronym> Free
+      Documentation License, Version 1.1 or any later version
+      published by the Free Software Foundation; with no Invariant
+      Sections, no Front-Cover Texts and no Back-Cover Texts.  A copy
+      of the license can be found under
+      <filename>/usr/share/common-licenses/FDL</filename>.</para>
+
+  </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->

Copied: trunk/gforge/debian/dsf-in/db-postgresql.config.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-db-postgresql.config.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/db-postgresql.config.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/db-postgresql.config.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,43 @@
+#!/bin/sh -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+#DSFHELPER:handle-mainconffile#
+
+create_mainconffile
+init_debconf_from_mainconffile
+
+#DSFHELPER:get-pw-from-debconf#
+#DSFHELPER:create-random-pw#
+#DSFHELPER:common-variables#
+#DSFHELPER:dbhost-variables#
+#DSFHELPER:dbpasswd-variables#
+
+db_input low gforge/shared/admin_login || true
+db_fget gforge/shared/admin_password seen || true
+if [ "$RET" = "false" ]; then
+    if [ "$(get_pw gforge/shared/admin_password high)" = "not-asked" ] ; then
+	db_set gforge/shared/admin_password $(gen_random_pw)
+	db_get gforge/shared/admin_password || true
+	echo "Since you asked not to see all the debconf questions, I generated a random"
+	echo "password for the admin user.  It is '${RET}'." ;
+	db_fset gforge/shared/admin_password seen true
+    fi
+fi
+
+#DSFHELPER:host-variables#
+#DSFHELPER:shellhost-variables#
+#DSFHELPER:users-variables#
+#DSFHELPER:lists-variables#
+#DSFHELPER:downloadhost-variables#
+#DSFHELPER:groupid-variables#
+
+db_input low gforge/shared/skill_list || true
+
+db_go || true
+
+vars="admin_login admin_password skill_list"
+update_mainconffile $vars
+
+db_stop

Copied: trunk/gforge/debian/dsf-in/db-postgresql.postinst.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-db-postgresql.postinst.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/db-postgresql.postinst.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/db-postgresql.postinst.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,88 @@
+#! /bin/sh
+# postinst script for gforge
+#
+# see: dh_installdeb(1)
+
+# Support for new place for pg_hba.conf
+# I only try to upgrade on the default cluster
+if [ -x /usr/bin/pg_lsclusters ]
+then 
+	# We are with new postgresql working with clusters
+	# This is probably not te most elegant way to deal with database
+	# I install or upgrade on the default cluster if it is online
+	# or I quit gently with a big message
+	pg_version=`/usr/bin/pg_lsclusters | grep 5432 | grep online | cut -d' ' -f1`
+	if [ "x$pg_version" != "x" ] 
+	then 
+		export pg_hba_dir=/etc/postgresql/${pg_version}/main
+	else
+		echo "No database found online on port 5432"
+		echo "Couldn't initialize or upgrade gforge database."
+		echo "Please see postgresql documentation"
+		echo "and run dpkg-reconfigure -plow gforge-db-postgresql"
+		echo "once the problem is solved"
+		echo "exiting without error, but gforge db will not work"
+		echo "right now"
+		exit 0
+	fi
+else
+    	export pg_hba_dir=/etc/postgresql
+fi
+
+set -e
+#set -x				# Be verbose, be very verbose.
+
+# 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 /usr/share/doc/packaging-manual/
+#
+# 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'.
+
+. /usr/share/debconf/confmodule
+
+#DSFHELPER:handle-mainconffile#
+case "$1" in
+    configure)
+	add_onevar_mainconfile default_trove_cat 18
+
+	gforge-config
+
+        # Patch DB configuration files
+	/usr/share/gforge/bin/install-db.sh configure-files
+	ucf --debconf-ok ${pg_hba_dir}/pg_hba.conf.gforge-new ${pg_hba_dir}/pg_hba.conf
+	rm ${pg_hba_dir}/pg_hba.conf.gforge-new
+
+	# Make sure the database accepts connections from these new users
+	pg_name=postgresql-$pg_version
+	invoke-rc.d ${pg_name} reload
+
+        # Setup our DB
+	/usr/share/gforge/bin/install-db.sh configure
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/db-postgresql.prerm (from rev 7716, trunk/gforge/debian/gforge-db-postgresql.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/db-postgresql.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/db-postgresql.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,73 @@
+#! /bin/sh
+# prerm script for gforge
+#
+# see: dh_installdeb(1)
+
+# Support for new place for pg_hba.conf
+# I only try to upgrade on the default cluster
+if [ -x /usr/bin/pg_lsclusters ]
+then 
+	# We are with new postgresql working with clusters
+	# This is probably not te most elegant way to deal with database
+	# I install or upgrade on the default cluster if it is online
+	# or I quit gently with a big message
+	pg_version=`/usr/bin/pg_lsclusters | grep 5432 | grep online | cut -d' ' -f1`
+	if [ "x$pg_version" != "x" ] 
+	then 
+		export pg_hba_dir=/etc/postgresql/${pg_version}/main/
+	else
+		echo "No database found online on port 5432"
+		echo "Couldn't initialize or upgrade gforge database."
+		echo "Please see postgresql documentation"
+		echo "and run dpkg-reconfigure -plow gforge-db-postgresql"
+		echo "once the problem is solved"
+		echo "exiting without error, but gforge db will not work"
+		echo "right now"
+		exit 0
+	fi
+else
+    	export pg_hba_dir=/etc/postgresql
+fi
+
+set -e
+
+# 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 /usr/share/doc/packaging-manual/
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    remove)
+        # Remove our database
+	/usr/share/gforge/bin/install-db.sh purge
+
+        # Unpatch DB configuration files
+	/usr/share/gforge/bin/install-db.sh purge-files
+	ucf --debconf-ok ${pg_hba_dir}/pg_hba.conf.gforge-new ${pg_hba_dir}/pg_hba.conf
+	rm ${pg_hba_dir}/pg_hba.conf.gforge-new
+	ucf --purge ${pg_hba_dir}/pg_hba.conf
+
+	pg_name=postgresql-$pg_version
+	invoke-rc.d ${pg_name} reload
+	;;
+    upgrade|deconfigure|failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/db-postgresql.templates.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-db-postgresql.templates.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/db-postgresql.templates.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/db-postgresql.templates.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,76 @@
+# These templates have been reviewed by the debian-l10n-english
+# team
+#
+# If modifications/additions/rewording are needed, please ask
+# debian-l10n-english at lists.debian.org for advice.
+#
+# Even minor modifications require translation updates and such
+# changes should be coordinated with translators and reviewers.
+
+#DSFHELPER:common-variables#
+
+Template: gforge/shared/shell_host
+Type: string
+_Description: Shell server:
+ Please enter the hostname of the server that will host the GForge
+ shell accounts.
+
+#DSFHELPER:users-variables#
+
+#DSFHELPER:lists-variables#
+
+Template: gforge/shared/download_host
+Type: string
+_Description: Download server:
+ Please enter the hostname of the server that will host the GForge
+ packages. 
+ .
+ It should not be the same as the main GForge host.
+
+#DSFHELPER:dbpasswd-variables#
+
+Template: gforge/shared/admin_login
+Type: string
+Default: admin
+_Description: GForge administrator login:
+ The GForge administrator account will have full privileges on the
+ system. It will be used to approve the creation of new projects.
+ .
+ Please choose the username for this account.
+
+Template: gforge/shared/ip_address
+Type: string
+_Description: IP address:
+ Please enter the IP address of the server that will host the GForge
+ installation.
+ .
+ This is needed for the configuration of Apache virtual hosting.
+
+Template: gforge/shared/admin_password
+Type: password
+_Description: GForge administrator password:
+ The GForge administrator account will have full privileges on the
+ system. It will be used to approve the creation of new projects.
+ .
+ Please choose the password for this account.
+
+Template: gforge/shared/admin_password_confirm
+Type: password
+_Description: Password confirmation:
+ Please re-type the password for confirmation.
+
+Template: gforge/shared/skill_list
+Type: string
+Default: Ada;C;C++;HTML;LISP;Perl;PHP;Python;SQL
+_Description: Initial list of skills:
+ GForge allows users to define a list of their skills, to be chosen from
+ those present in the database. This list is the initial list of
+ skills that will enter the database.
+ .
+ Please enter a semicolon-separated list of skill names.
+
+#DSFHELPER:dbhost-variables#
+
+#DSFHELPER:web-variables#
+
+#DSFHELPER:groupid-variables#

Copied: trunk/gforge/debian/dsf-in/dns-bind9.config.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-dns-bind9.config.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/dns-bind9.config.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/dns-bind9.config.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+#DSFHELPER:handle-mainconffile#
+
+create_mainconffile
+init_debconf_from_mainconffile
+
+#DSFHELPER:common-variables#
+#DSFHELPER:users-variables#
+#DSFHELPER:lists-variables#
+
+db_stop

Copied: trunk/gforge/debian/dsf-in/dns-bind9.postinst (from rev 7716, trunk/gforge/debian/gforge-dns-bind9.postinst)
===================================================================
--- trunk/gforge/debian/dsf-in/dns-bind9.postinst	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/dns-bind9.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,57 @@
+#! /bin/sh
+# postinst script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+# set -x				# Be verbose, be very verbose.
+
+# 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 /usr/share/doc/packaging-manual/
+#
+# 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'.
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    configure)
+	gforge-config
+
+	# Patch Bind configuration files
+	/usr/share/gforge/bin/install-dns.sh configure-files
+	ucf --debconf-ok /etc/bind/named.conf.gforge-new /etc/bind/named.conf
+	rm /etc/bind/named.conf.gforge-new
+
+	db_stop
+
+	# Create the DNS zone
+	/usr/share/gforge/bin/install-dns.sh configure
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/dns-bind9.prerm (from rev 7716, trunk/gforge/debian/gforge-dns-bind9.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/dns-bind9.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/dns-bind9.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,51 @@
+#! /bin/sh
+# prerm script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# 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 /usr/share/doc/packaging-manual/
+
+	
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    remove)
+	db_title "Unconfiguring Gforge"
+
+	# Unpatch Bind configuration files
+	/usr/share/gforge/bin/install-dns.sh purge-files
+	ucf --debconf-ok /etc/bind/named.conf.gforge-new /etc/bind/named.conf
+	rm /etc/bind/named.conf.gforge-new
+	ucf --purge /etc/bind/named.conf
+	
+	# Clean debconf after ourselves
+	db_stop
+
+        # DNS config removal
+	/usr/share/gforge/bin/install-dns.sh purge
+
+	;;
+    upgrade|deconfigure|failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/dns-bind9.templates.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-dns-bind9.templates.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/dns-bind9.templates.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/dns-bind9.templates.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,32 @@
+# These templates have been reviewed by the debian-l10n-english
+# team
+#
+# If modifications/additions/rewording are needed, please ask
+# debian-l10n-english at lists.debian.org for advice.
+#
+# Even minor modifications require translation updates and such
+# changes should be coordinated with translators and reviewers.
+
+#DSFHELPER:common-variables#
+#DSFHELPER:shellhost-variables#
+#DSFHELPER:users-variables#
+#DSFHELPER:lists-variables#
+#DSFHELPER:downloadhost-variables#
+#DSFHELPER:host-variables#
+#DSFHELPER:web-variables#
+
+Template: gforge/shared/simple_dns
+Type: boolean
+Default: false
+# Translators: SCM here means "Source Control Management"
+#              (cvs, svn, etc.)
+_Description: Do you want a simple DNS setup for GForge?
+ You can use a simple DNS setup with wildcards to map all
+ project web-hosts to a single IP address, and direct all the scm-hosts
+ to a single SCM server, or a complex setup which allows
+ many servers as project web servers or SCM servers.
+ .
+ Even if you use a simple DNS setup, you can still use
+ separate machines as project servers; it just assumes that
+ all the project web directories are on the same server with a single
+ SCM server.

Copied: trunk/gforge/debian/dsf-in/ftp-proftpd.postinst (from rev 7716, trunk/gforge/debian/gforge-ftp-proftpd.postinst)
===================================================================
--- trunk/gforge/debian/dsf-in/ftp-proftpd.postinst	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/ftp-proftpd.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,62 @@
+#! /bin/sh
+# postinst script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+# set -x				# Be verbose, be very verbose.
+
+# 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 /usr/share/doc/packaging-manual/
+#
+# 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'.
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    configure)
+	gforge-config
+
+        # Patch Proftpd configuration files
+	/usr/share/gforge/bin/install-ftp.sh configure-files
+	if [ -f /etc/proftpd/proftpd.conf.gforge-new ]
+	then
+		ucf --debconf-ok /etc/proftpd/proftpd.conf.gforge-new /etc/proftpd/proftpd.conf
+		rm /etc/proftpd/proftpd.conf.gforge-new
+	fi
+
+        # Setup our FTP
+	/usr/share/gforge/bin/install-ftp.sh configure 
+
+        # Setup our FRS
+	chown www-data:www-data /var/lib/gforge/download
+	
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/ftp-proftpd.prerm (from rev 7716, trunk/gforge/debian/gforge-ftp-proftpd.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/ftp-proftpd.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/ftp-proftpd.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,49 @@
+#! /bin/sh
+# prerm script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# 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 /usr/share/doc/packaging-manual/
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    remove)
+	db_title "Unconfiguring Gforge"
+
+	# Unpatch Proftpd configuration files
+	/usr/share/gforge/bin/install-ftp.sh purge-files
+	ucf --debconf-ok /etc/proftpd/proftpd.conf.gforge-new /etc/proftpd/proftpd.conf
+	rm /etc/proftpd/proftpd.conf.gforge-new
+	ucf --purge /etc/proftpd/proftpd.conf
+
+	# Clean debconf after ourselves
+	db_stop
+
+        # FTP config removal
+	/usr/share/gforge/bin/install-ftp.sh purge
+	;;
+    upgrade|deconfigure|failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/lists-mailman.postinst (from rev 7716, trunk/gforge/debian/gforge-lists-mailman.postinst)
===================================================================
--- trunk/gforge/debian/dsf-in/lists-mailman.postinst	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/lists-mailman.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,52 @@
+#! /bin/sh
+# postinst script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+# set -x				# Be verbose, be very verbose.
+
+# 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 /usr/share/doc/packaging-manual/
+#
+# 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'.
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    configure)
+	gforge-config
+	
+	echo "Fixing past damage in mailing-lists..."
+	if [ -z "$2" ] || dpkg --compare-versions $2 le 3rc2-4 ; then
+	    su -s /bin/sh gforge -c /usr/share/gforge/bin/fix-mailing-lists.pl
+	fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/mta-exim4.config.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-mta-exim4.config.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/mta-exim4.config.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/mta-exim4.config.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,38 @@
+#!/bin/sh -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+#DSFHELPER:handle-mainconffile#
+
+create_mainconffile
+init_debconf_from_mainconffile
+
+#DSFHELPER:common-variables#
+#DSFHELPER:get-pw-from-debconf#
+#DSFHELPER:users-variables#
+#DSFHELPER:lists-variables#
+
+if [ -f /etc/aliases.gforge-new ] 
+then
+	ucf --debconf-ok /etc/aliases.gforge-new /etc/aliases
+	rm /etc/aliases.gforge-new
+fi
+if [ -f /etc/exim4/exim4.conf.gforge-new ]
+then
+	ucf --debconf-ok /etc/exim4/exim4.conf.gforge-new /etc/exim4/exim4.conf
+	rm /etc/exim4/exim4.conf.gforge-new
+fi
+if [ -f /etc/exim4/exim4.conf.template.gforge-new ]
+then
+	ucf --debconf-ok /etc/exim4/exim4.conf.template.gforge-new /etc/exim4/exim4.conf.template
+	rm /etc/exim4/exim4.conf.template.gforge-new
+fi
+if [ -f /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new ]
+then
+	ucf --debconf-ok /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs
+	rm /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new
+fi
+db_stop
+
+

Copied: trunk/gforge/debian/dsf-in/mta-exim4.postinst (from rev 7716, trunk/gforge/debian/gforge-mta-exim4.postinst)
===================================================================
--- trunk/gforge/debian/dsf-in/mta-exim4.postinst	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/mta-exim4.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,70 @@
+#! /bin/sh
+# postinst script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+# set -x				# Be verbose, be very verbose.
+
+# 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 /usr/share/doc/packaging-manual/
+#
+# 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'.
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    configure)
+
+	gforge-config
+        # Patch Exim configuration files
+	/usr/share/gforge/bin/install-exim4.sh configure-files
+	if [ -f /etc/aliases.gforge-new ]
+	then
+		ucf --debconf-ok /etc/aliases.gforge-new /etc/aliases
+		rm /etc/aliases.gforge-new
+	fi
+	if [ -f /etc/exim4/exim4.conf.gforge-new ]
+	then
+		ucf --debconf-ok /etc/exim4/exim4.conf.gforge-new /etc/exim4/exim4.conf
+		rm /etc/exim4/exim4.conf.gforge-new
+	fi
+	if [ -f /etc/exim4/exim4.conf.template.gforge-new ]
+	then
+		ucf --debconf-ok /etc/exim4/exim4.conf.template.gforge-new /etc/exim4/exim4.conf.template
+		rm /etc/exim4/exim4.conf.template.gforge-new
+	fi
+	if [ -f /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new ]
+	then
+		ucf --debconf-ok /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs
+		rm /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new
+	fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/mta-exim4.prerm (from rev 7716, trunk/gforge/debian/gforge-mta-exim4.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/mta-exim4.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/mta-exim4.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,61 @@
+#! /bin/sh
+# prerm script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# 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 /usr/share/doc/packaging-manual/
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    remove)
+	db_title "Unconfiguring Gforge"
+
+	# Unpatch Exim configuration files
+	/usr/share/gforge/bin/install-exim4.sh purge-files
+	ucf --debconf-ok /etc/aliases.gforge-new /etc/aliases
+	if [ -f /etc/exim4/exim4.conf.gforge-new ]
+	then
+		ucf --debconf-ok /etc/exim4/exim4.conf.gforge-new /etc/exim4/exim4.conf
+		rm /etc/exim4/exim4.conf.gforge-new
+	fi
+	ucf --debconf-ok /etc/exim4/exim4.conf.template.gforge-new /etc/exim4/exim4.conf.template
+	ucf --debconf-ok /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs
+	rm /etc/aliases.gforge-new
+	rm /etc/exim4/exim4.conf.template.gforge-new
+	rm /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new
+	ucf --purge /etc/aliases
+	ucf --purge /etc/exim4/exim4.conf
+	ucf --purge /etc/exim4/exim4.conf.template
+	ucf --purge /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs
+
+	# Clean debconf after ourselves
+	db_stop
+
+        # Exim config removal
+	/usr/share/gforge/bin/install-exim4.sh purge
+	;;
+    upgrade|deconfigure|failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/mta-exim4.templates.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-mta-exim4.templates.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/mta-exim4.templates.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/mta-exim4.templates.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,15 @@
+#DSFHELPER:common-variables#
+#DSFHELPER:users-variables#
+#DSFHELPER:lists-variables#
+
+Template: gforge/shared/noreply_to_bitbucket
+Type: boolean
+Default: true
+_Description: Do you want mail to ${noreply} to be deleted?
+ Gforge sends plenty of e-mail from the "${noreply}" address,
+ and maybe even some e-mail to that address too.
+ .
+ It is advised that you let the package direct e-mail to that address to a
+ black hole (/dev/null), unless you have another use for that address.
+ .
+ Accepting this option will perform that redirection.

Copied: trunk/gforge/debian/dsf-in/mta-postfix.config.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-mta-postfix.config.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/mta-postfix.config.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/mta-postfix.config.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+#DSFHELPER:handle-mainconffile#
+
+create_mainconffile
+init_debconf_from_mainconffile
+
+#DSFHELPER:common-variables#
+#DSFHELPER:get-pw-from-debconf#
+#DSFHELPER:users-variables#
+#DSFHELPER:lists-variables#
+
+db_stop

Copied: trunk/gforge/debian/dsf-in/mta-postfix.postinst (from rev 7716, trunk/gforge/debian/gforge-mta-postfix.postinst)
===================================================================
--- trunk/gforge/debian/dsf-in/mta-postfix.postinst	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/mta-postfix.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,55 @@
+#! /bin/sh
+# postinst script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+# set -x				# Be verbose, be very verbose.
+
+# 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 /usr/share/doc/packaging-manual/
+#
+# 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'.
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    configure)
+	gforge-config
+
+        # Patch Postfix configuration files
+	/usr/share/gforge/bin/install-postfix.sh configure-files
+	ucf --debconf-ok /etc/aliases.gforge-new /etc/aliases
+	ucf --debconf-ok /etc/postfix/main.cf.gforge-new /etc/postfix/main.cf
+	rm /etc/aliases.gforge-new
+	rm /etc/postfix/main.cf.gforge-new
+	/usr/share/gforge/bin/install-postfix.sh configure
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/mta-postfix.prerm (from rev 7716, trunk/gforge/debian/gforge-mta-postfix.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/mta-postfix.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/mta-postfix.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,52 @@
+#! /bin/sh
+# prerm script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# 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 /usr/share/doc/packaging-manual/
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    remove)
+	db_title "Unconfiguring Gforge"
+
+	# Unpatch Postfix configuration files
+	/usr/share/gforge/bin/install-postfix.sh purge-files
+	ucf --debconf-ok /etc/aliases.gforge-new /etc/aliases
+	ucf --debconf-ok /etc/postfix/main.cf.gforge-new /etc/postfix/main.cf
+	rm /etc/aliases.gforge-new
+	rm /etc/postfix/main.cf.gforge-new
+	ucf --purge /etc/aliases
+	ucf --purge /etc/postfix/main.cf
+
+	# Clean debconf after ourselves
+	db_stop
+
+        # Exim config removal
+	/usr/share/gforge/bin/install-postfix.sh purge
+	;;
+    upgrade|deconfigure|failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/mta-postfix.templates.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-mta-postfix.templates.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/mta-postfix.templates.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/mta-postfix.templates.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,22 @@
+# These templates have been reviewed by the debian-l10n-english
+# team
+#
+# If modifications/additions/rewording are needed, please ask
+# debian-l10n-english at lists.debian.org for advice.
+#
+# Even minor modifications require translation updates and such
+# changes should be coordinated with translators and reviewers.
+
+#DSFHELPER:common-variables#
+#DSFHELPER:users-variables#
+#DSFHELPER:lists-variables#
+
+Template: gforge/shared/noreply_to_bitbucket
+Type: boolean
+Default: true
+_Description: Do you want mail to ${noreply} to be discarded?
+ GForge sends and receives plenty of e-mail to and from the
+ "${noreply}" address.
+ .
+ E-mail to that address should be directed to a
+ black hole (/dev/null), unless you have another use for that address.

Copied: trunk/gforge/debian/dsf-in/plugin-extratabs.postinst (from rev 7716, trunk/gforge/debian/gforge-plugin-extratabs.postinst)
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-extratabs.postinst	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/plugin-extratabs.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,47 @@
+#! /bin/sh
+# postinst script for gforge-plugin-extratabs
+#
+# 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)
+        /usr/share/gforge/plugins/extratabs/bin/db-upgrade.pl
+        /usr/share/gforge/bin/register-plugin extratabs "Extra Tabs"
+    ;;
+
+    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

Copied: trunk/gforge/debian/dsf-in/plugin-extratabs.prerm (from rev 7716, trunk/gforge/debian/gforge-plugin-extratabs.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-extratabs.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/plugin-extratabs.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,38 @@
+#! /bin/sh
+# prerm script for gforge-plugin-extratabs
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# 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)
+        /usr/share/gforge/bin/unregister-plugin extratabs
+        /usr/share/gforge/plugins/extratabs/bin/db-delete.pl
+        ;;
+    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.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/plugin-globalsearch.postinst (from rev 7716, trunk/gforge/debian/gforge-plugin-globalsearch.postinst)
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-globalsearch.postinst	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/plugin-globalsearch.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,47 @@
+#! /bin/sh
+# postinst script for gforge-plugin-globalsearch
+#
+# 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)
+        /usr/share/gforge/plugins/globalsearch/bin/db-upgrade.pl
+        /usr/share/gforge/bin/register-plugin globalsearch "Global Search"
+    ;;
+
+    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

Copied: trunk/gforge/debian/dsf-in/plugin-globalsearch.prerm (from rev 7716, trunk/gforge/debian/gforge-plugin-globalsearch.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-globalsearch.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/plugin-globalsearch.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,38 @@
+#! /bin/sh
+# prerm script for gforge-plugin-globalsearch
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# 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)
+        /usr/share/gforge/bin/unregister-plugin globalsearch
+        /usr/share/gforge/plugins/globalsearch/bin/db-delete.pl
+        ;;
+    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.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/plugin-mediawiki.postinst (from rev 7716, trunk/gforge/debian/gforge-plugin-mediawiki.postinst)
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-mediawiki.postinst	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/plugin-mediawiki.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,55 @@
+#! /bin/sh
+# postinst script for gforge-plugin-mediawiki
+#
+# 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)
+	# /usr/share/gforge/plugins/mediawiki/bin/db-upgrade.pl
+	/usr/share/gforge/bin/register-plugin mediawiki "Mediawiki"
+	gforge-config
+	for flavour in apache apache-perl apache-ssl apache2 ; do
+	    if [ -x /usr/sbin/$flavour ]; then
+		invoke-rc.d $flavour reload || true
+	    fi
+	done
+    ;;
+
+    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
+
+

Copied: trunk/gforge/debian/dsf-in/plugin-mediawiki.prerm (from rev 7716, trunk/gforge/debian/gforge-plugin-mediawiki.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-mediawiki.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/plugin-mediawiki.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,41 @@
+#! /bin/sh
+# prerm script for gforge-plugin-mediawiki
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# 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)
+	/usr/share/gforge/bin/unregister-plugin mediawiki
+	invoke-rc.d apache reload
+	# /usr/share/gforge/plugins/mediawiki/bin/db-delete.pl
+        ;;
+    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.
+
+#DEBHELPER#
+
+exit 0
+
+

Copied: trunk/gforge/debian/dsf-in/plugin-projectlabels.postinst (from rev 7716, trunk/gforge/debian/gforge-plugin-projectlabels.postinst)
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-projectlabels.postinst	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/plugin-projectlabels.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,47 @@
+#! /bin/sh
+# postinst script for gforge-plugin-projectlabels
+#
+# 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)
+        /usr/share/gforge/plugins/projectlabels/bin/db-upgrade.pl
+        /usr/share/gforge/bin/register-plugin projectlabels "Project Labels"
+    ;;
+
+    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

Copied: trunk/gforge/debian/dsf-in/plugin-projectlabels.prerm (from rev 7716, trunk/gforge/debian/gforge-plugin-projectlabels.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-projectlabels.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/plugin-projectlabels.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,38 @@
+#! /bin/sh
+# prerm script for gforge-plugin-projectlabels
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# 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)
+        /usr/share/gforge/bin/unregister-plugin projectlabels
+        /usr/share/gforge/plugins/projectlabels/bin/db-delete.pl
+        ;;
+    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.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/plugin-scmcvs.postinst (from rev 7716, trunk/gforge/debian/gforge-plugin-scmcvs.postinst)
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-scmcvs.postinst	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/plugin-scmcvs.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,83 @@
+#! /bin/sh
+# postinst script for gforge-plugin-scmcvs
+#
+# 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 scmcvs "CVS"'
+	test -f /etc/default/apache2 && . /etc/default/apache2
+	if [ "$NO_START" != "0" ]; then
+		if [ -x /usr/sbin/apache ]; then
+			invoke-rc.d --quiet apache reload
+		fi
+	else
+		if [ -x /usr/sbin/apache2 ]; then
+			invoke-rc.d --quiet apache2 reload
+		fi
+	fi
+        # Setup our CVS
+	/usr/share/gforge/plugins/scmcvs/bin/install-cvs.sh configure
+
+	# Making user group and cvs update from database 
+	/usr/share/gforge/plugins/scmcvs/bin/update-user-group-ssh.sh > /dev/null 2>&1
+	rm -f /var/lib/gforge/dumps/*cvs*dump
+	su -s /bin/sh gforge -c /usr/share/gforge/plugins/scmcvs/cronjobs/cvs_dump.pl
+	/usr/share/gforge/plugins/scmcvs/cronjobs/cvs_update.pl
+
+	if [ ! -e /var/lib/gforge/chroot/cvs ] ; then
+	    cd /var/lib/gforge/chroot
+	    ln -s cvsroot cvs
+	fi
+
+	# logs
+	chown root:gforge /var/log/gforge/cvs
+	chmod 775 /var/log/gforge/cvs
+
+	# Restart some services
+	[ -d /etc/ssh ] && invoke-rc.d ssh restart || true
+	[ -d /etc/ssh-nonfree ] && invoke-rc.d ssh-nonfree restart || true
+	
+    ;;
+
+    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
+
+

Copied: trunk/gforge/debian/dsf-in/plugin-scmcvs.prerm (from rev 7716, trunk/gforge/debian/gforge-plugin-scmcvs.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-scmcvs.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/plugin-scmcvs.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,55 @@
+#! /bin/sh
+# prerm script for gforge-plugin-scmcvs
+#
+# 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 scmcvs
+	else
+		echo "WARNING: GForge database not available to unregister scmcvs plugin"
+	fi
+	test -f /etc/default/apache2 && . /etc/default/apache2
+	if [ "$NO_START" != "0" ]; then
+		if [ -x /usr/sbin/apache ]; then
+			invoke-rc.d --quiet apache reload
+		fi
+	else
+		if [ -x /usr/sbin/apache2 ]; then
+			invoke-rc.d --quiet apache2 reload
+		fi
+	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
+
+

Copied: trunk/gforge/debian/dsf-in/plugin-scmsvn.postinst (from rev 7716, trunk/gforge/debian/gforge-plugin-scmsvn.postinst)
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-scmsvn.postinst	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/plugin-scmsvn.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,63 @@
+#! /bin/sh
+# postinst script for gforge-plugin-scmsvn
+#
+# 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 scmsvn "Subversion"'
+	test -f /etc/default/apache2 && . /etc/default/apache2
+	if [ "$NO_START" != "0" ]; then
+		if [ -x /usr/sbin/apache ]; then
+			invoke-rc.d --quiet apache reload
+		fi
+	else
+		if [ -x /usr/sbin/apache2 ]; then
+			invoke-rc.d --quiet apache2 reload
+		fi
+	fi
+	# Setup inetd
+	/usr/share/gforge/plugins/scmsvn/bin/install-svn.sh configure
+    ;;
+
+    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
+
+

Copied: trunk/gforge/debian/dsf-in/plugin-scmsvn.prerm (from rev 7716, trunk/gforge/debian/gforge-plugin-scmsvn.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/plugin-scmsvn.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/plugin-scmsvn.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,56 @@
+#! /bin/sh
+# prerm script for gforge-plugin-scmsvn
+#
+# 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 scmsvn
+	else
+		echo "WARNING: GForge database not available to unregister scmsvn plugin"
+	fi
+	test -f /etc/default/apache2 && . /etc/default/apache2
+	if [ "$NO_START" != "0" ]; then
+		if [ -x /usr/sbin/apache ]; then
+			invoke-rc.d --quiet apache reload
+		fi
+	else
+		if [ -x /usr/sbin/apache2 ]; then
+			invoke-rc.d --quiet apache2 reload
+		fi
+	fi
+	/usr/share/gforge/plugins/scmsvn/bin/install-svn.sh purge
+        ;;
+    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
+
+

Copied: trunk/gforge/debian/dsf-in/shell-postgresql.postinst (from rev 7716, trunk/gforge/debian/gforge-shell-postgresql.postinst)
===================================================================
--- trunk/gforge/debian/dsf-in/shell-postgresql.postinst	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/shell-postgresql.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,59 @@
+#! /bin/sh
+# postinst script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+# set -x				# Be verbose, be very verbose.
+
+# 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 /usr/share/doc/packaging-manual/
+#
+# 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'.
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    configure)
+	gforge-config
+
+        # Patch NSS configuration files
+	/usr/share/gforge/bin/install-nsspgsql.sh configure-files
+	ucf --debconf-ok /etc/nss-pgsql.conf.gforge-new /etc/nss-pgsql.conf
+	ucf --debconf-ok /etc/nss-pgsql-root.conf.gforge-new /etc/nss-pgsql-root.conf
+	ucf --debconf-ok /etc/nsswitch.conf.gforge-new /etc/nsswitch.conf
+	rm /etc/nss-pgsql.conf.gforge-new
+	rm /etc/nss-pgsql-root.conf.gforge-new
+	rm /etc/nsswitch.conf.gforge-new
+
+	# Install the chroot environment
+	/usr/share/gforge/bin/install-chroot.sh configure
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/shell-postgresql.prerm (from rev 7716, trunk/gforge/debian/gforge-shell-postgresql.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/shell-postgresql.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/shell-postgresql.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,52 @@
+#! /bin/sh
+# prerm script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# 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 /usr/share/doc/packaging-manual/
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    remove)
+	db_title "Unconfiguring Gforge"
+
+        # Unpatch Slapd configuration files
+	/usr/share/gforge/bin/install-nsspgsql.sh purge-files
+	ucf --debconf-ok /etc/nss-pgsql.conf.gforge-new /etc/nss-pgsql.conf
+	ucf --debconf-ok /etc/nss-pgsql-root.conf.gforge-new /etc/nss-pgsql-root.conf
+	ucf --debconf-ok /etc/nsswitch.conf.gforge-new /etc/nsswitch.conf
+	rm /etc/nss-pgsql.conf.gforge-new
+	rm /etc/nss-pgsql-root.conf.gforge-new
+	rm /etc/nsswitch.conf.gforge-new
+	ucf --purge /etc/libnss-pgsql.conf
+	ucf --purge /etc/libnss-pgsql-root.conf
+	ucf --purge /etc/nsswitch.conf
+
+	# Clean debconf after ourselves
+	db_stop
+	;;
+    upgrade|deconfigure|failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/web-apache2.config.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-web-apache2.config.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/web-apache2.config.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/web-apache2.config.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,26 @@
+#!/bin/sh -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+#DSFHELPER:handle-mainconffile#
+
+create_mainconffile
+init_debconf_from_mainconffile
+
+#DSFHELPER:get-pw-from-debconf#
+#DSFHELPER:create-random-pw#
+
+#DSFHELPER:host-variables#
+#DSFHELPER:common-variables#
+#DSFHELPER:web-variables#
+#DSFHELPER:groupid-variables#
+# [Disabled] DSFHELPER:users-variables#
+# [Disabled] DSFHELPER:lists-variables#
+#DSFHELPER:downloadhost-variables#
+#DSFHELPER:uploadhost-variables#
+#DSFHELPER:ftpuploadhost-variables#
+#DSFHELPER:jabberhost-variables#
+# [Disabled] DSFHELPER:shellhost-variables#
+# [Disabled] DSFHELPER:dbpasswd-variables#
+# [Disabled] DSFHELPER:dbhost-variables#

Copied: trunk/gforge/debian/dsf-in/web-apache2.postinst.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-web-apache2.postinst.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/web-apache2.postinst.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/web-apache2.postinst.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,115 @@
+#! /bin/sh
+# postinst script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+#set -x				# Be verbose, be very verbose.
+
+# 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 /usr/share/doc/packaging-manual/
+#
+# 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'.
+
+. /usr/share/debconf/confmodule
+
+#DSFHELPER:handle-mainconffile#
+
+case "$1" in
+    configure)
+	if [ -c /dev/urandom ]; then  # ...using /dev/urandom when possible
+	    sys_session_key=$(dd if=/dev/urandom count=256 bs=1 2> /dev/null | md5sum | cut -b1-32)
+	else			# ...or something else if need be.
+	    # Last I was told, the Hurd had no /dev/urandom
+	    # (Correct me if it has changed)
+	    sys_session_key=$(dd if=/dev/random count=256 bs=1 2> /dev/null | md5sum | cut -b1-32)
+	fi
+	add_onevar_mainconfile sys_session_key $sys_session_key
+	add_onevar_mainconfile sys_show_source 0
+	add_onevar_mainconfile sys_force_login 0
+
+	if [ -f /usr/bin/cronolog ]; then  # this is the preferred location for debian
+	    add_onevar_mainconfile cronolog_path /usr/bin/cronolog
+	elif [ -f /usr/sbin/cronolog ]; then	   # this location is deprecated in debian
+	    add_onevar_mainconfile cronolog_path /usr/sbin/cronolog
+	else
+	    echo "can't find cronolog in usual places" >&2
+	    add_onevar_mainconfile cronolog_path /usr/bin/cronolog
+	fi
+
+	if [ ! -e /etc/gforge/ssl-cert.pem ] || [ ! -e /etc/gforge/ssl-cert.key ] ; then
+	    # Uh-oh, no SSL cert, let's make sure at least a dummy one exists.
+	    if [ ! -e /etc/ssl/certs/ssl-cert-snakeoil.pem ] || [ ! -e /etc/ssl/private/ssl-cert-snakeoil.key ] ; then
+		# What, not even the snakeoil cert is there?  Let's generate it
+		make-ssl-cert generate-default-snakeoil
+	    fi
+	    # Right.  At this point, it should be safe to set the symlinks.
+	    ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/gforge/ssl-cert.pem
+	    ln -s /etc/ssl/private/ssl-cert-snakeoil.key /etc/gforge/ssl-cert.key
+	    if grep -q ^sys_use_ssl=false$ /etc/gforge/gforge.conf \
+		&& grep -q ^sys_sslcrt=$ /etc/gforge/gforge.conf \
+		&& grep -q ^sys_sslkey=$ /etc/gforge/gforge.conf ; then
+		# Okay, previous installations failed to locate SSL certs
+		# and disabled SSL altogether.  Let's fix that
+		sed -i -e 's,^sys_use_ssl=false$,sys_use_ssl=true,' /etc/gforge/gforge.conf 
+		sed -i -e 's,^sys_sslcrt=$,sys_sslcrt=/etc/gforge/ssl-cert.pem,' /etc/gforge/gforge.conf 
+		sed -i -e 's,^sys_sslkey=$,sys_sslkey=/etc/gforge/ssl-cert.key,' /etc/gforge/gforge.conf
+	    fi
+	fi
+	
+        gforge-config
+
+	db_stop
+        # Setup our Apache
+	touch /var/lib/gforge/etc/templates/httpd.vhosts  && \
+		chown gforge:gforge /var/lib/gforge/etc/templates/httpd.vhosts && \
+		/usr/share/gforge/bin/create-vhosts.sh --norestart
+
+	# Enable required modules
+	DEBIAN_FRONTEND=noninteractive /usr/sbin/a2enmod php5 || true
+	DEBIAN_FRONTEND=noninteractive /usr/sbin/a2enmod ssl || true
+	DEBIAN_FRONTEND=noninteractive /usr/sbin/a2enmod env || true
+	DEBIAN_FRONTEND=noninteractive /usr/sbin/a2enmod vhost_alias || true
+	DEBIAN_FRONTEND=noninteractive /usr/sbin/a2enmod headers || true
+	DEBIAN_FRONTEND=noninteractive /usr/sbin/a2enmod rewrite || true
+	
+	# Enable the Gforge configuration
+	if [ -e /etc/apache2/conf.d/gforge.httpd.conf ] ; then
+	    rm -f /etc/apache2/conf.d/gforge.httpd.conf
+	fi
+	if [ -d /etc/apache2/sites-available ] && [ ! -e /etc/apache2/sites-available/gforge ] ; then
+	    ln -s /etc/gforge/httpd.conf /etc/apache2/sites-available/gforge
+	fi
+	a2ensite gforge
+	
+	# Make Apache see these new changes
+	invoke-rc.d apache2 restart || true
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/web-apache2.prerm (from rev 7716, trunk/gforge/debian/gforge-web-apache2.prerm)
===================================================================
--- trunk/gforge/debian/dsf-in/web-apache2.prerm	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/web-apache2.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,39 @@
+#! /bin/sh
+# prerm script for gforge
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# 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 /usr/share/doc/packaging-manual/
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    remove)
+	a2dissite gforge || true
+	rm -f /etc/apache2/sites-available/gforge
+	invoke-rc.d apache2 reload || true
+	;;
+    upgrade|deconfigure|failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/gforge/debian/dsf-in/web-apache2.templates.dsfh-in (from rev 7716, trunk/gforge/debian/gforge-web-apache2.templates.dsfh-in)
===================================================================
--- trunk/gforge/debian/dsf-in/web-apache2.templates.dsfh-in	                        (rev 0)
+++ trunk/gforge/debian/dsf-in/web-apache2.templates.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -0,0 +1,11 @@
+#DSFHELPER:host-variables#
+#DSFHELPER:downloadhost-variables#
+#DSFHELPER:uploadhost-variables#
+#DSFHELPER:ftpuploadhost-variables#
+#DSFHELPER:jabberhost-variables#
+#DSFHELPER:lists-variables#
+#DSFHELPER:users-variables#
+#DSFHELPER:shellhost-variables#
+#DSFHELPER:web-variables#
+#DSFHELPER:groupid-variables#
+#DSFHELPER:dbpasswd-variables#

Deleted: trunk/gforge/debian/gforge-common.config.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-common.config.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-common.config.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,11 +0,0 @@
-#!/bin/sh -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-#DSFHELPER:handle-mainconffile#
-
-create_mainconffile
-init_debconf_from_mainconffile
-
-#DSFHELPER:common-variables#

Deleted: trunk/gforge/debian/gforge-common.manpages
===================================================================
--- trunk/gforge/debian/gforge-common.manpages	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-common.manpages	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,2 +0,0 @@
-gforge-config.1
-cvssh.1

Deleted: trunk/gforge/debian/gforge-common.postinst
===================================================================
--- trunk/gforge/debian/gforge-common.postinst	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-common.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,52 +0,0 @@
-#! /bin/sh
-# postinst script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-# set -x				# Be verbose, be very verbose.
-
-# 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 /usr/share/doc/packaging-manual/
-#
-# 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'.
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    configure)
-	adduser --system --group --home /var/www/gforge gforge > /dev/null 2>&1
-	adduser --system --group --home /var/lib/gforge/chroot/cvsroot anonscm-gforge > /dev/null 2>&1
-	adduser --system --group --home /var/lib/gforge/chroot/cvsroot scm-gforge > /dev/null 2>&1
-	adduser --system --group --home /var/lib/gforge/chroot/cvsroot www-gforge > /dev/null 2>&1
-
-	gforge-config
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-common.postrm
===================================================================
--- trunk/gforge/debian/gforge-common.postrm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-common.postrm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,36 +0,0 @@
-#! /bin/sh
-# postrm script for gforge
-#
-# 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' <r>overwrit>r> <new-version>
-# for details, see /usr/share/doc/packaging-manual/
-
-case "$1" in
-    purge)
-	rm -rf /var/lib/gforge
-	[ -d /etc/gforge ] && rm -rf /etc/gforge
-	;;
-    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
-	;;
-
-    *)
-        echo "postrm called with unknown argument \`$1'" >&2
-        exit 0
-
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#

Deleted: trunk/gforge/debian/gforge-common.prerm
===================================================================
--- trunk/gforge/debian/gforge-common.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-common.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,39 +0,0 @@
-#! /bin/sh
-# prerm script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# 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 /usr/share/doc/packaging-manual/
-
-if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/pkg ]; then
-    rm -f /usr/doc/pkg
-fi
-
-case "$1" in
-    remove)
-	rm -f /etc/gforge/local.pl
-	;;
-    upgrade|deconfigure|failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-common.templates.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-common.templates.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-common.templates.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,10 +0,0 @@
-# These templates have been reviewed by the debian-l10n-english
-# team
-#
-# If modifications/additions/rewording are needed, please ask
-# debian-l10n-english at lists.debian.org for advice.
-#
-# Even minor modifications require translation updates and such
-# changes should be coordinated with translators and reviewers.
-
-#DSFHELPER:common-variables#

Deleted: trunk/gforge/debian/gforge-config.sgml
===================================================================
--- trunk/gforge/debian/gforge-config.sgml	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-config.sgml	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,118 +0,0 @@
-<!doctype refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
-
-  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
-  <!ENTITY dhfirstname "<firstname>Roland</firstname>">
-  <!ENTITY dhsurname   "<surname>Mas</surname>">
-  <!-- Please adjust the date whenever revising the manpage. -->
-  <!ENTITY dhdate      "<date>February 14th, 2002</date>">
-  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
-       allowed: see man(7), man(1). -->
-  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
-  <!ENTITY dhemail     "<email>lolando at debian.org</email>">
-  <!ENTITY dhusername  "Roland Mas">
-  <!ENTITY dhucpackage "<refentrytitle>Gforge</refentrytitle>">
-  <!ENTITY dhpackage   "gforge-config">
-
-  <!ENTITY debian      "<productname>Debian GNU/Linux</productname>">
-  <!ENTITY gnu         "<acronym>GNU</acronym>">
-]>
-
-<refentry>
-  <docinfo>
-    <address>
-      &dhemail;
-    </address>
-    <author>
-      &dhfirstname;
-      &dhsurname;
-    </author>
-    <copyright>
-      <year>2002</year>
-      <holder>&dhusername;</holder>
-    </copyright>
-    &dhdate;
-  </docinfo>
-  <refmeta>
-    &dhucpackage;
-
-    &dhsection;
-  </refmeta>
-  <refnamediv>
-    <refname>&dhpackage;</refname>
-
-    <refpurpose>Reconfigure Gforge
-    </refpurpose>
-  </refnamediv>
-
-  <refsynopsisdiv>
-    <cmdsynopsis>
-      <command>&dhpackage;</command>
-
-      <!-- <arg><option>-e <replaceable>"foo"</replaceable></option></arg> -->
-    </cmdsynopsis>
-  </refsynopsisdiv>
-
-  <refsect1>
-    <title>DESCRIPTION</title>
-
-    <para>
-      This manual page documents briefly the
-      <command>&dhpackage;</command> command.
-    </para>
-
-    <para><command>&dhpackage;</command> replaces (or creates) the
-      configuration files found in /etc/gforge with appropriate
-      files derived from standard fill-in-the-blank templates (found
-      in /usr/share/gforge/templates).  The values used to fill in
-      the blanks are taken from /etc/gforge.conf.
-    </para>
-
-  </refsect1>
-
-  <refsect1>
-    <title>OPTIONS</title>
-
-    <para>
-      None yet.
-    </para>
-  </refsect1>
-
-  <refsect1>
-    <title>SEE ALSO</title>
-
-    <para>Gforge package documentation (ahem).</para>
-  </refsect1>
-
-  <refsect1>
-    <title>AUTHOR</title>
-
-    <para>This manual page was written by &dhusername; &dhemail; for
-      the &debian; system (but may be used by others).</para>
-
-    <para>Permission is granted to copy, distribute and/or modify
-      this document under the terms of the <acronym>GNU</acronym> Free
-      Documentation License, Version 1.1 or any later version
-      published by the Free Software Foundation; with no Invariant
-      Sections, no Front-Cover Texts and no Back-Cover Texts.  A copy
-      of the license can be found under
-      <filename>/usr/share/common-licenses/FDL</filename>.</para>
-
-  </refsect1>
-</refentry>
-
-<!-- Keep this comment at the end of the file
-Local variables:
-mode: sgml
-sgml-omittag:t
-sgml-shorttag:t
-sgml-minimize-attributes:nil
-sgml-always-quote-attributes:t
-sgml-indent-step:2
-sgml-indent-data:t
-sgml-parent-document:nil
-sgml-default-dtd-file:nil
-sgml-exposed-tags:nil
-sgml-local-catalogs:nil
-sgml-local-ecat-files:nil
-End:
--->

Deleted: trunk/gforge/debian/gforge-db-postgresql.config.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-db-postgresql.config.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-db-postgresql.config.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,43 +0,0 @@
-#!/bin/sh -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-#DSFHELPER:handle-mainconffile#
-
-create_mainconffile
-init_debconf_from_mainconffile
-
-#DSFHELPER:get-pw-from-debconf#
-#DSFHELPER:create-random-pw#
-#DSFHELPER:common-variables#
-#DSFHELPER:dbhost-variables#
-#DSFHELPER:dbpasswd-variables#
-
-db_input low gforge/shared/admin_login || true
-db_fget gforge/shared/admin_password seen || true
-if [ "$RET" = "false" ]; then
-    if [ "$(get_pw gforge/shared/admin_password high)" = "not-asked" ] ; then
-	db_set gforge/shared/admin_password $(gen_random_pw)
-	db_get gforge/shared/admin_password || true
-	echo "Since you asked not to see all the debconf questions, I generated a random"
-	echo "password for the admin user.  It is '${RET}'." ;
-	db_fset gforge/shared/admin_password seen true
-    fi
-fi
-
-#DSFHELPER:host-variables#
-#DSFHELPER:shellhost-variables#
-#DSFHELPER:users-variables#
-#DSFHELPER:lists-variables#
-#DSFHELPER:downloadhost-variables#
-#DSFHELPER:groupid-variables#
-
-db_input low gforge/shared/skill_list || true
-
-db_go || true
-
-vars="admin_login admin_password skill_list"
-update_mainconffile $vars
-
-db_stop

Deleted: trunk/gforge/debian/gforge-db-postgresql.postinst.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-db-postgresql.postinst.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-db-postgresql.postinst.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,88 +0,0 @@
-#! /bin/sh
-# postinst script for gforge
-#
-# see: dh_installdeb(1)
-
-# Support for new place for pg_hba.conf
-# I only try to upgrade on the default cluster
-if [ -x /usr/bin/pg_lsclusters ]
-then 
-	# We are with new postgresql working with clusters
-	# This is probably not te most elegant way to deal with database
-	# I install or upgrade on the default cluster if it is online
-	# or I quit gently with a big message
-	pg_version=`/usr/bin/pg_lsclusters | grep 5432 | grep online | cut -d' ' -f1`
-	if [ "x$pg_version" != "x" ] 
-	then 
-		export pg_hba_dir=/etc/postgresql/${pg_version}/main
-	else
-		echo "No database found online on port 5432"
-		echo "Couldn't initialize or upgrade gforge database."
-		echo "Please see postgresql documentation"
-		echo "and run dpkg-reconfigure -plow gforge-db-postgresql"
-		echo "once the problem is solved"
-		echo "exiting without error, but gforge db will not work"
-		echo "right now"
-		exit 0
-	fi
-else
-    	export pg_hba_dir=/etc/postgresql
-fi
-
-set -e
-#set -x				# Be verbose, be very verbose.
-
-# 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 /usr/share/doc/packaging-manual/
-#
-# 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'.
-
-. /usr/share/debconf/confmodule
-
-#DSFHELPER:handle-mainconffile#
-case "$1" in
-    configure)
-	add_onevar_mainconfile default_trove_cat 18
-
-	gforge-config
-
-        # Patch DB configuration files
-	/usr/share/gforge/bin/install-db.sh configure-files
-	ucf --debconf-ok ${pg_hba_dir}/pg_hba.conf.gforge-new ${pg_hba_dir}/pg_hba.conf
-	rm ${pg_hba_dir}/pg_hba.conf.gforge-new
-
-	# Make sure the database accepts connections from these new users
-	pg_name=postgresql-$pg_version
-	invoke-rc.d ${pg_name} reload
-
-        # Setup our DB
-	/usr/share/gforge/bin/install-db.sh configure
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-db-postgresql.prerm
===================================================================
--- trunk/gforge/debian/gforge-db-postgresql.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-db-postgresql.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,73 +0,0 @@
-#! /bin/sh
-# prerm script for gforge
-#
-# see: dh_installdeb(1)
-
-# Support for new place for pg_hba.conf
-# I only try to upgrade on the default cluster
-if [ -x /usr/bin/pg_lsclusters ]
-then 
-	# We are with new postgresql working with clusters
-	# This is probably not te most elegant way to deal with database
-	# I install or upgrade on the default cluster if it is online
-	# or I quit gently with a big message
-	pg_version=`/usr/bin/pg_lsclusters | grep 5432 | grep online | cut -d' ' -f1`
-	if [ "x$pg_version" != "x" ] 
-	then 
-		export pg_hba_dir=/etc/postgresql/${pg_version}/main/
-	else
-		echo "No database found online on port 5432"
-		echo "Couldn't initialize or upgrade gforge database."
-		echo "Please see postgresql documentation"
-		echo "and run dpkg-reconfigure -plow gforge-db-postgresql"
-		echo "once the problem is solved"
-		echo "exiting without error, but gforge db will not work"
-		echo "right now"
-		exit 0
-	fi
-else
-    	export pg_hba_dir=/etc/postgresql
-fi
-
-set -e
-
-# 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 /usr/share/doc/packaging-manual/
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    remove)
-        # Remove our database
-	/usr/share/gforge/bin/install-db.sh purge
-
-        # Unpatch DB configuration files
-	/usr/share/gforge/bin/install-db.sh purge-files
-	ucf --debconf-ok ${pg_hba_dir}/pg_hba.conf.gforge-new ${pg_hba_dir}/pg_hba.conf
-	rm ${pg_hba_dir}/pg_hba.conf.gforge-new
-	ucf --purge ${pg_hba_dir}/pg_hba.conf
-
-	pg_name=postgresql-$pg_version
-	invoke-rc.d ${pg_name} reload
-	;;
-    upgrade|deconfigure|failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-db-postgresql.templates.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-db-postgresql.templates.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-db-postgresql.templates.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,76 +0,0 @@
-# These templates have been reviewed by the debian-l10n-english
-# team
-#
-# If modifications/additions/rewording are needed, please ask
-# debian-l10n-english at lists.debian.org for advice.
-#
-# Even minor modifications require translation updates and such
-# changes should be coordinated with translators and reviewers.
-
-#DSFHELPER:common-variables#
-
-Template: gforge/shared/shell_host
-Type: string
-_Description: Shell server:
- Please enter the hostname of the server that will host the GForge
- shell accounts.
-
-#DSFHELPER:users-variables#
-
-#DSFHELPER:lists-variables#
-
-Template: gforge/shared/download_host
-Type: string
-_Description: Download server:
- Please enter the hostname of the server that will host the GForge
- packages. 
- .
- It should not be the same as the main GForge host.
-
-#DSFHELPER:dbpasswd-variables#
-
-Template: gforge/shared/admin_login
-Type: string
-Default: admin
-_Description: GForge administrator login:
- The GForge administrator account will have full privileges on the
- system. It will be used to approve the creation of new projects.
- .
- Please choose the username for this account.
-
-Template: gforge/shared/ip_address
-Type: string
-_Description: IP address:
- Please enter the IP address of the server that will host the GForge
- installation.
- .
- This is needed for the configuration of Apache virtual hosting.
-
-Template: gforge/shared/admin_password
-Type: password
-_Description: GForge administrator password:
- The GForge administrator account will have full privileges on the
- system. It will be used to approve the creation of new projects.
- .
- Please choose the password for this account.
-
-Template: gforge/shared/admin_password_confirm
-Type: password
-_Description: Password confirmation:
- Please re-type the password for confirmation.
-
-Template: gforge/shared/skill_list
-Type: string
-Default: Ada;C;C++;HTML;LISP;Perl;PHP;Python;SQL
-_Description: Initial list of skills:
- GForge allows users to define a list of their skills, to be chosen from
- those present in the database. This list is the initial list of
- skills that will enter the database.
- .
- Please enter a semicolon-separated list of skill names.
-
-#DSFHELPER:dbhost-variables#
-
-#DSFHELPER:web-variables#
-
-#DSFHELPER:groupid-variables#

Deleted: trunk/gforge/debian/gforge-dns-bind9.config.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-dns-bind9.config.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-dns-bind9.config.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,15 +0,0 @@
-#!/bin/sh -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-#DSFHELPER:handle-mainconffile#
-
-create_mainconffile
-init_debconf_from_mainconffile
-
-#DSFHELPER:common-variables#
-#DSFHELPER:users-variables#
-#DSFHELPER:lists-variables#
-
-db_stop

Deleted: trunk/gforge/debian/gforge-dns-bind9.postinst
===================================================================
--- trunk/gforge/debian/gforge-dns-bind9.postinst	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-dns-bind9.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,57 +0,0 @@
-#! /bin/sh
-# postinst script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-# set -x				# Be verbose, be very verbose.
-
-# 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 /usr/share/doc/packaging-manual/
-#
-# 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'.
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    configure)
-	gforge-config
-
-	# Patch Bind configuration files
-	/usr/share/gforge/bin/install-dns.sh configure-files
-	ucf --debconf-ok /etc/bind/named.conf.gforge-new /etc/bind/named.conf
-	rm /etc/bind/named.conf.gforge-new
-
-	db_stop
-
-	# Create the DNS zone
-	/usr/share/gforge/bin/install-dns.sh configure
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-dns-bind9.prerm
===================================================================
--- trunk/gforge/debian/gforge-dns-bind9.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-dns-bind9.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,51 +0,0 @@
-#! /bin/sh
-# prerm script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# 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 /usr/share/doc/packaging-manual/
-
-	
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    remove)
-	db_title "Unconfiguring Gforge"
-
-	# Unpatch Bind configuration files
-	/usr/share/gforge/bin/install-dns.sh purge-files
-	ucf --debconf-ok /etc/bind/named.conf.gforge-new /etc/bind/named.conf
-	rm /etc/bind/named.conf.gforge-new
-	ucf --purge /etc/bind/named.conf
-	
-	# Clean debconf after ourselves
-	db_stop
-
-        # DNS config removal
-	/usr/share/gforge/bin/install-dns.sh purge
-
-	;;
-    upgrade|deconfigure|failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-dns-bind9.templates.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-dns-bind9.templates.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-dns-bind9.templates.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,32 +0,0 @@
-# These templates have been reviewed by the debian-l10n-english
-# team
-#
-# If modifications/additions/rewording are needed, please ask
-# debian-l10n-english at lists.debian.org for advice.
-#
-# Even minor modifications require translation updates and such
-# changes should be coordinated with translators and reviewers.
-
-#DSFHELPER:common-variables#
-#DSFHELPER:shellhost-variables#
-#DSFHELPER:users-variables#
-#DSFHELPER:lists-variables#
-#DSFHELPER:downloadhost-variables#
-#DSFHELPER:host-variables#
-#DSFHELPER:web-variables#
-
-Template: gforge/shared/simple_dns
-Type: boolean
-Default: false
-# Translators: SCM here means "Source Control Management"
-#              (cvs, svn, etc.)
-_Description: Do you want a simple DNS setup for GForge?
- You can use a simple DNS setup with wildcards to map all
- project web-hosts to a single IP address, and direct all the scm-hosts
- to a single SCM server, or a complex setup which allows
- many servers as project web servers or SCM servers.
- .
- Even if you use a simple DNS setup, you can still use
- separate machines as project servers; it just assumes that
- all the project web directories are on the same server with a single
- SCM server.

Deleted: trunk/gforge/debian/gforge-ftp-proftpd.postinst
===================================================================
--- trunk/gforge/debian/gforge-ftp-proftpd.postinst	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-ftp-proftpd.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,62 +0,0 @@
-#! /bin/sh
-# postinst script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-# set -x				# Be verbose, be very verbose.
-
-# 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 /usr/share/doc/packaging-manual/
-#
-# 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'.
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    configure)
-	gforge-config
-
-        # Patch Proftpd configuration files
-	/usr/share/gforge/bin/install-ftp.sh configure-files
-	if [ -f /etc/proftpd/proftpd.conf.gforge-new ]
-	then
-		ucf --debconf-ok /etc/proftpd/proftpd.conf.gforge-new /etc/proftpd/proftpd.conf
-		rm /etc/proftpd/proftpd.conf.gforge-new
-	fi
-
-        # Setup our FTP
-	/usr/share/gforge/bin/install-ftp.sh configure 
-
-        # Setup our FRS
-	chown www-data:www-data /var/lib/gforge/download
-	
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-ftp-proftpd.prerm
===================================================================
--- trunk/gforge/debian/gforge-ftp-proftpd.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-ftp-proftpd.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,49 +0,0 @@
-#! /bin/sh
-# prerm script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# 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 /usr/share/doc/packaging-manual/
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    remove)
-	db_title "Unconfiguring Gforge"
-
-	# Unpatch Proftpd configuration files
-	/usr/share/gforge/bin/install-ftp.sh purge-files
-	ucf --debconf-ok /etc/proftpd/proftpd.conf.gforge-new /etc/proftpd/proftpd.conf
-	rm /etc/proftpd/proftpd.conf.gforge-new
-	ucf --purge /etc/proftpd/proftpd.conf
-
-	# Clean debconf after ourselves
-	db_stop
-
-        # FTP config removal
-	/usr/share/gforge/bin/install-ftp.sh purge
-	;;
-    upgrade|deconfigure|failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-lists-mailman.postinst
===================================================================
--- trunk/gforge/debian/gforge-lists-mailman.postinst	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-lists-mailman.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,52 +0,0 @@
-#! /bin/sh
-# postinst script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-# set -x				# Be verbose, be very verbose.
-
-# 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 /usr/share/doc/packaging-manual/
-#
-# 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'.
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    configure)
-	gforge-config
-	
-	echo "Fixing past damage in mailing-lists..."
-	if [ -z "$2" ] || dpkg --compare-versions $2 le 3rc2-4 ; then
-	    su -s /bin/sh gforge -c /usr/share/gforge/bin/fix-mailing-lists.pl
-	fi
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-mta-exim4.config.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-mta-exim4.config.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-mta-exim4.config.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,38 +0,0 @@
-#!/bin/sh -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-#DSFHELPER:handle-mainconffile#
-
-create_mainconffile
-init_debconf_from_mainconffile
-
-#DSFHELPER:common-variables#
-#DSFHELPER:get-pw-from-debconf#
-#DSFHELPER:users-variables#
-#DSFHELPER:lists-variables#
-
-if [ -f /etc/aliases.gforge-new ] 
-then
-	ucf --debconf-ok /etc/aliases.gforge-new /etc/aliases
-	rm /etc/aliases.gforge-new
-fi
-if [ -f /etc/exim4/exim4.conf.gforge-new ]
-then
-	ucf --debconf-ok /etc/exim4/exim4.conf.gforge-new /etc/exim4/exim4.conf
-	rm /etc/exim4/exim4.conf.gforge-new
-fi
-if [ -f /etc/exim4/exim4.conf.template.gforge-new ]
-then
-	ucf --debconf-ok /etc/exim4/exim4.conf.template.gforge-new /etc/exim4/exim4.conf.template
-	rm /etc/exim4/exim4.conf.template.gforge-new
-fi
-if [ -f /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new ]
-then
-	ucf --debconf-ok /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs
-	rm /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new
-fi
-db_stop
-
-

Deleted: trunk/gforge/debian/gforge-mta-exim4.postinst
===================================================================
--- trunk/gforge/debian/gforge-mta-exim4.postinst	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-mta-exim4.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,70 +0,0 @@
-#! /bin/sh
-# postinst script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-# set -x				# Be verbose, be very verbose.
-
-# 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 /usr/share/doc/packaging-manual/
-#
-# 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'.
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    configure)
-
-	gforge-config
-        # Patch Exim configuration files
-	/usr/share/gforge/bin/install-exim4.sh configure-files
-	if [ -f /etc/aliases.gforge-new ]
-	then
-		ucf --debconf-ok /etc/aliases.gforge-new /etc/aliases
-		rm /etc/aliases.gforge-new
-	fi
-	if [ -f /etc/exim4/exim4.conf.gforge-new ]
-	then
-		ucf --debconf-ok /etc/exim4/exim4.conf.gforge-new /etc/exim4/exim4.conf
-		rm /etc/exim4/exim4.conf.gforge-new
-	fi
-	if [ -f /etc/exim4/exim4.conf.template.gforge-new ]
-	then
-		ucf --debconf-ok /etc/exim4/exim4.conf.template.gforge-new /etc/exim4/exim4.conf.template
-		rm /etc/exim4/exim4.conf.template.gforge-new
-	fi
-	if [ -f /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new ]
-	then
-		ucf --debconf-ok /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs
-		rm /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new
-	fi
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-mta-exim4.prerm
===================================================================
--- trunk/gforge/debian/gforge-mta-exim4.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-mta-exim4.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,61 +0,0 @@
-#! /bin/sh
-# prerm script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# 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 /usr/share/doc/packaging-manual/
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    remove)
-	db_title "Unconfiguring Gforge"
-
-	# Unpatch Exim configuration files
-	/usr/share/gforge/bin/install-exim4.sh purge-files
-	ucf --debconf-ok /etc/aliases.gforge-new /etc/aliases
-	if [ -f /etc/exim4/exim4.conf.gforge-new ]
-	then
-		ucf --debconf-ok /etc/exim4/exim4.conf.gforge-new /etc/exim4/exim4.conf
-		rm /etc/exim4/exim4.conf.gforge-new
-	fi
-	ucf --debconf-ok /etc/exim4/exim4.conf.template.gforge-new /etc/exim4/exim4.conf.template
-	ucf --debconf-ok /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs
-	rm /etc/aliases.gforge-new
-	rm /etc/exim4/exim4.conf.template.gforge-new
-	rm /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs.gforge-new
-	ucf --purge /etc/aliases
-	ucf --purge /etc/exim4/exim4.conf
-	ucf --purge /etc/exim4/exim4.conf.template
-	ucf --purge /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs
-
-	# Clean debconf after ourselves
-	db_stop
-
-        # Exim config removal
-	/usr/share/gforge/bin/install-exim4.sh purge
-	;;
-    upgrade|deconfigure|failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-mta-exim4.templates.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-mta-exim4.templates.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-mta-exim4.templates.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,15 +0,0 @@
-#DSFHELPER:common-variables#
-#DSFHELPER:users-variables#
-#DSFHELPER:lists-variables#
-
-Template: gforge/shared/noreply_to_bitbucket
-Type: boolean
-Default: true
-_Description: Do you want mail to ${noreply} to be deleted?
- Gforge sends plenty of e-mail from the "${noreply}" address,
- and maybe even some e-mail to that address too.
- .
- It is advised that you let the package direct e-mail to that address to a
- black hole (/dev/null), unless you have another use for that address.
- .
- Accepting this option will perform that redirection.

Deleted: trunk/gforge/debian/gforge-mta-postfix.config.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-mta-postfix.config.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-mta-postfix.config.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,16 +0,0 @@
-#!/bin/sh -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-#DSFHELPER:handle-mainconffile#
-
-create_mainconffile
-init_debconf_from_mainconffile
-
-#DSFHELPER:common-variables#
-#DSFHELPER:get-pw-from-debconf#
-#DSFHELPER:users-variables#
-#DSFHELPER:lists-variables#
-
-db_stop

Deleted: trunk/gforge/debian/gforge-mta-postfix.postinst
===================================================================
--- trunk/gforge/debian/gforge-mta-postfix.postinst	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-mta-postfix.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,55 +0,0 @@
-#! /bin/sh
-# postinst script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-# set -x				# Be verbose, be very verbose.
-
-# 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 /usr/share/doc/packaging-manual/
-#
-# 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'.
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    configure)
-	gforge-config
-
-        # Patch Postfix configuration files
-	/usr/share/gforge/bin/install-postfix.sh configure-files
-	ucf --debconf-ok /etc/aliases.gforge-new /etc/aliases
-	ucf --debconf-ok /etc/postfix/main.cf.gforge-new /etc/postfix/main.cf
-	rm /etc/aliases.gforge-new
-	rm /etc/postfix/main.cf.gforge-new
-	/usr/share/gforge/bin/install-postfix.sh configure
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-mta-postfix.prerm
===================================================================
--- trunk/gforge/debian/gforge-mta-postfix.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-mta-postfix.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,52 +0,0 @@
-#! /bin/sh
-# prerm script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# 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 /usr/share/doc/packaging-manual/
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    remove)
-	db_title "Unconfiguring Gforge"
-
-	# Unpatch Postfix configuration files
-	/usr/share/gforge/bin/install-postfix.sh purge-files
-	ucf --debconf-ok /etc/aliases.gforge-new /etc/aliases
-	ucf --debconf-ok /etc/postfix/main.cf.gforge-new /etc/postfix/main.cf
-	rm /etc/aliases.gforge-new
-	rm /etc/postfix/main.cf.gforge-new
-	ucf --purge /etc/aliases
-	ucf --purge /etc/postfix/main.cf
-
-	# Clean debconf after ourselves
-	db_stop
-
-        # Exim config removal
-	/usr/share/gforge/bin/install-postfix.sh purge
-	;;
-    upgrade|deconfigure|failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-mta-postfix.templates.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-mta-postfix.templates.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-mta-postfix.templates.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,22 +0,0 @@
-# These templates have been reviewed by the debian-l10n-english
-# team
-#
-# If modifications/additions/rewording are needed, please ask
-# debian-l10n-english at lists.debian.org for advice.
-#
-# Even minor modifications require translation updates and such
-# changes should be coordinated with translators and reviewers.
-
-#DSFHELPER:common-variables#
-#DSFHELPER:users-variables#
-#DSFHELPER:lists-variables#
-
-Template: gforge/shared/noreply_to_bitbucket
-Type: boolean
-Default: true
-_Description: Do you want mail to ${noreply} to be discarded?
- GForge sends and receives plenty of e-mail to and from the
- "${noreply}" address.
- .
- E-mail to that address should be directed to a
- black hole (/dev/null), unless you have another use for that address.

Deleted: trunk/gforge/debian/gforge-plugin-extratabs.postinst
===================================================================
--- trunk/gforge/debian/gforge-plugin-extratabs.postinst	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-plugin-extratabs.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,47 +0,0 @@
-#! /bin/sh
-# postinst script for gforge-plugin-extratabs
-#
-# 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)
-        /usr/share/gforge/plugins/extratabs/bin/db-upgrade.pl
-        /usr/share/gforge/bin/register-plugin extratabs "Extra Tabs"
-    ;;
-
-    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

Deleted: trunk/gforge/debian/gforge-plugin-extratabs.prerm
===================================================================
--- trunk/gforge/debian/gforge-plugin-extratabs.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-plugin-extratabs.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,38 +0,0 @@
-#! /bin/sh
-# prerm script for gforge-plugin-extratabs
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# 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)
-        /usr/share/gforge/bin/unregister-plugin extratabs
-        /usr/share/gforge/plugins/extratabs/bin/db-delete.pl
-        ;;
-    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.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-plugin-globalsearch.postinst
===================================================================
--- trunk/gforge/debian/gforge-plugin-globalsearch.postinst	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-plugin-globalsearch.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,47 +0,0 @@
-#! /bin/sh
-# postinst script for gforge-plugin-globalsearch
-#
-# 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)
-        /usr/share/gforge/plugins/globalsearch/bin/db-upgrade.pl
-        /usr/share/gforge/bin/register-plugin globalsearch "Global Search"
-    ;;
-
-    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

Deleted: trunk/gforge/debian/gforge-plugin-globalsearch.prerm
===================================================================
--- trunk/gforge/debian/gforge-plugin-globalsearch.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-plugin-globalsearch.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,38 +0,0 @@
-#! /bin/sh
-# prerm script for gforge-plugin-globalsearch
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# 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)
-        /usr/share/gforge/bin/unregister-plugin globalsearch
-        /usr/share/gforge/plugins/globalsearch/bin/db-delete.pl
-        ;;
-    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.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-plugin-mediawiki.postinst
===================================================================
--- trunk/gforge/debian/gforge-plugin-mediawiki.postinst	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-plugin-mediawiki.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,55 +0,0 @@
-#! /bin/sh
-# postinst script for gforge-plugin-mediawiki
-#
-# 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)
-	# /usr/share/gforge/plugins/mediawiki/bin/db-upgrade.pl
-	/usr/share/gforge/bin/register-plugin mediawiki "Mediawiki"
-	gforge-config
-	for flavour in apache apache-perl apache-ssl apache2 ; do
-	    if [ -x /usr/sbin/$flavour ]; then
-		invoke-rc.d $flavour reload || true
-	    fi
-	done
-    ;;
-
-    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
-
-

Deleted: trunk/gforge/debian/gforge-plugin-mediawiki.prerm
===================================================================
--- trunk/gforge/debian/gforge-plugin-mediawiki.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-plugin-mediawiki.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,41 +0,0 @@
-#! /bin/sh
-# prerm script for gforge-plugin-mediawiki
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# 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)
-	/usr/share/gforge/bin/unregister-plugin mediawiki
-	invoke-rc.d apache reload
-	# /usr/share/gforge/plugins/mediawiki/bin/db-delete.pl
-        ;;
-    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.
-
-#DEBHELPER#
-
-exit 0
-
-

Deleted: trunk/gforge/debian/gforge-plugin-projectlabels.postinst
===================================================================
--- trunk/gforge/debian/gforge-plugin-projectlabels.postinst	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-plugin-projectlabels.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,47 +0,0 @@
-#! /bin/sh
-# postinst script for gforge-plugin-projectlabels
-#
-# 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)
-        /usr/share/gforge/plugins/projectlabels/bin/db-upgrade.pl
-        /usr/share/gforge/bin/register-plugin projectlabels "Project Labels"
-    ;;
-
-    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

Deleted: trunk/gforge/debian/gforge-plugin-projectlabels.prerm
===================================================================
--- trunk/gforge/debian/gforge-plugin-projectlabels.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-plugin-projectlabels.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,38 +0,0 @@
-#! /bin/sh
-# prerm script for gforge-plugin-projectlabels
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# 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)
-        /usr/share/gforge/bin/unregister-plugin projectlabels
-        /usr/share/gforge/plugins/projectlabels/bin/db-delete.pl
-        ;;
-    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.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-plugin-scmcvs.postinst
===================================================================
--- trunk/gforge/debian/gforge-plugin-scmcvs.postinst	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-plugin-scmcvs.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,83 +0,0 @@
-#! /bin/sh
-# postinst script for gforge-plugin-scmcvs
-#
-# 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 scmcvs "CVS"'
-	test -f /etc/default/apache2 && . /etc/default/apache2
-	if [ "$NO_START" != "0" ]; then
-		if [ -x /usr/sbin/apache ]; then
-			invoke-rc.d --quiet apache reload
-		fi
-	else
-		if [ -x /usr/sbin/apache2 ]; then
-			invoke-rc.d --quiet apache2 reload
-		fi
-	fi
-        # Setup our CVS
-	/usr/share/gforge/plugins/scmcvs/bin/install-cvs.sh configure
-
-	# Making user group and cvs update from database 
-	/usr/share/gforge/plugins/scmcvs/bin/update-user-group-ssh.sh > /dev/null 2>&1
-	rm -f /var/lib/gforge/dumps/*cvs*dump
-	su -s /bin/sh gforge -c /usr/share/gforge/plugins/scmcvs/cronjobs/cvs_dump.pl
-	/usr/share/gforge/plugins/scmcvs/cronjobs/cvs_update.pl
-
-	if [ ! -e /var/lib/gforge/chroot/cvs ] ; then
-	    cd /var/lib/gforge/chroot
-	    ln -s cvsroot cvs
-	fi
-
-	# logs
-	chown root:gforge /var/log/gforge/cvs
-	chmod 775 /var/log/gforge/cvs
-
-	# Restart some services
-	[ -d /etc/ssh ] && invoke-rc.d ssh restart || true
-	[ -d /etc/ssh-nonfree ] && invoke-rc.d ssh-nonfree restart || true
-	
-    ;;
-
-    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
-
-

Deleted: trunk/gforge/debian/gforge-plugin-scmcvs.prerm
===================================================================
--- trunk/gforge/debian/gforge-plugin-scmcvs.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-plugin-scmcvs.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,55 +0,0 @@
-#! /bin/sh
-# prerm script for gforge-plugin-scmcvs
-#
-# 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 scmcvs
-	else
-		echo "WARNING: GForge database not available to unregister scmcvs plugin"
-	fi
-	test -f /etc/default/apache2 && . /etc/default/apache2
-	if [ "$NO_START" != "0" ]; then
-		if [ -x /usr/sbin/apache ]; then
-			invoke-rc.d --quiet apache reload
-		fi
-	else
-		if [ -x /usr/sbin/apache2 ]; then
-			invoke-rc.d --quiet apache2 reload
-		fi
-	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
-
-

Deleted: trunk/gforge/debian/gforge-plugin-scmsvn.postinst
===================================================================
--- trunk/gforge/debian/gforge-plugin-scmsvn.postinst	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-plugin-scmsvn.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,63 +0,0 @@
-#! /bin/sh
-# postinst script for gforge-plugin-scmsvn
-#
-# 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 scmsvn "Subversion"'
-	test -f /etc/default/apache2 && . /etc/default/apache2
-	if [ "$NO_START" != "0" ]; then
-		if [ -x /usr/sbin/apache ]; then
-			invoke-rc.d --quiet apache reload
-		fi
-	else
-		if [ -x /usr/sbin/apache2 ]; then
-			invoke-rc.d --quiet apache2 reload
-		fi
-	fi
-	# Setup inetd
-	/usr/share/gforge/plugins/scmsvn/bin/install-svn.sh configure
-    ;;
-
-    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
-
-

Deleted: trunk/gforge/debian/gforge-plugin-scmsvn.prerm
===================================================================
--- trunk/gforge/debian/gforge-plugin-scmsvn.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-plugin-scmsvn.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,56 +0,0 @@
-#! /bin/sh
-# prerm script for gforge-plugin-scmsvn
-#
-# 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 scmsvn
-	else
-		echo "WARNING: GForge database not available to unregister scmsvn plugin"
-	fi
-	test -f /etc/default/apache2 && . /etc/default/apache2
-	if [ "$NO_START" != "0" ]; then
-		if [ -x /usr/sbin/apache ]; then
-			invoke-rc.d --quiet apache reload
-		fi
-	else
-		if [ -x /usr/sbin/apache2 ]; then
-			invoke-rc.d --quiet apache2 reload
-		fi
-	fi
-	/usr/share/gforge/plugins/scmsvn/bin/install-svn.sh purge
-        ;;
-    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
-
-

Deleted: trunk/gforge/debian/gforge-shell-postgresql.postinst
===================================================================
--- trunk/gforge/debian/gforge-shell-postgresql.postinst	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-shell-postgresql.postinst	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,59 +0,0 @@
-#! /bin/sh
-# postinst script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-# set -x				# Be verbose, be very verbose.
-
-# 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 /usr/share/doc/packaging-manual/
-#
-# 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'.
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    configure)
-	gforge-config
-
-        # Patch NSS configuration files
-	/usr/share/gforge/bin/install-nsspgsql.sh configure-files
-	ucf --debconf-ok /etc/nss-pgsql.conf.gforge-new /etc/nss-pgsql.conf
-	ucf --debconf-ok /etc/nss-pgsql-root.conf.gforge-new /etc/nss-pgsql-root.conf
-	ucf --debconf-ok /etc/nsswitch.conf.gforge-new /etc/nsswitch.conf
-	rm /etc/nss-pgsql.conf.gforge-new
-	rm /etc/nss-pgsql-root.conf.gforge-new
-	rm /etc/nsswitch.conf.gforge-new
-
-	# Install the chroot environment
-	/usr/share/gforge/bin/install-chroot.sh configure
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-shell-postgresql.prerm
===================================================================
--- trunk/gforge/debian/gforge-shell-postgresql.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-shell-postgresql.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,52 +0,0 @@
-#! /bin/sh
-# prerm script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# 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 /usr/share/doc/packaging-manual/
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    remove)
-	db_title "Unconfiguring Gforge"
-
-        # Unpatch Slapd configuration files
-	/usr/share/gforge/bin/install-nsspgsql.sh purge-files
-	ucf --debconf-ok /etc/nss-pgsql.conf.gforge-new /etc/nss-pgsql.conf
-	ucf --debconf-ok /etc/nss-pgsql-root.conf.gforge-new /etc/nss-pgsql-root.conf
-	ucf --debconf-ok /etc/nsswitch.conf.gforge-new /etc/nsswitch.conf
-	rm /etc/nss-pgsql.conf.gforge-new
-	rm /etc/nss-pgsql-root.conf.gforge-new
-	rm /etc/nsswitch.conf.gforge-new
-	ucf --purge /etc/libnss-pgsql.conf
-	ucf --purge /etc/libnss-pgsql-root.conf
-	ucf --purge /etc/nsswitch.conf
-
-	# Clean debconf after ourselves
-	db_stop
-	;;
-    upgrade|deconfigure|failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-web-apache2.config.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-web-apache2.config.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-web-apache2.config.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,26 +0,0 @@
-#!/bin/sh -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-#DSFHELPER:handle-mainconffile#
-
-create_mainconffile
-init_debconf_from_mainconffile
-
-#DSFHELPER:get-pw-from-debconf#
-#DSFHELPER:create-random-pw#
-
-#DSFHELPER:host-variables#
-#DSFHELPER:common-variables#
-#DSFHELPER:web-variables#
-#DSFHELPER:groupid-variables#
-# [Disabled] DSFHELPER:users-variables#
-# [Disabled] DSFHELPER:lists-variables#
-#DSFHELPER:downloadhost-variables#
-#DSFHELPER:uploadhost-variables#
-#DSFHELPER:ftpuploadhost-variables#
-#DSFHELPER:jabberhost-variables#
-# [Disabled] DSFHELPER:shellhost-variables#
-# [Disabled] DSFHELPER:dbpasswd-variables#
-# [Disabled] DSFHELPER:dbhost-variables#

Deleted: trunk/gforge/debian/gforge-web-apache2.postinst.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-web-apache2.postinst.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-web-apache2.postinst.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,115 +0,0 @@
-#! /bin/sh
-# postinst script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-#set -x				# Be verbose, be very verbose.
-
-# 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 /usr/share/doc/packaging-manual/
-#
-# 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'.
-
-. /usr/share/debconf/confmodule
-
-#DSFHELPER:handle-mainconffile#
-
-case "$1" in
-    configure)
-	if [ -c /dev/urandom ]; then  # ...using /dev/urandom when possible
-	    sys_session_key=$(dd if=/dev/urandom count=256 bs=1 2> /dev/null | md5sum | cut -b1-32)
-	else			# ...or something else if need be.
-	    # Last I was told, the Hurd had no /dev/urandom
-	    # (Correct me if it has changed)
-	    sys_session_key=$(dd if=/dev/random count=256 bs=1 2> /dev/null | md5sum | cut -b1-32)
-	fi
-	add_onevar_mainconfile sys_session_key $sys_session_key
-	add_onevar_mainconfile sys_show_source 0
-	add_onevar_mainconfile sys_force_login 0
-
-	if [ -f /usr/bin/cronolog ]; then  # this is the preferred location for debian
-	    add_onevar_mainconfile cronolog_path /usr/bin/cronolog
-	elif [ -f /usr/sbin/cronolog ]; then	   # this location is deprecated in debian
-	    add_onevar_mainconfile cronolog_path /usr/sbin/cronolog
-	else
-	    echo "can't find cronolog in usual places" >&2
-	    add_onevar_mainconfile cronolog_path /usr/bin/cronolog
-	fi
-
-	if [ ! -e /etc/gforge/ssl-cert.pem ] || [ ! -e /etc/gforge/ssl-cert.key ] ; then
-	    # Uh-oh, no SSL cert, let's make sure at least a dummy one exists.
-	    if [ ! -e /etc/ssl/certs/ssl-cert-snakeoil.pem ] || [ ! -e /etc/ssl/private/ssl-cert-snakeoil.key ] ; then
-		# What, not even the snakeoil cert is there?  Let's generate it
-		make-ssl-cert generate-default-snakeoil
-	    fi
-	    # Right.  At this point, it should be safe to set the symlinks.
-	    ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/gforge/ssl-cert.pem
-	    ln -s /etc/ssl/private/ssl-cert-snakeoil.key /etc/gforge/ssl-cert.key
-	    if grep -q ^sys_use_ssl=false$ /etc/gforge/gforge.conf \
-		&& grep -q ^sys_sslcrt=$ /etc/gforge/gforge.conf \
-		&& grep -q ^sys_sslkey=$ /etc/gforge/gforge.conf ; then
-		# Okay, previous installations failed to locate SSL certs
-		# and disabled SSL altogether.  Let's fix that
-		sed -i -e 's,^sys_use_ssl=false$,sys_use_ssl=true,' /etc/gforge/gforge.conf 
-		sed -i -e 's,^sys_sslcrt=$,sys_sslcrt=/etc/gforge/ssl-cert.pem,' /etc/gforge/gforge.conf 
-		sed -i -e 's,^sys_sslkey=$,sys_sslkey=/etc/gforge/ssl-cert.key,' /etc/gforge/gforge.conf
-	    fi
-	fi
-	
-        gforge-config
-
-	db_stop
-        # Setup our Apache
-	touch /var/lib/gforge/etc/templates/httpd.vhosts  && \
-		chown gforge:gforge /var/lib/gforge/etc/templates/httpd.vhosts && \
-		/usr/share/gforge/bin/create-vhosts.sh --norestart
-
-	# Enable required modules
-	DEBIAN_FRONTEND=noninteractive /usr/sbin/a2enmod php5 || true
-	DEBIAN_FRONTEND=noninteractive /usr/sbin/a2enmod ssl || true
-	DEBIAN_FRONTEND=noninteractive /usr/sbin/a2enmod env || true
-	DEBIAN_FRONTEND=noninteractive /usr/sbin/a2enmod vhost_alias || true
-	DEBIAN_FRONTEND=noninteractive /usr/sbin/a2enmod headers || true
-	DEBIAN_FRONTEND=noninteractive /usr/sbin/a2enmod rewrite || true
-	
-	# Enable the Gforge configuration
-	if [ -e /etc/apache2/conf.d/gforge.httpd.conf ] ; then
-	    rm -f /etc/apache2/conf.d/gforge.httpd.conf
-	fi
-	if [ -d /etc/apache2/sites-available ] && [ ! -e /etc/apache2/sites-available/gforge ] ; then
-	    ln -s /etc/gforge/httpd.conf /etc/apache2/sites-available/gforge
-	fi
-	a2ensite gforge
-	
-	# Make Apache see these new changes
-	invoke-rc.d apache2 restart || true
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-web-apache2.prerm
===================================================================
--- trunk/gforge/debian/gforge-web-apache2.prerm	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-web-apache2.prerm	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,39 +0,0 @@
-#! /bin/sh
-# prerm script for gforge
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# 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 /usr/share/doc/packaging-manual/
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    remove)
-	a2dissite gforge || true
-	rm -f /etc/apache2/sites-available/gforge
-	invoke-rc.d apache2 reload || true
-	;;
-    upgrade|deconfigure|failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/gforge/debian/gforge-web-apache2.templates.dsfh-in
===================================================================
--- trunk/gforge/debian/gforge-web-apache2.templates.dsfh-in	2009-06-03 16:05:27 UTC (rev 7716)
+++ trunk/gforge/debian/gforge-web-apache2.templates.dsfh-in	2009-06-03 21:04:48 UTC (rev 7717)
@@ -1,11 +0,0 @@
-#DSFHELPER:host-variables#
-#DSFHELPER:downloadhost-variables#
-#DSFHELPER:uploadhost-variables#
-#DSFHELPER:ftpuploadhost-variables#
-#DSFHELPER:jabberhost-variables#
-#DSFHELPER:lists-variables#
-#DSFHELPER:users-variables#
-#DSFHELPER:shellhost-variables#
-#DSFHELPER:web-variables#
-#DSFHELPER:groupid-variables#
-#DSFHELPER:dbpasswd-variables#




More information about the Fusionforge-commits mailing list