head	1.3;
access;
symbols
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2008.06.18.23.15.47;	author pav;	state dead;
branches;
next	1.2;

1.2
date	2005.02.13.17.35.35;	author leeym;	state Exp;
branches;
next	1.1;

1.1
date	2002.05.15.13.19.02;	author ijliao;	state Exp;
branches;
next	;


desc
@@


1.3
log
@- Delete expired security/amavisd port: depends on misc/compat3x, which has
  security problems; old version
@
text
@#!/bin/sh
#
#	$FreeBSD: ports/security/amavisd/pkg-install,v 1.2 2005/02/13 17:35:35 leeym 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 -g 110 -
    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" \
       -u 110
    then
	echo "Added user \"${USER}\"."
    else
	echo "Adding user \"${USER}\" failed..."
	echo "Please create it, and try again."
	exit 1
    fi
fi
@


1.2
log
@- register UID:GID 110 for vscan

PR:		77366
Submitted by:	Scott Balmos <scott.balmos at utoledo.edu>
Approved by:	Blaz Zupan <blaz at si.FreeBSD.org>
@
text
@d3 1
a3 1
#	$FreeBSD: ports/security/amavisd/pkg-install,v 1.1 2002/05/15 13:19:02 ijliao Exp $
@


1.1
log
@* fix a typo in /usr/local/etc/rc.d/amavisd.sh
* fix to use vscan:vscan to scan virus
* add a dependency of p5-Net-Telnet

PR:		38084
Submitted by:	maintainer
@
text
@d3 1
a3 1
#	$FreeBSD$
d15 1
a15 1
    if /usr/sbin/pw groupadd ${GROUP} -h -
d31 2
a32 1
       -c "Scanning Virus Account"
@

