Skip to content

Commit

Permalink
debian: Package librgw.
Browse files Browse the repository at this point in the history
Signed-off-by: Tommi Virtanen <[email protected]>
  • Loading branch information
Tommi Virtanen committed Jun 10, 2011
1 parent ab9dda8 commit 762c87e
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 0 deletions.
3 changes: 3 additions & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
/librbd1
/radosgw-dbg
/radosgw
/librgw-dev
/librgw1
/librgw1-dbg
/gceph-dbg
/gceph
/obsync
Expand Down
39 changes: 39 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions debian/librgw-dev.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
usr/lib/librgw.so
usr/lib/librgw.a
usr/lib/librgw.la
usr/include/rados/librgw.h
2 changes: 2 additions & 0 deletions debian/librgw1.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/lib/librgw.so.*

41 changes: 41 additions & 0 deletions debian/librgw1.postinst
Original file line number Diff line number Diff line change
@@ -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


43 changes: 43 additions & 0 deletions debian/librgw1.postrm
Original file line number Diff line number Diff line change
@@ -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


0 comments on commit 762c87e

Please sign in to comment.