diff options
author | jlam <jlam@pkgsrc.org> | 2006-07-05 06:53:12 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-07-05 06:53:12 +0000 |
commit | 3ba41e8b0cf81719575381c547a3ec3f4987b846 (patch) | |
tree | c1cac8d3ff0a7fb5ff1a16e24073b5e91efd1aa7 /games/tetrinetx | |
parent | 668d96b7c197398fc444f270a43e1093a4a4c6e9 (diff) | |
download | pkgsrc-3ba41e8b0cf81719575381c547a3ec3f4987b846.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/tetrinetx')
-rw-r--r-- | games/tetrinetx/DEINSTALL | 39 | ||||
-rw-r--r-- | games/tetrinetx/Makefile | 5 |
2 files changed, 15 insertions, 29 deletions
diff --git a/games/tetrinetx/DEINSTALL b/games/tetrinetx/DEINSTALL index 498faaf2c8c..e21e71ecd38 100644 --- a/games/tetrinetx/DEINSTALL +++ b/games/tetrinetx/DEINSTALL @@ -1,27 +1,14 @@ -#!/bin/sh -# $NetBSD: DEINSTALL,v 1.1.1.1 2006/02/14 17:03:54 rillig Exp $ - -PKGNAME=$1 -STAGE=$2 -LIST="${PKG_PREFIX}/share/tetrinetx/game.log" - -case ${STAGE} in - DEINSTALL) - for to_trash in ${LIST}; do - if [ -d "${to_trash}" ]; then - rm -rf ${to_trash}/* - elif [ -f "${to_trash}" ]; then - rm ${to_trash} - fi - done - ;; - - POST-DEINSTALL) - ;; - - *) - echo "Unexpected argument: ${STAGE}" - exit 1 - ;; +# $NetBSD: DEINSTALL,v 1.2 2006/07/05 06:53:13 jlam Exp $ + +case "${STAGE}" in +DEINSTALL) + LIST="${PKG_PREFIX}/share/tetrinetx/game.log" + for to_trash in ${LIST}; do + if ${TEST} -d "$to_trash"; then + ${RM} -fr $to_trash/* + elif ${TEST} -f "$to_trash"; then + ${RM} -f $to_trash + fi + done + ;; esac -exit 0 diff --git a/games/tetrinetx/Makefile b/games/tetrinetx/Makefile index 3ea2b62dc9d..261d15230b0 100644 --- a/games/tetrinetx/Makefile +++ b/games/tetrinetx/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.2 2006/03/14 01:14:29 jlam Exp $ +# $NetBSD: Makefile,v 1.3 2006/07/05 06:53:13 jlam Exp $ DISTNAME= tetrinetx-1.13.16+qirc-1.40c PKGNAME= tetrinetx-1.13.16 +PKGREVISION= 1 CATEGORIES= games MASTER_SITES= http://tetrinetx.sourceforge.net/ @@ -13,8 +14,6 @@ WRKSRC= ${WRKDIR}/${DISTNAME} SHAREDIR= ${PREFIX}/share/tetrinetx BINARY= tetrix.netbsd RCD_SCRIPTS= tetrinetx -DEINSTALL_SRC= ${PKGDIR}/DEINSTALL -INSTALL_SRC= # empty LIBS.SunOS+= -lsocket -lnsl -lresolv |