head	1.2;
access;
symbols
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_6_EOL:1.1
	RELEASE_8_1_0:1.1
	RELEASE_7_3_0:1.1
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	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;
locks; strict;
comment	@# @;


1.2
date	2011.08.01.04.29.38;	author bapt;	state dead;
branches;
next	1.1;

1.1
date	2002.10.07.03.07.13;	author lioux;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Bye bye abandonwares (part 2)

2011-08-01 benchmarks/rawio: Looks like an abandonware, no more public distfiles
2011-08-01 benchmarks/tmetric: Looks like abandonware, no more public distfiles
2011-08-01 biology/L-Breeder: Looks like an abandonware, no more public distfile
2011-08-01 biology/crimap: Looks like an abandonware, no more public distfile
2011-08-01 biology/distribfold: No more upstream, looks like an abandonware
2011-08-01 biology/kinemage: Looks like an abandonware, no more public distfile
2011-08-01 biology/lsysexp: Looks like an abandonware, no more public distfile
2011-08-01 chinese/chm2html: Looks like an abandonware, no more public distfile
2011-08-01 chinese/ntuttf: No more public distfiles available
2011-08-01 chinese/reciteword: Looks like an abandonware, no more public distfile
2011-08-01 chinese/tocps: No more pulic distfiles
2011-08-01 chinese/xttmgr: Looks like an abandonware, no more public distfile
2011-08-01 comms/mserver: Looks like an abandonware, no more public distfiles
2011-08-01 comms/qicosi: Looks like an abandonware, no more public distfile
2011-08-01 comms/sms_client: Looks like an abandonware, no more public distfile
2011-08-01 comms/smstools: Looks like an abandonware, no more public distfile
2011-08-01 converters/siconv: Looks like an abandonware, no more public distfiles
2011-08-01 converters/utf8conv: Looks like an abandonware, no more public distfile
2011-08-01 databases/pgcluster: Looks like an abandonware, no more public distfile
2011-08-01 databases/py-MySQL: Please use databases/py-MySQLdb instead
2011-08-01 databases/py-SQLDict: Looks like an abandonware, no more public distfile
2011-08-01 databases/py-rrdpipe: Looks like an abandonware, no more public distfile
2011-08-01 databases/sybase_ase: no more public distfiles available
@
text
@#! /bin/sh
#
# $FreeBSD: ports/biology/distribfold/pkg-deinstall,v 1.1 2002/10/07 03:07:13 lioux Exp $
# taken from net/cvsup-mirror

PATH=/bin:/usr/sbin

DNETFOLD_USER=${DNETFOLD_USER:-dnetfold}
DNETFOLD_GROUP=${DNETFOLD_GROUP:-dnetfold}

ask() {
    local question default answer

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

yesno() {
    local dflt question answer

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

delete_account() {
    local u g home

    u=$1
    g=$2
    if yesno "Do you want me to remove group \"${g}\"" y; then
	pw groupdel -n ${g}
	echo "Done."
    fi
    if yesno "Do you want me to remove user \"${u}\"" y; then
	eval home=~${u}
	pw userdel -n ${u}
	echo "Done."
	if [ -d "${home}" ]; then
	    echo "Please remember to remove the home directory \"${home}\""
	fi
    fi
}

if [ x$2 != xDEINSTALL ]; then
    exit
fi

delete_account ${DNETFOLD_USER} ${DNETFOLD_GROUP}
@


1.1
log
@o New port distribfold version 0.1: distribfold.org distributed protein
  folding project
o One can start multiple instances of this port. Just install it
  using WITH_NCPU
@
text
@d3 1
a3 1
# $FreeBSD: ports/misc/distribfold/pkg-deinstall,v 1.1 2002/10/05 19:36:58 lioux Exp $
@

