From 5f955ba52f10c6167e82ec870cbb327a6ca1de2d Mon Sep 17 00:00:00 2001 From: citizenaspirant Date: Thu, 30 Apr 2020 19:05:11 +0000 Subject: [PATCH] debian package building added --- debian/README.Debian | 22 ++++++++++++++++++ debian/apparmor/pybitmessage | 19 ++++++++++++++++ debian/bitmessage-docs.docs | 1 + debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 20 +++++++++++++++++ debian/copyright | 38 ++++++++++++++++++++++++++++++++ debian/menu | 4 ++++ debian/python-bitmessage.install | 2 ++ debian/rules | 19 ++++++++++++++++ debian/source/format | 1 + debian/source/options | 1 + 12 files changed, 133 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/apparmor/pybitmessage create mode 100644 debian/bitmessage-docs.docs create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/menu create mode 100644 debian/python-bitmessage.install create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/options diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 00000000..1f44b1d1 --- /dev/null +++ b/debian/README.Debian @@ -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 Wed, 29 Apr 2020 17:53:21 +0000 diff --git a/debian/apparmor/pybitmessage b/debian/apparmor/pybitmessage new file mode 100644 index 00000000..3ec3d237 --- /dev/null +++ b/debian/apparmor/pybitmessage @@ -0,0 +1,19 @@ +# Last Modified: Wed Apr 29 21:04:08 2020 +#include + +/usr/bin/pybitmessage { + #include + #include + #include + #include + #include + + 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, + +} diff --git a/debian/bitmessage-docs.docs b/debian/bitmessage-docs.docs new file mode 100644 index 00000000..86ca00fc --- /dev/null +++ b/debian/bitmessage-docs.docs @@ -0,0 +1 @@ +README.Debian diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..17f6df05 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +bitmessage (0.7a-1) unstable; urgency=medium + + * Initial release + + -- citizenaspirant Wed, 29 Apr 2020 17:53:21 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..b4de3947 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..11f66f26 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: bitmessage +Section: net +Priority: optional +Maintainer: citizenadmin +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. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..4a703d04 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,38 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: bitmessage +Source: + +Files: * +Copyright: + +License: + + + . + + +# 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 +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 + . + 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. diff --git a/debian/menu b/debian/menu new file mode 100644 index 00000000..5169c1ee --- /dev/null +++ b/debian/menu @@ -0,0 +1,4 @@ +?package(bitmessage): \ + needs="X11|text|vc|wm" \ + section="Applications/Office"\ + title="bitmessage" command="/usr/bin/bitmessage" diff --git a/debian/python-bitmessage.install b/debian/python-bitmessage.install new file mode 100644 index 00000000..b85ac5eb --- /dev/null +++ b/debian/python-bitmessage.install @@ -0,0 +1,2 @@ +debian/apparmor/pybitmessage etc/apparmor.d + diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..b1a50b1e --- /dev/null +++ b/debian/rules @@ -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 + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 00000000..cb61fa52 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/"