[pve-devel] r5937 - in dab-pve-appliances/trunk: . debian-6.0-drupal

svn-commits at proxmox.com svn-commits at proxmox.com
Mon May 9 11:48:45 CEST 2011


Author: dietmar
Date: 2011-05-09 11:48:45 +0200 (Mon, 09 May 2011)
New Revision: 5937

Added:
   dab-pve-appliances/trunk/debian-6.0-drupal/
   dab-pve-appliances/trunk/debian-6.0-drupal/Makefile
   dab-pve-appliances/trunk/debian-6.0-drupal/dab.conf
   dab-pve-appliances/trunk/debian-6.0-drupal/drupal.conf
   dab-pve-appliances/trunk/debian-6.0-drupal/drupal_setup
Log:


Added: dab-pve-appliances/trunk/debian-6.0-drupal/Makefile
===================================================================
--- dab-pve-appliances/trunk/debian-6.0-drupal/Makefile	                        (rev 0)
+++ dab-pve-appliances/trunk/debian-6.0-drupal/Makefile	2011-05-09 09:48:45 UTC (rev 5937)
@@ -0,0 +1,39 @@
+
+
+BASEDIR:=$(shell dab basedir)
+
+all: info/init_ok
+	dab bootstrap
+	dab task mysql --password random
+	dab install apache2-mpm-prefork
+	dab task php
+	# install all packages needed for drupal6
+	dab install php5-mysql wwwconfig-common dbconfig-common curl libjs-jquery
+	# unpack drupal6 (configuration is done at first start)
+	dab unpack drupal6
+	# set php ini settings recommended by Drupal
+	sed -e 's/^\s*display_errors\s*=\s*On/display_errors = Off/' -i ${BASEDIR}/etc/php5/apache2/php.ini
+	sed -e 's/^\s*magic_quotes_gpc\s*=\s*On/magic_quotes_gpc = Off/' -i ${BASEDIR}/etc/php5/apache2/php.ini
+	install -m 0644 drupal.conf ${BASEDIR}/etc/drupal/6/apache2.conf
+	install -m 755 drupal_setup ${BASEDIR}/etc/init.d/
+	dab exec ln -s /etc/drupal/6/apache2.conf /etc/apache2/conf.d/drupal6.conf
+	dab exec insserv drupal_setup
+	dab exec a2enmod rewrite
+	dab exec a2dissite default
+	dab finalize
+
+info/init_ok: dab.conf
+	dab init
+	touch $@
+
+.PHONY: clean
+clean:
+	dab clean
+	rm -f *~
+
+.PHONY: dist-clean
+dist-clean:
+	dab dist-clean
+	rm -f *~
+
+

Added: dab-pve-appliances/trunk/debian-6.0-drupal/dab.conf
===================================================================
--- dab-pve-appliances/trunk/debian-6.0-drupal/dab.conf	                        (rev 0)
+++ dab-pve-appliances/trunk/debian-6.0-drupal/dab.conf	2011-05-09 09:48:45 UTC (rev 5937)
@@ -0,0 +1,21 @@
+Suite: squeeze
+CacheDir: ../cache
+#Source: http://ftp.debian.org/debian SUITE main contrib
+#Source: http://ftp.debian.org/debian SUITE-updates main contrib
+#Source: http://security.debian.org SUITE/updates main contrib
+Source: http://backports.debian.org/debian-backports SUITE-backports main
+Architecture: i386
+Name: drupal
+Version: 6.20-1
+Depends: drupal6 (= 6.20-1~bpo60+1)
+Section: www
+Maintainer: Proxmox Support Team <support at proxmox.com>
+Infopage: http://pve.proxmox.com/wiki/Drupal
+ManageUrl: http://__IPADDRESS__/
+Description: Drupal Content Management
+ Drupal is a free software package that allows an individual or a
+ community of users to easily publish, manage and organize a wide
+ variety of content on a website. Tens of thousands of people and
+ organizations are using Drupal to power scores of different web sites,
+ including community web portals, discussion sites, corporate web sites,
+ intranet applications, personal web sites or blogs, ... 

Added: dab-pve-appliances/trunk/debian-6.0-drupal/drupal.conf
===================================================================
--- dab-pve-appliances/trunk/debian-6.0-drupal/drupal.conf	                        (rev 0)
+++ dab-pve-appliances/trunk/debian-6.0-drupal/drupal.conf	2011-05-09 09:48:45 UTC (rev 5937)
@@ -0,0 +1,40 @@
+ServerAdmin webmaster at loalhost
+ServerSignature Off
+ServerTokens Prod
+
+<IfModule mpm_prefork_module>
+    StartServers 2
+    MinSpareServers 1 
+    MaxSpareServers 2
+    MaxClients          50
+    MaxRequestsPerChild 100
+</IfModule>
+
+<VirtualHost *:80>
+
+DocumentRoot /usr/share/drupal6/
+
+<Directory />
+        Options FollowSymLinks
+        AllowOverride None
+</Directory>
+
+
+<Directory /usr/share/drupal6/>
+        Options +FollowSymLinks
+        AllowOverride All
+        order allow,deny
+        allow from all
+</Directory>
+
+Alias /drupal6/ /usr/share/drupal6/
+
+ErrorLog /var/log/apache2/error.log
+
+# Possible values include: debug, info, notice, warn, error, crit,
+# alert, emerg.
+LogLevel warn
+
+CustomLog /var/log/apache2/access.log combined
+
+</VirtualHost>

Added: dab-pve-appliances/trunk/debian-6.0-drupal/drupal_setup
===================================================================
--- dab-pve-appliances/trunk/debian-6.0-drupal/drupal_setup	                        (rev 0)
+++ dab-pve-appliances/trunk/debian-6.0-drupal/drupal_setup	2011-05-09 09:48:45 UTC (rev 5937)
@@ -0,0 +1,33 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides:          drupal_siteconfig
+# Required-Start:    $remote_fs mysql +mysql_randompw
+# Required-Stop:
+# X-Start-Before:    apache2
+# Default-Start:     2
+# Default-Stop:
+# Short-Description: Generate Drupal Siteconfig
+# Description:       Generate Drupal Siteconfig 
+### END INIT INFO
+
+set -e
+
+DOMAIN=`grep '^search' /etc/resolv.conf|awk '{ print $2; }'`
+HNAME=`head -n 1 /etc/hostname|awk '{ print $1; }'`
+
+if [ "X${HNAME}" = "Xlocalhost" ] ; then
+    exit 0;
+fi
+
+export DEBIAN_FRONTEND="noninteractive"
+export DEBCONF_NONINTERACTIVE_SEEN="true"
+
+# set HOME dir (for .my.cfg)
+export HOME=/root
+export USER=root
+
+dpkg  --force-confold --configure drupal6
+
+insserv -r drupal_setup
+rm -f /etc/init.d/drupal_setup
+




More information about the pve-devel mailing list