pkgsrc/print/acroread7/patches/patch-aa
2007-08-02 22:53:16 +00:00

52 lines
1.5 KiB
Text

$NetBSD: patch-aa,v 1.5 2007/08/02 22:53:16 wiz Exp $
--- INSTALL.orig 2006-05-23 10:33:34.000000000 +0900
+++ INSTALL 2006-09-06 21:23:16.000000000 +0900
@@ -287,6 +287,8 @@
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
@@ -398,6 +400,8 @@
AIX)
defdir="/usr/lpp/Adobe/Acrobat7.0"
;;
+ NetBSD | DragonFly)
+ ;;
esac
while [ -z "$InstallDir" ] ; do
@@ -806,6 +810,8 @@
echo "$ST_IBP_INFO_22_1" \"$ReadInstallDir/Browser/install_browser_plugin\" "$ST_IBP_INFO_22_2"
fi
+ return
+
rm -f /usr/bin/acroread 2>/dev/null
ln -s "$ReadInstallDir"/bin/acroread /usr/bin/acroread 2>/dev/null
@@ -1073,6 +1079,20 @@
ReadDefaultNum="$ReadIntelLinuxNum"
DefaultName="Intel/Linux"
;;
+ NetBSD | DragonFly)
+ MachArch=`uname -p`
+ case "$MachArch" in
+ i386|x86_64)
+ ReadDefaultNum="$ReadIntelLinuxNum"
+ DefaultName="Intel/Linux"
+ ;;
+ sparc*)
+ ReadDefaultNum="$ReadSparcSolarisNum"
+ DefaultName="SPARC/Solaris 2.x"
+ ;;
+ esac
+ ;;
+
esac
if [ -z "$ReadDefaultNum" ] ; then