kill INSTALL/DEINSTALL
This commit is contained in:
parent
32d1046f12
commit
60e84f5396
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.25 2004/02/26 23:12:31 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.26 2004/09/24 10:36:49 espie Exp $
|
||||
|
||||
COMMENT= "game where you deal drugs on the streets of NY"
|
||||
|
||||
@ -49,5 +49,7 @@ post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dopewars
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/example-cfg \
|
||||
${PREFIX}/share/examples/dopewars/dopewars.cfg
|
||||
${INSTALL_DATA} /dev/null ${PREFIX}/share/examples/dopewars/dopewars.sco
|
||||
${PREFIX}/bin/dopewars -C ${PREFIX}/share/examples/dopewars/dopewars.sco
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,24 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.6 2003/12/24 04:00:38 brad Exp $
|
||||
#
|
||||
# dopewars de-installation
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
SCORE_FILE=/var/games/dopewars.sco
|
||||
|
||||
if [ "$PKG_DELETE_EXTRA" != Yes -a -f $SCORE_FILE ]; then
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need"
|
||||
echo "| to perform 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
|
@ -1,43 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.5 2003/04/14 15:02:09 wilfried Exp $
|
||||
#
|
||||
# Pre/post-installation setup of dopewars
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
SCORE_FILE=/var/games/dopewars.sco
|
||||
|
||||
do_install_scorefile()
|
||||
{
|
||||
touch $SCORE_FILE
|
||||
chown root:games $SCORE_FILE
|
||||
chmod 664 $SCORE_FILE
|
||||
$PREFIX/bin/dopewars -C $SCORE_FILE
|
||||
rm -f $SCORE_FILE.bak
|
||||
}
|
||||
|
||||
# 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_install_scorefile
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,5 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.15 2004/09/15 00:46:08 espie Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.16 2004/09/24 10:36:49 espie Exp $
|
||||
@mode g+s
|
||||
@group games
|
||||
bin/dopewars
|
||||
@group
|
||||
@mode
|
||||
@man man/man6/dopewars.6
|
||||
share/doc/dopewars/
|
||||
@comment share/doc/dopewars/LICENCE
|
||||
@ -20,6 +24,12 @@ share/doc/dopewars/servercommands.html
|
||||
share/doc/dopewars/windows.html
|
||||
share/examples/dopewars/
|
||||
share/examples/dopewars/dopewars.cfg
|
||||
share/examples/dopewars/dopewars.sco
|
||||
@mode 664
|
||||
@group games
|
||||
@sample /var/games/dopewars.sco
|
||||
@group
|
||||
@mode
|
||||
share/locale/de/LC_MESSAGES/dopewars.mo
|
||||
share/locale/fr/LC_MESSAGES/dopewars.mo
|
||||
share/locale/nn/LC_MESSAGES/dopewars.mo
|
||||
@ -29,4 +39,3 @@ share/pixmaps/
|
||||
share/pixmaps/dopewars-pill.png
|
||||
share/pixmaps/dopewars-shot.png
|
||||
share/pixmaps/dopewars-weed.png
|
||||
@extraunexec rm -f /var/games/dopewars.sco
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.12 2002/12/29 15:10:07 fgsch Exp $
|
||||
# $OpenBSD: Makefile,v 1.13 2004/09/24 10:39:27 espie Exp $
|
||||
|
||||
COMMENT= "gtk+ clone of the lines ball logic game"
|
||||
|
||||
@ -26,4 +26,8 @@ CONFIGURE_ARGS= --localstatedir=/var/games
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gtkballs
|
||||
${INSTALL_DATA} /dev/null ${PREFIX}/share/examples/gtkballs/gtkballs-score
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,47 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.3 2004/04/13 10:19:59 xsa Exp $
|
||||
#
|
||||
# gtkballs de-installation script
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
SCORE_FILE=/var/games/gtkballs-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
|
@ -1,61 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.3 2003/04/14 15:02:09 wilfried Exp $
|
||||
#
|
||||
# installation score file setup for gtkballs
|
||||
|
||||
# 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/gtkballs-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 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
|
@ -1,5 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.5 2004/09/15 00:46:09 espie Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.6 2004/09/24 10:39:27 espie Exp $
|
||||
@mode g+s
|
||||
@group games
|
||||
bin/gtkballs
|
||||
@mode
|
||||
@group
|
||||
@man man/man6/gtkballs.6x
|
||||
share/gtkballs/
|
||||
share/gtkballs/COPYING
|
||||
@ -333,4 +337,8 @@ share/locale/pl/LC_MESSAGES/gtkballs.mo
|
||||
share/locale/ru/
|
||||
share/locale/ru/LC_MESSAGES/
|
||||
share/locale/ru/LC_MESSAGES/gtkballs.mo
|
||||
@extra /var/games/gtkballs-scores
|
||||
share/examples/gtkballs/
|
||||
share/examples/gtkballs/gtkballs-score
|
||||
@mode g+w
|
||||
@group games
|
||||
@sample /var/games/gtkballs-scores
|
||||
|
Loading…
Reference in New Issue
Block a user