Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mtda service package #394

Merged
merged 2 commits into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion debian/compat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10
13
46 changes: 23 additions & 23 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,29 @@ Standards-Version: 4.5.0
Homepage: https://github.com/siemens/mtda
X-Python3-Version: >= 3.7

Package: mtda-service
Architecture: all
Multi-Arch: foreign
Depends: mtda-common,
python3-daemon,
python3-gevent,
python3-libgpiod,
python3-psutil,
python3-requests,
python3-serial,
python3-systemd,
python3-usb,
python3-zeroconf,
python3-zmq,
python3-zstandard,
usbrelay,
${misc:Depends}
Replaces: mtda-usb-functions
Suggests: nbd-server
Description: Multi-Tenant Device Access service
Provide the infrastructure for running MTDA as a systemd
service.

Package: mtda
Architecture: all
Multi-Arch: foreign
Expand Down Expand Up @@ -81,29 +104,6 @@ Description: support for pytest code that uses MTDA
Provide helper classes to write tests with the pytest and MTDA
frameworks.

Package: mtda-service
Architecture: all
Multi-Arch: foreign
Depends: mtda-common,
python3-daemon,
python3-gevent,
python3-libgpiod,
python3-psutil,
python3-requests,
python3-serial,
python3-systemd,
python3-usb,
python3-zeroconf,
python3-zmq,
python3-zstandard,
usbrelay,
${misc:Depends}
Replaces: mtda-usb-functions
Suggests: nbd-server
Description: Multi-Tenant Device Access service
Provide the infrastructure for running MTDA as a systemd
service.

Package: mtda-ui
Architecture: all
Multi-Arch: foreign
Expand Down
File renamed without changes.
10 changes: 1 addition & 9 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PY_TARGET=$(shell python3 -c "import sysconfig; print(sysconfig.get_path('stdlib
MTDA_DIST=$(PY_TARGET)/dist-packages/mtda

%:
dh $@ --with python3 --with=systemd --buildsystem=pybuild
dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:

Expand Down Expand Up @@ -71,14 +71,6 @@ override_dh_auto_install:
mv debian/mtda-service$(MTDA_DIST)/www.py debian/mtda-www$(MTDA_DIST)/
install -m 0644 configs/10-www.conf debian/mtda-www/etc/mtda/config.d/

override_dh_systemd_enable:
dh_systemd_enable --name=mtda
dh_systemd_enable --name=mtda-config

override_dh_installsystemd:
dh_installsystemd --name=mtda
dh_installsystemd --name=mtda-config

override_dh_systemd_start:
dh_systemd_start --name=mtda
dh_systemd_start --name=mtda-config