diff options
author | tron <tron> | 2012-03-04 10:26:57 +0000 |
---|---|---|
committer | tron <tron> | 2012-03-04 10:26:57 +0000 |
commit | d47a669c92b3804dbb0f599c11e49e45ba814b0b (patch) | |
tree | d96994ef8f87ad8c2abebcaf35f2a646286a0522 /lang | |
parent | 5cc1d19772803286fe03f8ce945eeac1ffaca922 (diff) | |
download | pkgsrc-d47a669c92b3804dbb0f599c11e49e45ba814b0b.tar.gz |
Teach perllink(1) to transparently handle the case where a file has been
compressed with "gzip". This stops it from creating a lot of broken
symbolic links if "MANZ" is defined.
Bump package revision because of this change.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/perl5/Makefile | 4 | ||||
-rw-r--r-- | lang/perl5/files/perllink.in | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile index 7d654340e28..409de1896cc 100644 --- a/lang/perl5/Makefile +++ b/lang/perl5/Makefile @@ -1,10 +1,10 @@ -# $NetBSD: Makefile,v 1.179 2012/02/23 13:00:23 fhajny Exp $ +# $NetBSD: Makefile,v 1.180 2012/03/04 10:26:57 tron Exp $ .include "license.mk" .include "Makefile.common" COMMENT= Practical Extraction and Report Language -PKGREVISION= 4 +PKGREVISION= 5 PKG_DESTDIR_SUPPORT= user-destdir diff --git a/lang/perl5/files/perllink.in b/lang/perl5/files/perllink.in index 0a6d00712cb..bd0a9cbc3d5 100644 --- a/lang/perl5/files/perllink.in +++ b/lang/perl5/files/perllink.in @@ -1,5 +1,5 @@ #!@SH@ -# $NetBSD: perllink.in,v 1.3 2006/07/19 18:10:32 jlam Exp $ +# $NetBSD: perllink.in,v 1.4 2012/03/04 10:26:57 tron Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -136,6 +136,10 @@ destman1dir="$opt_prefix/$pkgmandir/man1" echo __dummy__ | $perlprog -pe '0' $opt_packlists | { while read file junk; do + if [ ! -f "$file" ] && [ -f "$file.gz" ]; then + file="$file.gz" + fi + case "$file" in $scriptdir/*|$sitescript/*|$vendorscript/*) destdir="$destbindir" ;; $man1dir/*|$siteman1dir/*|$vendorman1dir/*) destdir="$destman1dir" ;; |