summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile13
-rw-r--r--crypt-expiry-check.cron3
-rw-r--r--crypt-expiry-check.cron.in3
-rw-r--r--crypt-expiry.checks3
5 files changed, 13 insertions, 10 deletions
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