summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2003-03-26 18:55:17 +0000
committeragc <agc@pkgsrc.org>2003-03-26 18:55:17 +0000
commitc90e45a2896349c40291656f6de8591df3b94bfe (patch)
tree8d7117ff2af3a568a87604e0c049373bf40ad7ab /mail
parent8d4a872e98e47dfa6a8d677ecc234a3bf6dad31d (diff)
downloadpkgsrc-c90e45a2896349c40291656f6de8591df3b94bfe.tar.gz
Initial import of clamav-0.54 into the NetBSD Packages Collection.
Provided in PR 20662 by David Ferlier, modified to use pkgsrc libtool and to add users by myself. Clam AntiVirus is an anti-virus toolkit written from scratch. It is licensed under GNU GPL2 and uses the virus database from OpenAntiVirus, which is an another free anti-virus project. In contrast to OpenAntiVirus (which is written in Java), Clam AntiVirus is written entirely in C and its database is KEPT UP TO DATE. It also detects polymorphic viruses as well.
Diffstat (limited to 'mail')
-rw-r--r--mail/clamav/DESCR5
-rw-r--r--mail/clamav/Makefile30
-rw-r--r--mail/clamav/PLIST20
-rw-r--r--mail/clamav/distinfo5
-rw-r--r--mail/clamav/patches/patch-aa33
5 files changed, 93 insertions, 0 deletions
diff --git a/mail/clamav/DESCR b/mail/clamav/DESCR
new file mode 100644
index 00000000000..7621892cd95
--- /dev/null
+++ b/mail/clamav/DESCR
@@ -0,0 +1,5 @@
+Clam AntiVirus is an anti-virus toolkit written from scratch. It is licensed
+under GNU GPL2 and uses the virus database from OpenAntiVirus, which is an
+another free anti-virus project. In contrast to OpenAntiVirus (which is written
+in Java), Clam AntiVirus is written entirely in C and its database is KEPT UP
+TO DATE. It also detects polymorphic viruses as well.
diff --git a/mail/clamav/Makefile b/mail/clamav/Makefile
new file mode 100644
index 00000000000..ed98b6b7fd9
--- /dev/null
+++ b/mail/clamav/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/03/26 18:55:17 agc Exp $
+
+DISTNAME= clamav-0.54
+CATEGORIES= mail
+MASTER_SITES= http://clamav.elektrapro.com/stable/
+
+MAINTAINER= david@netbsd-fr.org
+HOMEPAGE= http://clamav.elektrapro.com/stable
+COMMENT= Anti-virus toolkit
+
+USE_BUILDLINK2= yes
+GNU_CONFIGURE= yes
+USE_PKGINSTALL= yes
+USE_LIBTOOL= yes
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+CONFIGURE_ARGS+= --disable-clamav
+
+PKG_GROUPS+= ${CLAMAV_GROUP}
+PKG_USERS+= ${CLAMAV_USER}:${CLAMAV_GROUP}::Clamav\\ User
+
+pre-configure:
+ cd ${WRKSRC}; ${AUTOCONF}
+
+# Remove the "annoying" strings.h in libclamav
+pre-build:
+ ${RM} ${WRKSRC}/libclamav/strings.h
+
+.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/autoconf.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/clamav/PLIST b/mail/clamav/PLIST
new file mode 100644
index 00000000000..093caa28ca4
--- /dev/null
+++ b/mail/clamav/PLIST
@@ -0,0 +1,20 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/26 18:55:17 agc Exp $
+bin/clamscan
+bin/freshclam
+bin/sigtool
+etc/clamav.conf
+include/clamav.h
+lib/libclamav.a
+lib/libclamav.la
+lib/libclamav.so
+lib/libclamav.so.1
+lib/libclamav.so.1.2
+man/man1/clamdscan.1
+man/man1/clamscan.1
+man/man1/freshclam.1
+man/man1/sigtool.1
+man/man5/clamav.conf.5
+man/man8/clamd.8
+share/clamav/viruses.db
+share/clamav/viruses.db2
+@dirrm share/clamav
diff --git a/mail/clamav/distinfo b/mail/clamav/distinfo
new file mode 100644
index 00000000000..e95aabc89a9
--- /dev/null
+++ b/mail/clamav/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/03/26 18:55:17 agc Exp $
+
+SHA1 (clamav-0.54.tar.gz) = 895d96c56667e037479f918064b9ac4fd2a4604a
+Size (clamav-0.54.tar.gz) = 985170 bytes
+SHA1 (patch-aa) = 6b0bad36a703d4fc240304c454ae7fe78df7d32d
diff --git a/mail/clamav/patches/patch-aa b/mail/clamav/patches/patch-aa
new file mode 100644
index 00000000000..6570423f968
--- /dev/null
+++ b/mail/clamav/patches/patch-aa
@@ -0,0 +1,33 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/03/26 18:55:17 agc Exp $
+
+--- configure.in.orig Thu Nov 21 01:43:16 2002
++++ configure.in Tue Mar 11 17:48:07 2003
+@@ -137,12 +137,7 @@
+ AC_SUBST(DBDIR)
+
+ # config file
+-cfg_dir=`echo $sysconfdir | grep prefix`
+-if test -n "$cfg_dir"; then
+- cfg_dir="$ac_default_prefix/etc"
+-else
+- cfg_dir="$sysconfdir"
+-fi
++cfg_dir=$prefix/etc
+
+ CFGDIR=$cfg_dir
+ AC_SUBST(CFGDIR)
+@@ -224,9 +219,13 @@
+ AC_DEFINE(C_BSD)
+ ;;
+ netbsd*)
+- AC_MSG_RESULT(NetBSD detected. Disabling thread support.)
++ AC_MSG_RESULT(NetBSD detected. Adding pth stuff.)
+ have_pthreads="no"
+ AC_DEFINE(C_BSD)
++ LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -L/usr/pkg/lib -lpthread"
++ AC_DEFINE(CL_THREAD_SAFE)
++ CLAMD_LIBS="-lpthread -L/usr/pkg/lib"
++ CFLAGS="$CFLAGS -I/usr/pkg/include"
+ ;;
+ bsd*)
+ AC_MSG_RESULT(Unknown BSD detected. Disabling thread support.)