[or-cvs] r10005: Include the kqueue update in this branch as well. (tor/trunk/contrib/osx)
phobos at seul.org
phobos at seul.org
Mon Apr 23 04:11:12 UTC 2007
Author: phobos
Date: 2007-04-23 00:10:52 -0400 (Mon, 23 Apr 2007)
New Revision: 10005
Modified:
tor/trunk/contrib/osx/Tor
Log:
Include the kqueue update in this branch as well.
Modified: tor/trunk/contrib/osx/Tor
===================================================================
--- tor/trunk/contrib/osx/Tor 2007-04-23 03:04:46 UTC (rev 10004)
+++ tor/trunk/contrib/osx/Tor 2007-04-23 04:10:52 UTC (rev 10005)
@@ -18,6 +18,28 @@
TORCMD=$TORDIR/tor
TORLOG=/var/log/tor.log
+## Determine OSX Version
+# map version to name
+if [ -x /usr/bin/sw_vers ]; then
+# This is poor, yet functional. We don't care about the 3rd number in
+# the OS version
+ OSVER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2`
+ case "$OSVER" in
+ "10.5") OS="leopard" ARCH="universal";;
+ "10.4") OS="tiger" ARCH="universal";;
+ "10.3") OS="panther" ARCH="ppc";;
+ "10.2") OS="jaguar" ARCH="ppc";;
+ "10.1") OS="puma" ARCH="ppc";;
+ "10.0") OS="cheetah" ARCH="ppc";;
+ esac
+else
+ OS="unknown"
+fi
+
+if [ $ARCH != "universal" ]; then
+ export EVENT_NOKQUEUE=1
+fi
+
##
# Tor Service
##
More information about the tor-commits
mailing list