]> git.proxmox.com Git - dab-pve-appliances.git/blob - debian-6.0-drupal/Makefile
fix #4858: install libsasl2-modules for pmg
[dab-pve-appliances.git] / debian-6.0-drupal / Makefile
1
2
3 BASEDIR:=$(shell dab basedir)
4
5 all: info/init_ok
6 dab bootstrap
7 dab task mysql --password random
8 dab install apache2-mpm-prefork
9 dab task php
10 # install all packages needed for drupal6
11 dab install php5-mysql wwwconfig-common dbconfig-common curl libjs-jquery
12 # unpack drupal6 (configuration is done at first start)
13 dab unpack drupal6
14 # set php ini settings recommended by Drupal
15 sed -e 's/^\s*display_errors\s*=\s*On/display_errors = Off/' -i ${BASEDIR}/etc/php5/apache2/php.ini
16 sed -e 's/^\s*magic_quotes_gpc\s*=\s*On/magic_quotes_gpc = Off/' -i ${BASEDIR}/etc/php5/apache2/php.ini
17 install -m 0644 drupal.conf ${BASEDIR}/etc/drupal/6/apache2.conf
18 install -m 755 drupal_setup ${BASEDIR}/etc/init.d/
19 dab exec ln -s /etc/drupal/6/apache2.conf /etc/apache2/conf.d/drupal6.conf
20 dab exec insserv drupal_setup
21 dab exec a2enmod rewrite
22 dab exec a2dissite default
23 dab finalize
24
25 info/init_ok: dab.conf
26 dab init
27 touch $@
28
29 .PHONY: clean
30 clean:
31 dab clean
32 rm -f *~
33
34 .PHONY: dist-clean
35 dist-clean:
36 dab dist-clean
37 rm -f *~
38
39