Skip to content

Commit df54096

Browse files
committed
Add support for Debian Buster (10) (#362)
1 parent c10b500 commit df54096

File tree

14 files changed

+83
-66
lines changed

14 files changed

+83
-66
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: python
2-
dist: trusty
2+
dist: buster
33
sudo: required
44
python:
5-
- "2.7"
5+
- "3.7"
66
install: true
77
script:
88
- $TRAVIS_BUILD_DIR/scripts/travis.sh

debian/compat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7
1+
9

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
controlX/control.bionic
1+
controlX/control.buster

debian/controlX/control.bionic

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,29 @@ Maintainer: Random GlobaLeaks developers <[email protected]>
33
Section: web
44
Priority: optional
55
Build-Depends:
6-
debhelper,
7-
dh-apparmor,
8-
dh-python,
9-
python3 (>= 3.5),
10-
python3-pip,
11-
python3-setuptools,
6+
debhelper,
7+
devscripts,
8+
dh-apparmor,
9+
dh-python,
10+
python3 (>= 3.5),
11+
python3-pip,
12+
python3-setuptools
1213
Vcs-Git: https://github.com/globaleaks/Tor2web.git
1314
Standards-Version: 3.9.8
1415

1516
Package: tor2web
1617
Architecture: all
1718
Depends:
18-
apparmor,
19-
apparmor-utils,
20-
python3:any,
21-
python3-cryptography,
22-
python3-openssl,
23-
python3-twisted,
24-
tor
19+
${misc:Depends},
20+
${python3:Depends},
21+
apparmor,
22+
apparmor-utils,
23+
lsb-base,
24+
python3:any,
25+
python3-cryptography,
26+
python3-openssl,
27+
python3-twisted,
28+
tor
2529
Description: Tor2web proxy.
2630
Tor2web is an HTTP proxy software that enables access to
2731
Tor Hidden Services by mean of common web browsers.

debian/controlX/control.xenial renamed to debian/controlX/control.buster

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,30 @@ Maintainer: Random GlobaLeaks developers <[email protected]>
33
Section: web
44
Priority: optional
55
Build-Depends:
6-
debhelper,
7-
dh-apparmor,
8-
dh-python,
9-
python (>= 2.7),
10-
python-pip,
11-
python-setuptools,
6+
debhelper,
7+
devscripts,
8+
dh-apparmor,
9+
dh-python,
10+
python3,
11+
python3-pip,
12+
python3-setuptools
1213
Vcs-Git: https://github.com/globaleaks/Tor2web.git
1314
Standards-Version: 3.9.8
15+
X-Python3-Version: all
1416

1517
Package: tor2web
1618
Architecture: all
1719
Depends:
18-
apparmor,
19-
apparmor-utils,
20-
python:any (>= 2.7.5-5~), python:any (<< 2.8),
21-
python-cryptography,
22-
python-openssl,
23-
python-twisted-core,
24-
tor
20+
${misc:Depends},
21+
${python3:Depends},
22+
apparmor,
23+
apparmor-utils,
24+
lsb-base,
25+
python3:any,
26+
python3-cryptography,
27+
python3-openssl,
28+
python3-twisted,
29+
tor
2530
Description: Tor2web proxy.
2631
Tor2web is an HTTP proxy software that enables access to
2732
Tor Hidden Services by mean of common web browsers.

debian/rules

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,22 @@ export PYBUILD_NAME=tor2web
44
export PYBUILD_DISABLE=test
55
export PYBUILD_INSTALL_ARGS=--no-compile
66

7+
DISTRIBUTION := $(shell head -n1 debian/changelog | cut -d ' ' -f3 | cut -d ';' -f1)
8+
9+
ifeq ($(DISTRIBUTION),buster)
10+
PYTHON_BIN := python3
11+
PYTHON_VER := python3
12+
else ifeq ($(DISTRIBUTION),bionic)
13+
PYTHON_BIN := python3
14+
PYTHON_VER := python3
15+
else
16+
PYTHON_BIN := python2
17+
PYTHON_VER := python2
18+
endif
19+
20+
721
%:
8-
dh $@ --with python2 --buildsystem=pybuild
22+
dh $@ --with $(PYTHON_VER) --buildsystem=pybuild
923

1024
override_dh_install:
1125
dh_apparmor --profile-name=usr.bin.tor2web

debian/tor2web.postinst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ fi
2929
chown tor2web:tor2web /home/tor2web/ -R
3030
find /home/tor2web/ -type d -exec chmod 770 {} \;
3131
find /home/tor2web/ -type f -exec chmod 660 {} \;
32+
33+
#DEBHELPER#

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
requirements/requirements-xenial.txt
1+
requirements/requirements-buster.txt

requirements/requirements-buster.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Parsley==1.2
2+
Twisted==18.9.0
3+
cffi==1.12.2
4+
cryptography==2.6.1
5+
enum34==1.1.6
6+
idna==2.6
7+
pyOpenSSL==19.0.0
8+
pyasn1==0.4.2
9+
pycparser==2.19
10+
service_identity==18.1.0
11+
six==1.12.0
12+
transaction==1.4.3
13+
zope.interface==4.4.2

requirements/requirements-xenial.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)