[csw-devel] SF.net SVN: gar:[7448] csw/mgar/pkg/logwatch/trunk/Makefile
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Thu Nov 26 04:18:44 CET 2009
Revision: 7448
http://gar.svn.sourceforge.net/gar/?rev=7448&view=rev
Author: bdwalton
Date: 2009-11-26 03:18:44 +0000 (Thu, 26 Nov 2009)
Log Message:
-----------
logwatch: add cron support
Modified Paths:
--------------
csw/mgar/pkg/logwatch/trunk/Makefile
Modified: csw/mgar/pkg/logwatch/trunk/Makefile
===================================================================
--- csw/mgar/pkg/logwatch/trunk/Makefile 2009-11-26 03:15:29 UTC (rev 7447)
+++ csw/mgar/pkg/logwatch/trunk/Makefile 2009-11-26 03:18:44 UTC (rev 7448)
@@ -32,6 +32,10 @@
include gar/category.mk
+sysconfdir = /etc/opt/csw
+CRONDIR = $(sysconfdir)/CSW$(GARNAME)/crontabs
+CRONTABS = $(CRONDIR)/root
+
INSTALL = /opt/csw/bin/ginstall
INSTALLDIR = $(INSTALL) -m 0755 -d
INSTALLEXE = $(INSTALL) -m 0755
@@ -41,7 +45,7 @@
SHAREDIR = $(datadir)/$(GARNAME)
MANDIR = $(datadir)/man
DOCDIR = $(datadir)/doc/$(GARNAME)
-CONFDIR = /etc/opt/csw/$(GARNAME)
+CONFDIR = $(sysconfdir)/$(GARNAME)
TMPDIR = /var/opt/csw/$(GARNAME)
post-extract-modulated:
@@ -99,5 +103,7 @@
echo "TmpDir = $(TMPDIR)" >> $(DESTDIR)$(CONFDIR)/conf/logwatch.conf; \
$(INSTALLDIR) $(DESTDIR)$(MANDIR)/man8; \
$(INSTALLDATA) logwatch.8 $(DESTDIR)$(MANDIR)/man8; \
- $(INSTALLEXE) logwatch.wrapper $(DESTDIR)$(BINDIR)/logwatch )
+ $(INSTALLEXE) logwatch.wrapper $(DESTDIR)$(BINDIR)/logwatch; \
+ $(INSTALLDIR) $(DESTDIR)$(CRONDIR); \
+ echo "02 4 * * * /opt/csw/sbin/logwatch" > $(DESTDIR)$(CRONTABS) )
@$(MAKECOOKIE)
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list