pkgsrc/print/acroread5/patches/patch-aa
mrg b284d71f77 upgrade to acroread 5.09. from the README:
A security patch was applied that solves a couple of problems
reported with malformed uuencoded pdf files.


also, enable installation on netbsd/sparc64 for the solaris version.
2004-07-24 14:43:12 +00:00

52 lines
1.4 KiB
Text

$NetBSD: patch-aa,v 1.2 2004/07/24 14:43:12 mrg Exp $
--- INSTALL.orig Tue Jul 2 08:09:57 2002
+++ INSTALL
@@ -82,7 +82,7 @@ OutputLicense ()
fi
TypeCheck $PAGER
- if [ $? -ne 0 ] || [ -z "$PAGER" ] ; then
+ if [ $? -eq 0 ] || [ -z "$PAGER" ] ; then
command=cat
TypeCheck pg
if [ $? -eq 0 ] ; then
@@ -135,6 +135,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|sed -e 's|.*\(...\)|\\1|'` = "BSD" ] ; 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
@@ -276,6 +278,8 @@ GetInstallDirectory ()
AIX)
defdir="/usr/lpp/Acrobat5"
;;
+ NetBSD)
+ ;;
esac
while [ -z "$InstallDir" ] ; do
@@ -528,6 +532,20 @@ case "$OSname" in
ReadDefaultNum="$ReadIntelLinuxNum"
DefaultName="Intel/Linux"
;;
+ NetBSD)
+ 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