]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
install init.d files on GNU/kFreeBSD
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Fri, 31 Oct 2014 16:32:56 +0000 (16:32 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Fri, 31 Oct 2014 16:32:56 +0000 (16:32 +0000)
Review: https://reviewboard.asterisk.org/r/4118/
........

Merged revisions 426926 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@426927 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index d2fa3b26d324df8671fca5d9a357380635c4543c..527bf18b4a15bf98d68f73e02848020f110bbe83 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -747,7 +747,7 @@ install-logrotate:
        rm -f contrib/scripts/asterisk.logrotate.tmp
 
 config:
-       @if [ "${OSARCH}" = "linux-gnu" ]; then \
+       @if [ "${OSARCH}" = "linux-gnu" -o "${OSARCH}" = "kfreebsd-gnu"]; then \
                if [ -f /etc/redhat-release -o -f /etc/fedora-release ]; then \
                        cat contrib/init.d/rc.redhat.asterisk | sed 's|__ASTERISK_ETC_DIR__|$(ASTETCDIR)|;s|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/init.d/rc.asterisk.tmp ; \
                        $(INSTALL) -m 755 contrib/init.d/rc.asterisk.tmp "$(DESTDIR)/etc/rc.d/init.d/asterisk" ; \