From 3635a9497d9c56b236be6ab643d8dd92f4988d16 Mon Sep 17 00:00:00 2001 From: tilghman Date: Thu, 24 Jul 2008 05:21:00 +0000 Subject: Build the logrotate script according to paths (Closes issue #13147) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133400 f38db490-d61c-443f-a65b-d21fe96a405b --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 27b464406..eb7ac50aa 100644 --- a/Makefile +++ b/Makefile @@ -762,7 +762,9 @@ install-logrotate: if [ ! -d $(ASTETCDIR)/../logrotate.d ]; then \ mkdir $(ASTETCDIR)/../logrotate.d ; \ fi - install -m 0644 contrib/scripts/asterisk.logrotate $(ASTETCDIR)/../logrotate.d/asterisk + sed 's#__LOGDIR__#$(ASTLOGDIR)#g' < contrib/scripts/asterisk.logrotate | sed 's#__SBINDIR__#$(ASTSBINDIR)#g' > contrib/scripts/asterisk.logrotate.tmp + 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 \ -- cgit v1.2.3