aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lewman <andrew@torproject.org>2008-05-29 00:13:17 +0000
committerAndrew Lewman <andrew@torproject.org>2008-05-29 00:13:17 +0000
commit9225f60ed73934d759b5688ad0e5705fd3270960 (patch)
tree4ddfdf6e3f5ff920f7769380ec93204dab73e279
parent8ff53f98e5157fd98ac51e6704685f621345cfe7 (diff)
downloadtor-9225f60ed73934d759b5688ad0e5705fd3270960.tar.gz
tor-9225f60ed73934d759b5688ad0e5705fd3270960.zip
geoip integrated into osx installer, tested and confirmed.
svn:r14790
-rw-r--r--contrib/osx/TorPostflight9
-rw-r--r--contrib/osx/package.sh12
2 files changed, 10 insertions, 11 deletions
diff --git a/contrib/osx/TorPostflight b/contrib/osx/TorPostflight
index 6dc95a059a..77fc9de1c5 100644
--- a/contrib/osx/TorPostflight
+++ b/contrib/osx/TorPostflight
@@ -46,7 +46,7 @@ TORGROUP=daemon
TARGET=$2/Library/Tor
TORDIR=$TARGET/var/lib/tor
LOGFILE=/var/log/tor.log
-TORBUTTON_VERSION="1.1.17-alpha"
+TORBUTTON_VERSION="1.1.18-alpha"
# Check defaults for TARGET
if [ "$TARGET" == "//Library/Tor" ]; then
@@ -77,6 +77,11 @@ if [ ! -f $TARGET/torrc ]; then
cp $TARGET/torrc.sample $TARGET/torrc
fi
+# Put the geoip database into the datadir
+if [ ! -f $TORDIR/geoip ]; then
+ cp $PACKAGE_PATH/Contents/Resources/geoip $TORDIR/geoip
+fi
+
# Ensure symbolic links
cd /usr/bin
if [ -e /usr/bin/tor -a ! -L /usr/bin/tor ]; then
@@ -121,6 +126,8 @@ if [ -d /Library/StartupItems/Tor ]; then
echo "$TARGET" > /Library/StartupItems/Tor/Tor.loc
fi
+# This only works if the user installing us is an Admin user.
+# Otherwise, this will silently fail to install torbutton in firefox.
if [ -f /Applications/Firefox.app/Contents/MacOS/firefox ]; then
if [ -f /Library/Torbutton/torbutton-$TORBUTTON_VERSION.xpi ]; then
# Open firefox with a prompt to install the torbutton xpi
diff --git a/contrib/osx/package.sh b/contrib/osx/package.sh
index 70d99b2066..89cfa79a68 100644
--- a/contrib/osx/package.sh
+++ b/contrib/osx/package.sh
@@ -46,7 +46,7 @@ if [ -x /usr/bin/sw_vers ]; then
# 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.5") OS="leopard" ARCH="universal";;
"10.4") OS="tiger" ARCH="universal";;
"10.3") OS="panther" ARCH="ppc";;
"10.2") OS="jaguar" ARCH="ppc";;
@@ -81,9 +81,7 @@ done
### Make Tor package.
make install DESTDIR=$BUILD_DIR/tor_packageroot
-#mv $BUILD_DIR/tor_packageroot/Library/Tor/torrc.sample $BUILD_DIR/tor_packageroot/Library/Tor/torrc
cp contrib/osx/ReadMe.rtf $BUILD_DIR/tor_resources
-#cp contrib/osx/License.rtf $BUILD_DIR/tor_resources
chmod 755 contrib/osx/TorPostflight
cp contrib/osx/TorPostflight $BUILD_DIR/tor_resources/postflight
cp contrib/osx/addsysuser $BUILD_DIR/tor_resources/addsysuser
@@ -91,6 +89,7 @@ cp contrib/osx/Tor_Uninstaller.applescript $BUILD_DIR/tor_resources/Tor_Uninstal
cp contrib/osx/uninstall_tor_bundle.sh $BUILD_DIR/tor_resources/uninstall_tor_bundle.sh
cp contrib/osx/package_list.txt $BUILD_DIR/tor_resources/package_list.txt
cp contrib/osx/tor_logo.gif $BUILD_DIR/tor_resources/background.gif
+cp src/config/geoip $BUILD_DIR/tor_resources/geoip
cat <<EOF > $BUILD_DIR/tor_resources/Welcome.txt
Tor: an anonymous Internet communication system
@@ -103,12 +102,6 @@ EOF
DOC=$BUILD_DIR/tor_resources/documents
mkdir $DOC
mkdir $DOC/howto
-#cp doc/website/stylesheet.css doc/website/tor-doc-osx.html.* $DOC/howto
-#cp doc/website/tor-doc-server.html.* $DOC/howto
-#cp doc/website/tor-hidden-service.html.* $DOC/howto
-#cp doc/website/tor-switchproxy.html.* $DOC/howto
-#mkdir $DOC/img
-#cp doc/img/screenshot-osx* $DOC/img
cp AUTHORS $DOC/AUTHORS.txt
groff doc/tor.1.in -T ps -m man | pstopdf -i -o $DOC/tor-reference.pdf
groff doc/tor-resolve.1 -T ps -m man | pstopdf -i -o $DOC/tor-resolve.pdf
@@ -181,7 +174,6 @@ MPKG=$BUILD_DIR/output/Tor-$VERSION-$OS-$ARCH-Bundle.mpkg
mkdir -p "$MPKG/Contents/Resources"
echo -n "pmkrpkg1" > "$MPKG/Contents/PkgInfo"
cp contrib/osx/ReadMe.rtf "$MPKG/Contents/Resources"
-#cp contrib/osx/License.rtf "$MPKG/Contents/Resources"
cp contrib/osx/TorBundleInfo.plist "$MPKG/Contents/Info.plist"
cp contrib/osx/TorBundleWelcome.rtf "$MPKG/Contents/Resources/Welcome.rtf"
cp contrib/osx/TorBundleDesc.plist "$MPKG/Contents/Resources/Description.plist"