Skip to content

Commit 28df991

Browse files
committed
Add packagin for Ubuntu Bionic
1 parent c45be7f commit 28df991

File tree

8 files changed

+45
-85
lines changed

8 files changed

+45
-85
lines changed

debian/control

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

debian/controlX/control.bionic

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Source: tor2web
2+
Maintainer: Random GlobaLeaks developers <info@globaleaks.org>
3+
Section: web
4+
Priority: optional
5+
Build-Depends:
6+
debhelper,
7+
dh-apparmor,
8+
dh-python,
9+
python3 (>= 3.5),
10+
python3-pip,
11+
python3-setuptools,
12+
Vcs-Git: https://github.com/globaleaks/Tor2web.git
13+
Standards-Version: 3.9.8
14+
15+
Package: tor2web
16+
Architecture: all
17+
Depends:
18+
apparmor,
19+
apparmor-utils,
20+
python3:any,
21+
python3-cryptography,
22+
python3-openssl,
23+
python3-twisted-core,
24+
tor
25+
Description: Tor2web proxy.
26+
Tor2web is an HTTP proxy software that enables access to
27+
Tor Hidden Services by mean of common web browsers.

debian/controlX/control.trusty

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

debian/tor2web.postinst

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,13 @@ if which pycompile >/dev/null 2>&1; then
66
pycompile -p tor2web
77
fi
88

9-
CHECK_PIP_VERSION="
10-
import pip
11-
from pkg_resources import parse_version as v
12-
exit(v(pip.__version__) < v('1.3'))
13-
"
14-
159
DISTRO="unknown"
1610
DISTRO_CODENAME="unknown"
1711
if which lsb_release >/dev/null; then
1812
DISTRO="$( lsb_release -is )"
1913
DISTRO_CODENAME="$( lsb_release -cs )"
2014
fi
2115

22-
PIP_NEEDED=1
23-
if echo "$DISTRO_CODENAME" | grep -qE "^xenial$"; then
24-
PIP_NEEDED=0
25-
fi
26-
27-
if [ $PIP_NEEDED -eq 1 ]; then
28-
# XXX. Hardcore installation of globaleaks dependencies using pip.
29-
# Please remove the following lines once up-to-date python-storm,
30-
# python-cryptography, and python-pip will be available in debian.
31-
if ! python -c "$CHECK_PIP_VERSION" 2>/dev/null; then
32-
curl https://bootstrap.pypa.io/get-pip.py | python
33-
fi
34-
35-
pip install -r /usr/share/tor2web/requirements.txt
36-
fi
37-
3816
if ! id -u tor2web >/dev/null 2>&1; then
3917
useradd tor2web -b /home/tor2web -s /bin/false
4018
fi

requirements/requirements-bionic.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==17.9.0
3+
cffi==1.11.5
4+
cryptography==2.1.4
5+
enum34==1.1.6
6+
idna==2.6
7+
pyOpenSSL==17.5.0
8+
pyasn1==0.4.2
9+
pycparser==2.18
10+
service_identity==16.0.0
11+
six==1.11.0
12+
transaction==1.4.3
13+
zope.interface==4.3.2

requirements/requirements-trusty.txt

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

scripts/build.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ usage() {
77
echo "Valid options:"
88
echo " -h"
99
echo -e " -t tagname (build specific release/branch)"
10-
echo -e " -d distribution (available: trusty, xenial, wheezy, jessie)"
10+
echo -e " -d distribution (available: xenial, bionic)"
1111
echo -e " -n (do not sign)"
1212
echo -e " -p (push on repository)"
1313
}
1414

15-
TARGETS="trusty xenial wheezy jessie"
16-
DISTRIBUTION="trusty"
15+
TARGETS="xenial bionic"
16+
DISTRIBUTION="xenial"
1717
TAG="master"
1818
NOSIGN=0
1919
PUSH=0
@@ -86,10 +86,6 @@ for TARGET in $TARGETS; do
8686

8787
rm debian/control requirements.txt
8888

89-
if [ "$TARGET" != 'xenial' ]; then
90-
TARGET='trusty'
91-
fi
92-
9389
cp debian/controlX/control.$TARGET debian/control
9490
cp requirements/requirements-$TARGET.txt requirements.txt
9591

scripts/travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ rm -rf requirements.txt
1010
ln -s requirements/requirements-xenial.txt requirements.txt
1111
pip install -r requirements.txt
1212

13-
./scripts/build.sh -d trusty -t $TRAVIS_COMMIT -n
13+
./scripts/build.sh -d xenial -t $TRAVIS_COMMIT -n

0 commit comments

Comments
 (0)