diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 7 | ||||
-rwxr-xr-x | doalogwatch.cron.in | 3 |
3 files changed, 9 insertions, 2 deletions
@@ -1 +1,2 @@ doalogwatch +doalogwatch.cron @@ -21,6 +21,7 @@ DESTDIR = ETCDIR = /etc +CRONDIR = /etc/cron.daily BINDIR = /usr/bin CACHEDIR = /var/cache MANDIR = /usr/share/man @@ -29,11 +30,12 @@ WAITDIR = /home/shutdown/.warteauf VERSION = 0.2 -all: doalogwatch +all: doalogwatch doalogwatch.cron %: %.in sed "s/#VERSION#/$(VERSION)/; \ s@#BINDIR#@$(BINDIR)@; \ + s@#CRONDIR#@$(CRONDIR)@; \ s@#ETCDIR#@$(ETCDIR)@; \ s@#CACHEDIR#@$(CACHEDIR)@; \ s@#WAITDIR#@$(WAITDIR)@; \ @@ -44,10 +46,11 @@ all: doalogwatch install: all install -D -m0755 -t $(DESTDIR)$(BINDIR) doalogwatch + install -D -m0755 doalogwatch.cron $(DESTDIR)$(CRONDIR)/doalogwatch install -d $(DESTDIR)$(CACHEDIR)/logwatch date +%F > $(DESTDIR)$(CACHEDIR)/logwatch/letzteMeldung clean: - rm -f doalogwatch + rm -f doalogwatch{,.cron} # End of file diff --git a/doalogwatch.cron.in b/doalogwatch.cron.in new file mode 100755 index 0000000..de4cf26 --- /dev/null +++ b/doalogwatch.cron.in @@ -0,0 +1,3 @@ +#!/bin/bash + +#BINDIR#/doalogwatch |