head	1.2;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.2
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2
	RELEASE_6_EOL:1.2
	RELEASE_8_1_0:1.2
	RELEASE_7_3_0:1.2
	RELEASE_8_0_0:1.2
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2
	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.2
	RELEASE_5_3_0:1.2
	RELEASE_4_10_0:1.2
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.2
	RELEASE_4_8_0:1.2
	RELEASE_5_0_0:1.2
	RELEASE_4_7_0:1.2;
locks; strict;
comment	@# @;


1.2
date	2002.07.12.05.31.37;	author mdodd;	state Exp;
branches;
next	1.1;

1.1
date	2002.07.12.02.52.25;	author mdodd;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Update documentation.
- Sanitize install script.
- Bump PORTREVISION.

Submitted by:		MAINTAINER
@
text
@#!/bin/sh

if [ -n "${PACKAGE_BUILDING}" ]; then
	exit 0
fi

if [ "$2" != "POST-DEINSTALL" ]; then
	exit 0
fi

USER=sfs
GROUP=sfs
PW=/usr/sbin/pw

SFSDIR=/var/spool/sfs

if ${PW} groupshow "${GROUP}" >/dev/null 2>&1; then
	echo "If you're done with SFS permanently, delete the sfs group manually: pw groupdel ${GROUP}" | fmt
fi

if ${PW} usershow "${USER}" >/dev/null 2>&1; then
	echo
	echo "If you're done with SFS permanently, delete the sfs user manually: pw userdel ${USER}" | fmt
fi

if [ -d "$PKG_PREFIX/etc/sfs" ] && ! rmdir $PKG_PREFIX/etc/sfs 2>/dev/null; then
	echo
	echo "You may wish to investigate the contents of $PKG_PREFIX/etc/sfs and delete the directory if you're done with SFS permanently." | fmt
fi

if [ -d "$SFSDIR" ] && ! rmdir $SFSDIR 2>/dev/null; then
	echo
	echo "You may wish to investigate the contents of $SFSDIR and delete the directory if you're done with SFS permanently." | fmt
fi
@


1.1
log
@A secure global network file system. SFS names FSs by public keys

PR:		ports/40455
Submitted by:	Michael Handler <handler@@grendel.net>
@
text
@d3 4
d13 1
d17 1
a17 1
if pw groupshow "${GROUP}" >/dev/null 2>&1; then
d21 1
a21 1
if pw usershow "${USER}" >/dev/null 2>&1; then
@

