From a321ae432f65a599a6a6a328467647e34c54165e Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 6 Jul 2010 16:40:44 -0700 Subject: [PATCH] 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. --- debian/ceph.postinst | 41 +++++++++++++++++++++++++++++++++++++++++ debian/ceph.postrm | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 debian/ceph.postinst create mode 100644 debian/ceph.postrm diff --git a/debian/ceph.postinst b/debian/ceph.postinst new file mode 100644 index 0000000000000..d758b3b818393 --- /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 0000000000000..415cfff1bc037 --- /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 + + -- 2.39.5