diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-04-24 22:54:45 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-04-24 22:54:45 +0000 |
commit | f401030d89005de5540fd3cc558544f2d7435fca (patch) | |
tree | 556987f070867e9644de200b3acc53d1f960b483 /lang | |
parent | b54443f75353ec0ffd2d67953bc2120cdd831c88 (diff) | |
download | pkgsrc-f401030d89005de5540fd3cc558544f2d7435fca.tar.gz |
Make sure PKGDIRMODE is defined before checking its value.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/perl58/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/perl58/Makefile b/lang/perl58/Makefile index b7b1031d46a..8993ad85422 100644 --- a/lang/perl58/Makefile +++ b/lang/perl58/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.41 2004/04/24 21:04:43 tv Exp $ +# $NetBSD: Makefile,v 1.42 2004/04/24 22:54:45 xtraeme Exp $ # The following two variables should have empty values unless we're # building a perl snapshot or release candidate. @@ -216,13 +216,13 @@ MESSAGE_SUBST+= PERL5_SITELIB=${PERL5_SITELIB} # unfortunately, hardcoded in quite a few places in Perl. So let's substitute # what pkgsrc said instead. post-patch: -.if ${PKGDIRMODE} != "755" -.for f in installhtml installman installperl lib/ExtUtils/Install.pm +.if defined(PKGDIRMODE) && empty(PKGDIRMODE:M755) +. for f in installhtml installman installperl lib/ExtUtils/Install.pm cd ${WRKSRC} && \ ${MV} -f $f $f.dirmode && \ ${SED} -e 's/755/${PKGDIRMODE}/g;/umask(/d' \ $f.dirmode >$f -.endfor +. endfor .endif # It's tough to guess which hints file will be used, so add our modifications |