Browse Source
clamav: replace prefix paths with @TERMUX_PREFIX@ in config sources
emacs-27
Leonid Plyushch
5 years ago
No known key found for this signature in database
GPG Key ID: 45F2964132545795
3 changed files with
9 additions and
9 deletions
-
packages/clamav/build.sh
-
packages/clamav/clamd.conf.in
-
packages/clamav/freshclam.conf.in
|
|
@ -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 |
|
|
|
} |
|
|
|
|
|
@ -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 |
|
|
@ -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), |