25 lines
868 B
Makefile
25 lines
868 B
Makefile
02firstboot = $(CHROOT)/usr/local/bin/02firstboot.start
|
|
cert-renew.sh = $(CHROOT)/etc/ssl/cert-renew.sh
|
|
apache_conf = $(CHROOT)/etc/apache2/vhosts.d/default_vhost.include.applorig
|
|
|
|
systemd-units: appliance/cert-renew.service appliance/cert-renew.timer
|
|
cp appliance/cert-renew.service appliance/cert-renew.timer $(CHROOT)/etc/systemd/system/
|
|
|
|
$(02firstboot): appliance/02firstboot.start
|
|
mkdir -p $(CHROOT)/etc/local.d
|
|
cp $< $@
|
|
touch $(CHROOT)/02firstboot
|
|
|
|
$(cert-renew.sh): appliance/cert-renew.sh
|
|
mkdir -p $(CHROOT)/etc/ssl
|
|
cp $< $@
|
|
|
|
$(apache_conf): apache/default_vhost.include
|
|
sed -i 's/-D LANGUAGE/-D LANGUAGE -D PROXY/' $(CHROOT)/etc/conf.d/apache2
|
|
mv $(CHROOT)/etc/apache2/vhosts.d/default_vhost.include $@
|
|
cp $< $(CHROOT)/etc/apache2/vhosts.d/default_vhost.include
|
|
|
|
preinstall:
|
|
|
|
postinstall: systemd-units $(apache_conf) $(02firstboot) $(cert-renew.sh)
|