From d37d686e6bc473cf1a816ac59865a520a14d4dc8 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 4 May 2016 11:20:59 +0200 Subject: =?UTF-8?q?bugfix=20in=20c-e-c.cron,=20Beispiele=20hinzugef=C3=BCg?= =?UTF-8?q?t,=20Versionsupdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + Makefile | 13 ++++++------- crypt-expiry-check.cron | 3 --- crypt-expiry-check.cron.in | 3 +++ crypt-expiry.checks | 3 +++ 5 files changed, 13 insertions(+), 10 deletions(-) delete mode 100644 crypt-expiry-check.cron create mode 100644 crypt-expiry-check.cron.in create mode 100644 crypt-expiry.checks diff --git a/.gitignore b/.gitignore index ab6096c..004c059 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ crypt-expiry-check +crypt-expiry-check.cron crypt-expiry-check.8 diff --git a/Makefile b/Makefile index 80ca719..f9ef6a0 100644 --- a/Makefile +++ b/Makefile @@ -25,9 +25,9 @@ CRONDIR = /etc/cron.daily BINDIR = /usr/bin MANDIR = /usr/share/man -VERSION = 4.0.1 +VERSION = 4.0.3 -all: crypt-expiry-check crypt-expiry-check.8 +all: crypt-expiry-check crypt-expiry-check.cron crypt-expiry-check.8 %: %.in sed "s/#VERSION#/$(VERSION)/; s@#CRONDIR#@$(CRONDIR)@; s@#BINDIR#@$(BINDIR)@; s@#ETCDIR#@$(ETCDIR)@" $< > $@ @@ -36,12 +36,11 @@ all: crypt-expiry-check crypt-expiry-check.8 install: all install -D -m0755 crypt-expiry-check.cron $(DESTDIR)$(CRONDIR)/crypt-expiry-check - install -D -m0755 crypt-expiry-check $(DESTDIR)$(BINDIR)/crypt-expiry-check - install -D -m0644 crypt-expiry-check.8 $(DESTDIR)$(MANDIR)/man8/crypt-expiry-check.8 - touch $(DESTDIR)$(ETCDIR)/crypt-expiry.checks - chmod 644 $(DESTDIR)$(ETCDIR)/crypt-expiry.checks + install -D -m0755 -t $(DESTDIR)$(BINDIR) crypt-expiry-check + install -D -m0644 -t $(DESTDIR)$(MANDIR)/man8 crypt-expiry-check.8 + install -D -m0644 -t $(DESTDIR)$(ETCDIR) crypt-expiry.checks clean: - rm -f crypt-expiry-check{,.8} + rm -f crypt-expiry-check{,.cron,.8} # End of file diff --git a/crypt-expiry-check.cron b/crypt-expiry-check.cron deleted file mode 100644 index e067e7f..0000000 --- a/crypt-expiry-check.cron +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -/usr/sbin/crypt-expiry-check -qa -e me@example.com -f /etc/crypt-expiry.checks diff --git a/crypt-expiry-check.cron.in b/crypt-expiry-check.cron.in new file mode 100644 index 0000000..a891e52 --- /dev/null +++ b/crypt-expiry-check.cron.in @@ -0,0 +1,3 @@ +#!/bin/bash + +#BINDIR#/crypt-expiry-check -qa -e me@example.com -f #ETCDIR#/crypt-expiry.checks diff --git a/crypt-expiry.checks b/crypt-expiry.checks new file mode 100644 index 0000000..c28ce2f --- /dev/null +++ b/crypt-expiry.checks @@ -0,0 +1,3 @@ +user@domain.com GPG +cert.file FILE +host.url.com 443 -- cgit v1.2.3