aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-24 05:21:56 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-24 05:21:56 +0000
commite474394dfbe9adfadc6673b9bde871957e73f61f (patch)
treebedb14b883c1150131ce50975c1318b1697c2aa0 /Makefile
parent0e16542a03e25cb205169cdeb7c6b354879be5cc (diff)
Merged revisions 133400 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r133400 | tilghman | 2008-07-24 00:21:00 -0500 (Thu, 24 Jul 2008) | 3 lines Build the logrotate script according to paths (Closes issue #13147) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@133405 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9526d491b..9d5502cf6 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 \