summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2010-02-03 13:29:37 +0000
committertron <tron@pkgsrc.org>2010-02-03 13:29:37 +0000
commite0a5304f909df818954b21cb93add7da0af0211e (patch)
treeaa36d23d9cc8bed2c20e41d6165c9e1d4ba3e7c7 /lang/perl5
parent2d7e5fd1bebff975e1db577591f592969c68ce80 (diff)
downloadpkgsrc-e0a5304f909df818954b21cb93add7da0af0211e.tar.gz
Don't use "${PKG_PREFIX}" which is not set when this script gets run.
This avoids error messages from "perllink" while deinstalling (or updateing) a Perl module package. Fixed based on an analysis provided by Steven Drake on "tech-pkg".
Diffstat (limited to 'lang/perl5')
-rw-r--r--lang/perl5/files/deinstall.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/perl5/files/deinstall.tmpl b/lang/perl5/files/deinstall.tmpl
index 7a8e33322e0..e3fa291eaef 100644
--- a/lang/perl5/files/deinstall.tmpl
+++ b/lang/perl5/files/deinstall.tmpl
@@ -1,4 +1,4 @@
-# $NetBSD: deinstall.tmpl,v 1.1 2005/08/12 19:59:03 jlam Exp $
+# $NetBSD: deinstall.tmpl,v 1.2 2010/02/03 13:29:37 tron Exp $
case ${STAGE} in
DEINSTALL)
@@ -7,17 +7,17 @@ DEINSTALL)
# Remove the perllocal.pod file.
case "$archlib" in
- $prefix/*) archlib="${PKG_PREFIX}/${archlib#$prefix/}" ;;
+ $prefix/*) archlib="@PREFIX@/${archlib#$prefix/}" ;;
esac
${RM} -f $archlib/perllocal.pod
${RMDIR} -p $archlib 2>/dev/null || ${TRUE}
# Remove any symlinked bits that belong to this module.
- $scriptdir/perllink -f -p ${PKG_PREFIX} delete ${PERL5_PACKLIST}
+ $scriptdir/perllink -f -p @PREFIX@ delete ${PERL5_PACKLIST}
# If this is not the perl package, then re-link any perl bits
# back into place.
#
- @PERL5_COMMENT@$scriptdir/perllink -p ${PKG_PREFIX} add
+ @PERL5_COMMENT@$scriptdir/perllink -p @PREFIX@ add
;;
esac