aboutsummaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rw-r--r--hooks/Makefile.am.m42
-rwxr-xr-xhooks/demos/report.bash.in14
2 files changed, 15 insertions, 1 deletions
diff --git a/hooks/Makefile.am.m4 b/hooks/Makefile.am.m4
index 829a1ac4a..0f1f466da 100644
--- a/hooks/Makefile.am.m4
+++ b/hooks/Makefile.am.m4
@@ -5,7 +5,7 @@ dnl vim: set ft=m4 noet :
MAINTAINERCLEANFILES = Makefile.in Makefile.am
CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda .keep
-SUBDIRS = .
+SUBDIRS = . demos
installvarlibpaludisnewsdir = $(localstatedir)/paludis/news
diff --git a/hooks/demos/report.bash.in b/hooks/demos/report.bash.in
new file mode 100755
index 000000000..674317c4f
--- /dev/null
+++ b/hooks/demos/report.bash.in
@@ -0,0 +1,14 @@
+#!/bin/bash
+# vim: set et sw=4 sts=4 :
+
+# This hook makes Paludis display a report about vulnerable, masked and unused
+# packages. If this functionality is desired, this script should be copied or
+# symlinked into:
+#
+# @DATADIR@/paludis/hooks/sync_all_post/
+#
+# You should ensure that it has execute permissions.
+
+${PALUDIS_COMMAND} --report
+echo
+