kill more INSTALL scripts;
This commit is contained in:
parent
b1c4d171c4
commit
3e87d5de8f
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.19 2002/12/23 00:37:50 pvalchev Exp $
|
||||
# $OpenBSD: Makefile,v 1.20 2004/10/01 07:34:34 xsa Exp $
|
||||
|
||||
COMMENT= "X11 solitaire with 14 variations"
|
||||
|
||||
@ -21,4 +21,8 @@ CONFIGURE_STYLE=imake
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xpat2
|
||||
${INSTALL_DATA} /dev/null ${PREFIX}/share/examples/xpat2/xpat.log
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,47 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.2 2003/09/28 00:35:11 naddy Exp $
|
||||
#
|
||||
# xpat2 de-installation script
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
SCORE_FILE=/var/games/xpat.log
|
||||
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need to perform"
|
||||
echo "| this step as root:"
|
||||
echo "|"
|
||||
echo "| rm -rf $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.2 2003/04/14 15:02:09 wilfried Exp $
|
||||
#
|
||||
# installation score file setup for xpat2
|
||||
|
||||
# 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/xpat.log
|
||||
|
||||
# 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
|
@ -1,8 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.7 2004/09/15 00:46:12 espie Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.8 2004/10/01 07:34:34 xsa Exp $
|
||||
@mode 2755
|
||||
@group games
|
||||
bin/xpat2
|
||||
@mode
|
||||
@group
|
||||
lib/X11/app-defaults/XPat
|
||||
lib/X11/french/
|
||||
lib/X11/french/app-defaults/
|
||||
@ -104,4 +105,8 @@ lib/X11/xpat/russian/sq01.bdf
|
||||
lib/X11/xpat/small.cards
|
||||
@man man/cat1/xpat2.0
|
||||
@man man/man6/xpat2.6
|
||||
@extra /var/games/xpat.log
|
||||
share/examples/xpat2/
|
||||
share/examples/xpat2/xpat.log
|
||||
@group games
|
||||
@mode g+w
|
||||
@sample /var/games/xpat.log
|
||||
|
Loading…
Reference in New Issue
Block a user