kill INSTALL/DEINSTALL make suppression silent

This commit is contained in:
espie 2004-09-22 11:14:51 +00:00
parent 463de08158
commit 0a5bb4feb4
3 changed files with 9 additions and 76 deletions

View File

@ -1,25 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2004/04/13 10:19:59 xsa Exp $
#
# angband de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SCORE_DIR=/var/games/angband
if [ ${PKG_DELETE_EXTRA} != Yes -a -d $SCORE_DIR ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "|"
echo "| rm -rf $SCORE_DIR"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
exit 0

View File

@ -1,49 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.2 2003/04/14 15:02:09 wilfried Exp $
#
# Pre/post-installation setup of angband
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SCORE_DIR=/var/games/angband
# Function: install the directories and files for angband
#
do_install()
{
install -m 775 -d $SCORE_DIR
install -m 775 -d $SCORE_DIR/apex
install -m 775 -d $SCORE_DIR/save
install -m 775 -d $SCORE_DIR/data
install -m 775 -d $SCORE_DIR/bone
chown -R root:games $SCORE_DIR
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ ! -d $SCORE_DIR ]; then
do_install $1
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.7 2004/09/15 00:46:08 espie Exp $
@comment $OpenBSD: PLIST,v 1.8 2004/09/22 11:14:51 espie Exp $
bin/angband
share/angband/
@comment share/angband/apex/
@ -66,4 +66,11 @@ share/angband/pref/xtra-xxx.prf
@comment share/angband/save/
@comment share/angband/user/
share/angband/xtra/
@extraunexec rm -rf /var/games/angband
@mode 775
@group games
@sample /var/games/angband/
@sample /var/games/angband/apex/
@sample /var/games/angband/save/
@sample /var/games/angband/data/
@sample /var/games/angband/bone/
@extraunexec rm /var/games/angband/*/* 2>/dev/null || true