head	1.2;
access;
symbols
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2005.04.11.21.18.36;	author pav;	state dead;
branches;
next	1.1;

1.1
date	2004.04.20.20.36.39;	author sergei;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Update to 4.1.5

PR:		ports/79362
Submitted by:	David Thiel <lx@@redundancy.redundancy.org> (maintainer)
@
text
@#! /bin/sh
#
# $FreeBSD: ports/security/osiris/pkg-deinstall,v 1.1 2004/04/20 20:36:39 sergei Exp $
#


ask() {
    local question default answer

    question=$1
    default=$2
    if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
	read -p "${question} [${default}]? " answer
    fi
    echo ${answer:-${default}}
}

yesno() {
    local question default answer

    question=$1
    default=$2
    while :; do
	answer=$(ask "${question}" "${default}")
	case "${answer}" in
	[Yy]*)	return 0;;
	[Nn]*)	return 1;;
	esac
	echo "Please answer yes or no."
    done
}

delete_account() {
    local u

    u=$1
    if yesno "Do you want me to remove user and group \"${u}\"" n; then
	pw userdel -n ${u}
	echo "Done."
    fi
}

case $2 in

DEINSTALL)

    delete_account osiris
    ;;

esac
@


1.1
log
@- Update to 2.4.4, a more recent stable version
- Pass maintainership to the submitter

PR:		ports/63077
Submitted by:	David Thiel <lx@@redundancy.redundancy.org>
Approved by:	Nicolas Jombart (current maintainer)
@
text
@d3 1
a3 1
# $FreeBSD$
@

