1 BASEDIR
:=$(shell dab basedir
)
3 CVD_FILES
:=main.cvd bytecode.cvd daily.cvd safebrowsing.cvd
5 all: info/init_ok
${CVD_FILES}
6 dab bootstrap
--minimal
7 sed
-i
's/^#\?PermitRootLogin.*/PermitRootLogin yes/' ${BASEDIR}/etc
/ssh
/sshd_config
8 mkdir
-p
${BASEDIR}/etc
/systemd
/system-preset
9 cp systemd-presets
${BASEDIR}/etc
/systemd
/system-preset
/00-pve-template.preset
10 touch
${BASEDIR}/proxmox_install_mode
11 dab
install libdbi-perl perl-openssl-defaults libcgi-pm-perl proxmox-mailgateway-container gpg ifupdown2
12 dab
install antiword docx2txt odt2txt poppler-utils tesseract-ocr unrtf
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
18 info/init_ok
: dab.conf
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