]>
Commit | Line | Data |
---|---|---|
da105406 SI |
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 | |
596f2e2b SI |
8 | mkdir -p ${BASEDIR}/etc/systemd/system-preset |
9 | cp systemd-presets ${BASEDIR}/etc/systemd/system-preset/00-pve-template.preset | |
da105406 SI |
10 | touch ${BASEDIR}/proxmox_install_mode |
11 | dab install libdbi-perl perl-openssl-defaults libcgi-pm-perl proxmox-mailgateway-container gpg ifupdown2 | |
8b378e4e | 12 | dab install antiword docx2txt odt2txt poppler-utils tesseract-ocr unrtf libsasl2-modules |
da105406 SI |
13 | rm ${BASEDIR}/proxmox_install_mode |
14 | sed -i '/^deb.*\.proxmox\.com\/.*$$/d;$${/^$$/d;}' ${BASEDIR}/etc/apt/sources.list | |
15 | cp ${CVD_FILES} ${BASEDIR}/var/lib/clamav/ | |
16 | dab finalize --compressor zstd-max | |
17 | ||
18 | info/init_ok: dab.conf | |
19 | dab init | |
20 | touch $@ | |
21 | ||
22 | .PHONY: clean | |
23 | clean: | |
24 | dab clean | |
25 | rm -f *~ | |
26 | ||
27 | .PHONY: dist-clean | |
28 | dist-clean: clean | |
29 | dab dist-clean | |
30 | rm -f ${CVD_FILES} | |
31 | ||
32 | ${CVD_FILES}: | |
33 | 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/$@ | |
34 | [ -f $@.tmp ] && mv $@.tmp $@ || true | |
35 | if command -v sigtool > /dev/null ; then sigtool -i $@; else echo "skipping verification of $@"; fi |