From c6737cf60bbb2079a8e6b3de48b1e518597dafb1 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 12 Jun 2003 14:04:11 +0000 Subject: r589: * Added dh_scrollkeeper, by Ross Burton. * Added dh_userlocal, by Andrew Stribblehill. (With root.root special case added by me.) * Added dh_installlogcheck, by Jon Middleton. Closes: #184021 * Add aph's name to copyright file too. --- autoscripts/postinst-scrollkeeper | 3 +++ autoscripts/postinst-usrlocal | 16 ++++++++++++++++ autoscripts/postrm-scrollkeeper | 3 +++ autoscripts/prerm-usrlocal | 7 +++++++ 4 files changed, 29 insertions(+) create mode 100644 autoscripts/postinst-scrollkeeper create mode 100644 autoscripts/postinst-usrlocal create mode 100644 autoscripts/postrm-scrollkeeper create mode 100644 autoscripts/prerm-usrlocal (limited to 'autoscripts') diff --git a/autoscripts/postinst-scrollkeeper b/autoscripts/postinst-scrollkeeper new file mode 100644 index 00000000..5f2a255d --- /dev/null +++ b/autoscripts/postinst-scrollkeeper @@ -0,0 +1,3 @@ +if [ "$1" = "configure" ]; then + scrollkeeper-update -q +fi diff --git a/autoscripts/postinst-usrlocal b/autoscripts/postinst-usrlocal new file mode 100644 index 00000000..a2f004db --- /dev/null +++ b/autoscripts/postinst-usrlocal @@ -0,0 +1,16 @@ +if [ "$1" = configure ]; then +( + while read line; do + set -- $line + dir="$1"; mode="$2"; user="$3"; group="$4" + if [ ! -e "$dir" ]; then + if mkdir "$dir" 2>/dev/null; then + chown "$user":"$group" "$dir" + chmod "$mode" "$dir" + fi + fi + done +) << DATA +#DIRS# +DATA +fi diff --git a/autoscripts/postrm-scrollkeeper b/autoscripts/postrm-scrollkeeper new file mode 100644 index 00000000..209a6e14 --- /dev/null +++ b/autoscripts/postrm-scrollkeeper @@ -0,0 +1,3 @@ +if [ "$1" = "remove" ]; then + scrollkeeper-update -q +fi diff --git a/autoscripts/prerm-usrlocal b/autoscripts/prerm-usrlocal new file mode 100644 index 00000000..baafc23e --- /dev/null +++ b/autoscripts/prerm-usrlocal @@ -0,0 +1,7 @@ +( + while read dir; do + rmdir "$dir" 2>/dev/null || true + done +) << DATA +#JUSTDIRS# +DATA -- cgit v1.2.3