/trunk/debian/prayer-accountd.postinst |
---|
0,0 → 1,44 |
#!/bin/sh |
# postinst script for prayer |
# |
# see: dh_installdeb(1) |
set -e |
# summary of how this script can be called: |
# * <postinst> `configure' <most-recently-configured-version> |
# * <old-postinst> `abort-upgrade' <new version> |
# * <conflictor's-postinst> `abort-remove' `in-favour' <package> |
# <new-version> |
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' |
# <failed-install-package> <version> `removing' |
# <conflicting-package> <version> |
# for details, see http://www.debian.org/doc/debian-policy/ or |
# the debian-policy package |
# |
case "$1" in |
configure) |
dpkg-statoverride --list /var/run/prayer >/dev/null 2>&1 \ |
|| dpkg-statoverride --update --add prayer root 2750 /var/run/prayer |
;; |
abort-upgrade|abort-remove|abort-deconfigure) |
;; |
*) |
echo "postinst called with unknown argument \`$1'" >&2 |
exit 1 |
;; |
esac |
# dh_installdeb will replace this with shell code automatically |
# generated by other debhelper scripts. |
#DEBHELPER# |
exit 0 |
/trunk/debian/prayer-accountd.postrm |
---|
0,0 → 1,41 |
#!/bin/sh |
# postrm script for prayer |
# |
# see: dh_installdeb(1) |
set -e |
# summary of how this script can be called: |
# * <postrm> `remove' |
# * <postrm> `purge' |
# * <old-postrm> `upgrade' <new-version> |
# * <new-postrm> `failed-upgrade' <old-version> |
# * <new-postrm> `abort-install' |
# * <new-postrm> `abort-install' <old-version> |
# * <new-postrm> `abort-upgrade' <old-version> |
# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version> |
# for details, see http://www.debian.org/doc/debian-policy/ or |
# the debian-policy package |
case "$1" in |
purge) |
[ -e /var/run/prayer/ ] || dpkg-statoverride --remove /var/run/prayer |
;; |
remove|disappear|upgrade|abort-install|failed-upgrade|abort-upgrade) |
;; |
*) |
echo "postrm called with unknown argument \`$1'" >&2 |
exit 1 |
esac |
# dh_installdeb will replace this with shell code automatically |
# generated by other debhelper scripts. |
#DEBHELPER# |
exit 0 |
/trunk/debian/prayer.postinst |
---|
20,9 → 20,13 |
case "$1" in |
configure) |
adduser --quiet --system --no-create-home prayer |
chown prayer:root /var/run/prayer |
chown prayer:adm /var/log/prayer |
chmod 2750 /var/run/prayer /var/log/prayer |
dpkg-statoverride --list /var/run/prayer >/dev/null 2>&1 \ |
|| dpkg-statoverride --update --add prayer root 2750 /var/run/prayer |
dpkg-statoverride --list /var/log/prayer >/dev/null 2>&1 \ |
|| dpkg-statoverride --update --add prayer adm 2750 /var/log/prayer |
;; |
abort-upgrade|abort-remove|abort-deconfigure) |
/trunk/debian/prayer.postrm |
---|
22,9 → 22,10 |
purge) |
deluser --system --quiet prayer || true |
rm -rf /var/log/prayer |
[ -e /var/run/prayer/ ] || dpkg-statoverride --remove /var/run/prayer |
;; |
remove|disappear |
remove|disappear) |
find /var/run/prayer/ -mindepth 1 \( -type s -o -name ssl_scache -o -empty \) -delete |
;; |
/trunk/debian/changelog |
---|
6,8 → 6,11 |
above definition isn't lost if CFLAGS is overridden. |
* Improve prayer.postrm to clean /var/run/prayer on removal and |
disappearence. |
* Use dpkg-override to allow the administrator to change mode of |
/var/run/prayer and /var/log/prayer. |
* Add postinst and postrm scripts for prayer-accountd. |
-- Magnus Holmgren <holmgren@debian.org> Thu, 15 May 2008 21:53:50 +0200 |
-- Magnus Holmgren <holmgren@debian.org> Thu, 15 May 2008 22:12:07 +0200 |
prayer (1.1.0-1) unstable; urgency=low |