clamav: replace prefix paths with @TERMUX_PREFIX@ in config sources

This commit is contained in:
Leonid Pliushch 2019-09-20 00:39:29 +03:00
parent 88492182a0
commit 833d0c6a93
3 changed files with 9 additions and 9 deletions

View File

@ -34,9 +34,9 @@ termux_step_pre_configure() {
termux_step_post_make_install() {
for conf in clamd.conf freshclam.conf; do
install -Dm600 \
"$TERMUX_PKG_BUILDER_DIR"/$conf \
"$TERMUX_PREFIX"/etc/clamav/$conf
sed "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" \
"$TERMUX_PKG_BUILDER_DIR"/$conf.in \
> "$TERMUX_PREFIX"/etc/clamav/$conf
done
unset conf
}

View File

@ -4,11 +4,11 @@
##
## Server configuration.
LocalSocket /data/data/com.termux/files/usr/var/run/clamd.sock
LocalSocket @TERMUX_PREFIX@/var/run/clamd.sock
LocalSocketMode 600
PidFile /data/data/com.termux/files/usr/var/run/clamd.pid
TemporaryDirectory /data/data/com.termux/files/usr/tmp
DatabaseDirectory /data/data/com.termux/files/usr/var/lib/clamav
PidFile @TERMUX_PREFIX@/var/run/clamd.pid
TemporaryDirectory @TERMUX_PREFIX@/tmp
DatabaseDirectory @TERMUX_PREFIX@/var/lib/clamav
## Scanner configuration.
ExcludePath ^/proc/
@ -30,6 +30,6 @@ Bytecode yes
## Logging.
LogSyslog no
LogVerbose no
LogFile /data/data/com.termux/files/usr/var/log/clamav/clamd.log
LogFile @TERMUX_PREFIX@/var/log/clamav/clamd.log
LogTime yes
LogRotate yes

View File

@ -1,5 +1,5 @@
# Path to the database directory.
DatabaseDirectory /data/data/com.termux/files/usr/var/lib/clamav
DatabaseDirectory @TERMUX_PREFIX@/var/lib/clamav
# database.clamav.net is now the primary domain name to be used world-wide.
# Now that CloudFlare is being used as our Content Delivery Network (CDN),