Makefile: remove OSARCH check for init install

There are more specific checks for the platform.

Specifically this allows installing OS/X init scripts.

ASTERISK-26038 #close

Change-Id: If08933621145b10362a0cfe73c079301d9c13f50
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
Tzafrir Cohen
2016-05-18 18:58:20 +03:00
parent c0b190dd9a
commit a32616d60c

View File

@@ -825,7 +825,6 @@ install-logrotate:
rm -f contrib/scripts/asterisk.logrotate.tmp rm -f contrib/scripts/asterisk.logrotate.tmp
config: config:
@if [ "${OSARCH}" = "linux-gnu" -o "${OSARCH}" = "kfreebsd-gnu" ]; then \
if [ -f /etc/redhat-release -o -f /etc/fedora-release ]; then \ if [ -f /etc/redhat-release -o -f /etc/fedora-release ]; then \
./build_tools/install_subst contrib/init.d/rc.redhat.asterisk "$(DESTDIR)/etc/rc.d/init.d/asterisk"; \ ./build_tools/install_subst contrib/init.d/rc.redhat.asterisk "$(DESTDIR)/etc/rc.d/init.d/asterisk"; \
if [ ! -f "$(DESTDIR)/etc/sysconfig/asterisk" ] ; then \ if [ ! -f "$(DESTDIR)/etc/sysconfig/asterisk" ] ; then \
@@ -876,9 +875,6 @@ config:
echo "Slackware is not currently supported, although an init script does exist for it."; \ echo "Slackware is not currently supported, although an init script does exist for it."; \
else \ else \
echo "We could not install init scripts for your distribution." ; \ echo "We could not install init scripts for your distribution." ; \
fi \
else \
echo "We could not install init scripts for your operating system." ; \
fi fi
sounds: sounds: