openbsd-ports/print/acroread/patches/patch-aa
2001-02-13 20:15:35 +00:00

60 lines
2.0 KiB
Plaintext

--- INSTALL.orig Thu Jan 27 01:36:14 2000
+++ INSTALL Tue Feb 13 17:04:34 2001
@@ -115,6 +115,8 @@ PrintRequiredFree()
if [ "$i" -a -f "$i" ] ; then
if [ `uname -s` = "Linux" ] ; then
size=`ls -lLn "$i" | ( read perm links owner group size date ; echo $size )`
+ elif [ `uname -s` = "OpenBSD" ] ; then
+ size=`ls -lL "$i" | ( read perm links owner group size date ; echo $size )`
else
size=`ls -lLon "$i" | ( read perm links owner size date ; echo $size )`
fi
@@ -157,9 +159,9 @@ ExtractFiles ()
uid=`expr "$id_out" : 'uid=[0-9]*(\([^)]*\))'`
gid=`expr "$id_out" : '[^ ]* gid=[0-9]*(\([^)]*\))'`
if [ "$uid" = "root" ] ; then
- ( cd "$1" ; tar xfo "$2" ; chown -R $uid . ; chgrp -R $gid . )
+ ( cd "$1" ; tar xf "$2" ; chown -R $uid . ; chgrp -R $gid . )
else
- ( cd "$1" ; tar xfo "$2" )
+ ( cd "$1" ; tar xf "$2" )
fi
}
@@ -198,7 +200,7 @@ InstallBin()
case "$product" in
Exchange|Reader)
- replacement="$topdir"/"$product"
+ replacement="${TRUEPREFIX}/Acrobat4"/"$product"
;;
Distillr)
replacement="$topdir"
@@ -490,7 +492,7 @@ InstallReader()
SearchPlatformTar="$3"
CustomPlatformTar="$4"
- OutputLicense "$ReadLicense"
+# OutputLicense "$ReadLicense"
ReadLicense=""
PrintRequiredFree "$ReadTar" "$SearchTar" "$CustomTar" \
@@ -563,7 +565,7 @@ case "${ScriptDirectory}" in
*) ScriptDirectory="$CurrentDirectory"/"$ScriptDirectory" ;;
esac
-if [ "`type uname`" != "uname not found" ] ; then
+if [ "`uname`" != "uname not found" ] ; then
OSname=`uname -s`
if [ "$OSname" = "AIX" ] ; then
OSrelease=`uname -a | ( read name host minor major foo ; echo $major.$minor )`
@@ -1048,7 +1050,7 @@ case "$OSname" in
DistDefaultNum="$DistIntelBSDINum"
DefaultName="Intel/BSDI"
;;
- Linux)
+ OpenBSD|Linux)
AcroDefaultNum="$AcroIntelLinuxNum"
ExchDefaultNum="$ExchIntelLinuxNum"
ReadDefaultNum="$ReadIntelLinuxNum"