debian package building added

This commit is contained in:
citizenaspirant 2020-04-30 19:05:11 +00:00
parent 7fd6200fb1
commit 5f955ba52f
12 changed files with 133 additions and 0 deletions

22
debian/README.Debian vendored Normal file
View File

@ -0,0 +1,22 @@
bitmessage for Debian
--------------------
In order to build the .deb yourself, you'll first have to install the stuff that's neccessary to compile .debs:
apt-get install python-minimal python-setuptools python-all \
python openssl libssl-dev dh-apparmor debhelper dh-python \
python-msgpack python-qt4 git
Next make some build directory and clone the newest git repository:
And if I haven't forgotten anything, you can build the .deb package now:
dpkg-buildpackage -us -uc
I've tried this with Debian Buster, but I'd expect it to work on most if not all recent debian-based distributions. Maybe with some minor changes.
-- citizenaspirant <citizenadmin@helicoptarianconstitocracy.org> Wed, 29 Apr 2020 17:53:21 +0000

19
debian/apparmor/pybitmessage vendored Normal file
View File

@ -0,0 +1,19 @@
# Last Modified: Wed Apr 29 21:04:08 2020
#include <tunables/global>
/usr/bin/pybitmessage {
#include <abstractions/base>
#include <abstractions/fonts>
#include <abstractions/lightdm>
#include <abstractions/python>
#include <abstractions/user-tmp>
owner /home/*/.ICEauthority r,
owner /home/*/.Xauthority r,
owner /home/*/.config/PyBitmessage/ rw,
owner /home/*/.config/PyBitmessage/* rwk,
owner /home/*/.config/Trolltech.conf rwk,
owner /home/*/.config/Trolltech.conf.* rw,
owner /proc/*/mounts r,
}

1
debian/bitmessage-docs.docs vendored Normal file
View File

@ -0,0 +1 @@
README.Debian

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
bitmessage (0.7a-1) unstable; urgency=medium
* Initial release
-- citizenaspirant <citizenadmin@helicoptarianconstitocracy.org> Wed, 29 Apr 2020 17:53:21 +0000

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
11

20
debian/control vendored Normal file
View File

@ -0,0 +1,20 @@
Source: bitmessage
Section: net
Priority: optional
Maintainer: citizenadmin <citizenadmin@helicoptarianconstitocracy.org>
Build-Depends: debhelper (>= 11), dh-python, dh-apparmor, python-all, python-setuptools
Standards-Version: 4.1.3
Homepage: https://github.com/Bitmessage/PyBitmessage
X-Python-Version: >= 2.6
#Vcs-Browser: https://salsa.debian.org/debian/bitmessage
Vcs-Git: https://github.com/Bitmessage/PyBitmessage
#Testsuite: autopkgtest-pkg-python
Package: python-bitmessage
Architecture: all
Depends: ${python:Depends}, ${misc:Depends}, python, openssl, libssl-dev, python-msgpack, python-setuptools
Suggests: apparmor, tor, python-pyopencl, python-qt4, python-stem
Description: BitMessage Anonymous Communication Client
.
Bitmessage is a P2P communication protocol used to send encrypted messages to another person or to many subscribers. It is decentralized and trustless, meaning that you need-not inherently trust any entities like root certificate authorities. It uses strong authentication, which means that the sender of a message cannot be spoofed. BM aims to hide metadata from passive eavesdroppers like those ongoing warrantless wiretapping programs. Hence the sender and receiver of Bitmessages stay anonymous.

38
debian/copyright vendored Normal file
View File

@ -0,0 +1,38 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: bitmessage
Source: <url://example.com>
Files: *
Copyright: <years> <put author's name and email here>
<years> <likewise for another author>
License: <special license>
<Put the license of the package here indented by 1 space>
<This follows the format of Description: lines in control file>
.
<Including paragraphs>
# If you want to use GPL v2 or later for the /debian/* files use
# the following clauses, or change it to suit. Delete these two lines
Files: debian/*
Copyright: 2020 unknown <builder@unknown>
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid picking licenses with terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.

4
debian/menu vendored Normal file
View File

@ -0,0 +1,4 @@
?package(bitmessage): \
needs="X11|text|vc|wm" \
section="Applications/Office"\
title="bitmessage" command="/usr/bin/bitmessage"

2
debian/python-bitmessage.install vendored Normal file
View File

@ -0,0 +1,2 @@
debian/apparmor/pybitmessage etc/apparmor.d

19
debian/rules vendored Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
export DH_VERBOSE = 1
export DH_OPTIONS=-v
export PYBUILD_NAME=bitmessage
%:
dh $@ --with python2 --buildsystem=pybuild
dh_apparmor --profile-name=pybitmessage -ppython-bitmessage
# If you need to rebuild the Sphinx documentation
# Add spinxdoc to the dh --with line
#override_dh_auto_build:
# dh_auto_build
# PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html # HTML generator
# PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman docs/ build/man # Manpage generator

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

1
debian/source/options vendored Normal file
View File

@ -0,0 +1 @@
extend-diff-ignore = "^[^/]*[.]egg-info/"