[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8418 - GNUnet/contrib/macosx
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8418 - GNUnet/contrib/macosx |
Date: |
Sat, 11 Apr 2009 05:40:28 -0600 |
Author: holindho
Date: 2009-04-11 05:40:28 -0600 (Sat, 11 Apr 2009)
New Revision: 8418
Added:
GNUnet/contrib/macosx/Pkg-postupgrade
GNUnet/contrib/macosx/Pkg-preflight
Modified:
GNUnet/contrib/macosx/build-osx-package.sh
Log:
kill daemon and run gnunet-update on package upgrade
Added: GNUnet/contrib/macosx/Pkg-postupgrade
===================================================================
--- GNUnet/contrib/macosx/Pkg-postupgrade (rev 0)
+++ GNUnet/contrib/macosx/Pkg-postupgrade 2009-04-11 11:40:28 UTC (rev
8418)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+/Library/Frameworks/GNUnet.framework/Versions/Current/bin/gnunet-update
+/bin/launchctl load /Library/LaunchDaemons/org.gnunet.gnunetd.plist
+
+exit 0
+
Property changes on: GNUnet/contrib/macosx/Pkg-postupgrade
___________________________________________________________________
Added: svn:executable
+ *
Added: GNUnet/contrib/macosx/Pkg-preflight
===================================================================
--- GNUnet/contrib/macosx/Pkg-preflight (rev 0)
+++ GNUnet/contrib/macosx/Pkg-preflight 2009-04-11 11:40:28 UTC (rev 8418)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# kill running daemon
+# done here instead of preupgrade, because it's sensible to kill it
+# even before the (potential) extractor upgrade from the metapackage
+/bin/launchctl unload /Library/LaunchDaemons/org.gnunet.gnunetd.plist
+# TODO: wait for the process to die
+/bin/sleep 5s
+
+exit 0
+
Property changes on: GNUnet/contrib/macosx/Pkg-preflight
___________________________________________________________________
Added: svn:executable
+ *
Modified: GNUnet/contrib/macosx/build-osx-package.sh
===================================================================
--- GNUnet/contrib/macosx/build-osx-package.sh 2009-04-11 06:12:34 UTC (rev
8417)
+++ GNUnet/contrib/macosx/build-osx-package.sh 2009-04-11 11:40:28 UTC (rev
8418)
@@ -15,6 +15,8 @@
mkdir -p "${RESOURCE_DIR}"
cp COPYING "${RESOURCE_DIR}/License.txt"
cp contrib/macosx/Pkg-IFRequirement.strings
"${RESOURCE_DIR}/IFRequirement.strings"
+cp contrib/macosx/Pkg-preflight "${RESOURCE_DIR}/preflight"
+cp contrib/macosx/Pkg-postupgrade "${RESOURCE_DIR}/postupgrade"
# final permissions
chown -R root "${COMPONENT_DIR}"/*
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8418 - GNUnet/contrib/macosx,
gnunet <=