From b425d1360994d9d35cbd27ad92aaa0ac22eced24 Mon Sep 17 00:00:00 2001 From: citizenaspirant Date: Thu, 30 Apr 2020 19:05:11 +0000 Subject: [PATCH 1/4] 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/" -- 2.45.1 From 7fc3516424c78d677f6b05454be0a4a6cb16afd7 Mon Sep 17 00:00:00 2001 From: navjot Date: Mon, 12 Oct 2020 23:44:55 +0530 Subject: [PATCH 2/4] added source directory path --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index b1a50b1e..5b68b019 100755 --- a/debian/rules +++ b/debian/rules @@ -7,7 +7,7 @@ export DH_OPTIONS=-v export PYBUILD_NAME=bitmessage %: - dh $@ --with python2 --buildsystem=pybuild + dh $@ --with python2 --buildsystem=pybuild --sourcedirectory=.. dh_apparmor --profile-name=pybitmessage -ppython-bitmessage # If you need to rebuild the Sphinx documentation -- 2.45.1 From fa157ec998a03b9e9dcf98bd3a859a77d6b553d8 Mon Sep 17 00:00:00 2001 From: navjot Date: Tue, 13 Oct 2020 22:08:23 +0530 Subject: [PATCH 3/4] Move debian to the packages directory --- {debian => packages/debian}/README.Debian | 0 {debian => packages/debian}/apparmor/pybitmessage | 0 {debian => packages/debian}/bitmessage-docs.docs | 0 {debian => packages/debian}/changelog | 0 {debian => packages/debian}/compat | 0 {debian => packages/debian}/control | 0 {debian => packages/debian}/copyright | 0 {debian => packages/debian}/menu | 0 {debian => packages/debian}/python-bitmessage.install | 0 {debian => packages/debian}/rules | 0 {debian => packages/debian}/source/format | 0 {debian => packages/debian}/source/options | 0 12 files changed, 0 insertions(+), 0 deletions(-) rename {debian => packages/debian}/README.Debian (100%) rename {debian => packages/debian}/apparmor/pybitmessage (100%) rename {debian => packages/debian}/bitmessage-docs.docs (100%) rename {debian => packages/debian}/changelog (100%) rename {debian => packages/debian}/compat (100%) rename {debian => packages/debian}/control (100%) rename {debian => packages/debian}/copyright (100%) rename {debian => packages/debian}/menu (100%) rename {debian => packages/debian}/python-bitmessage.install (100%) rename {debian => packages/debian}/rules (100%) rename {debian => packages/debian}/source/format (100%) rename {debian => packages/debian}/source/options (100%) diff --git a/debian/README.Debian b/packages/debian/README.Debian similarity index 100% rename from debian/README.Debian rename to packages/debian/README.Debian diff --git a/debian/apparmor/pybitmessage b/packages/debian/apparmor/pybitmessage similarity index 100% rename from debian/apparmor/pybitmessage rename to packages/debian/apparmor/pybitmessage diff --git a/debian/bitmessage-docs.docs b/packages/debian/bitmessage-docs.docs similarity index 100% rename from debian/bitmessage-docs.docs rename to packages/debian/bitmessage-docs.docs diff --git a/debian/changelog b/packages/debian/changelog similarity index 100% rename from debian/changelog rename to packages/debian/changelog diff --git a/debian/compat b/packages/debian/compat similarity index 100% rename from debian/compat rename to packages/debian/compat diff --git a/debian/control b/packages/debian/control similarity index 100% rename from debian/control rename to packages/debian/control diff --git a/debian/copyright b/packages/debian/copyright similarity index 100% rename from debian/copyright rename to packages/debian/copyright diff --git a/debian/menu b/packages/debian/menu similarity index 100% rename from debian/menu rename to packages/debian/menu diff --git a/debian/python-bitmessage.install b/packages/debian/python-bitmessage.install similarity index 100% rename from debian/python-bitmessage.install rename to packages/debian/python-bitmessage.install diff --git a/debian/rules b/packages/debian/rules similarity index 100% rename from debian/rules rename to packages/debian/rules diff --git a/debian/source/format b/packages/debian/source/format similarity index 100% rename from debian/source/format rename to packages/debian/source/format diff --git a/debian/source/options b/packages/debian/source/options similarity index 100% rename from debian/source/options rename to packages/debian/source/options -- 2.45.1 From 8fb9a6c9322ee83cc79a383ccd952b5df82db7f6 Mon Sep 17 00:00:00 2001 From: navjot Date: Wed, 14 Oct 2020 14:48:05 +0530 Subject: [PATCH 4/4] Fix version, dh argument, use native format and removed python-msgpack --- packages/debian/README.Debian | 2 +- packages/debian/changelog | 2 +- packages/debian/rules | 2 +- packages/debian/source/format | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/debian/README.Debian b/packages/debian/README.Debian index 1f44b1d1..db103f20 100644 --- a/packages/debian/README.Debian +++ b/packages/debian/README.Debian @@ -6,7 +6,7 @@ In order to build the .deb yourself, you'll first have to install the stuff that apt-get install python-minimal python-setuptools python-all \ python openssl libssl-dev dh-apparmor debhelper dh-python \ - python-msgpack python-qt4 git + python-qt4 git Next make some build directory and clone the newest git repository: diff --git a/packages/debian/changelog b/packages/debian/changelog index 17f6df05..ecb8854b 100644 --- a/packages/debian/changelog +++ b/packages/debian/changelog @@ -1,4 +1,4 @@ -bitmessage (0.7a-1) unstable; urgency=medium +bitmessage (0.6.3.2) stable; urgency=medium * Initial release diff --git a/packages/debian/rules b/packages/debian/rules index 5b68b019..22fd7887 100755 --- a/packages/debian/rules +++ b/packages/debian/rules @@ -7,7 +7,7 @@ export DH_OPTIONS=-v export PYBUILD_NAME=bitmessage %: - dh $@ --with python2 --buildsystem=pybuild --sourcedirectory=.. + dh $@ --with python2 --system=pybuild dh_apparmor --profile-name=pybitmessage -ppython-bitmessage # If you need to rebuild the Sphinx documentation diff --git a/packages/debian/source/format b/packages/debian/source/format index 163aaf8d..89ae9db8 100644 --- a/packages/debian/source/format +++ b/packages/debian/source/format @@ -1 +1 @@ -3.0 (quilt) +3.0 (native) -- 2.45.1