diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-01-20 03:41:52 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-01-20 03:41:52 +0000 |
commit | ee4e1d457587d32fc4cbe38305e1f8033abcaaf9 (patch) | |
tree | 6e165ba11990cb7901b6baa129419f4afc017b12 /security | |
parent | use REINPLACE_CMD (diff) |
new port: security/clamav
Clam Antivirus is command line virus scanner using database
from OpenAntiVirus.
PR: ports/40602
Submitted by: TERAMOTO Masahiro <markun@onohara.to>
Notes
Notes:
svn path=/head/; revision=73590
Diffstat (limited to 'security')
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/clamav-devel/Makefile | 33 | ||||
-rw-r--r-- | security/clamav-devel/distinfo | 1 | ||||
-rw-r--r-- | security/clamav-devel/pkg-comment | 1 | ||||
-rw-r--r-- | security/clamav-devel/pkg-descr | 3 | ||||
-rw-r--r-- | security/clamav-devel/pkg-install | 30 | ||||
-rw-r--r-- | security/clamav-devel/pkg-plist | 5 | ||||
-rw-r--r-- | security/clamav/Makefile | 33 | ||||
-rw-r--r-- | security/clamav/distinfo | 1 | ||||
-rw-r--r-- | security/clamav/pkg-comment | 1 | ||||
-rw-r--r-- | security/clamav/pkg-descr | 3 | ||||
-rw-r--r-- | security/clamav/pkg-install | 30 | ||||
-rw-r--r-- | security/clamav/pkg-plist | 5 |
13 files changed, 147 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index f58f67cdd09d..900d384ff4b6 100644 --- a/security/Makefile +++ b/security/Makefile @@ -32,6 +32,7 @@ SUBDIR += chkrootkit SUBDIR += chrootuid SUBDIR += cksfv + SUBDIR += clamav SUBDIR += cops SUBDIR += cp2fwb SUBDIR += crack diff --git a/security/clamav-devel/Makefile b/security/clamav-devel/Makefile new file mode 100644 index 000000000000..0a49f0bd7458 --- /dev/null +++ b/security/clamav-devel/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: clamav +# Date created: 15 July 2002 +# Whom: markun@onohara.to +# +# $FreeBSD$ +# + +PORTNAME= clamav +PORTVERSION= 0.20 +CATEGORIES= security +MASTER_SITES= http://clamav.elektrapro.com/stable/ + +MAINTAINER= markun@onohara.to + +RUN_DEPENDS= lha:${PORTSDIR}/archivers/lha \ + unarj:${PORTSDIR}/archivers/unarj \ + unrar:${PORTSDIR}/archivers/unrar \ + zoo:${PORTSDIR}/archivers/zoo \ + arc:${PORTSDIR}/archivers/arc \ + unzip:${PORTSDIR}/archivers/unzip + +USE_GMAKE= yes +HAS_CONFIGURE= yes + +CONFIGURE_ARGS= --prefix=${PREFIX} --disable-clamav --disable-pthreads + +MAN1= clamscan.1 freshclam.1 sigtool.1 + +pre-install: + @${ECHO} "==> Creating custom user to run clamav..." + ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + +.include <bsd.port.mk> diff --git a/security/clamav-devel/distinfo b/security/clamav-devel/distinfo new file mode 100644 index 000000000000..95bc892bb3c2 --- /dev/null +++ b/security/clamav-devel/distinfo @@ -0,0 +1 @@ +MD5 (clamav-0.20.tar.gz) = db747de22829b2d03baeb04d659d3d5b diff --git a/security/clamav-devel/pkg-comment b/security/clamav-devel/pkg-comment new file mode 100644 index 000000000000..0350f4130500 --- /dev/null +++ b/security/clamav-devel/pkg-comment @@ -0,0 +1 @@ +Command line virus scanner using database from OpenAntiVirus diff --git a/security/clamav-devel/pkg-descr b/security/clamav-devel/pkg-descr new file mode 100644 index 000000000000..45535e0c7d29 --- /dev/null +++ b/security/clamav-devel/pkg-descr @@ -0,0 +1,3 @@ +Clam Antivirus is command line virus scanner using database from +OpenAntiVirus. It detects over 1700 viruses, scans compressed files +and supported by AMaViS. diff --git a/security/clamav-devel/pkg-install b/security/clamav-devel/pkg-install new file mode 100644 index 000000000000..448ffdc1f34a --- /dev/null +++ b/security/clamav-devel/pkg-install @@ -0,0 +1,30 @@ +#!/bin/sh + +if [ "$2" != "PRE-INSTALL" ]; then + exit 0 +fi + +USER=clamav +GROUP=clamav + +if ! pw groupshow "$GROUP" 2>/dev/null 1>&2; then + if pw groupadd $GROUP; then + echo "=> Added group \"$GROUP\"." + else + echo "=> Adding group \"$GROUP\" failed..." + exit 1 + fi +fi + +if ! pw usershow "$USER" 2>/dev/null 1>&2; then + if pw useradd $USER -g $GROUP -h - \ + -s "/sbin/nologin" -d "/nonexistent" \ + -c "Clam Antivirus"; \ + then + echo "=> Added user \"$USER\"." + else + echo "=> Adding user \"$USER\" failed..." + exit 1 + fi +fi +exit 0 diff --git a/security/clamav-devel/pkg-plist b/security/clamav-devel/pkg-plist new file mode 100644 index 000000000000..2ea043885368 --- /dev/null +++ b/security/clamav-devel/pkg-plist @@ -0,0 +1,5 @@ +bin/clamscan +bin/freshclam +bin/sigtool +share/clamav/viruses.db +@dirrm share/clamav diff --git a/security/clamav/Makefile b/security/clamav/Makefile new file mode 100644 index 000000000000..0a49f0bd7458 --- /dev/null +++ b/security/clamav/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: clamav +# Date created: 15 July 2002 +# Whom: markun@onohara.to +# +# $FreeBSD$ +# + +PORTNAME= clamav +PORTVERSION= 0.20 +CATEGORIES= security +MASTER_SITES= http://clamav.elektrapro.com/stable/ + +MAINTAINER= markun@onohara.to + +RUN_DEPENDS= lha:${PORTSDIR}/archivers/lha \ + unarj:${PORTSDIR}/archivers/unarj \ + unrar:${PORTSDIR}/archivers/unrar \ + zoo:${PORTSDIR}/archivers/zoo \ + arc:${PORTSDIR}/archivers/arc \ + unzip:${PORTSDIR}/archivers/unzip + +USE_GMAKE= yes +HAS_CONFIGURE= yes + +CONFIGURE_ARGS= --prefix=${PREFIX} --disable-clamav --disable-pthreads + +MAN1= clamscan.1 freshclam.1 sigtool.1 + +pre-install: + @${ECHO} "==> Creating custom user to run clamav..." + ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + +.include <bsd.port.mk> diff --git a/security/clamav/distinfo b/security/clamav/distinfo new file mode 100644 index 000000000000..95bc892bb3c2 --- /dev/null +++ b/security/clamav/distinfo @@ -0,0 +1 @@ +MD5 (clamav-0.20.tar.gz) = db747de22829b2d03baeb04d659d3d5b diff --git a/security/clamav/pkg-comment b/security/clamav/pkg-comment new file mode 100644 index 000000000000..0350f4130500 --- /dev/null +++ b/security/clamav/pkg-comment @@ -0,0 +1 @@ +Command line virus scanner using database from OpenAntiVirus diff --git a/security/clamav/pkg-descr b/security/clamav/pkg-descr new file mode 100644 index 000000000000..45535e0c7d29 --- /dev/null +++ b/security/clamav/pkg-descr @@ -0,0 +1,3 @@ +Clam Antivirus is command line virus scanner using database from +OpenAntiVirus. It detects over 1700 viruses, scans compressed files +and supported by AMaViS. diff --git a/security/clamav/pkg-install b/security/clamav/pkg-install new file mode 100644 index 000000000000..448ffdc1f34a --- /dev/null +++ b/security/clamav/pkg-install @@ -0,0 +1,30 @@ +#!/bin/sh + +if [ "$2" != "PRE-INSTALL" ]; then + exit 0 +fi + +USER=clamav +GROUP=clamav + +if ! pw groupshow "$GROUP" 2>/dev/null 1>&2; then + if pw groupadd $GROUP; then + echo "=> Added group \"$GROUP\"." + else + echo "=> Adding group \"$GROUP\" failed..." + exit 1 + fi +fi + +if ! pw usershow "$USER" 2>/dev/null 1>&2; then + if pw useradd $USER -g $GROUP -h - \ + -s "/sbin/nologin" -d "/nonexistent" \ + -c "Clam Antivirus"; \ + then + echo "=> Added user \"$USER\"." + else + echo "=> Adding user \"$USER\" failed..." + exit 1 + fi +fi +exit 0 diff --git a/security/clamav/pkg-plist b/security/clamav/pkg-plist new file mode 100644 index 000000000000..2ea043885368 --- /dev/null +++ b/security/clamav/pkg-plist @@ -0,0 +1,5 @@ +bin/clamscan +bin/freshclam +bin/sigtool +share/clamav/viruses.db +@dirrm share/clamav |