Package: drupal6
Version: 6.18-1
Tags: patch
Usertags: origin-ubuntu maverick ubuntu-patch

In Ubuntu, we've applied the attached patch to achieve the following:

  * adding debconf note to guide user post install (LP: #370994)

We thought you might be interested in doing the same. 
diff -Nru drupal6-6.18.orig/debian/control drupal6-6.18/debian/control
--- drupal6-6.18.orig/debian/control	2010-11-25 18:15:46.000000000 +0100
+++ drupal6-6.18/debian/control	2010-11-25 18:17:20.000000000 +0100
@@ -2,7 +2,7 @@
 Section: web
 Priority: extra
 Maintainer: Luigi Gangitano <[email protected]>
-Build-Depends: debhelper (>= 7), dpatch
+Build-Depends: debhelper (>= 7), dpatch, po-debconf
 Homepage: http://www.drupal.org/
 Standards-Version: 3.9.1.0
 Xs-Vcs-Svn: svn://alioth.debian.org/svn/pkg-drupal/branches/drupal6
diff -Nru drupal6-6.18.orig/debian/drupal6.config drupal6-6.18/debian/drupal6.config
--- drupal6-6.18.orig/debian/drupal6.config	2010-11-25 18:15:46.000000000 +0100
+++ drupal6-6.18/debian/drupal6.config	2010-11-25 18:23:07.000000000 +0100
@@ -43,6 +43,9 @@
 
 OLDVERSION="$2"
 
+db_input high drupal6/post_install_guidance || true
+db_go || true
+
 db_stop
 
 exit 0
diff -Nru drupal6-6.18.orig/debian/drupal6.templates drupal6-6.18/debian/drupal6.templates
--- drupal6-6.18.orig/debian/drupal6.templates	1970-01-01 01:00:00.000000000 +0100
+++ drupal6-6.18/debian/drupal6.templates	2010-11-25 18:23:07.000000000 +0100
@@ -0,0 +1,9 @@
+Template: drupal6/post_install_guidance
+Type: note
+_Description: Post-Install Instructions
+ Once Drupal is finished installing, you will still need to perform a few steps.
+ .
+   - Restart the webserver (i.e. restart apache2)
+   - Run installation script via URL http://host/drupal6/install.php
+ .
+ Be sure to read /usr/share/doc/drupal6/README.Debian for detailed instructions.
diff -Nru drupal6-6.18.orig/debian/po/POTFILES.in drupal6-6.18/debian/po/POTFILES.in
--- drupal6-6.18.orig/debian/po/POTFILES.in	1970-01-01 01:00:00.000000000 +0100
+++ drupal6-6.18/debian/po/POTFILES.in	2010-11-25 18:23:07.000000000 +0100
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] drupal6.templates
diff -Nru drupal6-6.18.orig/debian/po/templates.pot drupal6-6.18/debian/po/templates.pot
--- drupal6-6.18.orig/debian/po/templates.pot	1970-01-01 01:00:00.000000000 +0100
+++ drupal6-6.18/debian/po/templates.pot	2010-11-25 18:23:07.000000000 +0100
@@ -0,0 +1,48 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <em...@address>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: [email protected]\n"
+"POT-Creation-Date: 2010-08-26 05:36-0700\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <em...@address>\n"
+"Language-Team: LANGUAGE <[email protected]>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: note
+#. Description
+#: ../drupal6.templates:1001
+msgid "Post-Install Instructions"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../drupal6.templates:1001
+msgid ""
+"Once Drupal is finished installing, you will still need to perform a few "
+"steps."
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../drupal6.templates:1001
+msgid ""
+"  - Restart the webserver (i.e. restart apache2)\n"
+"  - Run installation script via URL http://host/drupal6/install.php";
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../drupal6.templates:1001
+msgid ""
+"Be sure to read /usr/share/doc/drupal6/README.Debian for detailed "
+"instructions."
+msgstr ""
diff -Nru drupal6-6.18.orig/debian/rules drupal6-6.18/debian/rules
--- drupal6-6.18.orig/debian/rules	2010-11-25 18:15:46.000000000 +0100
+++ drupal6-6.18/debian/rules	2010-11-25 18:23:07.000000000 +0100
@@ -18,6 +18,7 @@
 	dh_clean
 
 clean:	clean-patched unpatch
+	debconf-updatepo
 
 install:build
 	dh_testdir

Reply via email to