2019-06-16 13:47:38 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.clamav.net/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Anti-virus toolkit for Unix"
|
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2022-01-31 19:18:51 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-05-05 20:58:01 +02:00
|
|
|
TERMUX_PKG_VERSION=0.103.6
|
2019-06-16 13:47:38 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://www.clamav.net/downloads/production/clamav-$TERMUX_PKG_VERSION.tar.gz
|
2022-05-05 20:58:01 +02:00
|
|
|
TERMUX_PKG_SHA256=aaa12e3dc19f1d323b1c50d7a10fa8af557e4390149e864d59bde39b6ad9ba33
|
2019-06-16 13:47:38 +02:00
|
|
|
TERMUX_PKG_DEPENDS="json-c, libandroid-support, libbz2, libc++, libcurl, libltdl, liblzma, libxml2, openssl, pcre2, zlib"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="clamav-dev"
|
|
|
|
TERMUX_PKG_REPLACES="clamav-dev"
|
2019-06-16 13:47:38 +02:00
|
|
|
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--sysconfdir=$TERMUX_PREFIX/etc/clamav
|
|
|
|
--with-libcurl=$TERMUX_PREFIX
|
|
|
|
--with-pcre=$TERMUX_PREFIX
|
|
|
|
--with-libjson=$TERMUX_PREFIX
|
|
|
|
--with-openssl=$TERMUX_PREFIX
|
|
|
|
--with-xml=$TERMUX_PREFIX
|
|
|
|
--with-zlib=$TERMUX_PREFIX
|
2019-11-03 00:22:21 +01:00
|
|
|
--disable-clamonacc
|
2019-06-16 13:47:38 +02:00
|
|
|
--disable-llvm
|
|
|
|
--disable-dns"
|
|
|
|
|
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="
|
|
|
|
share/man/man5/clamav-milter.conf.5
|
|
|
|
share/man/man8/clamav-milter.8"
|
|
|
|
|
|
|
|
TERMUX_PKG_CONFFILES="
|
|
|
|
etc/clamav/clamd.conf
|
|
|
|
etc/clamav/freshclam.conf"
|
|
|
|
|
2019-12-30 00:38:38 +01:00
|
|
|
termux_step_pre_configure() {
|
2022-05-05 20:58:01 +02:00
|
|
|
export OBJC=$CC
|
|
|
|
|
|
|
|
local _libgcc="$($CC -print-libgcc-file-name)"
|
|
|
|
LDFLAGS+=" -L$(dirname $_libgcc) -l:$(basename $_libgcc)"
|
2019-12-30 00:38:38 +01:00
|
|
|
}
|
|
|
|
|
2019-06-16 13:47:38 +02:00
|
|
|
termux_step_post_make_install() {
|
|
|
|
for conf in clamd.conf freshclam.conf; do
|
2019-09-19 23:39:29 +02:00
|
|
|
sed "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" \
|
|
|
|
"$TERMUX_PKG_BUILDER_DIR"/$conf.in \
|
|
|
|
> "$TERMUX_PREFIX"/etc/clamav/$conf
|
2019-06-16 13:47:38 +02:00
|
|
|
done
|
|
|
|
unset conf
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_massage() {
|
|
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX"/var/lib/clamav
|
|
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX"/var/log/clamav
|
|
|
|
}
|