summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-08-09 17:14:02 -0400
committerKali Kaneko <kali@leap.se>2017-08-10 15:24:23 -0400
commit63b3413ced33d7b63cf1a9a5d37070ec81f627c8 (patch)
treeaca9bb1db2a31c26a64e2f727b22742d49837bc7 /debian/rules
parent341a50b6365af3d08777cdbca812ad909d4c1223 (diff)
[pkg] new debianization split
with this organization, there's no need to install too many dependencies if user only needs either vpn or mail.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules26
1 files changed, 6 insertions, 20 deletions
diff --git a/debian/rules b/debian/rules
index 8fcf0bfa..e1e632d5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,19 +13,18 @@ package=bitmask
PYTHON2=$(shell pyversions -vr)
+# Prevent setuptools/distribute from accessing the internet.
+export http_proxy = http://127.0.0.1:9
+
%:
- dh $@ --with python2 --buildsystem=python_distutils
-#dh $@ --with python2,sphinxdoc --buildsystem=python_distutils
+ dh $@ --with python2 --namespace=leap --buildsystem=python_distutils
+
override_dh_prep:
rst2man docs/man/bitmask.1.rst docs/man/bitmask.1
rst2man docs/man/bitmask-root.1.rst docs/man/bitmask-root.1
dh_prep
- mv src/leap.bitmask.egg-info src/leap.bitmask.egg-info.orig
- mv src/leap/bitmask/core src/bitmask-core.orig
- mv src/leap/bitmask/cli src/bitmask-cli.orig
-
# this will re-generate the resource files and locales.
make -f ./Makefile qt-resources
@@ -42,15 +41,6 @@ endif
#dh_auto_build should be enough to build the python2 version
-build-python%:
- python$* setup.py build
-
-override_dh_install:
- dh_install
- rm -rf src/leap.bitmask.egg-info
- mv src/leap.bitmask.egg-info.orig src/leap.bitmask.egg-info
- mv src/bitmask-core.orig src/leap/bitmask/core/
- mv src/bitmask-cli.orig src/leap/bitmask/cli/
# build and install sphinx docs
#
@@ -58,12 +48,8 @@ override_dh_installdocs:
# python setup.py build_sphinx
dh_installdocs
-#COMMENTING OUT TO WORKAROUND THIS ERROR:
-#dh_sphinxdoc: error: unknown JavaScript code: debian/bitmask/usr/share/doc/bitmask/html/_static/jquery.js
-#dh_installdocs build/sphinx/html
-
override_dh_installchangelogs:
- dh_installchangelogs CHANGELOG.rst
+ dh_installchangelogs docs/changelog.rst
override_dh_auto_clean:
dh_auto_clean