kill INSTALL/DEINSTALL

This commit is contained in:
espie 2004-09-23 07:25:56 +00:00
parent 71f6d0b50d
commit d57920bd0f
4 changed files with 11 additions and 61 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 2004/05/22 19:54:10 jolan Exp $
# $OpenBSD: Makefile,v 1.6 2004/09/23 07:25:56 espie Exp $
COMMENT= "sdl shoot 'em up; stop evil army from getting your oil"
@ -31,5 +31,7 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/oilwar ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/oilwar
${INSTALL_DATA} ${WRKSRC}/*.{png,wav} ${PREFIX}/share/oilwar
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/oilwar/
${INSTALL_DATA} /dev/null ${PREFIX}/share/examples/oilwar/oilwar.scores
.include <bsd.port.mk>

View File

@ -1,22 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2004/04/13 10:19:59 xsa Exp $
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SCORE_FILE=/var/games/oilwar.scores
if [ ${PKG_DELETE_EXTRA} != Yes -a -f $SCORE_FILE ]; then
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
fi
exit 0

View File

@ -1,35 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 2003/04/15 13:17:59 wilfried Exp $
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SCORE_FILE=/var/games/oilwar.scores
do_install()
{
touch $SCORE_FILE
chown root:games $SCORE_FILE
chmod 664 $SCORE_FILE
}
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ ! -f $SCORE_FILE ]; 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.4 2004/09/15 00:46:10 espie Exp $
@comment $OpenBSD: PLIST,v 1.5 2004/09/23 07:25:56 espie Exp $
@mode 2555
@group games
bin/oilwar
@ -6,6 +6,13 @@ bin/oilwar
@group
share/doc/oilwar/
share/doc/oilwar/README
share/examples/oilwar/
share/examples/oilwar/oilwar.scores
@mode 664
@group games
@sample /var/games/oilwar.scores
@mode
@group
share/oilwar/
share/oilwar/background.png
share/oilwar/bitmaps.png
@ -13,5 +20,3 @@ share/oilwar/bulletricochet.wav
share/oilwar/explode.wav
share/oilwar/gasp.wav
share/oilwar/singlegunshot.wav
@cwd /var/games
@extra oilwar.scores