ports/53215: new port

Rob rob at debank.tv
Wed Jun 11 18:50:18 UTC 2003


>Number:         53215
>Category:       ports
>Synopsis:       new port
>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:   Wed Jun 11 11:50:16 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Rob <rob at debank.tv>
>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 at haha.debank.tv:/usr/obj/usr/src/sys/HAHA i386


	
>Description:
	New port: security/clamav-devel
        clamav is a virus scanner, stable version is in the ports but a bit old
        this is the latest snapshot with lots of enhancements.
>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-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 at 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=   20030605
XCATEGORIES=    security
XMASTER_SITES=  http://clamav.elektrapro.com/snapshot/
X
XMAINTAINER=    rob at 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-20030605
X
XCONFIGURE_ARGS=        --prefix=${PREFIX} --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
X.if ${OSVERSION} >= 500000
XEXTRA_PATCHES= ${FILESDIR}/patch5-*
X.endif
X
Xpre-install:
X       @${ECHO} "==>  Creating custom user to run clamav..."
X#      ${SH} ${PKGINSTALL} ${PKGNAME} PRE-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-20030605.tar.gz) = 97ac37a0db978acbe23c524543eb5401
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'
XClam Antivirus is command line virus scanner written entirely in C
Xand its database is kept up to date. It also detects polymorphic
Xviruses, scans compressed files and 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
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-devel/pkg-install
echo x - clamav-devel/pkg-plist
sed 's/^X//' >clamav-devel/pkg-plist << 'END-of-clamav-devel/pkg-plist'
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 at dirrm share/clamav
END-of-clamav-devel/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list