]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
BuildSystem: Install init scripts on openSUSE Tumbleweed.
authorAlexander Traud <pabstraud@compuserve.com>
Fri, 2 Mar 2018 13:05:25 +0000 (14:05 +0100)
committerAlexander Traud <pabstraud@compuserve.com>
Fri, 2 Mar 2018 13:05:47 +0000 (07:05 -0600)
ASTERISK-27710

Change-Id: I4c777e41b31d4415bbe21cb435ad47b43ebb5467

Makefile

index f24e8b1af974956b33ad0a835aea5eeaebfe9f89..65482a58b52858156c6c794a958d1e7529f2f01a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -930,6 +930,14 @@ config:
                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 \