Packaging support for MacOS X 10.10 "Yosemite"
authorChrister Grafström <christer.grafstrom@ltu.se>
Wed, 29 Oct 2014 07:05:06 +0000 (08:05 +0100)
committerD Brashear <shadow@your-file-system.com>
Wed, 29 Oct 2014 18:19:42 +0000 (14:19 -0400)
This is just the packaging part of the patch submitted in the
RT ticket. The configuration part is in the preceding change.

FIXES 131946

Change-Id: Ic5b200b1f54d7f9f9552b0f9e2b881c3f0af9bc2
Reviewed-on: http://gerrit.openafs.org/11561
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: D Brashear <shadow@your-file-system.com>

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

diff --git a/src/packaging/MacOS/InstallationCheck.14 b/src/packaging/MacOS/InstallationCheck.14
new file mode 100644 (file)
index 0000000..7ec78b4
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+majorvers=`uname -r | sed 's/\..*//'`
+if [ $majorvers -ne 14 ]; 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.14 b/src/packaging/MacOS/InstallationCheck.strings.14
new file mode 100644 (file)
index 0000000..87507e8
--- /dev/null
@@ -0,0 +1 @@
+"16" = "This OpenAFS release requires Yosemite (10.10)";
diff --git a/src/packaging/MacOS/ReadMe.rtf.14 b/src/packaging/MacOS/ReadMe.rtf.14
new file mode 100644 (file)
index 0000000..b5f70c2
--- /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.10 (Yosemite) and is not recommended for use with any other version.}
index 28a4f09..93b7049 100644 (file)
@@ -46,6 +46,10 @@ fi
 if [ $majorvers -eq 13 ]; then
   RELNAME="Mavericks"
 fi
+if [ $majorvers -eq 14 ]; then
+  RELNAME="Yosemite"
+fi
+
 
 PKGROOT=$CURDIR/pkgroot
 PKGRES=$CURDIR/pkgres