From 9c726050828bc0a72b1989d53efc28ab2ab060c5 Mon Sep 17 00:00:00 2001 From: xsa Date: Fri, 1 Oct 2004 08:13:43 +0000 Subject: [PATCH] bye INSTALL; --- games/xboing/Makefile | 6 +++- games/xboing/pkg/DEINSTALL | 45 ----------------------------- games/xboing/pkg/INSTALL | 59 -------------------------------------- games/xboing/pkg/PLIST | 11 +++++-- 4 files changed, 13 insertions(+), 108 deletions(-) delete mode 100644 games/xboing/pkg/DEINSTALL delete mode 100644 games/xboing/pkg/INSTALL diff --git a/games/xboing/Makefile b/games/xboing/Makefile index 32d7a7c0ee9..9ebc509283b 100644 --- a/games/xboing/Makefile +++ b/games/xboing/Makefile @@ -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" @@ -19,4 +19,8 @@ WRKDIST= ${WRKDIR}/xboing USE_X11= Yes NO_REGRESS= Yes +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xboing + ${INSTALL_DATA} /dev/null ${PREFIX}/share/examples/xboing/xboing.score + .include diff --git a/games/xboing/pkg/DEINSTALL b/games/xboing/pkg/DEINSTALL deleted file mode 100644 index 31c97890c19..00000000000 --- a/games/xboing/pkg/DEINSTALL +++ /dev/null @@ -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 diff --git a/games/xboing/pkg/INSTALL b/games/xboing/pkg/INSTALL deleted file mode 100644 index 04413ceb95b..00000000000 --- a/games/xboing/pkg/INSTALL +++ /dev/null @@ -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 diff --git a/games/xboing/pkg/PLIST b/games/xboing/pkg/PLIST index feefb908067..679f0e2e32f 100644 --- a/games/xboing/pkg/PLIST +++ b/games/xboing/pkg/PLIST @@ -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 @group games bin/xboing @mode @group @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/levels/ share/xboing/levels/demo.data @@ -138,5 +145,3 @@ share/xboing/sounds/whoosh.au share/xboing/sounds/wzzz.au share/xboing/sounds/wzzz2.au share/xboing/sounds/youagod.au -@cwd /var/games -@extra xboing.score