[Asterisk-code-review] BuildSystem: Install init scripts on openSUSE Tumbleweed. (asterisk[13])
Jenkins2
asteriskteam at digium.com
Tue Mar 6 10:44:58 CST 2018
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/8404 )
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(-)
Approvals:
George Joseph: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
diff --git a/Makefile b/Makefile
index f24e8b1..65482a5 100644
--- a/Makefile
+++ b/Makefile
@@ -930,6 +930,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/8404
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: I4c777e41b31d4415bbe21cb435ad47b43ebb5467
Gerrit-Change-Number: 8404
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180306/efe2bd43/attachment-0001.html>
More information about the asterisk-code-review
mailing list