clamav: unbreak musl

This commit is contained in:
Jürgen Buchmüller 2015-12-02 11:09:33 +01:00
parent da1a689b70
commit f74db5cf4a
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- clamd/onaccess_ddd.h 2015-11-24 00:15:21.000000000 +0100
+++ clamd/onaccess_ddd.h 2015-12-02 10:54:49.836791779 +0100
@@ -22,6 +22,8 @@
#ifndef __ONAS_IN_H
#define __ONAS_IN_H
+#include <sys/inotify.h>
+
#define ONAS_IN 0x01
#define ONAS_FAN 0x02

View File

@ -1,7 +1,7 @@
# Template file for 'clamav'
pkgname=clamav
version=0.99.0
revision=1
revision=2
wrksrc=${pkgname}-${version%.*}
build_style=gnu-configure
configure_args="--sbindir=/usr/bin --with-pcre=/usr"
@ -27,8 +27,15 @@ if [ "$CROSS_BUILD" ]; then
configure_args+=" --with-zlib=${XBPS_CROSS_BASE}/usr"
configure_args+=" --disable-mempool"
fi
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" musl-fts"
LDFLAGS="-lfts"
;;
esac
do_configure() {
# Disable detection of sys/cdefs.h (it's obsolete)
sed -i configure -e 's; sys/cdefs\.h$;;'
# Need to set PCRE_HOME to make --with-pcre=/usr work
PCRE_HOME=/usr ./configure ${configure_args}
}