[asterisk-commits] pabelanger: branch pabelanger/non-root r279132 - /team/pabelanger/non-root/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 23 14:20:24 CDT 2010
Author: pabelanger
Date: Fri Jul 23 14:20:17 2010
New Revision: 279132
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=279132
Log:
After a discussion on #asterisk-dev some files should not be
asterisk:asterisk. Until we find a solution for TOS / snmp, for
example, asterisk must still be executed by root.
Modified:
team/pabelanger/non-root/Makefile
Modified: team/pabelanger/non-root/Makefile
URL: http://svnview.digium.com/svn/asterisk/team/pabelanger/non-root/Makefile?view=diff&rev=279132&r1=279131&r2=279132
==============================================================================
--- team/pabelanger/non-root/Makefile (original)
+++ team/pabelanger/non-root/Makefile Fri Jul 23 14:20:17 2010
@@ -129,12 +129,14 @@
# Include debug and macro symbols in the executables (-g) and profiling info (-pg)
DEBUG=-g3
+INSTALL2:=$(INSTALL)
+
ifneq ($(AST_ENABLE_ROOT),yes)
ifneq ($(AST_USER),)
- INSTALL+= -o $(AST_USER)
+ INSTALL2+= -o $(AST_USER)
endif
ifneq ($(AST_GROUP),)
- INSTALL+= -g $(AST_GROUP)
+ INSTALL2+= -g $(AST_GROUP)
endif
endif
@@ -510,16 +512,16 @@
# improved a lot. I'll put it here for now.
for x in static-http/*; do \
- $(INSTALL) -m 640 $$x $(DESTDIR)$(ASTDATADIR)/static-http ; \
+ $(INSTALL2) -m 640 $$x $(DESTDIR)$(ASTDATADIR)/static-http ; \
done
if [ -d doc/tex/asterisk ] ; then \
- $(INSTALL) -d -m 750 $(DESTDIR)$(ASTDATADIR)/static-http/docs ; \
+ $(INSTALL2) -d -m 750 $(DESTDIR)$(ASTDATADIR)/static-http/docs ; \
for n in doc/tex/asterisk/* ; do \
- $(INSTALL) -m 640 $$n $(DESTDIR)$(ASTDATADIR)/static-http/docs ; \
+ $(INSTALL2) -m 640 $$n $(DESTDIR)$(ASTDATADIR)/static-http/docs ; \
done \
fi
for x in images/*.jpg; do \
- $(INSTALL) -m 640 $$x $(DESTDIR)$(ASTDATADIR)/images ; \
+ $(INSTALL2) -m 640 $$x $(DESTDIR)$(ASTDATADIR)/images ; \
done
$(MAKE) -C sounds install
@@ -571,62 +573,63 @@
OLDHEADERS=$(filter-out $(NEWHEADERS),$(notdir $(wildcard $(DESTDIR)$(ASTHEADERDIR)/*.h)))
installdirs:
- $(INSTALL) -d -m 750 "$(DESTDIR)$(MODULES_DIR)"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTSBINDIR)"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTETCDIR)"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTVARRUNDIR)"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)/dictate"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)/meetme"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)/monitor"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)/system"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)/tmp"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)/voicemail"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTHEADERDIR)"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTHEADERDIR)/doxygen"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTLOGDIR)"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTLOGDIR)/cdr-csv"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTLOGDIR)/cdr-custom"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTLOGDIR)/cel-csv"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTLOGDIR)/cel-custom"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTDATADIR)"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/documentation"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/documentation/thirdparty"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/firmware"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/firmware/iax"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/images"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/keys"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/phoneprov"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/static-http"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(ASTMANDIR)/man8"
- $(INSTALL) -d -m 750 "$(DESTDIR)$(AGI_DIR)"
+ $(INSTALL) -d -m 755 "$(DESTDIR)$(MODULES_DIR)"
+ $(INSTALL) -d -m 755 "$(DESTDIR)$(ASTSBINDIR)"
+ $(INSTALL) -d -m 755 "$(DESTDIR)$(ASTMANDIR)/man8"
+
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTETCDIR)"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTVARRUNDIR)"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)/dictate"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)/meetme"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)/monitor"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)/system"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)/tmp"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTSPOOLDIR)/voicemail"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTHEADERDIR)"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTHEADERDIR)/doxygen"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTLOGDIR)"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTLOGDIR)/cdr-csv"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTLOGDIR)/cdr-custom"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTLOGDIR)/cel-csv"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTLOGDIR)/cel-custom"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTDATADIR)"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/documentation"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/documentation/thirdparty"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/firmware"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/firmware/iax"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/images"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/keys"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/phoneprov"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(ASTDATADIR)/static-http"
+ $(INSTALL2) -d -m 750 "$(DESTDIR)$(AGI_DIR)"
bininstall: _all installdirs $(SUBDIRS_INSTALL)
- $(INSTALL) -m 750 main/asterisk $(DESTDIR)$(ASTSBINDIR)/
+ $(INSTALL) -m 755 main/asterisk $(DESTDIR)$(ASTSBINDIR)/
$(LN) -sf asterisk $(DESTDIR)$(ASTSBINDIR)/rasterisk
- $(INSTALL) -m 750 contrib/scripts/astgenkey $(DESTDIR)$(ASTSBINDIR)/
- $(INSTALL) -m 750 contrib/scripts/autosupport $(DESTDIR)$(ASTSBINDIR)/
+ $(INSTALL) -m 755 contrib/scripts/astgenkey $(DESTDIR)$(ASTSBINDIR)/
+ $(INSTALL) -m 755 contrib/scripts/autosupport $(DESTDIR)$(ASTSBINDIR)/
if [ ! -f $(DESTDIR)$(ASTSBINDIR)/safe_asterisk -a ! -f /sbin/launchd ]; then \
cat contrib/scripts/safe_asterisk | sed 's|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/scripts/safe.tmp ; \
- $(INSTALL) -c -m 750 contrib/scripts/safe.tmp $(DESTDIR)$(ASTSBINDIR)/safe_asterisk ; \
+ $(INSTALL) -c -m 755 contrib/scripts/safe.tmp $(DESTDIR)$(ASTSBINDIR)/safe_asterisk ; \
rm -f contrib/scripts/safe.tmp ; \
fi
- $(INSTALL) -m 640 include/asterisk.h $(DESTDIR)$(includedir)
- $(INSTALL) -m 640 include/asterisk/*.h $(DESTDIR)$(ASTHEADERDIR)
- $(INSTALL) -m 640 include/asterisk/doxygen/*.h $(DESTDIR)$(ASTHEADERDIR)/doxygen
+ $(INSTALL) -m 644 include/asterisk.h $(DESTDIR)$(includedir)
+ $(INSTALL) -m 644 include/asterisk/*.h $(DESTDIR)$(ASTHEADERDIR)
+ $(INSTALL) -m 644 include/asterisk/doxygen/*.h $(DESTDIR)$(ASTHEADERDIR)/doxygen
if [ -n "$(OLDHEADERS)" ]; then \
rm -f $(addprefix $(DESTDIR)$(ASTHEADERDIR)/,$(OLDHEADERS)) ;\
fi
- $(INSTALL) -m 640 doc/core-*.xml $(DESTDIR)$(ASTDATADIR)/documentation
- $(INSTALL) -m 640 doc/appdocsxml.dtd $(DESTDIR)$(ASTDATADIR)/documentation
- $(INSTALL) -m 640 keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys
- $(INSTALL) -m 640 keys/freeworlddialup.pub $(DESTDIR)$(ASTDATADIR)/keys
- $(INSTALL) -m 640 doc/asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
- $(INSTALL) -m 640 contrib/scripts/astgenkey.8 $(DESTDIR)$(ASTMANDIR)/man8
- $(INSTALL) -m 640 contrib/scripts/autosupport.8 $(DESTDIR)$(ASTMANDIR)/man8
- $(INSTALL) -m 640 contrib/scripts/safe_asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
+ $(INSTALL2) -m 640 doc/core-*.xml $(DESTDIR)$(ASTDATADIR)/documentation
+ $(INSTALL2) -m 640 doc/appdocsxml.dtd $(DESTDIR)$(ASTDATADIR)/documentation
+ $(INSTALL2) -m 640 keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys
+ $(INSTALL2) -m 640 keys/freeworlddialup.pub $(DESTDIR)$(ASTDATADIR)/keys
+ $(INSTALL) -m 644 doc/asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
+ $(INSTALL) -m 644 contrib/scripts/astgenkey.8 $(DESTDIR)$(ASTMANDIR)/man8
+ $(INSTALL) -m 644 contrib/scripts/autosupport.8 $(DESTDIR)$(ASTMANDIR)/man8
+ $(INSTALL) -m 644 contrib/scripts/safe_asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8
if [ -f contrib/firmware/iax/iaxy.bin ] ; then \
- $(INSTALL) -m 640 contrib/firmware/iax/iaxy.bin $(DESTDIR)$(ASTDATADIR)/firmware/iax/iaxy.bin; \
+ $(INSTALL2) -m 640 contrib/firmware/iax/iaxy.bin $(DESTDIR)$(ASTDATADIR)/firmware/iax/iaxy.bin; \
fi
$(SUBDIRS_INSTALL):
@@ -708,7 +711,7 @@
else \
echo "Installing $$x" ; \
fi ; \
- $(INSTALL) -m 640 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x` ; \
+ $(INSTALL2) -m 640 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x` ; \
done
samples: adsi
@@ -728,7 +731,7 @@
fi ;\
fi ; \
echo "Installing file $$x"; \
- $(INSTALL) -m 640 $$x $${dst} ;\
+ $(INSTALL2) -m 640 $$x $${dst} ;\
done
if [ "$(OVERWRITE)" = "y" ]; then \
echo "Updating asterisk.conf" ; \
@@ -743,24 +746,24 @@
-e 's|^astrundir.*$$|astrundir => $(ASTVARRUNDIR)|' \
-e 's|^astlogdir.*$$|astlogdir => $(ASTLOGDIR)|' \
$(DESTDIR)$(ASTCONFPATH) > $(DESTDIR)$(ASTCONFPATH).tmp ; \
- $(INSTALL) -c -m 640 $(DESTDIR)$(ASTCONFPATH).tmp $(DESTDIR)$(ASTCONFPATH) ; \
+ $(INSTALL2) -c -m 640 $(DESTDIR)$(ASTCONFPATH).tmp $(DESTDIR)$(ASTCONFPATH) ; \
rm -f $(DESTDIR)$(ASTCONFPATH).tmp ; \
fi ; \
if [ "$(AST_USER)" ] ; then \
sed -e 's|^;runuser = asterisk.*$$|runuser = $(AST_USER)|' \
-e 's|^;astctlowner = asterisk.*$$|astctlowner = $(AST_USER)|' \
$(DESTDIR)$(ASTCONFPATH) > $(DESTDIR)$(ASTCONFPATH).tmp ; \
- $(INSTALL) -c -m 640 $(DESTDIR)$(ASTCONFPATH).tmp $(DESTDIR)$(ASTCONFPATH) ; \
+ $(INSTALL2) -c -m 640 $(DESTDIR)$(ASTCONFPATH).tmp $(DESTDIR)$(ASTCONFPATH) ; \
rm -f $(DESTDIR)$(ASTCONFPATH).tmp ; \
fi ; \
if [ "$(AST_GROUP)" ] ; then \
sed -e 's|^;rungroup = asterisk.*$$|rungroup = $(AST_GROUP)|' \
-e 's|^;astctlgroup = asterisk.*$$|astctlgroup = $(AST_GROUP)|' \
$(DESTDIR)$(ASTCONFPATH) > $(DESTDIR)$(ASTCONFPATH).tmp ; \
- $(INSTALL) -c -m 640 $(DESTDIR)$(ASTCONFPATH).tmp $(DESTDIR)$(ASTCONFPATH) ; \
+ $(INSTALL2) -c -m 640 $(DESTDIR)$(ASTCONFPATH).tmp $(DESTDIR)$(ASTCONFPATH) ; \
rm -f $(DESTDIR)$(ASTCONFPATH).tmp ; \
fi ; \
- $(INSTALL) -d -m 750 $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX
+ $(INSTALL2) -d -m 750 $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX
build_tools/make_sample_voicemail $(DESTDIR)$(ASTDATADIR) $(DESTDIR)$(ASTSPOOLDIR)
@for x in phoneprov/*; do \
@@ -778,16 +781,16 @@
fi ;\
fi ; \
echo "Installing file $$x"; \
- $(INSTALL) -m 640 $$x $${dst} ;\
+ $(INSTALL2) -m 640 $$x $${dst} ;\
done
webvmail:
@[ -d $(DESTDIR)$(HTTP_DOCSDIR)/ ] || ( printf "http docs directory not found.\nUpdate assignment of variable HTTP_DOCSDIR in Makefile!\n" && exit 1 )
@[ -d $(DESTDIR)$(HTTP_CGIDIR) ] || ( printf "cgi-bin directory not found.\nUpdate assignment of variable HTTP_CGIDIR in Makefile!\n" && exit 1 )
- $(INSTALL) -m 4750 contrib/scripts/vmail.cgi $(DESTDIR)$(HTTP_CGIDIR)/vmail.cgi
- $(INSTALL) -d -m 750 $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk
+ $(INSTALL2) -m 4750 contrib/scripts/vmail.cgi $(DESTDIR)$(HTTP_CGIDIR)/vmail.cgi
+ $(INSTALL2) -d -m 750 $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk
for x in images/*.gif; do \
- $(INSTALL) -m 640 $$x $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk/; \
+ $(INSTALL2) -m 640 $$x $(DESTDIR)$(HTTP_DOCSDIR)/_asterisk/; \
done
@echo " +--------- Asterisk Web Voicemail ----------+"
@echo " + +"
@@ -816,64 +819,64 @@
$(INSTALL) -d $(ASTETCDIR)/../logrotate.d ; \
fi
sed 's#__LOGDIR__#$(ASTLOGDIR)#g' < contrib/scripts/asterisk.logrotate | sed 's#__SBINDIR__#$(ASTSBINDIR)#g' > contrib/scripts/asterisk.logrotate.tmp
- $(INSTALL) -m 0640 contrib/scripts/asterisk.logrotate.tmp $(ASTETCDIR)/../logrotate.d/asterisk
+ $(INSTALL) -m 0644 contrib/scripts/asterisk.logrotate.tmp $(ASTETCDIR)/../logrotate.d/asterisk
rm -f contrib/scripts/asterisk.logrotate.tmp
config:
@if [ "${OSARCH}" = "linux-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) -c -m 750 contrib/init.d/rc.asterisk.tmp $(DESTDIR)/etc/rc.d/init.d/asterisk ; \
+ $(INSTALL) -c -m 755 contrib/init.d/rc.asterisk.tmp $(DESTDIR)/etc/rc.d/init.d/asterisk ; \
rm -f contrib/init.d/rc.asterisk.tmp ; \
if [ ! -f $(DESTDIR)/etc/sysconfig/asterisk ] ; then \
- $(INSTALL) -c -m 640 contrib/init.d/etc_default_asterisk $(DESTDIR)/etc/sysconfig/asterisk ; \
+ $(INSTALL) -c -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/debian_version ] ; then \
cat contrib/init.d/rc.debian.asterisk | sed 's|__ASTERISK_ETC_DIR__|$(ASTETCDIR)|;s|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/init.d/rc.asterisk.tmp ; \
- $(INSTALL) -c -m 750 contrib/init.d/rc.asterisk.tmp $(DESTDIR)/etc/init.d/asterisk ; \
+ $(INSTALL) -c -m 755 contrib/init.d/rc.asterisk.tmp $(DESTDIR)/etc/init.d/asterisk ; \
rm -f contrib/init.d/rc.asterisk.tmp ; \
if [ ! -f $(DESTDIR)/etc/default/asterisk ] ; then \
- $(INSTALL) -c -m 640 contrib/init.d/etc_default_asterisk $(DESTDIR)/etc/default/asterisk ; \
+ $(INSTALL) -c -m 644 contrib/init.d/etc_default_asterisk $(DESTDIR)/etc/default/asterisk ; \
fi ; \
if [ -z "$(DESTDIR)" ] ; then \
/usr/sbin/update-rc.d asterisk defaults 50 91 ; \
fi ; \
elif [ -f /etc/gentoo-release ] ; then \
cat contrib/init.d/rc.gentoo.asterisk | sed 's|__ASTERISK_ETC_DIR__|$(ASTETCDIR)|;s|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/init.d/rc.asterisk.tmp ; \
- $(INSTALL) -c -m 750 contrib/init.d/rc.asterisk.tmp $(DESTDIR)/etc/init.d/asterisk ; \
+ $(INSTALL) -c -m 755 contrib/init.d/rc.asterisk.tmp $(DESTDIR)/etc/init.d/asterisk ; \
rm -f contrib/init.d/rc.asterisk.tmp ; \
if [ -z "$(DESTDIR)" ] ; then \
/sbin/rc-update add asterisk default ; \
fi ; \
elif [ -f /etc/mandrake-release -o -f /etc/mandriva-release ] ; then \
cat contrib/init.d/rc.mandriva.asterisk | sed 's|__ASTERISK_ETC_DIR__|$(ASTETCDIR)|;s|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/init.d/rc.asterisk.tmp ; \
- $(INSTALL) -c -m 750 contrib/init.d/rc.asterisk.tmp $(DESTDIR)/etc/rc.d/init.d/asterisk ; \
+ $(INSTALL) -c -m 755 contrib/init.d/rc.asterisk.tmp $(DESTDIR)/etc/rc.d/init.d/asterisk ; \
rm -f contrib/init.d/rc.asterisk.tmp ; \
if [ ! -f /etc/sysconfig/asterisk ] ; then \
- $(INSTALL) -c -m 640 contrib/init.d/etc_default_asterisk $(DESTDIR)/etc/sysconfig/asterisk ; \
+ $(INSTALL) -c -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/SuSE-release -o -f /etc/novell-release ] ; then \
cat contrib/init.d/rc.suse.asterisk | sed 's|__ASTERISK_ETC_DIR__|$(ASTETCDIR)|;s|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/init.d/rc.asterisk.tmp ; \
- $(INSTALL) -c -m 750 contrib/init.d/rc.asterisk.tmp $(DESTDIR)/etc/init.d/asterisk ;\
+ $(INSTALL) -c -m 755 contrib/init.d/rc.asterisk.tmp $(DESTDIR)/etc/init.d/asterisk ;\
rm -f contrib/init.d/rc.asterisk.tmp ; \
if [ ! -f /etc/sysconfig/asterisk ] ; then \
- $(INSTALL) -c -m 640 contrib/init.d/etc_default_asterisk $(DESTDIR)/etc/sysconfig/asterisk ; \
+ $(INSTALL) -c -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 \
cat contrib/init.d/rc.archlinux.asterisk | sed 's|__ASTERISK_ETC_DIR__|$(ASTETCDIR)|;s|__ASTERISK_SBIN_DIR__|$(ASTSBINDIR)|;s|__ASTERISK_VARRUN_DIR__|$(ASTVARRUNDIR)|;' > contrib/init.d/rc.asterisk.tmp ; \
- $(INSTALL) -c -m 750 contrib/init.d/rc.asterisk.tmp $(DESTDIR)/etc/rc.d/asterisk ; \
+ $(INSTALL) -c -m 755 contrib/init.d/rc.asterisk.tmp $(DESTDIR)/etc/rc.d/asterisk ; \
rm -f contrib/init.d/rc.asterisk.tmp ; \
elif [ -d $(DESTDIR)/Library/LaunchDaemons -a ! -f $(DESTDIR)/Library/LaunchDaemons/org.asterisk.asterisk.plist ] ; then \
- $(INSTALL) -c -m 640 contrib/init.d/org.asterisk.asterisk.plist $(DESTDIR)/Library/LaunchDaemons/org.asterisk.asterisk.plist; \
+ $(INSTALL) -c -m 644 contrib/init.d/org.asterisk.asterisk.plist $(DESTDIR)/Library/LaunchDaemons/org.asterisk.asterisk.plist; \
elif [ -f /etc/slackware-version ]; then \
echo "Slackware is not currently supported, although an init script does exist for it."; \
else \
More information about the asterisk-commits
mailing list