From owner-freebsd-ports Mon Jul 15 9:40:31 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6595237B401 for ; Mon, 15 Jul 2002 09:40:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7178043E58 for ; Mon, 15 Jul 2002 09:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6FGe2JU059312 for ; Mon, 15 Jul 2002 09:40:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6FGe20F059311; Mon, 15 Jul 2002 09:40:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B12C337B400 for ; Mon, 15 Jul 2002 09:39:04 -0700 (PDT) Received: from gate.onohara.to (gate.onohara.to [202.224.211.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13A2C43E58 for ; Mon, 15 Jul 2002 09:39:04 -0700 (PDT) (envelope-from markun@onohara.to) Received: by gate.onohara.to (Postfix, from userid 1000) id 5E69B20F1E; Tue, 16 Jul 2002 01:39:02 +0900 (JST) Message-Id: <20020715163902.5E69B20F1E@gate.onohara.to> Date: Tue, 16 Jul 2002 01:39:02 +0900 (JST) From: TERAMOTO Masahiro To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/40602: new port: security/clamav Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 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