macos: packaging support for MacOS X 10.13

This commit introduces the new set of changes / files required to
successfully create the dmg installer on OS X 10.13 "High Sierra".

Change-Id: Id9da3cf959627a13d8cfd1d1d7412820e46ad63e
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>
This commit is contained in:
Marcio Barbosa 2017-10-06 10:01:12 -03:00 committed by Benjamin Kaduk
parent 804c9cbf50
commit e533d07370
4 changed files with 31 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1 @@
"16" = "This OpenAFS release requires High Sierra (10.13)";

View File

@ -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.}

View 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