summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-07-24 04:51:42 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-07-24 04:51:42 +0000
commitb733aa5b4cfa6906174d1d423799cf6a87d582ef (patch)
tree99feb80cc183bc3ff6c322601233bf04cd87083e /Makefile
parent1adecc56eb8f5ddb9aafff10fd2c385469b823e1 (diff)
Optionally install logrotate file
(Closes issue #13148) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@133391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7b810a3f6..27b464406 100644
--- a/Makefile
+++ b/Makefile
@@ -758,6 +758,12 @@ progdocs:
(cat contrib/asterisk-ng-doxygen; echo "HAVE_DOT=$(HAVEDOT)"; \
echo "PROJECT_NUMBER=$(ASTERISKVERSION)") | doxygen -
+install-logrotate:
+ if [ ! -d $(ASTETCDIR)/../logrotate.d ]; then \
+ mkdir $(ASTETCDIR)/../logrotate.d ; \
+ fi
+ install -m 0644 contrib/scripts/asterisk.logrotate $(ASTETCDIR)/../logrotate.d/asterisk
+
config:
@if [ "${OSARCH}" = "linux-gnu" ]; then \
if [ -f /etc/redhat-release -o -f /etc/fedora-release ]; then \