debian/0000755000000000000000000000000012162400075007163 5ustar debian/libstoragemgmt-tools.install0000644000000000000000000000005312162400075014727 0ustar usr/bin/lsmcli usr/share/man/man1/lsmcli.1 debian/compat0000644000000000000000000000000212162400075010361 0ustar 8 debian/libstoragemgmt0.dirs0000644000000000000000000000001012162400075013135 0ustar usr/lib debian/libstoragemgmtd.postinst0000644000000000000000000000116112162400075014153 0ustar #! /bin/sh -e set -e case "$1" in configure) if ! getent group | grep -q "^libstoragemgmt:"; then echo "Adding libstoragemgmt group..." addgroup --quiet --system libstoragemgmt || true fi if ! getent passwd | grep -q "^libstoragemgmt:"; then echo "Adding libstoragemgmt user..." adduser --quiet --system --group --disabled-login libstoragemgmt || true fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "$0 called with unknown argument '$1'" >&2 exit 1 ;; esac #DEBHELPER# debian/libstoragemgmtd.install0000644000000000000000000000007312162400075013737 0ustar usr/bin/lsmd usr/bin/*_lsmplugin usr/share/man/man1/lsmd.1 debian/source/0000755000000000000000000000000012162400075010463 5ustar debian/source/format0000644000000000000000000000001412162400075011671 0ustar 3.0 (quilt) debian/python-libstoragemgmt.install0000644000000000000000000000002012162400075015102 0ustar usr/lib/python* debian/rules0000755000000000000000000000051212162400075010241 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # For Hardening export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk %: dh $@ --with python2 override_dh_auto_configure: autoreconf -i ./configure --disable-smis-cpp --prefix=/usr debian/libstoragemgmt0.install0000644000000000000000000000002212162400075013645 0ustar usr/lib/lib*.so.* debian/changelog0000644000000000000000000000127612162400075011043 0ustar libstoragemgmt (0.0.20-1) unstable; urgency=low * [3aa8f15] Add dependency on python-m2crypto module * [d19de01] Imported Upstream version 0.0.20 * upload to unstable -- Ritesh Raj Sarraf Wed, 26 Jun 2013 02:09:50 +0530 libstoragemgmt (0.0.12-1) experimental; urgency=low * [893e0f5] Imported Upstream version 0.0.12 * [6bbf4d0] Add build-dep on libglib2.0-dev, python-m2crypto * [26ccf33] Add Depends on shared library shlibdeps -- Ritesh Raj Sarraf Tue, 25 Sep 2012 19:37:28 +0530 libstoragemgmt (0.0.9-1) experimental; urgency=low * Initail release (Closes: #649483) -- Ritesh Raj Sarraf Wed, 01 Aug 2012 23:55:11 +0530 debian/control0000644000000000000000000000473112162400075010573 0ustar Source: libstoragemgmt Priority: extra Maintainer: Ritesh Raj Sarraf Build-Depends: debhelper (>= 8.0.0), libyajl-dev, autoconf, automake, libtool, libxml2-dev, pkg-config, check, python (>= 2.6.6-3~), python-pywbem, libglib2.0-dev (>= 2.22.5), python-m2crypto, dpkg-dev (>= 1.16.1~) Standards-Version: 3.9.2 Section: libs Homepage: http://sourceforge.net/apps/trac/libstoragemgmt/ Vcs-Git: git://anonscm.debian.org/collab-maint/libstoragemgmt.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/libstoragemgmt.git;a=summary Package: libstoragemgmt-tools Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-libstoragemgmt Description: library for storage array management - cli tools vendor agnostic library interface to manage storage arrays. libstoragemgmt provides a single, unified, agnostic API library interface to storage arrays . This package contains the cli tools Package: libstoragemgmtd Architecture: any Depends: libstoragemgmt0 (= ${binary:Version}), ${misc:Depends}, python-libstoragemgmt, ${python:Depends}, python-pywbem, ${shlibs:Depends} Description: library for storage array management - daemon vendor agnostic library interface to manage storage arrays. libstoragemgmt provides a single, unified, agnostic API library interface to storage arrays . This package contains the daemon Package: python-libstoragemgmt Architecture: all Section: python Depends: ${misc:Depends}, ${python:Depends}, python-m2crypto Description: library for storage array management - Python libraries vendor agnostic library interface to manage storage arrays. libstoragemgmt provides a single, unified, agnostic API library interface to storage arrays . This package contains the Python libraries Package: libstoragemgmt-dev Section: libdevel Architecture: any Depends: libstoragemgmt0 (= ${binary:Version}), ${misc:Depends} Description: library for storage array management - development headers vendor agnostic library interface to manage storage arrays. libstoragemgmt provides a single, unified, agnostic API library interface to storage arrays . This package contains the development headers Package: libstoragemgmt0 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: library for storage array management - development library vendor agnostic library interface to manage storage arrays. libstoragemgmt provides a single, unified, agnostic API library interface to storage arrays . This package contains the library debian/libstoragemgmt-dev.install0000644000000000000000000000010112162400075014337 0ustar usr/include/* usr/lib/lib*.a usr/lib/lib*.so usr/lib/pkgconfig/* debian/patches/0000755000000000000000000000000012162400075010612 5ustar debian/patches/fix-build-lsm-tests.patch0000644000000000000000000000301412162400075015445 0ustar Patch to fix build failure in tests/ Generated from upstrema git repo diff -Naru ./test/Makefile.am /var/tmp/libstoragemgmt/test/Makefile.am --- ./test/Makefile.am 2013-06-26 01:22:44.235666918 +0530 +++ /var/tmp/libstoragemgmt/test/Makefile.am 2013-06-21 13:10:42.316827917 +0530 @@ -6,5 +6,5 @@ check_PROGRAMS = tester tester_CFLAGS = $(LIBCHECK_CFLAGS) -tester_LDADD = ../src/libstoragemgmt.la $(LIBCHECK_LIBS) +tester_LDADD = ../src/libstoragemgmt.la $(LIBCHECK_LIBS) -lpthread tester_SOURCES = tester.c diff -Naru ./test/Makefile.in /var/tmp/libstoragemgmt/test/Makefile.in --- ./test/Makefile.in 2013-06-26 01:22:44.235666918 +0530 +++ /var/tmp/libstoragemgmt/test/Makefile.in 2013-06-21 13:10:42.316827917 +0530 @@ -235,7 +235,7 @@ EXTRA_DIST = cmdtest.py runtests.sh TESTS = runtests.sh tester_CFLAGS = $(LIBCHECK_CFLAGS) -tester_LDADD = ../src/libstoragemgmt.la $(LIBCHECK_LIBS) +tester_LDADD = ../src/libstoragemgmt.la $(LIBCHECK_LIBS) -lpthread tester_SOURCES = tester.c all: all-am diff -Naru ./test/runtests.sh /var/tmp/libstoragemgmt/test/runtests.sh --- ./test/runtests.sh 2013-06-26 01:22:44.235666918 +0530 +++ /var/tmp/libstoragemgmt/test/runtests.sh 2013-06-21 13:10:42.316827917 +0530 @@ -78,7 +78,7 @@ good "mkdir -p $plugins" #Copy plugins to one directory. -good "find $rootdir \( ! -regex '.*/\..*' \) -type f -name \*_lsmplugin -exec cp {} $plugins \;" +good "find $rootdir/ \( ! -regex '.*/\..*' \) -type f -name \*_lsmplugin -exec cp {} $plugins \;" #Export needed vars export PYTHONPATH=$rootdir/lsm debian/patches/series0000644000000000000000000000003212162400075012022 0ustar fix-build-lsm-tests.patch debian/copyright0000644000000000000000000001120412162400075011114 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: libstoragemgmt Upstream-Contact: Tony Asleson Source: http://sourceforge.net/projects/libstoragemgmt/ Files: * Copyright: 2011 - 2012 Red Hat, Inc. License: LGPL-2.1+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU Lesser General Public License version 2 can be found in "/usr/share/common-licenses/LGPL-2.1". Files: lsm/lsm/external/daemon.py Copyright: 2008 Sander Marechal License: Public Domain Files: lsm/lsm/external/enumeration.py lsm/lsm/external/xmltodict.py License: Python Software Foundation License The latest version of the license, and all its details, can be found at http://docs.python.org/license.html . PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 -------------------------------------------- . 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation. . 2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee. . 3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python. . 4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. . 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. . 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. . 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. . 8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement. Files: debian/* Copyright: 2012 Ritesh Raj Sarraf License: LGPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU Lesser General Public License version 2 can be found in "/usr/share/common-licenses/LGPL-2.1". debian/docs0000644000000000000000000000000012162400075010024 0ustar debian/libstoragemgmtd.init0000755000000000000000000000305712162400075013244 0ustar #!/bin/bash # # chkconfig: 2345 99 1 ### BEGIN INIT INFO # Provides: libstoragemgmtd # Required-Start: $remote_fs $local_fs # Required-Stop: $remote_fs $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: libStorageMgmt plug-in daemon # Description: libStorageMgmt plug-in daemon ### END INIT INFO . /lib/lsb/init-functions NAME=lsmd PROG=/usr/bin/$NAME PID=/var/run/lsm/lsmd.pid LOCK=/var/lock/subsys/libstoragemgmtd DAEMON=libstoragemgmtd PYTHON=/usr/bin/python RETVAL=0 STATUS=0 if [ "`id -u`" != 0 ] ; then echo "Not root" exit 4 fi check_dirs() { test -d /var/run/lsm || mkdir -p /var/run/lsm/ipc test -d /var/run/lsm/ipc || mkdir -p /var/run/lsm/ipc # And fix ownership chown libstoragemgmt.libstoragemgmt -R /var/run/lsm } start_lsm() { log_daemon_msg "Starting $NAME daemon:" start-stop-daemon --start --quiet --pidfile $PID --exec $PROG RETVAL=$? log_end_msg $RETVAL } stop_lsm() { log_daemon_msg "Stopping $NAME daemon:" start-stop-daemon --stop --quiet --signal TERM --pidfile $PID --exec $PYTHON -- --operation stop log_end_msg 0 } # See how we were called. case "$1" in start) check_dirs start_lsm ;; force-stop|stop) stop_lsm ;; force-reload | reload) check_dirs log_daemon_msg "Reloading $NAME daemon:" pkill -F $PID --signal HUP $NAME log_end_msg 0 ;; restart) stop_lsm check_dirs start_lsm ;; status) status_of_proc -p $PID $PROG "libstoragemgmtd daemon" && return 0 || return $? ;; *) echo $"Usage: $0 {start|stop|restart|reload|status|force-stop}" ;; esac exit $RETVAL debian/libstoragemgmt-dev.dirs0000644000000000000000000000002412162400075013636 0ustar usr/lib usr/include debian/watch0000644000000000000000000000010412162400075010207 0ustar version=3 http://sf.net/libstoragemgmt/libstoragemgmt-(.*)\.tar\.gz