[Pkg-privacy-commits] [torbrowser-launcher] 205/476: added fedora/RPM packaging support

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository torbrowser-launcher.

commit b9daddeb765deaee24ad03338e74a3db8060fe61
Author: Micah Lee <micah at micahflee.com>
Date:   Thu May 1 21:29:13 2014 -0400

    added fedora/RPM packaging support
---
 README.md                            | 56 ++++++++++++++++++------------------
 build_and_install.sh => build_deb.sh |  8 ++----
 build_rpm.sh                         | 14 +++++++++
 3 files changed, 45 insertions(+), 33 deletions(-)

diff --git a/README.md b/README.md
index 586b99f..4144c53 100644
--- a/README.md
+++ b/README.md
@@ -1,31 +1,36 @@
-Tor Browser Launcher
-====================
-Tor Browser Launcher is intended to make the Tor Browser Bundle (TBB) easier to
-maintain and use for GNU/Linux users. You install ```torbrowser-launcher``` from your
-distribution's package manager and it handles everything else, including:
-
-* Downloading the most recent version of TBB for you, in your language and for
-  your architecture
+# Tor Browser Launcher
+
+Tor Browser Launcher is intended to make the Tor Browser Bundle (TBB) easier to maintain and use for GNU/Linux users. You install ```torbrowser-launcher``` from your distribution's package manager and it handles everything else, including:
+
+* Downloading the most recent version of TBB for you, in your language and for your architecture
 * Automatically updating (while preserving your bookmarks and preferences)
 * Verifying the TBB's [GnuPG signature](http://www.gnupg.org/gph/en/manual/x135.html)
 * Adding a "Tor Browser" application launcher to your desktop environment's menu
 
-Tor Browser Launcher isn't in any Debian repositories yet, but it will be soon.
+If you use Ubuntu, you can install it now from my PPA (see "Installing in Ubuntu" below). [Soon](https://github.com/micahflee/torbrowser-launcher/issues/31) it will be in Debian. To install it in any other distribution, follow the "Quick Start" instructions.
 
-Quick Start
------------
+## Quick Start
 
-If you're using a Debian-based distro like Debian, Ubuntu, or Linux Mint, the
-following instructions will install dependencies, clone this repo, build a .deb, and
-install it with dpkg.
+First, clone the repository:
 
-    sudo apt-get install build-essential python-all python-stdeb python-gtk2 python-psutil python-twisted python-pygame python-lzma python-parsley python-txsocksx wmctrl gnupg fakeroot
     git clone https://github.com/micahflee/torbrowser-launcher.git
     cd torbrowser-launcher
-    ./build_and_install.sh
 
-Installing in Ubuntu
---------------------
+Then install dependencies, build a package, and install:
+
+### Debian, Ubuntu, Linux Mint, etc.
+
+    sudo apt-get install build-essential python-all python-stdeb python-gtk2 python-psutil python-twisted python-pygame python-lzma python-parsley python-txsocksx wmctrl gnupg fakeroot
+    ./build_deb.sh
+    sudo dpkg -i deb_dist/torbrowser-launcher_*.deb
+
+### Red Hat, Fedora, CentOS, etc.
+
+    sudo yum install python-psutil python-twisted pygame wmctrl gnupg fakeroot
+    ./build_rpm.sh
+    sudo yum install dist/torbrowser-launcher-*.rpm
+
+## Installing in Ubuntu
 
 I've created a PPA where I'm maintaining torbrowser-launcher binaries. You can install in an Ubuntu-based distribution like this:
 
@@ -33,8 +38,7 @@ I've created a PPA where I'm maintaining torbrowser-launcher binaries. You can i
     sudo apt-get update
     sudo apt-get install torbrowser-launcher
 
-Enabling AppArmor Profiles
---------------------------
+## Enabling AppArmor Profiles
 
 AppArmor is a Linux kernel hardening technology that lets you confine specific programs to only use specific resources. For example, if you visit a website that exploits a bug in the Tor Browser to get arbitrary code execution, the attacker won't be able to access files in ~/.gnupg. Here's how you turn on the AppArmor profiles for Tor Browser Launcher and for the programs bundled in the TBB.
 
@@ -44,14 +48,11 @@ AppArmor is a Linux kernel hardening technology that lets you confine specific p
     sudo aa-enforce /etc/apparmor.d/torbrowser.Browser.firefox
     sudo aa-enforce /etc/apparmor.d/torbrowser.Tor.tor
 
-Building
-========
+# Building in Debian
 
-Dependencies
-------------
+## Dependencies
 
-You need to have ```stdeb``` installed. If you're using Debian or Ubuntu you can
-install it like this:
+You need to have ```stdeb``` installed. If you're using Debian or Ubuntu you can install it like this:
 
     apt-get install python-stdeb
 
@@ -59,8 +60,7 @@ Also install the ```torbrowser-launcher``` dependencies:
 
     apt-get install python-gtk2 python-psutil python-twisted python-lzma wmctrl gnupg fakeroot
 
-Debian packages
----------------
+## Debian packages
 
 To build a Debian source and binary packages:
 
diff --git a/build_and_install.sh b/build_deb.sh
similarity index 57%
rename from build_and_install.sh
rename to build_deb.sh
index e750a8b..56cd4fe 100755
--- a/build_and_install.sh
+++ b/build_deb.sh
@@ -2,9 +2,6 @@
 
 VERSION=`cat version`
 
-# to clean up from last time, run this:
-# rm -rf ~/.torbrowser
-
 # clean up from last build
 rm -r deb_dist
 
@@ -12,5 +9,6 @@ rm -r deb_dist
 python setup.py --command-packages=stdeb.command bdist_deb
 
 # install it
-sudo dpkg -i deb_dist/torbrowser-launcher_$VERSION-1_all.deb
-
+echo ""
+echo "To install, run:"
+echo "sudo dpkg -i deb_dist/torbrowser-launcher_$VERSION-1_all.deb"
diff --git a/build_rpm.sh b/build_rpm.sh
new file mode 100755
index 0000000..a4f6ce7
--- /dev/null
+++ b/build_rpm.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+VERSION=`cat version`
+
+# clean up from last build
+rm -r build dist
+
+# build binary package
+python setup.py bdist_rpm --requires="python-psutil, python-twisted, pygame, wmctrl, gnupg, fakeroot"
+
+# install it
+echo ""
+echo "To install, run:"
+echo "sudo yum install dist/torbrowser-launcher-$VERSION-1.noarch.rpm"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git



More information about the Pkg-privacy-commits mailing list