You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.5 KiB
49 lines
1.5 KiB
TERMUX_PKG_HOMEPAGE=https://www.clamav.net/
|
|
TERMUX_PKG_DESCRIPTION="Anti-virus toolkit for Unix"
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
|
TERMUX_PKG_VERSION=0.102.0
|
|
TERMUX_PKG_SRCURL=https://www.clamav.net/downloads/production/clamav-$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=48fe188c46c793c2d0cb5c81c106e4690251aff6dc8aa6575dc688343291bee1
|
|
TERMUX_PKG_DEPENDS="json-c, libandroid-support, libbz2, libc++, libcurl, libltdl, liblzma, libxml2, openssl, pcre2, zlib"
|
|
TERMUX_PKG_BREAKS="clamav-dev"
|
|
TERMUX_PKG_REPLACES="clamav-dev"
|
|
|
|
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
|
|
--disable-clamonacc
|
|
--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"
|
|
|
|
termux_step_pre_configure() {
|
|
export OBJC=$CC
|
|
LDFLAGS+=" -llog"
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
for conf in clamd.conf freshclam.conf; do
|
|
sed "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" \
|
|
"$TERMUX_PKG_BUILDER_DIR"/$conf.in \
|
|
> "$TERMUX_PREFIX"/etc/clamav/$conf
|
|
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
|
|
}
|
|
|