bye INSTALL;

This commit is contained in:
xsa 2004-10-01 08:13:43 +00:00
parent f0cb6a7371
commit 9c72605082
4 changed files with 13 additions and 108 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.18 2004/03/06 02:41:00 naddy Exp $ # $OpenBSD: Makefile,v 1.19 2004/10/01 08:13:43 xsa Exp $
COMMENT= "blockout style game for X11" COMMENT= "blockout style game for X11"
@ -19,4 +19,8 @@ WRKDIST= ${WRKDIR}/xboing
USE_X11= Yes USE_X11= Yes
NO_REGRESS= Yes NO_REGRESS= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xboing
${INSTALL_DATA} /dev/null ${PREFIX}/share/examples/xboing/xboing.score
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,45 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1 2004/03/06 02:41:00 naddy Exp $
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SCORE_FILE=/var/games/xboing.score
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,59 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 2004/03/06 02:41:00 naddy Exp $
# 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/xboing.score
# 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()
{
touch $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,10 +1,17 @@
@comment $OpenBSD: PLIST,v 1.6 2004/09/15 00:46:11 espie Exp $ @comment $OpenBSD: PLIST,v 1.7 2004/10/01 08:13:43 xsa Exp $
@mode g+s @mode g+s
@group games @group games
bin/xboing bin/xboing
@mode @mode
@group @group
@man man/cat1/xboing.0 @man man/cat1/xboing.0
share/examples/xboing/
share/examples/xboing/xboing.score
@mode g+w
@group games
@sample /var/games/xboing.score
@mode
@group
share/xboing/ share/xboing/
share/xboing/levels/ share/xboing/levels/
share/xboing/levels/demo.data share/xboing/levels/demo.data
@ -138,5 +145,3 @@ share/xboing/sounds/whoosh.au
share/xboing/sounds/wzzz.au share/xboing/sounds/wzzz.au
share/xboing/sounds/wzzz2.au share/xboing/sounds/wzzz2.au
share/xboing/sounds/youagod.au share/xboing/sounds/youagod.au
@cwd /var/games
@extra xboing.score