]> git.proxmox.com Git - dab-pve-appliances.git/blame - debian-12-bookworm-pmg-8-64/Makefile
add Proxmox Mailgateway 8.0 template
[dab-pve-appliances.git] / debian-12-bookworm-pmg-8-64 / Makefile
CommitLineData
da105406
SI
1BASEDIR:=$(shell dab basedir)
2
3CVD_FILES:=main.cvd bytecode.cvd daily.cvd safebrowsing.cvd
4
5all: info/init_ok ${CVD_FILES}
6 dab bootstrap --minimal
7 sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/' ${BASEDIR}/etc/ssh/sshd_config
8 touch ${BASEDIR}/proxmox_install_mode
9 dab install libdbi-perl perl-openssl-defaults libcgi-pm-perl proxmox-mailgateway-container gpg ifupdown2
10 rm ${BASEDIR}/proxmox_install_mode
11 sed -i '/^deb.*\.proxmox\.com\/.*$$/d;$${/^$$/d;}' ${BASEDIR}/etc/apt/sources.list
12 cp ${CVD_FILES} ${BASEDIR}/var/lib/clamav/
13 dab finalize --compressor zstd-max
14
15info/init_ok: dab.conf
16 dab init
17 touch $@
18
19.PHONY: clean
20clean:
21 dab clean
22 rm -f *~
23
24.PHONY: dist-clean
25dist-clean: clean
26 dab dist-clean
27 rm -f ${CVD_FILES}
28
29${CVD_FILES}:
30 curl -L --silent --show-error --fail --time-cond $@ --user-agent "CVDUPDATE/0.3.0 (9d591f58-b430-4d0c-99b2-febb1cee0872)" -o $@.tmp https://database.clamav.net/$@
31 [ -f $@.tmp ] && mv $@.tmp $@ || true
32 if command -v sigtool > /dev/null ; then sigtool -i $@; else echo "skipping verification of $@"; fi