[Pkg-privacy-commits] [flashproxy] 02/65: preliminary Debian package, currently missing install scripts for flashproxy-facilitator

Ximin Luo infinity0 at moszumanska.debian.org
Fri Aug 21 13:49:38 UTC 2015


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

infinity0 pushed a commit to branch _volatile-rc
in repository flashproxy.

commit 4f856b4c64ae8f5f93f854842a5637d75611743b
Author: Ximin Luo <infinity0 at gmx.com>
Date:   Wed Nov 20 16:07:01 2013 +0000

    preliminary Debian package, currently missing install scripts for flashproxy-facilitator
---
 debian/autoreconf                     |   1 +
 debian/changelog                      |   5 ++
 debian/compat                         |   1 +
 debian/control                        | 107 ++++++++++++++++++++++++++++++++++
 debian/copyright                      |  33 +++++++++++
 debian/flashproxy-client.install      |   5 ++
 debian/flashproxy-common.install      |   2 +
 debian/flashproxy-facilitator.install |   7 +++
 debian/flashproxy-proxy.docs          |   1 +
 debian/flashproxy-proxy.install       |   6 ++
 debian/flashproxy-proxy.links         |   1 +
 debian/node-flashproxy.README.Debian  |   9 +++
 debian/node-flashproxy.docs           |   2 +
 debian/node-flashproxy.install        |   1 +
 debian/node-flashproxy.links          |   2 +
 debian/node-flashproxy.manpages       |   1 +
 debian/patches/nodejs-shebang         |   8 +++
 debian/patches/series                 |   1 +
 debian/rules                          |  45 ++++++++++++++
 debian/source/format                  |   1 +
 20 files changed, 239 insertions(+)

