diff mbox series

[2/2] package/janus-gateway: add systemd socket support

Message ID 20200614211913.646488-2-aduskett@gmail.com
State Accepted
Headers show
Series [1/2] package/janus-gateway: bump to version 0.10.1 | expand

Commit Message

Adam Duskett June 14, 2020, 9:19 p.m. UTC
From: Adam Duskett <Aduskett@gmail.com>

If systemd is selected, add the systemd package to the dependency list and set
the conf opt --enable-systemd-sockets.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
---
 package/janus-gateway/janus-gateway.mk | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/package/janus-gateway/janus-gateway.mk b/package/janus-gateway/janus-gateway.mk
index 0ecd83fce1..56b7d67332 100644
--- a/package/janus-gateway/janus-gateway.mk
+++ b/package/janus-gateway/janus-gateway.mk
@@ -112,4 +112,11 @@  else
 JANUS_GATEWAY_CONF_OPTS += --disable-websockets
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD),y)
+JANUS_GATEWAY_DEPENDENCIES += systemd
+JANUS_GATEWAY_CONF_OPTS += --enable-systemd-sockets
+else
+JANUS_GATEWAY_CONF_OPTS += --disable-systemd-sockets
+endif
+
 $(eval $(autotools-package))