kill INSTALL

This commit is contained in:
espie 2004-09-23 07:21:44 +00:00
parent 6e87f0543e
commit 71f6d0b50d
4 changed files with 16 additions and 111 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.15 2002/10/26 20:44:40 naddy Exp $
# $OpenBSD: Makefile,v 1.16 2004/09/23 07:21:44 espie Exp $
COMMENT= "shooting game for X11"
@ -18,4 +18,9 @@ CONFIGURE_STYLE= imake noman
NO_REGRESS= Yes
# empty template for pkg install
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xsoldier
${INSTALL_DATA} /dev/null ${PREFIX}/share/examples/xsoldier/xsoldier.scores
.include <bsd.port.mk>

View File

@ -1,47 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.3 2003/09/28 00:35:11 naddy Exp $
#
# xsoldier de-installation script
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SCORE_FILE=/var/games/xsoldier.scores
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,61 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.2 2003/04/14 15:02:09 wilfried Exp $
#
# installation score file setup for xsoldier
# 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/xsoldier.scores
# 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 icebreaker 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,5 +1,9 @@
@comment $OpenBSD: PLIST,v 1.6 2004/09/15 00:46:12 espie Exp $
@comment $OpenBSD: PLIST,v 1.7 2004/09/23 07:21:44 espie Exp $
@group games
@mode 2755
bin/xsoldier
@mode
@group
lib/X11/xsoldier/
lib/X11/xsoldier/Boss1.xpm
lib/X11/xsoldier/Boss2.xpm
@ -30,4 +34,8 @@ lib/X11/xsoldier/PlayerShot3.xpm
lib/X11/xsoldier/Star1.xpm
lib/X11/xsoldier/Star2.xpm
lib/X11/xsoldier/Title.xpm
@extra /var/games/xsoldier.scores
share/examples/xsoldier/
share/examples/xsoldier/xsoldier.scores
@group games
@mode 664
@sample /var/games/xsoldier.scores