From 3ba41e8b0cf81719575381c547a3ec3f4987b846 Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 5 Jul 2006 06:53:12 +0000 Subject: 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 ...". --- games/ivan/DEINSTALL | 26 ++++++++++++++------------ games/ivan/Makefile | 8 +++----- games/ivan/PLIST | 3 +-- 3 files changed, 18 insertions(+), 19 deletions(-) (limited to 'games/ivan') 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 -- cgit v1.2.3