aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAndrew Lewman <andrew@torproject.org>2008-05-29 00:14:37 +0000
committerAndrew Lewman <andrew@torproject.org>2008-05-29 00:14:37 +0000
commit932ef054d9fb55c36fc38e1e3182e55d5119e1f3 (patch)
tree3442e6de0a37c6d6c3a4a322ba696ba4aefa12da /contrib
parenta1aeaf308964a18a876120b97cabe35dc89f1d86 (diff)
downloadtor-932ef054d9fb55c36fc38e1e3182e55d5119e1f3.tar
tor-932ef054d9fb55c36fc38e1e3182e55d5119e1f3.tar.gz
geoip integrated into osx installer, tested and confirmed. forward
ported svn:r14791
Diffstat (limited to 'contrib')
-rw-r--r--contrib/osx/TorPostflight9
-rw-r--r--contrib/osx/package.sh14
2 files changed, 11 insertions, 12 deletions
diff --git a/contrib/osx/TorPostflight b/contrib/osx/TorPostflight
index 6dc95a059..77fc9de1c 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 8d78de5fa..89cfa79a6 100644
--- a/contrib/osx/package.sh
+++ b/contrib/osx/package.sh
@@ -24,7 +24,7 @@ PRIVOXY_PKG_ZIP=~/tmp/privoxyosx_setup_3.0.6.zip
# Where have we put the xpi and license for Torbutton? Edit this if your
# torbutton and torbutton license live somewhere else.
-TORBUTTON_PATH=~/tmp/torbutton-1.1.17-alpha.xpi
+TORBUTTON_PATH=~/tmp/torbutton-1.1.18-alpha.xpi
TORBUTTON_LIC_PATH=~/tmp/LICENSE
###
@@ -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"