From c94b712faf2221c777186e4bee388e62eeea0b38 Mon Sep 17 00:00:00 2001 From: Sven Sager Date: Fri, 1 Sep 2023 07:24:58 +0200 Subject: [PATCH] packaging(deb): Start packaging branch Signed-off-by: Sven Sager --- debian/control | 31 +++++++++++++++++++++++++++++++ debian/copyright | 29 +++++++++++++++++++++++++++++ debian/gbp.conf | 4 ++++ debian/revpipyload.dirs | 1 + debian/revpipyload.install | 2 ++ debian/revpipyload.links | 2 ++ debian/rules | 7 +++++++ debian/source/format | 1 + 8 files changed, 77 insertions(+) create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100644 debian/revpipyload.dirs create mode 100644 debian/revpipyload.install create mode 100644 debian/revpipyload.links create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7094b71 --- /dev/null +++ b/debian/control @@ -0,0 +1,31 @@ +Source: revpipyload +Section: python +Priority: optional +Maintainer: Sven Sager +Rules-Requires-Root: no +Homepage: https://revpimodio.org/revpipyplc/ +Vcs-Browser: https://github.com/naruxde/revpimodio2 +Vcs-Git: https://github.com/naruxde/revpimodio2.git +Build-Depends: + debhelper-compat (= 12), + dh-python, + python3-all, + python3-revpimodio2 (>= 2.6.0), + python3-setuptools +Standards-Version: 4.5.1 + +Package: revpipyload +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: + ${python3:Depends}, + ${misc:Depends}, + lsb-base, + python3-paho-mqtt, + python3-revpimodio2 (>= 2.6.0) +Description: PLC Loader for Python projects on the RevolutionPi + This program start a given Python PLC program on system boot. It monitors the + program and reistartes it if an error occures. On a crash the complete + /dev/piControl0 can be set to 0x00. It also provides a XML-RPX server. Software + can be transferred to the RevPi with this server. A tool can monitor the + process image on runtime. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..903d761 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/naruxde/revpipyload +Upstream-Name: revpipyload +Upstream-Contact: Sven Sager + +Files: * +Copyright: 2017-2023 Sven Sager +License: GPL-2+ + +Files: debian/* +Copyright: 2021-2023 KUNBUS GmbH +License: GPL-2+ + +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". diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..5801da7 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,4 @@ +[DEFAULT] +upstream-branch = main +upstream-tag = %(version)s +debian-branch=pkg/debian diff --git a/debian/revpipyload.dirs b/debian/revpipyload.dirs new file mode 100644 index 0000000..7393237 --- /dev/null +++ b/debian/revpipyload.dirs @@ -0,0 +1 @@ +/var/lib/revpipyload diff --git a/debian/revpipyload.install b/debian/revpipyload.install new file mode 100644 index 0000000..ec73e7f --- /dev/null +++ b/debian/revpipyload.install @@ -0,0 +1,2 @@ +data/etc / +data/lib/systemd/revpipyload.service /lib/systemd/system/ diff --git a/debian/revpipyload.links b/debian/revpipyload.links new file mode 100644 index 0000000..69a188a --- /dev/null +++ b/debian/revpipyload.links @@ -0,0 +1,2 @@ +/usr/share/revpipyload/revpipyloadd /usr/bin/revpipyload +/usr/share/revpipyload/revpipyload_secure_installation /usr/bin/revpipyload_secure_installation diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8c81101 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=revpipyload +export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/revpipyload/ --install-scripts=/usr/share/revpipyload/ + +%: + dh $@ --with python3 --buildsystem=pybuild diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)