summaryrefslogtreecommitdiff
path: root/package/clamav
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-11-11 21:39:23 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-11-11 21:40:32 +0100
commit636d98c2b8f7f63fbd1d15434b8ae07a1b6520d5 (patch)
tree3d3f8447b85fbccc26944e10b0295bc530578a69 /package/clamav
parent2ff34ce95c5eecc7cc268c565c602cf3bc190f6f (diff)
clamav: new package
Diffstat (limited to 'package/clamav')
-rw-r--r--package/clamav/Makefile37
-rw-r--r--package/clamav/patches/patch-clamdscan_proto_c10
2 files changed, 47 insertions, 0 deletions
diff --git a/package/clamav/Makefile b/package/clamav/Makefile
new file mode 100644
index 000000000..df0b1a52a
--- /dev/null
+++ b/package/clamav/Makefile
@@ -0,0 +1,37 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= clamav
+PKG_VERSION:= 0.98.7
+PKG_RELEASE:= 1
+PKG_HASH:= 282417b707740de13cd8f18d4cbca9ddd181cf96b444db2cad98913a5153e272
+PKG_DESCR:= anti-virus software
+PKG_SECTION:= sys/misc
+PKG_DEPENDS:= libressl libxml2 zlib libpthread
+PKG_BUILDDEP:= libressl libxml2 zlib
+PKG_URL:= http://www.clamav.net/
+PKG_SITES:= http://www.clamav.net/downloads/production/
+
+DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,CLAMAV,clamav,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
+
+clamav-install:
+ $(INSTALL_DIR) $(IDIR_CLAMAV)/etc
+ $(CP) $(WRKINST)/etc/* \
+ $(IDIR_CLAMAV)/etc
+ $(INSTALL_DIR) $(IDIR_CLAMAV)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/lib*.so* \
+ $(IDIR_CLAMAV)/usr/lib
+ $(INSTALL_DIR) $(IDIR_CLAMAV)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/* \
+ $(IDIR_CLAMAV)/usr/bin
+ $(INSTALL_DIR) $(IDIR_CLAMAV)/usr/sbin
+ $(INSTALL_BIN) $(WRKINST)/usr/sbin/clamd \
+ $(IDIR_CLAMAV)/usr/sbin
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk
diff --git a/package/clamav/patches/patch-clamdscan_proto_c b/package/clamav/patches/patch-clamdscan_proto_c
new file mode 100644
index 000000000..c7120c9d5
--- /dev/null
+++ b/package/clamav/patches/patch-clamdscan_proto_c
@@ -0,0 +1,10 @@
+--- clamav-0.98.7.orig/clamdscan/proto.c 2015-04-22 21:49:57.000000000 +0200
++++ clamav-0.98.7/clamdscan/proto.c 2015-11-11 19:22:21.000000000 +0100
+@@ -36,6 +36,7 @@
+ #include <errno.h>
+ #include <stdlib.h>
+ #include <sys/types.h>
++#include <sys/un.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <sys/types.h>