Permalink
Cannot retrieve contributors at this time
63 lines (57 sloc)
2.62 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| ### Commented entries have reasonable defaults. | |
| ### Uncomment to edit them. | |
| # Source: <source package name; defaults to package name> | |
| Section: misc | |
| Priority: optional | |
| # Homepage: <enter URL here; no default> | |
| Standards-Version: 3.9.2 | |
| Package: torbrowser | |
| Version: 2.3.25-2 | |
| Maintainer: Micah Lee <micahflee@riseup.net> | |
| # Pre-Depends: <comma-separated list of packages> | |
| # Depends: <comma-separated list of packages> | |
| # Recommends: <comma-separated list of packages> | |
| # Suggests: <comma-separated list of packages> | |
| # Provides: <comma-separated list of packages> | |
| # Replaces: <comma-separated list of packages> | |
| Architecture: amd64 | |
| # Copyright: <copyright file; defaults to GPL2> | |
| # Changelog: <changelog file; defaults to a generic changelog> | |
| # Readme: <README.Debian file; defaults to a generic one> | |
| # Extra-Files: <comma-separated list of additional files for the doc directory> | |
| # Files: <pair of space-separated paths; First is file to include, second is destination> | |
| # <more pairs, if there's more than one file to include. Notice the starting space> | |
| Description: Tor Browser Bundle | |
| An attempt to package TBB as a deb. | |
| Files: torbrowser-bin /usr/bin | |
| tor-browser-gnu-linux-x86_64-2.3.25-2-dev-en-US.tar.gz /usr/lib/torbrowser | |
| start-tor-browser /usr/lib/torbrowser | |
| torbrowser.desktop /usr/share/applications | |
| torbrowser32.xpm /usr/share/pixmaps | |
| torbrowser80.xpm /usr/share/pixmaps | |
| File: postinst | |
| #!/bin/sh | |
| echo 'Extracting TBB tarball' | |
| cd /usr/lib/torbrowser | |
| rm -rf tbb | |
| tar -xf tor-browser-gnu-linux-x86_64-2.3.25-2-dev-en-US.tar.gz | |
| mv tor-browser_en-US tbb | |
| chmod 755 /usr/lib/torbrowser/tbb/Data/Tor/ | |
| echo 'Modifying TBB' | |
| cp /usr/lib/torbrowser/start-tor-browser /usr/lib/torbrowser/tbb | |
| # I started out making trying to modify start-tor-browser with a bunch of grep and sed, | |
| # but it got really hacky. It would be very simple to change that script in a future | |
| # release to be easily modifyable with this script. But for now I'm just packaging | |
| # my own version. | |
| #echo 'Modifying TBB' | |
| #mv tbb/start-tor-browser tbb/start-tor-browser.bak | |
| #cat tbb/start-tor-browser.bak | head -n 1 > tbb/start-tor-browser | |
| #echo "DATA_DIR=\$HOME/.torbrowser/Data" >> tbb/start-tor-browser | |
| #echo "TOR_HOME_DIR=\$HOME/.torbrowser" >> tbb/start-tor-browser | |
| #echo "TBB_DIR=/usr/lib/torbrowser/tbb" >> tbb/start-tor-browser | |
| #cat tbb/start-tor-browser.bak | tail -n +2 | sed 's/--datadir Data/--datadir \$DATA_DIR/' | sed 's/cd "${HOME}"/cd "${TOR_HOME_DIR}"/' | sed 's/\.\/App\/vidalia/$TBB_DIR\/App\/vidalia/' >> tbb/start-tor-browser | |
| #rm tbb/start-tor-browser.bak | |
| #chmod 755 tbb/start-tor-browser | |
| File: postrm | |
| #!/bin/sh | |
| rm -rf /usr/lib/torbrowser/tbb |