]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Packaging support for MacOS X 10.9 "Mavericks".
authorKen Hornstein <kenh@cmf.nrl.navy.mil>
Thu, 5 Dec 2013 18:53:56 +0000 (13:53 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Fri, 20 Dec 2013 15:19:37 +0000 (07:19 -0800)
Based on work originally done by Matt Haught <dmhaught@ncsu.edu>.

Reviewed-on: http://gerrit.openafs.org/10539
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit cb53d255a6285c884c6a5ea9a20427327b1ab9b3)

Reviewed-on: http://gerrit.openafs.org/10542
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
(cherry picked from commit 77826dd3eeb5355834e073553462856df64b9e81)

Change-Id: Ib609dfbaa337f0e5046e9a0d03aebbbfdf26873a
Reviewed-on: http://gerrit.openafs.org/10610
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/packaging/MacOS/InstallationCheck.13 [new file with mode: 0644]
src/packaging/MacOS/InstallationCheck.strings.13 [new file with mode: 0644]
src/packaging/MacOS/ReadMe.rtf.13 [new file with mode: 0644]
src/packaging/MacOS/buildpkg.sh.in

diff --git a/src/packaging/MacOS/InstallationCheck.13 b/src/packaging/MacOS/InstallationCheck.13
new file mode 100644 (file)
index 0000000..accb253
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+majorvers=`uname -r | sed 's/\..*//'`
+if [ $majorvers -ne 13 ]; 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.13 b/src/packaging/MacOS/InstallationCheck.strings.13
new file mode 100644 (file)
index 0000000..26b9e8f
--- /dev/null
@@ -0,0 +1 @@
+"16" = "This OpenAFS release requires Mountain Lion (10.9)";
diff --git a/src/packaging/MacOS/ReadMe.rtf.13 b/src/packaging/MacOS/ReadMe.rtf.13
new file mode 100644 (file)
index 0000000..fadf33f
--- /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.9 (Mavericks) and is not recommended for use with any other version.}
index ca20c813db3abeb7af77d3a68b937409666f1ce8..56b992358256f0fcd7fa3097b9dfcbbde4e9d4a1 100644 (file)
@@ -43,6 +43,9 @@ fi
 if [ $majorvers -eq 12 ]; then
   RELNAME="MountainLion"
 fi
+if [ $majorvers -eq 13 ]; then
+  RELNAME="Mavericks"
+fi
 
 PKGROOT=$CURDIR/pkgroot
 PKGRES=$CURDIR/pkgres