pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/tools gzip and gunzip don't exist on IRIX 5 so wrap...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/167409083dec
branches:  trunk
changeset: 493856:167409083dec
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun May 15 22:31:50 2005 +0000

description:
gzip and gunzip don't exist on IRIX 5 so wrap then in existence checks.
Ditto for mailx.  Lastly, /usr/bsd/zcat isn't gzcat (doesn't understand
gzipped files), so don't use it as a gzcat replacement.  Changes from
Georg Schwarz in private email.

diffstat:

 mk/tools/tools.IRIX.mk |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r 47d724fddf83 -r 167409083dec mk/tools/tools.IRIX.mk
--- a/mk/tools/tools.IRIX.mk    Sun May 15 22:23:09 2005 +0000
+++ b/mk/tools/tools.IRIX.mk    Sun May 15 22:31:50 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: tools.IRIX.mk,v 1.11 2005/05/14 10:17:10 rillig Exp $
+# $NetBSD: tools.IRIX.mk,v 1.12 2005/05/15 22:31:50 jlam Exp $
 #
 # System-supplied tools for the IRIX operating system.
 
@@ -23,20 +23,26 @@
 TOOLS_PLATFORM.file?=          /usr/bin/file
 TOOLS_PLATFORM.find?=          /sbin/find
 TOOLS_PLATFORM.grep?=          /sbin/grep
+.if exists(/usr/sbin/gunzip)
 TOOLS_PLATFORM.gunzip?=                /usr/sbin/gunzip -f
+.endif
 .if exists(/usr/sbin/gzcat)
 TOOLS_PLATFORM.gzcat?=         /usr/sbin/gzcat
-.elif exists(/usr/bsd/zcat)
-TOOLS_PLATFORM.gzcat?=         /usr/bsd/zcat
 .endif
+.if exists(/usr/sbin/gzip)
 TOOLS_PLATFORM.gzip?=          /usr/sbin/gzip -nf ${GZIP}
+.endif
 TOOLS_PLATFORM.head?=          /usr/bsd/head
 TOOLS_PLATFORM.hostname?=      /usr/bsd/hostname
 TOOLS_PLATFORM.id?=            /usr/bin/id
 TOOLS_PLATFORM.ln?=            /sbin/ln
 TOOLS_PLATFORM.ls?=            /sbin/ls
 TOOLS_PLATFORM.m4?=            /sbin/m4
+.if exists(/usr/sbin/mailx)
 TOOLS_PLATFORM.mail?=          /usr/sbin/mailx
+.elif exists(/usr/bin/mail)
+TOOLS_PLATFORM.mail?=          /usr/bin/mail
+.endif
 TOOLS_PLATFORM.mkdir?=         /sbin/mkdir -p
 TOOLS_PLATFORM.mv?=            /sbin/mv
 TOOLS_PLATFORM.nice?=          /sbin/nice



Home | Main Index | Thread Index | Old Index