From 0eb992133375d5d6578f03746125cb6cf0dbb250 Mon Sep 17 00:00:00 2001 From: espie Date: Wed, 22 Sep 2004 21:15:20 +0000 Subject: [PATCH] bye bye install script --- games/lbreakout2/pkg/DEINSTALL | 47 -------------------------- games/lbreakout2/pkg/INSTALL | 62 ---------------------------------- games/lbreakout2/pkg/PLIST | 9 +++-- 3 files changed, 6 insertions(+), 112 deletions(-) delete mode 100644 games/lbreakout2/pkg/DEINSTALL delete mode 100644 games/lbreakout2/pkg/INSTALL diff --git a/games/lbreakout2/pkg/DEINSTALL b/games/lbreakout2/pkg/DEINSTALL deleted file mode 100644 index b3bc0030469..00000000000 --- a/games/lbreakout2/pkg/DEINSTALL +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -# $OpenBSD: DEINSTALL,v 1.2 2004/02/12 16:09:18 naddy Exp $ -# -# lbreakout2 de-installation script - -set -e -PATH=/bin:/usr/bin:/sbin:/usr/sbin -PREFIX=${PKG_PREFIX:-/usr/local} -SCORE_FILE=/var/games/lbreakout2.hscr - -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/lbreakout2/pkg/INSTALL b/games/lbreakout2/pkg/INSTALL deleted file mode 100644 index 1018f87e4ff..00000000000 --- a/games/lbreakout2/pkg/INSTALL +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh -# $OpenBSD: INSTALL,v 1.2 2003/04/14 15:02:09 wilfried Exp $ -# -# installation score file setup for lbreakout2 - -# 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/lbreakout2.hscr -SAMPLE_FILE=${PREFIX}/share/lbreakout2/lbreakout2.hscr - -# 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() -{ - cp $SAMPLE_FILE $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/lbreakout2/pkg/PLIST b/games/lbreakout2/pkg/PLIST index 515e97f1279..9148700b597 100644 --- a/games/lbreakout2/pkg/PLIST +++ b/games/lbreakout2/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $OpenBSD: PLIST,v 1.3 2004/09/15 00:46:09 espie Exp $ +@comment $OpenBSD: PLIST,v 1.4 2004/09/22 21:15:20 espie Exp $ @mode g+s @group games bin/lbreakout2 @@ -71,6 +71,11 @@ share/lbreakout2/gfx/shine.png share/lbreakout2/gfx/shot.png share/lbreakout2/gfx/weapon.png share/lbreakout2/lbreakout2.hscr +@group games +@mode 664 +@sample /var/games/lbreakout2.hscr +@group +@mode share/lbreakout2/levels/ share/lbreakout2/levels/AddOn-1 share/lbreakout2/levels/AddOn-2 @@ -111,5 +116,3 @@ share/lbreakout2/sounds/verygood.wav share/lbreakout2/sounds/wall.wav share/lbreakout2/sounds/weak_ball.wav share/lbreakout2/sounds/wontgiveup.wav -@cwd /var/games -@extra lbreakout2.hscr