summaryrefslogtreecommitdiffstats
path: root/osx/postflight
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-11-20 15:31:30 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-11-20 15:31:30 +0000
commit0f07fb09115d71990bcf3844782ce4174f2158ff (patch)
treef11bd619490e8d2a8a6c82bb32c7050aa448829e /osx/postflight
parentddc74a543f53d4197e990def51628f961af5b8cd (diff)
downloadbcfg2-0f07fb09115d71990bcf3844782ce4174f2158ff.tar.gz
bcfg2-0f07fb09115d71990bcf3844782ce4174f2158ff.tar.bz2
bcfg2-0f07fb09115d71990bcf3844782ce4174f2158ff.zip
OSX: New packaging framework
This commit allows you to build both client/server packages for OS X by changing to the osx directory and running make client/server, respectively. Hopefully make it easier to setup bcfg2 clients on OS X since the most current packages I could find were still 0.9.4. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5584 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'osx/postflight')
-rw-r--r--osx/postflight14
1 files changed, 14 insertions, 0 deletions
diff --git a/osx/postflight b/osx/postflight
new file mode 100644
index 000000000..52a948a2a
--- /dev/null
+++ b/osx/postflight
@@ -0,0 +1,14 @@
+#!/bin/bash
+#
+# ${3} is the destination volume so that this works correctly
+# when being installed to volumes other than the current OS.
+
+# set proper perms
+/usr/bin/find "${3}"{SITELIBDIR}/Bcfg2* -type f -exec chmod 0644 {} \;
+chmod 0644 "${3}"{DATADIR}/share/man/man1/bcfg2.1
+chmod 0644 "${3}"{DATADIR}/share/man/man5/bcfg2.conf.5
+chmod 0644 "${3}"/Library/LaunchDaemons/{LAUNCHD}
+chmod 0755 "${3}"/usr/local/bin/bcfg2
+
+# add the launchd script
+/bin/launchctl load -w "${3}"/Library/LaunchDaemons/{LAUNCHD}