Date: Sat, 14 Jun 2003 02:09:06 +0200 (CEST) From: Rob <rob@debank.tv> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/53306: [New Port] security/clamav-devel Message-ID: <200306140009.h5E096GI004963@haha.debank.tv> Resent-Message-ID: <200306140010.h5E0AHeM029488@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 53306 >Category: ports >Synopsis: [New Port] security/clamav-devel >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jun 13 17:10:16 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Rob Evers >Release: FreeBSD 4.8-STABLE i386 and FreeBSD-5.1-CURRENT >Organization: >Environment: System: FreeBSD haha.debank.tv 4.8-STABLE FreeBSD 4.8-STABLE #2: Sun Jun 8 23:25:20 CEST 2003 rob@haha.debank.tv:/usr/obj/usr/src/sys/HAHA i386 >Description: New port security/clamav-devel-20030613 (virus-scanner), the stable version in the ports tree is getting a bit old, this has all the new fixes and changes. >How-To-Repeat: >Fix: --- clamav-devel.sh begins here --- # 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-devel/ # clamav-devel/Makefile # clamav-devel/distinfo # clamav-devel/files # clamav-devel/pkg-descr # clamav-devel/pkg-install # clamav-devel/pkg-plist # echo c - clamav-devel/ mkdir -p clamav-devel/ > /dev/null 2>&1 echo x - clamav-devel/Makefile sed 's/^X//' >clamav-devel/Makefile << 'END-of-clamav-devel/Makefile' X# New ports collection makefile for: clamav X# Date created: 15 July 2002 X# Whom: markun@onohara.to X# X# $FreeBSD: ports/security/clamav/Makefile,v 1.5 2003/06/08 16:16:49 leeym Exp $ X# X XPORTNAME= clamav-devel XPORTVERSION= 20030613 XCATEGORIES= security XMASTER_SITES= http://clamav.elektrapro.com/snapshot/ \ X http://clamav.essentkabel.com/snapshot/ \ X http://clamav.ozforces.com/ X XMAINTAINER= rob@debank.tv XCOMMENT= Command line virus scanner written entirely in C 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 XLIB_DEPENDS= pth.20:${PORTSDIR}/devel/pth X XUSE_GMAKE= yes XGNU_CONFIGURE= yes XCONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} XUSE_LIBTOOL= yes XINSTALLS_SHLIB= yes XDISTNAME= clamav-20030613 X XCONFIGURE_ARGS= --prefix=${PREFIX} \ X --disable-clamav X XMAN1= clamscan.1 freshclam.1 sigtool.1 clamdscan.1 XMAN5= clamav.conf.5 XMAN8= clamd.8 X X.include <bsd.port.pre.mk> X Xpre-install: X @${ECHO} "===> Creating custom user to run clamav..." X ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL X X Xpost-install: X @${ECHO} "===> Setting permissions..." X @${SETENV} PKG_PREFIX=${PREFIX} ${sh} \ X ${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL X X.include <bsd.port.post.mk> END-of-clamav-devel/Makefile echo x - clamav-devel/distinfo sed 's/^X//' >clamav-devel/distinfo << 'END-of-clamav-devel/distinfo' XMD5 (clamav-20030613.tar.gz) = 95669bd66f625a6a78c544d96e0ffe2d END-of-clamav-devel/distinfo echo c - clamav-devel/files mkdir -p clamav-devel/files > /dev/null 2>&1 echo x - clamav-devel/pkg-descr sed 's/^X//' >clamav-devel/pkg-descr << 'END-of-clamav-devel/pkg-descr' XThis is a snapshot version of Clam Antivirus. Clam Antivirus Xis a command line virus scanner written entirely in C its Xdatabase is kept up to date. It also detects polymorphic Xviruses, scans compressed files and is supported by AMaViS. END-of-clamav-devel/pkg-descr echo x - clamav-devel/pkg-install sed 's/^X//' >clamav-devel/pkg-install << 'END-of-clamav-devel/pkg-install' X#!/bin/sh X X Xif [ "$2" != "PRE-INSTALL" ]; then X chown -R clamav:clamav ${PKG_PREFIX}/share/clamav 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-devel/pkg-install echo x - clamav-devel/pkg-plist sed 's/^X//' >clamav-devel/pkg-plist << 'END-of-clamav-devel/pkg-plist' X@exec mkdir -p share/clamav Xbin/clamscan Xbin/clamdscan Xbin/freshclam Xbin/sigtool Xsbin/clamd Xinclude/clamav.h Xlib/libclamav.so.1 Xlib/libclamav.so Xlib/libclamav.la Xlib/libclamav.a Xshare/clamav/mirrors.txt Xshare/clamav/viruses.db Xshare/clamav/viruses.db2 X@exec chown clamav share/clamav share/clamav/mirrors.txt share/clamav/viruses.db share/clamav/viruses.db2 X@dirrm share/clamav X@unexec rmuser -y clamav END-of-clamav-devel/pkg-plist exit --- clamav-devel.sh ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306140009.h5E096GI004963>