aboutsummaryrefslogtreecommitdiffstats
path: root/main/clamav
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-01-07 17:44:59 +0000
committerTimo Teräs <timo.teras@iki.fi>2014-01-07 17:44:59 +0000
commitbd095fa1bddc0a4d1b6fb5d3217fe246f6f00776 (patch)
tree94161a2269c44e8d34889103f7b9dda8c43f4e4e /main/clamav
parentc927843378bfdb93e6537e6a9ace86d681b28040 (diff)
downloadaports-bd095fa1bddc0a4d1b6fb5d3217fe246f6f00776.tar.bz2
aports-bd095fa1bddc0a4d1b6fb5d3217fe246f6f00776.tar.xz
main/clamav: fix arm build
Diffstat (limited to 'main/clamav')
-rw-r--r--main/clamav/APKBUILD11
-rw-r--r--main/clamav/arm.patch15
2 files changed, 26 insertions, 0 deletions
diff --git a/main/clamav/APKBUILD b/main/clamav/APKBUILD
index ec1e8faf32..f3fc072d2f 100644
--- a/main/clamav/APKBUILD
+++ b/main/clamav/APKBUILD
@@ -16,6 +16,8 @@ makedepends="ncurses-dev zlib-dev bzip2-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-lib $pkgname-libunrar
$pkgname-daemon $pkgname-scanner $pkgname-db freshclam"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ arm.patch
+
clamd.initd
clamd.confd
freshclam.initd
@@ -27,8 +29,14 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
+ local i
cd "$_builddir"
update_config_sub || return 1
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
}
build() {
@@ -178,6 +186,7 @@ daemon() {
}
md5sums="ca0b8c930efcb8be1d47592d268006c5 clamav-0.98.tar.gz
+104d062d384e9fada1812d08dc433ed8 arm.patch
b4523253843761d7a7e5fa765b3fb2b9 clamd.initd
e8a03fad6ce603631e8fe71a24d387c6 clamd.confd
401fe30d9af2fea3151f938b26ff01c0 freshclam.initd
@@ -185,6 +194,7 @@ e48466ddfb56f66c623b83e58777b778 freshclam.confd
ae1e48ab56a0fff1acdde023c1f6f350 clamd.logrotate
226824214c021b2366f0be1289561d17 freshclam.logrotate"
sha256sums="113450537f46ed47f010a179be333a0dcd79eac13f264dce26db7aac8d52b3b6 clamav-0.98.tar.gz
+989e41505f5287e7b01c8e4657078e147fe7751e9d2bf64f8c2abad63ea45e6c arm.patch
5f8847600cacc35de56ea61c7a8d0761e5a351ccfd507fd3e07160170269e055 clamd.initd
4d978313004f66d871564b873df27c5459d3cc504788b179e41edba0f04b74dc clamd.confd
f69a8741f0165a1edd7558ce6c3ea8411fc2bc6e433a1636c25c366a057134d0 freshclam.initd
@@ -192,6 +202,7 @@ f69a8741f0165a1edd7558ce6c3ea8411fc2bc6e433a1636c25c366a057134d0 freshclam.init
ec5e60f7efca02ed151f625e9a44404346991ed6608c6e2088db2436bbd03d49 clamd.logrotate
84006ac3d2e8dc2e13a01f5e313c20e4978cdc93d831c181e0075badcbf4ada0 freshclam.logrotate"
sha512sums="532f9fa2616065879b3ecace2672fad26cf3863943e0ecb8835fbed7e5907600ef50b8df820a08a6586bf77c9bf7c6e50af671f31b7c3ee372c31745a173099f clamav-0.98.tar.gz
+20374e90aa6dcac08eb7e2fb09531f2044181103a3733ada4d9b79c051507f02cd1bb5f28f1b4b4870b82ef9746949d4e0a266c0bc4249aef9029299b28f5082 arm.patch
5f64211605db7fc91785331d6bb768cf71fe7579e40c82624e3fd71e4738e41d48cd4e7984e2ddbcc932aa27d3d77fb121de40e2ecdb123b81f58f277b184df2 clamd.initd
59c561b3dcb0b616b647cd8e4ebc46a2cc5e7144c8c7ea0054cc1c3021d1da8f67e4dad5c083c3fe712ed887aaabfca91b538f4759537e7c4c9ab71ba4fd5794 clamd.confd
e192f89d6591c0601f828da368a8a21eb7ed14c50757630896fbbb3582c2660ad562760b28979904f1a4a21eecc320f2e6f7f0c7b673f89c6d2af83d2d4b280c freshclam.initd
diff --git a/main/clamav/arm.patch b/main/clamav/arm.patch
new file mode 100644
index 0000000000..d503679b7c
--- /dev/null
+++ b/main/clamav/arm.patch
@@ -0,0 +1,15 @@
+https://raw.github.com/archlinuxarm/PKGBUILDs/master/extra/clamav/arm.patch
+
+diff -urN a/clamd/fan-syscalllib.h b/clamd/fan-syscalllib.h
+--- a/clamd/fan-syscalllib.h 2013-09-16 13:28:14.000000000 -0600
++++ b/clamd/fan-syscalllib.h 2013-09-19 21:29:47.314868930 -0600
+@@ -10,6 +10,9 @@
+ #elif defined(__i386__)
+ # define __NR_fanotify_init 338
+ # define __NR_fanotify_mark 339
++#elif defined(__ARM_EABI__)
++# define __NR_fanotify_init 367
++# define __NR_fanotify_mark 368
+ #else
+ # error "System call numbers not defined for this architecture"
+ #endif