[Pkg-drupal-commits] r1757 - in /branches/drupal-5.0/debian:
drupal-5.0.config drupal-5.0.install
drupal-5.0.lintian drupal-5.0.postinst drupal-5.0.postrm drupal-5.0.prerm
drupal5.config drupal5.install drupal5.lintian drupal5.postinst
drupal5.postrm drupal5.prerm
luigi at users.alioth.debian.org
luigi at users.alioth.debian.org
Tue Jan 30 03:22:34 CET 2007
Author: luigi
Date: Tue Jan 30 03:22:34 2007
New Revision: 1757
URL: http://svn.debian.org/wsvn/pkg-drupal/?sc=1&rev=1757
Log:
Switched to drupal5 naming
Added:
branches/drupal-5.0/debian/drupal5.config
branches/drupal-5.0/debian/drupal5.install
branches/drupal-5.0/debian/drupal5.lintian
branches/drupal-5.0/debian/drupal5.postinst
branches/drupal-5.0/debian/drupal5.postrm
branches/drupal-5.0/debian/drupal5.prerm
Removed:
branches/drupal-5.0/debian/drupal-5.0.config
branches/drupal-5.0/debian/drupal-5.0.install
branches/drupal-5.0/debian/drupal-5.0.lintian
branches/drupal-5.0/debian/drupal-5.0.postinst
branches/drupal-5.0/debian/drupal-5.0.postrm
branches/drupal-5.0/debian/drupal-5.0.prerm
Added: branches/drupal-5.0/debian/drupal5.config
URL: http://svn.debian.org/wsvn/pkg-drupal/branches/drupal-5.0/debian/drupal5.config?rev=1757&op=file
==============================================================================
--- branches/drupal-5.0/debian/drupal5.config (added)
+++ branches/drupal-5.0/debian/drupal5.config Tue Jan 30 03:22:34 2007
@@ -1,0 +1,51 @@
+#!/bin/bash
+
+# Debconf config script for Drupal
+
+set -e
+
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+if [ -f /usr/share/dbconfig-common/dpkg/config ]; then
+ # we support mysql and pgsql
+ dbc_dbtypes="mysql, pgsql"
+ dbc_dbname=drupal5
+ dbc_dbuser=drupal5
+
+ # source dbconfig-common stuff
+ . /usr/share/dbconfig-common/dpkg/config
+ dbc_go drupal5 $@
+fi
+
+if [ "$DPKG_DEBUG" = "developer" ]; then
+ set -x
+fi
+
+##################################################
+# Begin installation directories definition block#
+##################################################
+package_name="drupal5"
+datadir="/var/lib/${package_name}"
+backupdir="${datadir}/backups/"
+docdir="/usr/share/doc/${package_name}"
+upgradesdir="${docdir}/upgrades"
+configdir="/etc/drupal/5"
+configfile="${configdir}/conf.php"
+includefile="${configdir}/apache.conf"
+################################################
+# End installation directories definition block #
+################################################
+
+########################################################################
+# The actual configuration
+
+OLDVERSION="$2"
+
+db_input "high" "${package_name}/webserver" || true
+db_go || true
+
+db_stop
+
+exit 0
Added: branches/drupal-5.0/debian/drupal5.install
URL: http://svn.debian.org/wsvn/pkg-drupal/branches/drupal-5.0/debian/drupal5.install?rev=1757&op=file
==============================================================================
--- branches/drupal-5.0/debian/drupal5.install (added)
+++ branches/drupal-5.0/debian/drupal5.install Tue Jan 30 03:22:34 2007
@@ -1,0 +1,8 @@
+*.php usr/share/drupal5
+includes usr/share/drupal5
+modules usr/share/drupal5
+themes usr/share/drupal5
+misc usr/share/drupal5
+debian/etc/apache.conf etc/drupal/5
+debian/etc/settings.php etc/drupal/5/sites/default
+debian/cron.sh usr/share/drupal5/scripts
Added: branches/drupal-5.0/debian/drupal5.lintian
URL: http://svn.debian.org/wsvn/pkg-drupal/branches/drupal-5.0/debian/drupal5.lintian?rev=1757&op=file
==============================================================================
--- branches/drupal-5.0/debian/drupal5.lintian (added)
+++ branches/drupal-5.0/debian/drupal5.lintian Tue Jan 30 03:22:34 2007
@@ -1,0 +1,2 @@
+drupal5: package-contains-upstream-install-documentation usr/share/doc/drupal5/INSTALL.mysql.txt
+drupal5: package-contains-upstream-install-documentation usr/share/doc/drupal5/INSTALL.pgsql.txt
Added: branches/drupal-5.0/debian/drupal5.postinst
URL: http://svn.debian.org/wsvn/pkg-drupal/branches/drupal-5.0/debian/drupal5.postinst?rev=1757&op=file
==============================================================================
--- branches/drupal-5.0/debian/drupal5.postinst (added)
+++ branches/drupal-5.0/debian/drupal5.postinst Tue Jan 30 03:22:34 2007
@@ -1,0 +1,77 @@
+#!/bin/bash
+# postinst script for drupal
+
+set -e
+
+dbc_generate_include='php:/etc/drupal/5/sites/default/dbconfig.php'
+dbc_generate_include_owner='root:www-data'
+dbc_generate_include_perms='640'
+
+. /usr/share/debconf/confmodule
+# source dbconfig-common stuff
+. /usr/share/dbconfig-common/dpkg/postinst
+dbc_go drupal5 $@
+
+if [ "$DPKG_DEBUG" = "developer" ]; then
+ set -x
+fi
+
+package_name="drupal5"
+datadir="/var/lib/${package_name}"
+filesdir="${datadir}/files"
+backupdir="${datadir}/backups"
+pkgdir="/usr/share/${package_name}"
+docdir="/usr/share/doc/${package_name}"
+upgradesdir="${docdir}/upgrades"
+configdir="/etc/drupal/5"
+default_configfile="${configdir}/sites/default/settings.php"
+includefile="${configdir}/apache.conf"
+cronfile="/etc/cron.d/${package_name}"
+
+OLDVERSION="$2"
+
+case "$1" in
+ configure)
+
+ # Get Debconf variables
+
+ db_get ${package_name}/webserver || true
+ webserver="$RET"
+
+ webserver=`echo $webserver|sed -e 's/, */ /g'`
+
+ for i in $webserver; do
+ if [ ! -d /etc/$i/conf.d/ ]; then
+ install -d -m755 /etc/$i/conf.d/
+ fi
+ if [ ! -e /etc/$i/conf.d/drupal.conf ]; then
+ ln -s ${includefile} \
+ /etc/$i/conf.d/drupal.conf
+ restart="$i $restart"
+ fi
+ done
+
+ servers="apache apache-ssl apache-perl apache2"
+ . /usr/share/wwwconfig-common/restart.sh
+
+ # Permissions
+ dpkg-statoverride --list $filesdir || dpkg-statoverride --add --force --update www-data www-data 0750 $filesdir
+
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
Added: branches/drupal-5.0/debian/drupal5.postrm
URL: http://svn.debian.org/wsvn/pkg-drupal/branches/drupal-5.0/debian/drupal5.postrm?rev=1757&op=file
==============================================================================
--- branches/drupal-5.0/debian/drupal5.postrm (added)
+++ branches/drupal-5.0/debian/drupal5.postrm Tue Jan 30 03:22:34 2007
@@ -1,0 +1,98 @@
+#! /bin/bash
+# postrm script for ${package_name}
+#
+
+#set -e
+
+if [ -f /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+fi
+
+# source dbconfig-common stuff
+if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
+ . /usr/share/dbconfig-common/dpkg/postrm
+ dbc_go drupal5 $@
+fi
+
+# 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 http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+if [ "$DPKG_DEBUG" = "developer" ]; then
+ set -x
+fi
+
+package_name="drupal5"
+datadir="/var/lib/${package_name}/"
+backupdir="${datadir}backups/"
+nukedir="/usr/share/${package_name}/"
+docdir="/usr/share/doc/${package_name}/"
+sqlfile="${docdir}database/database.mysql"
+upgradesdir="${docdir}upgrades/"
+configdir="/etc/drupal/5/"
+configfile="${configdir}conf.php"
+includefile="${configdir}apache.conf"
+dbconfigfile="${configdir}/sites/default/dbconfig.php"
+cronfile="/etc/cron.d/${package_name}"
+
+# Make sure that notifications are sent to user
+
+db_get ${package_name}/webserver || true
+webserver=`echo $RET|sed -e 's/, */ /g'`
+
+case "$1" in
+ purge|remove)
+
+ # Un-configure webservers
+ for i in $webserver; do
+ if [ -L /etc/$i/conf.d/drupal.conf ]; then
+ rm -f /etc/$i/conf.d/drupal.conf || true
+ restart="$i $restart"
+ fi
+ done
+
+ servers="apache apache-ssl apache-perl apache2"
+ . /usr/share/wwwconfig-common/restart.sh
+
+
+ # Remove configuration files (conf.php, $SITE.php)
+# rm -f /etc/drupal/*.php
+ rm -f /etc/drupal/sites/default/settings.php
+
+ if [ "$1" = "purge" ]; then
+ rm -f ${dbconfigfile}
+ if which ucf >/dev/null 2>&1; then
+ ucf --purge ${dbconfigfile}
+ fi
+
+ db_purge || true
+
+ fi
+
+ ;;
+
+ upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
Added: branches/drupal-5.0/debian/drupal5.prerm
URL: http://svn.debian.org/wsvn/pkg-drupal/branches/drupal-5.0/debian/drupal5.prerm?rev=1757&op=file
==============================================================================
--- branches/drupal-5.0/debian/drupal5.prerm (added)
+++ branches/drupal-5.0/debian/drupal5.prerm Tue Jan 30 03:22:34 2007
@@ -1,0 +1,14 @@
+#! /bin/bash
+# prerm script for ${package_name}
+#
+
+set -e
+
+. /usr/share/debconf/confmodule
+. /usr/share/dbconfig-common/dpkg/prerm
+dbc_go drupal5 $@
+
+#DEBHELPER#
+
+exit 0
+
More information about the Pkg-drupal-commits
mailing list