diff --git a/debian/autoreconf b/debian/autoreconf
new file mode 100644
index 0000000..0e97411
--- /dev/null
+++ b/debian/autoreconf
@@ -0,0 +1 @@
+facilitator
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3141bc4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+flashproxy (1.5-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #721845)
+
+ -- Ximin Luo <infinity0 at gmx.com>  Tue, 19 Nov 2013 22:38:11 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..b637b52
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,107 @@
+Source: flashproxy
+Maintainer: Ximin Luo <infinity0 at gmx.com>
+Section: net
+Priority: extra
+Build-Depends: debhelper (>= 9),
+ dh-autoreconf,
+ dh-python,
+ help2man,
+ nodejs,
+ node-optimist,
+ openssl,
+ python,
+ python-m2crypto,
+ python-setuptools,
+ rhino,
+Standards-Version: 3.9.4
+X-Python-Version: >= 2.7
+Homepage: https://crypto.stanford.edu/flashproxy/
+Vcs-Git: git://git.torproject.org/debian/flashproxy.git
+Vcs-Browser: https://gitweb.torproject.org/debian/flashproxy.git
+
+Package: flashproxy-common
+Architecture: all
+Section: python
+Depends: ${misc:Depends}, ${python:Depends}
+Description: Pluggable transport for ephemeral IP addresses - common library
+ Tor has bridge relays, but in some cases even these can be blocked despite the
+ fact that their addresses are handed out only a few at a time. The purpose of
+ this project is to create many, generally ephemeral bridge IP addresses, with
+ the goal of outpacing a censor's ability to block them. Rather than increasing
+ the number of bridges at static addresses, we aim to make existing bridges
+ reachable by a larger and changing pool of addresses.
+ .
+ This package contains a common Python library used by other components.
+
+Package: flashproxy-client
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, flashproxy-common, python, python-m2crypto
+Description: Pluggable transport for ephemeral IP addresses - client transport plugin
+ Tor has bridge relays, but in some cases even these can be blocked despite the
+ fact that their addresses are handed out only a few at a time. The purpose of
+ this project is to create many, generally ephemeral bridge IP addresses, with
+ the goal of outpacing a censor's ability to block them. Rather than increasing
+ the number of bridges at static addresses, we aim to make existing bridges
+ reachable by a larger and changing pool of addresses.
+ .
+ This package contains the client transport plugin that allows censored Tor
+ users to bypass censorship.
+
+Package: flashproxy-facilitator
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, flashproxy-common, python, python-m2crypto
+Recommends: httpd-cgi | apache2
+Suggests: flashproxy-proxy
+Description: Pluggable transport for ephemeral IP addresses - facilitator
+ Tor has bridge relays, but in some cases even these can be blocked despite the
+ fact that their addresses are handed out only a few at a time. The purpose of
+ this project is to create many, generally ephemeral bridge IP addresses, with
+ the goal of outpacing a censor's ability to block them. Rather than increasing
+ the number of bridges at static addresses, we aim to make existing bridges
+ reachable by a larger and changing pool of addresses.
+ .
+ This package contains the facilitator that accepts client registrations
+ (requests for connection) from censored users via hard-to-censor rendezvous
+ channels, and serves these with an ephemeral browser proxy and a Tor relay.
+ .
+ Most end-users do not need to install this package.
+
+Package: flashproxy-proxy
+Architecture: all
+Section: web
+Depends: ${misc:Depends}
+Recommends: httpd | apache2
+Suggests: drupal7, mediawiki
+Description: Pluggable transport for ephemeral IP addresses - browser proxy
+ Tor has bridge relays, but in some cases even these can be blocked despite the
+ fact that their addresses are handed out only a few at a time. The purpose of
+ this project is to create many, generally ephemeral bridge IP addresses, with
+ the goal of outpacing a censor's ability to block them. Rather than increasing
+ the number of bridges at static addresses, we aim to make existing bridges
+ reachable by a larger and changing pool of addresses.
+ .
+ This package contains the browser proxy to be served from a web server.
+ Visitors to this website can then act as ephemeral proxies for censored users.
+ .
+ Most end-users do not need to install this package.
+
+Package: node-flashproxy
+Architecture: all
+Depends: ${misc:Depends}, flashproxy-proxy, nodejs, node-optimist, node-xmlhttprequest, npm | node-ws
+Description: Pluggable transport for ephemeral IP addresses - nodejs proxy
+ Tor has bridge relays, but in some cases even these can be blocked despite the
+ fact that their addresses are handed out only a few at a time. The purpose of
+ this project is to create many, generally ephemeral bridge IP addresses, with
+ the goal of outpacing a censor's ability to block them. Rather than increasing
+ the number of bridges at static addresses, we aim to make existing bridges
+ reachable by a larger and changing pool of addresses.
+ .
+ This package contains a nodejs-based proxy to be run as a local service. It is
+ for people that constantly want to act as ephemeral proxies for censored users.
+ Due to the design of the system, it more useful when installed on a machine
+ that continually switches location, such as a laptop.
+ .
+ Most end-users do not need to install this package.
+ .
+ Until node-ws enters Debian, you will need to perform a manual step after
+ installing this package; see README.Debian for details.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..233fbb2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: flashproxy
+Upstream-Contact: David Fifield <david at bamsoftware.com>
+Source: https://git.torproject.org/flashproxy.git
+
+Files: *
+Copyright: Copyright 2011-2013 David Fifield <david at bamsoftware.com>
+           Copyright 2011-2013 flashproxy authors
+License: Expat
+
+Files: debian/*
+Copyright: Copyright 2013 Ximin Luo <infinity0 at gmx.com>
+License: Expat
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/debian/flashproxy-client.install b/debian/flashproxy-client.install
new file mode 100644
index 0000000..a8b1df0
--- /dev/null
+++ b/debian/flashproxy-client.install
@@ -0,0 +1,5 @@
+usr/bin/flashproxy-client
+usr/bin/flashproxy-reg-*
+usr/share/doc/flashproxy-client/*
+usr/share/man/man1/flashproxy-client.1
+usr/share/man/man1/flashproxy-reg-*.1
diff --git a/debian/flashproxy-common.install b/debian/flashproxy-common.install
new file mode 100644
index 0000000..15a0fe4
--- /dev/null
+++ b/debian/flashproxy-common.install
@@ -0,0 +1,2 @@
+usr/lib/python*/dist-packages/flashproxy_common-*
+usr/lib/python*/dist-packages/flashproxy/*
diff --git a/debian/flashproxy-facilitator.install b/debian/flashproxy-facilitator.install
new file mode 100644
index 0000000..cf28976
--- /dev/null
+++ b/debian/flashproxy-facilitator.install
@@ -0,0 +1,7 @@
+etc/flashproxy/reg-*
+etc/flashproxy/facilitator*
+usr/bin/facilitator*
+usr/lib/cgi-bin/facilitator*
+usr/share/flashproxy-facilitator/*
+usr/share/doc/flashproxy-facilitator/*
+usr/share/man/man1/facilitator*.1
diff --git a/debian/flashproxy-proxy.docs b/debian/flashproxy-proxy.docs
new file mode 100644
index 0000000..21b8c7b
--- /dev/null
+++ b/debian/flashproxy-proxy.docs
@@ -0,0 +1 @@
+proxy/README
diff --git a/debian/flashproxy-proxy.install b/debian/flashproxy-proxy.install
new file mode 100644
index 0000000..cbfad52
--- /dev/null
+++ b/debian/flashproxy-proxy.install
@@ -0,0 +1,6 @@
+proxy/badge*.png                        usr/share/flashproxy-proxy/proxy
+proxy/*.html                            usr/share/flashproxy-proxy/proxy
+proxy/flashproxy.js                     usr/share/flashproxy-proxy/proxy
+proxy/modules/drupal/*                  usr/share/flashproxy-proxy/modules/drupal
+proxy/modules/facebook/*                usr/share/flashproxy-proxy/modules/facebook
+proxy/modules/mediawiki/*               usr/share/flashproxy-proxy/modules/mediawiki
diff --git a/debian/flashproxy-proxy.links b/debian/flashproxy-proxy.links
new file mode 100644
index 0000000..7a2e93d
--- /dev/null
+++ b/debian/flashproxy-proxy.links
@@ -0,0 +1 @@
+usr/share/flashproxy-proxy/proxy/flashproxy.js  usr/share/flashproxy-proxy/modules/drupal/flashproxy.js
diff --git a/debian/node-flashproxy.README.Debian b/debian/node-flashproxy.README.Debian
new file mode 100644
index 0000000..f4ba010
--- /dev/null
+++ b/debian/node-flashproxy.README.Debian
@@ -0,0 +1,9 @@
+node-ws is not yet available in Debian[1], so in order to run flashproxy you
+will need to install a site-local copy of node-ws via npm:
+
+# apt-get install npm
+# npm install -g ws
+# cd /usr/lib/nodejs/flashproxy && npm link ws
+$ flashproxy
+
+[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=721558
diff --git a/debian/node-flashproxy.docs b/debian/node-flashproxy.docs
new file mode 100644
index 0000000..25c0a36
--- /dev/null
+++ b/debian/node-flashproxy.docs
@@ -0,0 +1,2 @@
+proxy/modules/nodejs/package.json
+proxy/modules/nodejs/README
diff --git a/debian/node-flashproxy.install b/debian/node-flashproxy.install
new file mode 100644
index 0000000..668a7cc
--- /dev/null
+++ b/debian/node-flashproxy.install
@@ -0,0 +1 @@
+proxy/modules/nodejs/main.js            usr/lib/nodejs/flashproxy
diff --git a/debian/node-flashproxy.links b/debian/node-flashproxy.links
new file mode 100644
index 0000000..1cc4bfa
--- /dev/null
+++ b/debian/node-flashproxy.links
@@ -0,0 +1,2 @@
+usr/share/flashproxy-proxy/proxy/flashproxy.js  usr/lib/nodejs/flashproxy/flashproxy.js
+usr/lib/nodejs/flashproxy/main.js               usr/bin/flashproxy
diff --git a/debian/node-flashproxy.manpages b/debian/node-flashproxy.manpages
new file mode 100644
index 0000000..1084854
--- /dev/null
+++ b/debian/node-flashproxy.manpages
@@ -0,0 +1 @@
+proxy/modules/nodejs/flashproxy.1
diff --git a/debian/patches/nodejs-shebang b/debian/patches/nodejs-shebang
new file mode 100644
index 0000000..dda807b
--- /dev/null
+++ b/debian/patches/nodejs-shebang
@@ -0,0 +1,8 @@
+--- a/proxy/modules/nodejs/main.js
++++ b/proxy/modules/nodejs/main.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ 
+ var fs = require("fs");
+ var path = require("path");
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..40f786c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+nodejs-shebang
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..5569548
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,45 @@
+#!/usr/bin/make -f
+
+# NOTE: debian/rules build (which runs tests) must be run outside of fakeroot
+# since the tests open sockets, which fakeroot stubs out.
+
+%:
+	dh $@ --with autoreconf,python2
+
+DH_common = -S python_distutils
+DH_client = -S makefile -- -f Makefile.client prefix=/usr sysconfdir=/etc
+DH_facilitator = -S autoconf -D facilitator --
+DH_proxy = -S makefile -D proxy/modules/nodejs --
+
+# TODO(infinity0): handle setup.py better
+
+override_dh_install:
+	dh_install -XChangeLog -XLICENSE -XMakefile
+
+override_dh_auto_configure:
+	ln -sf setup-common.py setup.py
+	dh_auto_configure $(DH_facilitator) -- cgibindir=/usr/lib/cgi-bin
+
+override_dh_auto_build:
+	dh_auto_build $(DH_common)
+	dh_auto_build $(DH_client)
+	dh_auto_build $(DH_facilitator) PYTHONPATH=..
+	dh_auto_build $(DH_proxy)
+
+override_dh_auto_test:
+	dh_auto_test $(DH_common)
+	dh_auto_test $(DH_client)
+	dh_auto_test $(DH_facilitator) PYTHONPATH=..
+
+override_dh_auto_install:
+	dh_auto_install $(DH_common)
+	dh_auto_install $(DH_client)
+	dh_auto_install $(DH_facilitator)
+
+override_dh_auto_clean:
+	ln -sf setup-common.py setup.py
+	dh_auto_clean $(DH_common)
+	dh_auto_clean $(DH_client)
+	dh_auto_clean $(DH_facilitator)
+	dh_auto_clean $(DH_proxy)
+	rm -f setup.py
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

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



More information about the Pkg-privacy-commits mailing list