macos: packaging support for MacOS X 10.13 32/12832/2
authorMarcio Barbosa <mbarbosa@sinenomine.net>
Fri, 6 Oct 2017 13:01:12 +0000 (10:01 -0300)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 1 Feb 2018 11:43:55 +0000 (06:43 -0500)
This commit introduces the new set of changes / files required to
successfully create the dmg installer on OS X 10.13 "High Sierra".

Reviewed-on: https://gerrit.openafs.org/12742
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit e533d0737058940d59d93467c9b4d6d3ec2834e6)

Reviewed-on: https://gerrit.openafs.org/12826
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 5857724bf60e7706bcefde63d8fa0c7b2119e662)

Change-Id: I7b3a3493a78f9741f9e88ae95929960958e5a13d
Reviewed-on: https://gerrit.openafs.org/12832
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>

src/packaging/MacOS/InstallationCheck.17 [new file with mode: 0644]
src/packaging/MacOS/InstallationCheck.strings.17 [new file with mode: 0644]
src/packaging/MacOS/ReadMe.rtf.17 [new file with mode: 0644]
src/packaging/MacOS/pkgbuild.sh.in

diff --git a/src/packaging/MacOS/InstallationCheck.17 b/src/packaging/MacOS/InstallationCheck.17
new file mode 100644 (file)
index 0000000..805f5a8
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+majorvers=`uname -r | sed 's/\..*//'`
+if [ $majorvers -ne 17 ]; then
+       exit 112
+fi
+
+# check for temporary versions of ThisCell and CellAlias
+# and move them aside
+tmpthiscell=/private/tmp/org.OpenAFS.Install.ThisCell.$USER
+tmpcellalias=/private/tmp/org.OpenAFS.Install.CellAlias.$USER
+date=`date +%Y%m%d%H%M`
+if [ -e $tmpthiscell ]; then
+    mv -f $tmpthiscell $tmpthiscell.$date
+fi
+if [ -e $tmpcellalias ]; then
+    mv -f $tmpcellalias $tmpcellalias.$date
+fi
+
+exit 0
diff --git a/src/packaging/MacOS/InstallationCheck.strings.17 b/src/packaging/MacOS/InstallationCheck.strings.17
new file mode 100644 (file)
index 0000000..bee2ab1
--- /dev/null
@@ -0,0 +1 @@
+"16" = "This OpenAFS release requires High Sierra (10.13)";
diff --git a/src/packaging/MacOS/ReadMe.rtf.17 b/src/packaging/MacOS/ReadMe.rtf.17
new file mode 100644 (file)
index 0000000..94181b6
--- /dev/null
@@ -0,0 +1,7 @@
+{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf320
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\margl1440\margr1440\vieww9000\viewh9000\viewkind0
+\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
+
+\f0\fs24 \cf0 This release of OpenAFS is targeted at MacOS 10.13 (High Sierra) and is not recommended for use with any other version.}
index 36ec5d2..2a3f4a0 100644 (file)
@@ -131,6 +131,10 @@ elif [ x"$majorvers" = x16 ]; then
     RELNAME="Sierra"
     THISREL=12
 
+elif [ x"$majorvers" = x17 ]; then
+    RELNAME="HighSierra"
+    THISREL=13
+
 elif [ x"$majorvers" = x ] ; then
     echo "Error running uname" >&2
     exit 1