From 762c87e07e4b12ed28dddf50bca89ae057107f3d Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Fri, 10 Jun 2011 16:43:55 -0700 Subject: [PATCH] debian: Package librgw. Signed-off-by: Tommi Virtanen --- debian/.gitignore | 3 +++ debian/control | 39 +++++++++++++++++++++++++++++++++++ debian/librgw-dev.install | 4 ++++ debian/librgw1.install | 2 ++ debian/librgw1.postinst | 41 +++++++++++++++++++++++++++++++++++++ debian/librgw1.postrm | 43 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 132 insertions(+) create mode 100644 debian/librgw-dev.install create mode 100644 debian/librgw1.install create mode 100644 debian/librgw1.postinst create mode 100644 debian/librgw1.postrm diff --git a/debian/.gitignore b/debian/.gitignore index c19bf97a678be..2860422a96fb8 100644 --- a/debian/.gitignore +++ b/debian/.gitignore @@ -21,6 +21,9 @@ /librbd1 /radosgw-dbg /radosgw +/librgw-dev +/librgw1 +/librgw1-dbg /gceph-dbg /gceph /obsync diff --git a/debian/control b/debian/control index 3a28b5e3438aa..9ac7a58ce7c84 100644 --- a/debian/control +++ b/debian/control @@ -226,6 +226,45 @@ Description: Ceph distributed file system client library (development files) This package contains development files needed for building applications that link against libceph. +Package: librgw1 +Conflicts: librgw, librgw1 +Replaces: librgw, librgw1 +Architecture: linux-any +Section: libs +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: radosgw data access library + radosgw is a REST gateway for RADOS distributed object store. + librgw contains support for reading and writing objects in the + format expected by radosgw. + +Package: librgw1-dbg +Conflicts: librgw1-dbg +Replaces: librgw1-dbg +Architecture: linux-any +Section: debug +Priority: extra +Depends: librgw1 (= ${binary:Version}), ${misc:Depends} +Description: debugging symbols for librgw + radosgw is a REST gateway for RADOS distributed object store. + librgw contains support for reading and writing objects in the + format expected by radosgw. + . + This package contains debugging symbols for librgw. + +Package: librgw-dev +Architecture: linux-any +Section: libdevel +Depends: ${misc:Depends}, librgw1 (= ${binary:Version}) +Conflicts: librgw1-dev, librgw1-dev +Replaces: librgw1-dev, librgw1-dev +Description: RGW distributed object store client library (development files) + radosgw is a REST gateway for RADOS distributed object store. + librgw contains support for reading and writing objects in the + format expected by radosgw. + . + This package contains development files needed for building applications that + link against librgw. + Package: radosgw Architecture: linux-any Depends: ${shlibs:Depends}, ${misc:Depends}, libexpat1, librados2 diff --git a/debian/librgw-dev.install b/debian/librgw-dev.install new file mode 100644 index 0000000000000..4a52756aa93b8 --- /dev/null +++ b/debian/librgw-dev.install @@ -0,0 +1,4 @@ +usr/lib/librgw.so +usr/lib/librgw.a +usr/lib/librgw.la +usr/include/rados/librgw.h diff --git a/debian/librgw1.install b/debian/librgw1.install new file mode 100644 index 0000000000000..0623f371795e2 --- /dev/null +++ b/debian/librgw1.install @@ -0,0 +1,2 @@ +usr/lib/librgw.so.* + diff --git a/debian/librgw1.postinst b/debian/librgw1.postinst new file mode 100644 index 0000000000000..df6b9fcb3dbd7 --- /dev/null +++ b/debian/librgw1.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/librgw1.postrm b/debian/librgw1.postrm new file mode 100644 index 0000000000000..598f48b615735 --- /dev/null +++ b/debian/librgw1.postrm @@ -0,0 +1,43 @@ +#!/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 + remove) + ldconfig + ;; + + purge|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 + +