[Lunar-commits] <moonbase-other> openslp: Some adjustments to make it systemd compatible.

Dennis Veatch stumbles at lunar-linux.org
Tue Jul 17 18:24:11 CEST 2012


commit ae74b5873e639d50db0a563d2424114a530c01ae
Author: Dennis Veatch <stumbles at lunar-linux.org>
Date: Tue, 17 Jul 2012 09:24:11 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/ae74b5873e639d50db0a563d2424114a530c01ae

openslp: Some adjustments to make it systemd compatible.
---
  net/openslp/BUILD                                            +1/-1     
  net/openslp/CONFIGURE                                        +3/-0     
  net/openslp/systemd.d/openslp.service                        +11/-0    
  3 files changed, 15 insertions (+), 1 deletions (-)

--- a/net/openslp/BUILD
+++ b/net/openslp/BUILD
@@ -1,6 +1,6 @@
 (
 
-  OPTS="--enable-async-api --enable-slpv2-security"
+  OPTS+=" --sysconfdir=/etc/slp" &&
 
   default_build
 
--- /dev/null
+++ b/net/openslp/CONFIGURE
@@ -0,0 +1,3 @@
+mquery ENBL_SLPV1 "Enable SLPv1 support?" y "--enable-slpv1" "--disable-slpv1"
+mquery ENBL_SLPV2 "Enable SLPv2 security support?" y "--enable-slpv2-security" "--disable-slpv2-security"
+mquery ENBL_ASYNC "Enable asyncronous support?" y "--enable-async-api" "--disable-async-api"
--- /dev/null
+++ b/net/openslp/systemd.d/openslp.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Service Location Protocol
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/slpd -c /etc/slp/slp.conf -r /etc/slp/slp.reg -s /etc/slp/slp.spi
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=network.target




More information about the Lunar-commits mailing list