]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: add packages for librbd
authorJosh Durgin <josh.durgin@dreamhost.com>
Wed, 2 Feb 2011 01:09:08 +0000 (17:09 -0800)
committerYehuda Sadeh <yehuda.sadeh@dreamhost.com>
Mon, 7 Feb 2011 23:13:01 +0000 (15:13 -0800)
debian/control
debian/librbd1-dev.install [new file with mode: 0644]
debian/librbd1.install [new file with mode: 0644]
debian/librbd1.postinst [new file with mode: 0644]
debian/librbd1.postrm [new file with mode: 0644]
debian/rules

index bc1247ff466d343ef54feb3b8bbfae01aa2a22dd..797208259102a57066c5d37bbdfa00fec99fe140 100644 (file)
@@ -12,7 +12,7 @@ Standards-Version: 3.9.1
 Package: ceph
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, libedit2, hdparm, binutils
-Recommends: ceph-client-tools, ceph-fuse, libceph1, librados1, libcrush1, btrfs-tools
+Recommends: ceph-client-tools, ceph-fuse, libceph1, librados1, librbd1, libcrush1, btrfs-tools
 Description: distributed storage and file system
  Ceph is a distributed storage and network file system designed to provide
  excellent performance, reliability, and scalability.
@@ -171,6 +171,41 @@ Description: RADOS distributed object store client library (development files)
  This package contains development files needed for building applications that
  link against librados.
 
+Package: librbd1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, librados1
+Description: RADOS block device client library
+ RBD is a block device striped across multiple distributed objects
+ in RADOS, a reliable, autonomic distributed object storage cluster
+ developed as part of the Ceph distributed storage system.  This is a
+ shared library allowing applications to manage these block devices.
+
+Package: librbd1-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: librbd1 (= ${binary:Version}), ${misc:Depends}
+Description: debugging symbols for librbd1
+ RBD is a block device striped across multiple distributed objects
+ in RADOS, a reliable, autonomic distributed object storage cluster
+ developed as part of the Ceph distributed storage system.  This is a
+ shared library allowing applications to manage these block devices.
+ .
+ This package contains debugging symbols for librbd1.
+
+Package: librbd1-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends}, librbd1 (= ${binary:Version})
+Description: RADOS block device client library (development files)
+ RBD is a block device striped across multiple distributed objects
+ in RADOS, a reliable, autonomic distributed object storage cluster
+ developed as part of the Ceph distributed storage system.  This is a
+ shared library allowing applications to manage these block devices.
+ .
+ This package contains development files needed for building applications that
+ link against librbd1.
+
 Package: libceph1
 Conflicts: libceph
 Replaces: libceph
diff --git a/debian/librbd1-dev.install b/debian/librbd1-dev.install
new file mode 100644 (file)
index 0000000..ba2d039
--- /dev/null
@@ -0,0 +1,3 @@
+usr/lib/librbd.so
+usr/lib/librbd.a
+usr/lib/librbd.la
diff --git a/debian/librbd1.install b/debian/librbd1.install
new file mode 100644 (file)
index 0000000..b3cb648
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/librbd.so.*
diff --git a/debian/librbd1.postinst b/debian/librbd1.postinst
new file mode 100644 (file)
index 0000000..df6b9fc
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/sh
+#
+# 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>
+#        * <postinst> `abort-remove'
+#        * <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)
+       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/librbd1.postrm b/debian/librbd1.postrm
new file mode 100644 (file)
index 0000000..598f48b
--- /dev/null
@@ -0,0 +1,43 @@
+#!/bin/sh
+# postrm script for ceph
+#
+# 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' <overwriter>
+#          <overwriter-version>
+# 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
+
+
index 1941750dbb535a16b1c6dc57a5d10bd91364a50c..bc4fc769122d1de949eef300ad2c387c65c5b660 100755 (executable)
@@ -66,6 +66,7 @@ binary-arch: build install
        dh_strip -pceph-client-tools --dbg-package=ceph-client-tools-dbg
        dh_strip -plibcrush1 --dbg-package=libcrush1-dbg
        dh_strip -plibrados1 --dbg-package=librados1-dbg
+       dh_strip -plibrbd1 --dbg-package=librbd1-dbg
        dh_strip -plibceph1 --dbg-package=libceph1-dbg
        dh_strip -pradosgw --dbg-package=radosgw-dbg