The systemd support code is only a few lines of code and can be compiled
unconditionally if systemd is available anyway. For that to work,
systemd must obviously have been installed first.

Signed-off-by: Roland Hieber <[email protected]>
---
 * v1 -> v2: rework after feedback from mol
---
 rules/gpsd.in | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/rules/gpsd.in b/rules/gpsd.in
index 6d1db1495f3f..b69570af0f49 100644
--- a/rules/gpsd.in
+++ b/rules/gpsd.in
@@ -14,6 +14,7 @@ menuconfig GPSD
        select DBUS_GLIB                if GPSD_DBUS
        select PYTHON3                  if GPSD_PYTHON
        select PYSERIAL3                if GPSD_PYSERIAL
+       select SYSTEMD                  if GPSD_SYSTEMD
        prompt "gpsd                          "
        help
          gpsd is a daemon that listens to a GPS or Loran receiver
@@ -31,6 +32,10 @@ config GPSD_NCURSES
 config GPSD_PYSERIAL
        bool
 
+config GPSD_SYSTEMD
+       bool
+       default INITMETHOD_SYSTEMD
+
 comment "time service     ---"
 
 config GPSD_OSCILLATOR
@@ -63,11 +68,6 @@ config GPSD_USB
 
 comment "Other options    ---"
 
-config GPSD_SYSTEMD
-       bool
-       depends on SYSTEMD
-       prompt "systemd"
-
 config GPSD_RECONFIGURE
        bool
        prompt "enable reconfigure"
-- 
2.27.0


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to