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() { termux_step_post_make_install() {
for conf in clamd.conf freshclam.conf; do for conf in clamd.conf freshclam.conf; do
install -Dm600 \ sed "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" \
"$TERMUX_PKG_BUILDER_DIR"/$conf \ "$TERMUX_PKG_BUILDER_DIR"/$conf.in \
"$TERMUX_PREFIX"/etc/clamav/$conf > "$TERMUX_PREFIX"/etc/clamav/$conf
done done
unset conf unset conf
} }

View File

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

View File

@ -1,5 +1,5 @@
# Path to the database directory. # 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. # 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), # Now that CloudFlare is being used as our Content Delivery Network (CDN),