virtual-appliance/appliances/drupal/Makefile
Albert Hopkins f79cc8a353 Move appliances/configs/scripts to seperate directories.
Instead of having everything in the root directory, split them in seperate
directories (appliances, scripts, & configs).  This makes things a little
tidier.

Also added a now Makefile target, appliance-list, that prints a list of the
available appliances.  The split directory change made this easier.
2014-06-09 02:26:17 +00:00

28 lines
1.0 KiB
Makefile

PGVER = 9.3
DPVER = 7.27
inroot := chroot $(CHROOT)
rcdefault := /etc/runlevels/default
preinstall:
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)
rm -rf $(CHROOT)/var/lib/postgresql/$(PGVER)
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: