]> git.michaelhowe.org Git - packages/o/openafs.git/commit
macos: use pkgbuild to build the package on 10.10/10.11
authorMarcio Barbosa <mbarbosa@sinenomine.net>
Mon, 18 Jul 2016 15:27:19 +0000 (12:27 -0300)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 3 Aug 2016 14:28:09 +0000 (10:28 -0400)
commit64f6a1cb79360fda72cb26a738ad42ba4b129970
treee555286db548c7d0c1c437ac8251c1ee92f44b4a
parent1a36904673fdce23f630fbf601a07923fae372c3
macos: use pkgbuild to build the package on 10.10/10.11

PackageMaker is no longer part of OS X. As a result, it
is not possible to build the package on OS X 10.10 and
OS X 10.11 using the existing code.

To solve this problem, a new script, along with a couple
of new files, are provided.

- pkgbuild.sh

This script uses the command line tools pkgbuild and
productbuild to build the package on OS X 10.10 and
OS X 10.11. By default, the package built by this
script will not be signed. Optionally, the package
might be signed.

- Distribution.xml

This file is nothing more than an XML file used by
productbuild. It is mainly used to configure how the
installer will look and behave.

- conclusion.txt

Contains the text that is displayed by Installer at
the end of the installation process. Only used by
El Capitan and further.

- Uninstall.14.15

This script can be used by OS X 10.10/10.11 users
to uninstall OpenAFS.

Notes:

- This work is based on a patch made by Brandon Allbery
  <ballbery@sinenomine.net> with fixes and updates from
  Andrew Deason <adeason@dson.org>.

- El Capitan and further prevent us from touching
  /usr/bin directly. As a result, /opt is used.

- If the package is not signed, the user will have
  to disable the OS X security protections. Otherwise,
  the client will not work.

- Now we have two different scripts to build the
  package on OS X. For OS X 10.10 and newer versions,
  pkgbuild.sh will be used. For older versions,
  the existing buildpkg.sh will be used.

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

Change-Id: I292dfc49cbc541badcda0c450c941f88a5fbf306
Reviewed-on: https://gerrit.openafs.org/12335
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Makefile.in
configure.ac
src/afsd/afs.rc.darwin
src/packaging/MacOS/Distribution.xml.in [new file with mode: 0644]
src/packaging/MacOS/OpenAFS.post_install
src/packaging/MacOS/Uninstall.14.15 [new file with mode: 0755]
src/packaging/MacOS/conclusion.txt [new file with mode: 0644]
src/packaging/MacOS/pkgbuild.sh.in [new file with mode: 0644]