diff --git a/debian/control b/debian/control index 8e7016a..c1da24a 100644 --- a/debian/control +++ b/debian/control @@ -3,10 +3,11 @@ Maintainer: Jakob Ketterl Section: hamradio Priority: optional Standards-Version: 4.2.0 -Build-Depends: debhelper (>= 10), dh-python, python3 (>= 3.6) +Build-Depends: debhelper (>= 10), dh-python, python3 (>= 3.6), dh-systemd (>= 1.5) Package: openwebrx Architecture: all -Depends: python3 (>= 3.6), csdr (>= 0.15), netcat, +Depends: python3 (>= 3.6), csdr (>= 0.15), netcat, owrx-connector (>= 0.1) +Recommends: digiham (>= 0.2), dsd (>= 1.7) Description: multi-user web sdr Open source, multi-user SDR receiver with a web interface \ No newline at end of file diff --git a/debian/openwebrx.install b/debian/openwebrx.install index ff6bc97..ab6fb3a 100644 --- a/debian/openwebrx.install +++ b/debian/openwebrx.install @@ -1 +1,2 @@ -config_webrx.py etc/ \ No newline at end of file +config_webrx.py etc/ +systemd/openwebrx.service lib/systemd/system/ \ No newline at end of file diff --git a/debian/rules b/debian/rules index fc2170d..5ed154e 100755 --- a/debian/rules +++ b/debian/rules @@ -2,4 +2,4 @@ export PYBUILD_NAME=openwebrx %: - dh $@ --with python3 --buildsystem=pybuild + dh $@ --with python3 --buildsystem=pybuild --with systemd diff --git a/systemd/openwebrx.service b/systemd/openwebrx.service new file mode 100644 index 0000000..5865022 --- /dev/null +++ b/systemd/openwebrx.service @@ -0,0 +1,13 @@ +[Unit] +Description=OpenWebRX WebSDR receiver +After=multi-user.target + +[Service] +Type=simple +User=root +Group=root +ExecStart=/usr/bin/openwebrx +Restart=on-failure + +[Install] +WantedBy=multi-user.target