02firstboot = $(CHROOT)/usr/local/bin/02firstboot.start cert-renew.sh = $(CHROOT)/etc/ssl/cert-renew.sh isl-backup-cleanup.sh = $(CHROOT)/usr/local/bin/isl-backup-cleanup.sh install_confproxy = $(CHROOT)/opt/confproxy CONFPROXY_URL = https://www.islonline.com/system/installer_latest_linux64 systemd-units: appliance/cert-renew.service appliance/cert-renew.timer confproxy/isl-backup-cleanup.service confproxy/isl-backup-cleanup.timer cp appliance/cert-renew.service appliance/cert-renew.timer confproxy/isl-backup-cleanup.service confproxy/isl-backup-cleanup.timer $(CHROOT)/etc/systemd/system/ $(02firstboot): appliance/02firstboot.start mkdir -p $(CHROOT)/usr/local/bin cp $< $@ touch $(CHROOT)/02firstboot $(cert-renew.sh): appliance/cert-renew.sh mkdir -p $(CHROOT)/etc/ssl cp $< $@ $(isl-backup-cleanup.sh): confproxy/isl-backup-cleanup.sh mkdir -p $(CHROOT)/usr/local/bin cp $< $@ $(install_confproxy): # user islcp with fixed uid 950 -RUN useradd --system --comment="ISL ConfProxy User" --home-dir="/opt/confproxy" --shell="/bin/sh" --no-create-home --uid 950 --user-group islcp # virtual-appliance starts the build environment with sh instead of systemd as pid1; skip start service RUN sh -c 'wget $(CONFPROXY_URL) -O /tmp/confproxy-installer.bin && sed -e "s:\"systemd\":\"sh\":g" -e "s:status \"Starting ISL Conference Proxy (confproxy.service)\":exit 0:" -i /tmp/confproxy-installer.bin && sh /tmp/confproxy-installer.bin' # sometimes ConfProxy also looks into the alternative installation directory /var/confproxy (bug) ln -sf /opt/confproxy $(CHROOT)/var/confproxy preinstall: postinstall: systemd-units $(02firstboot) $(install_confproxy) $(cert-renew.sh) $(isl-backup-cleanup.sh)