2012-09-12 21:17:40 +02:00
|
|
|
PGVER = 9.2
|
2013-02-14 20:19:18 +01:00
|
|
|
DPVER = 7.19
|
2011-07-15 07:43:50 +02:00
|
|
|
|
|
|
|
inroot := chroot $(CHROOT)
|
|
|
|
rcdefault := /etc/runlevels/default
|
|
|
|
|
2012-12-23 02:47:26 +01:00
|
|
|
preinstall:
|
2011-07-15 07:43:50 +02:00
|
|
|
|
|
|
|
postinstall: firstboot.start
|
|
|
|
$(inroot) passwd -d postgres
|
|
|
|
echo 'PG_INITDB_OPTS="--locale=en_US.UTF-8"' >> $(CHROOT)/etc/conf.d/postgresql-$(PGVER)
|
|
|
|
$(inroot) eselect postgresql set $(PGVER)
|
2012-01-31 19:06:56 +01:00
|
|
|
rm -rf $(CHROOT)/var/lib/postgresql/$(PGVER)
|
2011-07-15 07:43:50 +02:00
|
|
|
yes | $(inroot) $(EMERGE) --config =postgresql-server-$(PGVER)*
|
|
|
|
$(inroot) ln -sf /etc/init.d/postgresql-$(PGVER) $(rcdefault)/postgresql-$(PGVER)
|
|
|
|
$(inroot) ln -sf /etc/init.d/apache2 $(rcdefault)/apache2
|
|
|
|
$(inroot) eselect php set apache2 1
|
|
|
|
grep '^[^#].*PHP5' $(CHROOT)/etc/conf.d/apache2 || \
|
|
|
|
echo 'APACHE2_OPTS="$$APACHE2_OPTS -D PHP5"' \
|
|
|
|
>> $(CHROOT)/etc/conf.d/apache2
|
|
|
|
$(inroot) cp /usr/share/webapps/drupal/$(DPVER)/htdocs/sites/default/default.settings.php /usr/share/webapps/drupal/$(DPVER)/htdocs/sites/default/settings.php
|
|
|
|
[ -e "$(CHROOT)/var/www/localhost/htdocs/.webapp-drupal-$(DPVER)" ] || \
|
|
|
|
$(inroot) webapp-config -I drupal $(DPVER)
|
|
|
|
cp firstboot.start $(CHROOT)/etc/local.d/
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|