diff options
author | Erich Eckner <git@eckner.net> | 2019-10-10 10:19:07 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-10 10:19:07 +0200 |
commit | 768fa603be5a78404ead5fb9d2bcfe14c45fa4da (patch) | |
tree | 356700d42e9035fa97aeff2cc2b1ce444e4e2277 | |
parent | 8feae882e53e453bc7e8a290a66c4ebcb984e501 (diff) | |
download | sendmailadvanced-768fa603be5a78404ead5fb9d2bcfe14c45fa4da.tar.xz |
paccheck hook neu
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | paccheck.hook | 18 |
2 files changed, 19 insertions, 1 deletions
@@ -49,7 +49,7 @@ install: all install -D -m0755 sendmailadvanced $(DESTDIR)$(BINDIR)/sendmailadvanced install -D -m0644 sendmailadvanced.1 $(DESTDIR)$(MANDIR)/man1/sendmailadvanced.1 install -D -m0644 sendmailadvanced.conf $(DESTDIR)$(ETCDIR)/sendmailadvanced.conf - install -d -m0755 $(DESTDIR)$(ETCDIR)/sendmailadvanced.hooks + install -D -m0755 paccheck.hook $(DESTDIR)$(ETCDIR)/sendmailadvanced.hooks/paccheck clean: ls -A | \ diff --git a/paccheck.hook b/paccheck.hook new file mode 100644 index 0000000..c5f3668 --- /dev/null +++ b/paccheck.hook @@ -0,0 +1,18 @@ +#!/bin/sh + +case "$1" in + 'head') + : + ;; + 'foot') + echo '----------------------- Pacman Check Begin -------------------------' + echo + paccheck --list-broken --sha256sum + echo + echo '------------------------ Pacman Check End --------------------------' + ;; + *) + >&2 printf 'usage: %s head|foot\n' "${0##*/}" + exit 1 + ;; +esac |