head	1.2;
access;
symbols
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2003.01.04.07.20.29;	author demon;	state dead;
branches;
next	1.1;

1.1
date	2002.06.13.14.46.23;	author tobez;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Update to version 20021227.p1.
Pass maintainership to submitter (approved by former maintainer).

Submitted by:	Blaz Zupan <blaz@@si.FreeBSD.org>
@
text
@#!/bin/sh
#
#	$FreeBSD: ports/security/amavisd-new/pkg-install,v 1.1 2002/06/13 14:46:23 tobez Exp $
#

PKG_PREFIX=${PKG_PREFIX:=/usr/local}
BATCH=${BATCH:=no}

USER=$1
GROUP=$2

if /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null; then
    echo "You already have a group \"${GROUP}\", so I will use it."
else
    if /usr/sbin/pw groupadd ${GROUP} -h -
    then
	echo "Added group \"${GROUP}\"."
    else
	echo "Adding group \"${GROUP}\" failed..."
	echo "Please create it, and try again."
	exit 1
    fi
fi

if /usr/sbin/pw user show "${USER}" 2>/dev/null; then
    echo "You already have a user \"${USER}\", so I will use it."
else
    if /usr/sbin/pw useradd ${USER} -g ${GROUP} -h - \
       -d /var/amavis \
       -s /bin/sh \
       -c "Scanning Virus Account"
    then
	echo "Added user \"${USER}\"."
    else
	echo "Adding user \"${USER}\" failed..."
	echo "Please create it, and try again."
	exit 1
    fi
fi
@


1.1
log
@Add amavisd-new, performance-enhanced daemonized version of amavis-perl.

PR:		38934
Submitted by:	Christopher K Davis (ckd-freebsd@@ckdhr.com)
@
text
@d3 1
a3 1
#	$FreeBSD$
@

