summaryrefslogtreecommitdiff
path: root/print/acroread7/patches/patch-aa
blob: 512e5e5de12727b4e78ba00edfb0091ce00ca200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
$NetBSD: patch-aa,v 1.3 2006/04/09 09:53:59 wiz Exp $

--- INSTALL.orig	2005-11-07 12:05:16.000000000 +0000
+++ INSTALL
@@ -284,6 +284,8 @@ PrintRequiredFree()
 
         if [ `uname -s` = "Linux" ] ; then
           size=`ls -lLn "$i" | ( read perm links owner group size date ; echo $size )`
+        elif [ `uname -s|sed -e 's|.*\(...\)|\\1|'` = "BSD" -o `uname -s` = "DragonFly" ] ; 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
@@ -390,6 +392,8 @@ GetInstallDirectory ()
     AIX)
       defdir="/usr/lpp/Adobe/Acrobat7.0"
       ;;
+    NetBSD | DragonFly)
+      ;;
   esac
 
   while [ -z "$InstallDir" ] ; do
@@ -1061,6 +1065,20 @@ case "$OSname" in
     ReadDefaultNum="$ReadIntelLinuxNum"
     DefaultName="Intel/Linux"
     ;;
+  NetBSD | DragonFly)
+    MachArch=`uname -p`
+    case "$MachArch" in
+      i386)
+        ReadDefaultNum="$ReadIntelLinuxNum"
+        DefaultName="Intel/Linux"
+        ;;
+      sparc*)
+        ReadDefaultNum="$ReadSparcSolarisNum"
+        DefaultName="SPARC/Solaris 2.x"
+        ;;
+    esac
+    ;;
+
 esac
 
 if  [ -z "$ReadDefaultNum" ] ; then