From: Sage Weil Date: Tue, 6 Jul 2010 23:40:44 +0000 (-0700) Subject: debian: add postinst, postrm for ceph package X-Git-Tag: v0.21~172 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a321ae432f65a599a6a6a328467647e34c54165e;p=ceph.git debian: add postinst, postrm for ceph package This will keep debain from using the default, which thinks it needs to run ldconfig. Which it doesn't. --- diff --git a/debian/ceph.postinst b/debian/ceph.postinst new file mode 100644 index 000000000000..d758b3b81839 --- /dev/null +++ b/debian/ceph.postinst @@ -0,0 +1,41 @@ +#!/bin/sh +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) +# ldconfig + ;; + + 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 + + diff --git a/debian/ceph.postrm b/debian/ceph.postrm new file mode 100644 index 000000000000..415cfff1bc03 --- /dev/null +++ b/debian/ceph.postrm @@ -0,0 +1,39 @@ +#!/bin/sh +# postrm script for ceph +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + 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 + +