bye bye install script

This commit is contained in:
espie 2004-09-22 21:15:20 +00:00
parent 96085825e6
commit 0eb9921333
3 changed files with 6 additions and 112 deletions

View File

@ -1,47 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2004/02/12 16:09:18 naddy Exp $
#
# lbreakout2 de-installation script
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SCORE_FILE=/var/games/lbreakout2.hscr
do_notice()
{
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "|"
echo "| rm -f $SCORE_FILE"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
}
# Verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname DEINSTALL" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
DEINSTALL)
if [ "$PKG_DELETE_EXTRA" != Yes -a -f $SCORE_FILE ]; then
do_notice "$1"
fi
;;
*)
echo "usage: $0 distname DEINSTALL" >&2
exit 1
;;
esac
exit 0

View File

@ -1,62 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.2 2003/04/14 15:02:09 wilfried Exp $
#
# installation score file setup for lbreakout2
# 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_FILE=/var/games/lbreakout2.hscr
SAMPLE_FILE=${PREFIX}/share/lbreakout2/lbreakout2.hscr
# Function: tell the user what they need to do to use the port just installed
#
do_notice()
{
echo
echo "+---------------"
echo "| The existing $1 score file,"
echo "| $SCORE_FILE,"
echo "| has NOT been changed."
echo "+---------------"
echo
}
# Function: install a blank file to be used as the gtkballs score file
#
do_install()
{
cp $SAMPLE_FILE $SCORE_FILE
chown root:games $SCORE_FILE
chmod 664 $SCORE_FILE
}
# 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 [ -f $SCORE_FILE ]; then
do_notice $1
else
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.3 2004/09/15 00:46:09 espie Exp $
@comment $OpenBSD: PLIST,v 1.4 2004/09/22 21:15:20 espie Exp $
@mode g+s
@group games
bin/lbreakout2
@ -71,6 +71,11 @@ share/lbreakout2/gfx/shine.png
share/lbreakout2/gfx/shot.png
share/lbreakout2/gfx/weapon.png
share/lbreakout2/lbreakout2.hscr
@group games
@mode 664
@sample /var/games/lbreakout2.hscr
@group
@mode
share/lbreakout2/levels/
share/lbreakout2/levels/AddOn-1
share/lbreakout2/levels/AddOn-2
@ -111,5 +116,3 @@ share/lbreakout2/sounds/verygood.wav
share/lbreakout2/sounds/wall.wav
share/lbreakout2/sounds/weak_ball.wav
share/lbreakout2/sounds/wontgiveup.wav
@cwd /var/games
@extra lbreakout2.hscr