]> git.proxmox.com Git - dab-pve-appliances.git/blob - debian-10.0-pmg-64/Makefile
pmg: include clamav cvd files in template
[dab-pve-appliances.git] / debian-10.0-pmg-64 / Makefile
1 BASEDIR:=$(shell dab basedir)
2
3 CVD_FILES:=main.cvd bytecode.cvd daily.cvd safebrowsing.cvd
4
5 all: info/init_ok ${CVD_FILES}
6 dab bootstrap --minimal
7 sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/' ${BASEDIR}/etc/ssh/sshd_config
8 dab exec /bin/systemctl enable systemd-timesyncd.service
9 touch ${BASEDIR}/proxmox_install_mode
10 dab install libdbi-perl perl-openssl-defaults libcgi-pm-perl proxmox-mailgateway-container gpg
11 rm ${BASEDIR}/proxmox_install_mode
12 sed -i '/^deb.*\.proxmox\.com\/.*$$/d;$${/^$$/d;}' ${BASEDIR}/etc/apt/sources.list
13 cp ${CVD_FILES} ${BASEDIR}/var/lib/clamav/
14 dab finalize
15
16 info/init_ok: dab.conf
17 dab init
18 touch $@
19
20 .PHONY: clean
21 clean:
22 dab clean
23 rm -f ${CVD_FILES}
24 rm -f *~
25
26 .PHONY: dist-clean
27 dist-clean:
28 dab dist-clean
29 rm -f ${CVD_FILES}
30 rm -f *~
31
32 .PHONY: ${CVD_FILES}
33 ${CVD_FILES}:
34 curl -L --silent --show-error --fail --time-cond $@ -o $@.tmp http://database.clamav.net/$@
35 [ -f $@.tmp ] && mv $@.tmp $@ || true