Date: Tue, 16 Jul 2002 01:39:02 +0900 (JST) From: TERAMOTO Masahiro <markun@onohara.to> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/40602: new port: security/clamav Message-ID: <20020715163902.5E69B20F1E@gate.onohara.to>
next in thread | raw e-mail | index | archive | help
>Number: 40602 >Category: ports >Synopsis: new port: security/clamav >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jul 15 09:40:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: TERAMOTO Masahiro >Release: FreeBSD 4.6-RELEASE-p2 i386 >Organization: >Environment: System: FreeBSD gate.onohara.to 4.6-RELEASE-p2 FreeBSD 4.6-RELEASE-p2 #5: Sun Jul 14 19:40:48 JST 2002 root@gate.onohara.to:/usr/src/sys/compile/GATE i386 >Description: Clam Antivirus is command line virus scanner using database from OpenAntiVirus. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # clamav # clamav/Makefile # clamav/distinfo # clamav/pkg-install # clamav/pkg-comment # clamav/pkg-descr # clamav/pkg-plist # echo c - clamav mkdir -p clamav > /dev/null 2>&1 echo x - clamav/Makefile sed 's/^X//' >clamav/Makefile << 'END-of-clamav/Makefile' X# New ports collection makefile for: clamav X# Date created: 15 July 2002 X# Whom: markun@onohara.to X# X# $FreeBSD$ X# X XPORTNAME= clamav XPORTVERSION= 0.20 XCATEGORIES= security XMASTER_SITES= http://clamav.elektrapro.com/stable/ X XMAINTAINER= markun@onohara.to X XRUN_DEPENDS= lha:${PORTSDIR}/archivers/lha \ X unarj:${PORTSDIR}/archivers/unarj \ X unrar:${PORTSDIR}/archivers/unrar \ X zoo:${PORTSDIR}/archivers/zoo \ X arc:${PORTSDIR}/archivers/arc \ X unzip:${PORTSDIR}/archivers/unzip X XUSE_GMAKE= yes XHAS_CONFIGURE= yes X XCONFIGURE_ARGS= --prefix=${PREFIX} --disable-clamav --disable-pthreads X XMAN1= clamscan.1 freshclam.1 sigtool.1 X Xpre-install: X @${ECHO} "==> Creating custom user to run clamav..." X ${PKGINSTALL} ${PKGNAME} PRE-INSTALL X X.include <bsd.port.mk> END-of-clamav/Makefile echo x - clamav/distinfo sed 's/^X//' >clamav/distinfo << 'END-of-clamav/distinfo' XMD5 (clamav-0.20.tar.gz) = db747de22829b2d03baeb04d659d3d5b END-of-clamav/distinfo echo x - clamav/pkg-install sed 's/^X//' >clamav/pkg-install << 'END-of-clamav/pkg-install' X#!/bin/sh X Xif [ "$2" != "PRE-INSTALL" ]; then X exit 0 Xfi X XUSER=clamav XGROUP=clamav X Xif ! pw groupshow "$GROUP" 2>/dev/null 1>&2; then X if pw groupadd $GROUP; then X echo "=> Added group \"$GROUP\"." X else X echo "=> Adding group \"$GROUP\" failed..." X exit 1 X fi Xfi X Xif ! pw usershow "$USER" 2>/dev/null 1>&2; then X if pw useradd $USER -g $GROUP -h - \ X -s "/sbin/nologin" -d "/nonexistent" \ X -c "Clam Antivirus"; \ X then X echo "=> Added user \"$USER\"." X else X echo "=> Adding user \"$USER\" failed..." X exit 1 X fi Xfi Xexit 0 END-of-clamav/pkg-install echo x - clamav/pkg-comment sed 's/^X//' >clamav/pkg-comment << 'END-of-clamav/pkg-comment' XCommand line virus scanner using database from OpenAntiVirus END-of-clamav/pkg-comment echo x - clamav/pkg-descr sed 's/^X//' >clamav/pkg-descr << 'END-of-clamav/pkg-descr' XClam Antivirus is command line virus scanner using database from XOpenAntiVirus. It detects over 1700 viruses, scans compressed files Xand supported by AMaViS. END-of-clamav/pkg-descr echo x - clamav/pkg-plist sed 's/^X//' >clamav/pkg-plist << 'END-of-clamav/pkg-plist' Xbin/clamscan Xbin/freshclam Xbin/sigtool Xshare/clamav/viruses.db X@dirrm share/clamav END-of-clamav/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020715163902.5E69B20F1E>