aboutsummaryrefslogtreecommitdiff
path: root/sysutils/e2fsprogs/pkg-install
diff options
context:
space:
mode:
authorTimur I. Bakeyev <timur@FreeBSD.org>2007-10-02 15:15:57 +0000
committerTimur I. Bakeyev <timur@FreeBSD.org>2007-10-02 15:15:57 +0000
commit69aead19c7e30235d6ca9926fa45437bd30df930 (patch)
tree186bad101c40af359eb1d0c9b1c5a79a6d5306ca /sysutils/e2fsprogs/pkg-install
parent14326f5ba487a0bdb1d31c0497abe2c02332894f (diff)
downloadports-69aead19c7e30235d6ca9926fa45437bd30df930.tar.gz
ports-69aead19c7e30235d6ca9926fa45437bd30df930.zip
Notes
Diffstat (limited to 'sysutils/e2fsprogs/pkg-install')
-rw-r--r--sysutils/e2fsprogs/pkg-install79
1 files changed, 0 insertions, 79 deletions
diff --git a/sysutils/e2fsprogs/pkg-install b/sysutils/e2fsprogs/pkg-install
deleted file mode 100644
index c31dbadd6bd3..000000000000
--- a/sysutils/e2fsprogs/pkg-install
+++ /dev/null
@@ -1,79 +0,0 @@
-# $FreeBSD$
-#
-# ports/sysutils/e2fsprogs/pkg-install - (C) 2006 by Matthias Andree
-# redistributable under the modified BSD license
-#
-# ask() and yesno() based on ports/mail/postfix/pkg-install
-
-PKG_PREFIX=${PKG_PREFIX:=/usr/local}
-BATCH=${BATCH:=no}
-
-ask() {
- local question default answer
-
- question=$1
- default=$2
- if [ -z "${PACKAGE_BUILDING}" -a x${BATCH} = xno ]; then
- read -p "${question} [${default}]? " answer
- fi
- if [ x${answer} = x ]; then
- answer=${default}
- fi
- echo ${answer}
-}
-
-yesno() {
- local question default answer
-
- question=$1
- default=$2
- while :; do
- answer=$(ask "${question}" "${default}")
- case "${answer}" in
- [Yy][Ee][SsPp]|[Yy]) return 0;;
- [Nn]|[Nn][Oo]) return 1;;
- esac
- echo "Please answer yes or no."
- done
-}
-
-if [ "x$2" = xPOST-INSTALL ] && [ -z "${PACKAGE_BUILDING}" ]; then
- cat <<_EOF
-
-To have your ext2 and ext3 filesystems fsck'ed correctly without explicitly
-invoking the fsck_ext2fs utility installed by this port you will need to
-create links or copy the fsck utilities installed by this port in/to /sbin, e.g.
-
-ln -f "${PKG_PREFIX}/sbin/fsck_ext2fs" /sbin/ 2>/dev/null \\
- || install -m755 "${PKG_PREFIX}/sbin/fsck_ext2fs" /sbin/
-ln -f "${PKG_PREFIX}/sbin/e2fsck" /sbin/e2fsck 2>/dev/null \\
- || install -m755 "${PKG_PREFIX}/sbin/e2fsck" /sbin/e2fsck
-
-IMPORTANT: you also need to repeat the steps above after a port upgrade!
-
-_EOF
-
- if yesno "Shall I create the links now?" yes ; then
- echo "Installing /sbin/fsck_ext2fs and /sbin/e2fsck."
- ln -f "${PKG_PREFIX}/sbin/fsck_ext2fs" /sbin/ 2>/dev/null \
- || install -m755 "${PKG_PREFIX}/sbin/fsck_ext2fs" /sbin/
- ln -f "${PKG_PREFIX}/sbin/e2fsck" /sbin/e2fsck 2>/dev/null \
- || install -m755 "${PKG_PREFIX}/sbin/e2fsck" /sbin/e2fsck
- fi
-fi
-
-if [ "x$2" = xDEINSTALL ] ; then
- cat <<_EOF
-
-If you are deinstalling the e2fsprogs port for good, rather than upgrading it,
-remember to remove the files you may have installed into /sbin, example:
-
-rm -f /sbin/fsck_ext2fs /sbin/e2fsck
-
-_EOF
-
- if yesno "Shall I remove the links now?" yes ; then
- echo "Removing /sbin/fsck_ext2fs and /sbin/e2fsck."
- rm -f /sbin/fsck_ext2fs /sbin/e2fsck
- fi
-fi