[Asterisk-code-review] BuildSystem: Install init scripts on openSUSE Tumbleweed. (asterisk[15])

Alexander Traud asteriskteam at digium.com
Fri Mar 2 07:06:01 CST 2018


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/8405


Change subject: BuildSystem: Install init scripts on openSUSE Tumbleweed.
......................................................................

BuildSystem: Install init scripts on openSUSE Tumbleweed.

ASTERISK-27710

Change-Id: I4c777e41b31d4415bbe21cb435ad47b43ebb5467
---
M Makefile
1 file changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/05/8405/1

diff --git a/Makefile b/Makefile
index a11c8de..1f155fc 100644
--- a/Makefile
+++ b/Makefile
@@ -929,6 +929,14 @@
 		if [ -z "$(DESTDIR)" ] ; then \
 			/sbin/chkconfig --add asterisk ; \
 		fi ; \
+	elif [ -f /etc/os-release ] && [ "opensuse" = "$(shell . /etc/os-release && echo $$ID)" ] ; then \
+		./build_tools/install_subst contrib/init.d/rc.suse.asterisk  "$(DESTDIR)/etc/init.d/asterisk"; \
+		if [ ! -f /etc/sysconfig/asterisk ] ; then \
+			$(INSTALL) -m 644 contrib/init.d/etc_default_asterisk "$(DESTDIR)/etc/sysconfig/asterisk" ; \
+		fi ; \
+		if [ -z "$(DESTDIR)" ] ; then \
+			/sbin/chkconfig --add asterisk ; \
+		fi ; \
 	elif [ -f /etc/arch-release -o -f /etc/arch-release ] ; then \
 		./build_tools/install_subst contrib/init.d/rc.archlinux.asterisk  "$(DESTDIR)/etc/init.d/asterisk"; \
 	elif [ -d "$(DESTDIR)/Library/LaunchDaemons" ]; then \

-- 
To view, visit https://gerrit.asterisk.org/8405
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4c777e41b31d4415bbe21cb435ad47b43ebb5467
Gerrit-Change-Number: 8405
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180302/9b0238f7/attachment.html>


More information about the asterisk-code-review mailing list