diff options
author | jlam <jlam> | 2006-07-05 06:53:12 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-07-05 06:53:12 +0000 |
commit | 40f0c69a767a1ef81f593d9a9294789cb6ca10f3 (patch) | |
tree | c1cac8d3ff0a7fb5ff1a16e24073b5e91efd1aa7 /games/ivan | |
parent | 263a3d5bbb48d966e92ca21d167767c6dac49f60 (diff) | |
download | pkgsrc-40f0c69a767a1ef81f593d9a9294789cb6ca10f3.tar.gz |
Drop use of INSTALL_SRC and DEINSTALL_SRC and instead set the proper
variables so that the default INSTALL/DEINSTALL scripts from the
pkginstall framework do the right thing. Where possible, move some
post-install directions for package setup into MESSAGE files so that
they may be re-inspected by querying the installed package using
"pkg_info -D ...".
Diffstat (limited to 'games/ivan')
-rw-r--r-- | games/ivan/DEINSTALL | 26 | ||||
-rw-r--r-- | games/ivan/Makefile | 8 | ||||
-rw-r--r-- | games/ivan/PLIST | 3 |
3 files changed, 18 insertions, 19 deletions
diff --git a/games/ivan/DEINSTALL b/games/ivan/DEINSTALL index 64aa3ef6ea5..7df10f257c8 100644 --- a/games/ivan/DEINSTALL +++ b/games/ivan/DEINSTALL @@ -1,17 +1,19 @@ -#!/bin/sh -# -# $NetBSD: DEINSTALL,v 1.1 2004/08/18 17:52:25 ben Exp $ -# +# $NetBSD: DEINSTALL,v 1.2 2006/07/05 06:53:12 jlam Exp $ -case $2 in - DEINSTALL) cat << EOF - -============================================================= -The records, log and bones were not wiped out by this -deletion process. If you don't want them around, please -remove ${PKG_PREFIX}/share/ivan. -============================================================= +case "${STAGE}" in +DEINSTALL) + DATADIR="${PKG_PREFIX}/share/ivan" + ${RMDIR} -p ${DATADIR} 2>/dev/null || ${TRUE} + if ${TEST} -d ${DATADIR}; then + ${CAT} << EOF +====================================================================== +The records, log and bones were not wiped out by this deletion process. +If you don't want them around, then please remove the following +directory: + ${DATADIR} +====================================================================== EOF + fi ;; esac diff --git a/games/ivan/Makefile b/games/ivan/Makefile index 61a28725aee..48455b13f0c 100644 --- a/games/ivan/Makefile +++ b/games/ivan/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.10 2006/06/12 16:28:09 wiz Exp $ +# $NetBSD: Makefile,v 1.11 2006/07/05 06:53:12 jlam Exp $ # DISTNAME= ivan-0.50 -PKGREVISION= 5 +PKGREVISION= 6 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ivan/} @@ -17,9 +17,7 @@ CONFIGURE_ARGS+= --localstatedir=${PREFIX}/share USE_LANGUAGES= c++ -DEINSTALL_SRC= ${PKGDIR}/DEINSTALL -INSTALL_SRC= # empty - +REQD_DIRS+= share/ivan CONF_FILES_PERMS+= /dev/null ${PREFIX}/share/ivan/ivan-highscore.scores \ ${ROOT_USER} games 664 diff --git a/games/ivan/PLIST b/games/ivan/PLIST index 3693c25023d..47197d9cf60 100644 --- a/games/ivan/PLIST +++ b/games/ivan/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.3 2006/05/19 07:15:24 joerg Exp $ +@comment $NetBSD: PLIST,v 1.4 2006/07/05 06:53:13 jlam Exp $ bin/ivan share/ivan/Graphics/Char.pcx share/ivan/Graphics/Cursor.pcx @@ -23,4 +23,3 @@ share/ivan/Script/olterra.dat @dirrm share/ivan/Bone @dirrm share/ivan/Graphics @dirrm share/ivan/Script -@dirrm share/ivan |