about [UPDATING] [MOVED] [vuxml]summaryrefslograw-logtreecommitdiffstats
path: root/sysutils/boxbackup-devel/pkg-deinstall [up]
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2007-01-29 10:14:29 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2007-01-29 10:14:29 +0000
commitcec49cf8f48420d4e91f2d480cf281bd2d79e999 (patch) (diff)
tree26a0b2f13d3c39b0da0fdcdd6f2fdbf06bdc636e /sysutils/boxbackup-devel/pkg-deinstall
downloadports-cec49cf8f48420d4e91f2d480cf281bd2d79e999.tar.gz
 
previous commit6a1c5fb9a79f259c9737a9bfa2ce5a164672585b (- Update to 0.4.9.3.20070117)
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_EOL'. 4-eol
Diffstat (limited to 'sysutils/boxbackup-devel/pkg-deinstall') [Complete diffstat for commit ]
-rw-r--r--sysutils/boxbackup-devel/pkg-deinstall[diff] [file]69
1 files changed, 0 insertions, 69 deletions
diff --git a/sysutils/boxbackup-devel/pkg-deinstall b/sysutils/boxbackup-devel/pkg-deinstall
deleted file mode 100644
index be8a67a2dad9..000000000000
--- a/sysutils/boxbackup-devel/pkg-deinstall
+++ /dev/null
@@ -1,69 +0,0 @@
-#! /bin/sh
-#
-# ex:ts=4
-
-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 pw
-
- u=$1
- pw=`pw usershow ${u} >/dev/null 2>&1`
- if [ $? -eq 0 ]; then
- if yesno "Do you want me to remove user \"${u}\"" n; then
- pw userdel -n ${u}
- echo "Done."
- fi
- fi
-}
-
-case $2 in
-
-DEINSTALL)
- if ps -axc | grep -qw bbstored; then
- if yesno "bbstored is still running. Shall I stop it?" y; then
- killall bbstored
- sleep 2
- else
- echo "OK ... I hope you know what you are doing."
- fi
- fi
-
- if ps -axc | grep -qw bbackupd; then
- if yesno "bbackupd is still running. Shall I stop it?" y; then
- killall bbackupd
- sleep 2
- else
- echo "OK ... I hope you know what you are doing."
- fi
- fi
-
- delete_account _bbstored
-
- ;;
-
-esac
This site is maintained by Jamie Landeg-Jones <jamie@catflap.org>, and is not an official FreeBSD project, nor is it endorsed by the FreeBSD team.