summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-08-30 19:49:25 +0000
committerjlam <jlam@pkgsrc.org>2003-08-30 19:49:25 +0000
commit2f3bea477e597ca57f5919d5286137c31f858826 (patch)
tree3bc13b19337d0c1c08be67065d20ceb620fa5ea9 /net
parent7bdb2422136497980da09918af3edf3d78981442 (diff)
downloadpkgsrc-2f3bea477e597ca57f5919d5286137c31f858826.tar.gz
Use FILES_SUBST instead of manually tweaking the DEINSTALL script.
Diffstat (limited to 'net')
-rw-r--r--net/lambdamoo/DEINSTALL10
-rw-r--r--net/lambdamoo/Makefile7
2 files changed, 7 insertions, 10 deletions
diff --git a/net/lambdamoo/DEINSTALL b/net/lambdamoo/DEINSTALL
index 117455580a0..7b6adfc3abf 100644
--- a/net/lambdamoo/DEINSTALL
+++ b/net/lambdamoo/DEINSTALL
@@ -1,17 +1,15 @@
-#!/bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.1.1.1 2002/05/26 00:21:43 rh Exp $
-#
+# $NetBSD: DEINSTALL,v 1.2 2003/08/30 19:49:25 jlam Exp $
case $2 in
- DEINSTALL) cat << EOF
+DEINSTALL)
+ ${CAT} << EOF
===========================================================================
If you won't be using lambdamoo-1.8.1 any longer, you may want to remove:
* the following packages: lambdamoo-doc and lambdamoo-core
- * the following directory: __LAMBDAMOO_HOME__
+ * the following directory: @LAMBDAMOO_HOME@
===========================================================================
EOF
diff --git a/net/lambdamoo/Makefile b/net/lambdamoo/Makefile
index 99900909c2f..4410024a4cb 100644
--- a/net/lambdamoo/Makefile
+++ b/net/lambdamoo/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2003/07/17 22:51:18 grant Exp $
+# $NetBSD: Makefile,v 1.8 2003/08/30 19:49:25 jlam Exp $
DISTNAME= LambdaMOO-1.8.1
PKGNAME= lambdamoo-1.8.1
@@ -24,7 +24,8 @@ PKG_GROUPS= ${LAMBDAMOO_GROUP}
PKG_USERS= ${LAMBDAMOO_USER}:${LAMBDAMOO_GROUP}
_PKG_USER_HOME= ${LAMBDAMOO_HOME}
_PKG_USER_SHELL= ${SH}
-DEINSTALL_EXTRA_TMPL= ${WRKDIR}/DEINSTALL.out
+
+FILES_SUBST+= LAMBDAMOO_HOME=${LAMBDAMOO_HOME}
ALL_TARGET=
GNU_CONFIGURE= yes
@@ -33,8 +34,6 @@ pre-build:
${MV} ${WRKSRC}/restart.sh ${WRKSRC}/restart.sh.in
${SED} <${WRKSRC}/restart.sh.in >${WRKSRC}/restart.sh \
"s|__PREFIX__|${PREFIX}|g"
- ${SED} <${PKGDIR}/DEINSTALL >${DEINSTALL_EXTRA_TMPL} \
- "s|__LAMBDAMOO_HOME__|${LAMBDAMOO_HOME}|g"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/moo ${PREFIX}/sbin