Browse Source

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

android-5
Leonid Plyushch 5 years ago
parent
commit
f7e58e1753
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 6
      packages/clamav/build.sh
  2. 10
      packages/clamav/clamd.conf.in
  3. 2
      packages/clamav/freshclam.conf.in

6
packages/clamav/build.sh

@ -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
} }

10
packages/clamav/clamd.conf → packages/clamav/clamd.conf.in

@ -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

2
packages/clamav/freshclam.conf → packages/clamav/freshclam.conf.in

@ -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),
Loading…
Cancel
Save