debian/0000755000000000000000000000000012174311657007175 5ustar debian/libdlmcontrol-dev.install0000644000000000000000000000013112173565773014211 0ustar usr/include/libdlmcontrol.h #usr/lib/libdlmcontrol.a #usr/lib/pkgconfig/libdlmcontrol.pc debian/libdlmcontrol3.install0000644000000000000000000000003512173564136013513 0ustar usr/lib/libdlmcontrol.so.3.1 debian/copyright0000644000000000000000000000567312174004716011136 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: dlm Source: https://git.fedorahosted.org/git/dlm.git Files: * Copyright: 2004-2011 Red Hat, Inc. License: GPL-2+ Files: dlm_controld/rbtree.c (copied from linux kernel) Copyright: 1999 Andrea Arcangeli 2002 David Woodhouse License: GPL-2+ Files: dlm_controld/rbtree.h (copied from linux kernel) Copyright: 1999 Andrea Arcangeli License: GPL-2+ Files: libdlm/libdlm.c libdlm/libdlm.h libdlm/libdlm_internal.h Copyright: 2004-2011 Red Hat, Inc. License: LGPL-2+ Files: dlm_controld/list.h (copied from linux kernel) Copyright: 2004-2011 Red Hat, Inc. License: GPL-2 Files: debian/* Copyright: 2013 Andres Rodriguez License: GPL-2+ License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License. . This program 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 General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU 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 General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". License: LGPL-2+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This library 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 Library General Public License for more details. . You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA debian/changelog0000644000000000000000000000117012174311657011046 0ustar dlm (4.0.1-0ubuntu1) saucy; urgency=low * Initial release: - DLM used to be part of redhat-cluster source package. However, upstream made 'cluster' obsolete and separated DLM (along with other components) into their own projects. The binaries this package builds will replace some of those redhat-cluster builds. * debian/patches: - fix_lib_dir.patch: Use correct installation path. - fix_init_script.patch: Use $remote_fs for Required-{Start,Stop}. - fix_manpages.patch: Fix manpages for them to be lintian clean. -- Andres Rodriguez Tue, 23 Jul 2013 15:50:10 -0400 debian/patches/0000755000000000000000000000000012174007212010611 5ustar debian/patches/fix_init_script.patch0000644000000000000000000000102412174007212015024 0ustar Index: dlm-4.0.1/init/dlm.init =================================================================== --- dlm-4.0.1.orig/init/dlm.init 2013-03-06 13:26:29.000000000 -0500 +++ dlm-4.0.1/init/dlm.init 2013-07-24 13:27:36.456263489 -0400 @@ -9,8 +9,8 @@ ### BEGIN INIT INFO # Provides: dlm_controld -# Required-Start: $network $time $syslog corosync -# Required-Stop: $syslog +# Required-Start: $network $remote_fs $time $syslog corosync +# Required-Stop: $remote_fs $syslog # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 debian/patches/series0000644000000000000000000000007312174007070012030 0ustar fix_lib_dir.patch fix_manpages.patch fix_init_script.patch debian/patches/fix_manpages.patch0000644000000000000000000002141612174006562014306 0ustar Index: dlm-4.0.1/libdlm/man/dlm_create_lockspace.3 =================================================================== --- dlm-4.0.1.orig/libdlm/man/dlm_create_lockspace.3 2013-03-06 13:26:29.000000000 -0500 +++ dlm-4.0.1/libdlm/man/dlm_create_lockspace.3 2013-07-24 13:14:50.815427806 -0400 @@ -22,14 +22,14 @@ .SS dlm_lshandle_t dlm_create_lockspace(const char *name, mode_t mode); .br -This creates a lockspace called and the mode of the file user to access it will be (subject to umask as usual). The lockspace must not already exist on this node, if it does -1 will be returned and errno will be set to EEXIST. If you really want to use this lockspace you can then use dlm_open_lockspace() below. The name is the name of a misc device that will be created in /dev/misc. +This creates a lockspace called and the mode of the file user to access it will be (subject to umask as usual). The lockspace must not already exist on this node, if it does \-1 will be returned and errno will be set to EEXIST. If you really want to use this lockspace you can then use dlm_open_lockspace() below. The name is the name of a misc device that will be created in /dev/misc. .br On success a handle to the lockspace is returned, which can be used to pass into subsequent dlm_ls_lock/unlock calls. Make no assumptions as to the content of this handle as it's content may change in future. .br The caller must have CAP_SYSADMIN privileges to do this operation. .PP Return codes: -0 is returned if the call completed successfully. If not, -1 is returned and errno is set to one of the following: +0 is returned if the call completed successfully. If not, \-1 is returned and errno is set to one of the following: .nf EINVAL An invalid parameter was passed to the call ENOMEM A (kernel) memory allocation failed @@ -52,14 +52,14 @@ .SS int dlm_release_lockspace(const char *name, dlm_lshandle_t ls, int force) .PP -Deletes a lockspace. If the lockspace still has active locks then -1 will be returned and errno set to EBUSY. Both the lockspace handle /and/ the name must be specified. This call also closes the lockspace and stops the thread associated with the lockspace, if any. +Deletes a lockspace. If the lockspace still has active locks then \-1 will be returned and errno set to EBUSY. Both the lockspace handle /and/ the name must be specified. This call also closes the lockspace and stops the thread associated with the lockspace, if any. .br Note that other nodes in the cluster may still have locks open on this lockspace. This call only removes the lockspace from the current node. If the force flag is set then the lockspace will be removed even if another user on this node has active locks in it. Existing users will NOT be notified if you do this, so be careful. .br The caller must have CAP_SYSADMIN privileges to do this operation. .PP Return codes: -0 is returned if the call completed successfully. If not, -1 is returned and errno is set to one of the following: +0 is returned if the call completed successfully. If not, \-1 is returned and errno is set to one of the following: .nf EINVAL An invalid parameter was passed to the call EPERM Process does not have capability to release lockspaces @@ -73,14 +73,14 @@ Opens an already existing lockspace and returns a handle to it. .PP Return codes: -0 is returned if the call completed successfully. If not, -1 is returned and errno is set to an error returned by the open() system call +0 is returned if the call completed successfully. If not, \-1 is returned and errno is set to an error returned by the open() system call .SS int dlm_close_lockspace(dlm_lshandle_t ls) .br Close the lockspace. Any locks held by this process will be freed. If a thread is associated with this lockspace then it will be stopped. .PP Return codes: -0 is returned if the call completed successfully. If not, -1 is returned and errno is set to one of the following: +0 is returned if the call completed successfully. If not, \-1 is returned and errno is set to one of the following: .nf EINVAL lockspace was not a valid lockspace handle .fi Index: dlm-4.0.1/libdlm/man/dlm_lock.3 =================================================================== --- dlm-4.0.1.orig/libdlm/man/dlm_lock.3 2013-03-06 13:26:29.000000000 -0500 +++ dlm-4.0.1/libdlm/man/dlm_lock.3 2013-07-24 13:17:29.991605510 -0400 @@ -99,7 +99,7 @@ Affect the operation of the lock call: .nf LKF_NOQUEUE Don't queue the lock. If it cannot be granted return - -EAGAIN + \-EAGAIN LKF_CONVERT Convert an existing lock LKF_VALBLK Lock has a value block LKF_QUECVT Put conversion to the back of the queue @@ -179,7 +179,7 @@ ignored without the LKF_TIMEOUT flag. .PP .SS Return values -0 is returned if the call completed successfully. If not, -1 is returned and errno is set to one of the following: +0 is returned if the call completed successfully. If not, \-1 is returned and errno is set to one of the following: .PP .nf EINVAL An invalid parameter was passed to the call (eg bad lock Index: dlm-4.0.1/libdlm/man/dlm_unlock.3 =================================================================== --- dlm-4.0.1.orig/libdlm/man/dlm_unlock.3 2013-03-06 13:26:29.000000000 -0500 +++ dlm-4.0.1/libdlm/man/dlm_unlock.3 2013-07-24 13:18:02.999642088 -0400 @@ -48,7 +48,7 @@ .PP .SS Return values -0 is returned if the call completed successfully. If not, -1 is returned and errno is set to one of the following: +0 is returned if the call completed successfully. If not, \-1 is returned and errno is set to one of the following: .PP .nf EINVAL An invalid parameter was passed to the call (eg bad Index: dlm-4.0.1/libdlm/man/libdlm.3 =================================================================== --- dlm-4.0.1.orig/libdlm/man/libdlm.3 2013-03-06 13:26:29.000000000 -0500 +++ dlm-4.0.1/libdlm/man/libdlm.3 2013-07-24 13:19:29.759737793 -0400 @@ -11,12 +11,12 @@ int dlm_get_fd(void); int dlm_dispatch(int fd); -link with -ldlm +link with \-ldlm .fi .SH DESCRIPTION libdlm provides the programmatic userspace interface to the Distributed Lock manager. It provides all the calls you need to manipulate locks & lockspaces .br -libdlm can be used in pthread or non-pthread applications. For pthread applications simply call the following function before doing any lock operations. If you're using pthreads, remember to define _REENTRANT at the top of the program or using -D_REENTRANT on the compile line. +libdlm can be used in pthread or non-pthread applications. For pthread applications simply call the following function before doing any lock operations. If you're using pthreads, remember to define _REENTRANT at the top of the program or using \-D_REENTRANT on the compile line. .br pthreads is the normal way of using the DLM. This way you simply initialize the DLM's thread and all the AST routines will be delivered in that thread. You just call the dlm_lock() etc routines in the main line of your program. .br @@ -50,7 +50,7 @@ .SH libdlm_lt -There also exists a "light" version of the libdlm library called libdlm_lt. This is provided for those applications that do not want to use pthread functions. If you use this library it is important that your application is NOT compiled with -D_REENTRANT or linked with libpthread. +There also exists a "light" version of the libdlm library called libdlm_lt. This is provided for those applications that do not want to use pthread functions. If you use this library it is important that your application is NOT compiled with \-D_REENTRANT or linked with libpthread. .SH EXAMPLES @@ -84,7 +84,7 @@ if (poll(&pfd, 1, 0) < 0) { perror("poll"); - return -1; + return \-1; } dlm_dispatch(dlm_ls_get_fd(ls)); } Index: dlm-4.0.1/dlm_controld/dlm.conf.5 =================================================================== --- dlm-4.0.1.orig/dlm_controld/dlm.conf.5 2013-03-06 13:26:29.000000000 -0500 +++ dlm-4.0.1/dlm_controld/dlm.conf.5 2013-07-24 13:20:42.559817618 -0400 @@ -15,7 +15,7 @@ command line setting overrides the config file setting. See .BR dlm_controld (8) -for descriptions and dlm_controld -h for defaults. +for descriptions and dlm_controld \-h for defaults. Format: Index: dlm-4.0.1/dlm_controld/dlm_controld.8 =================================================================== --- dlm-4.0.1.orig/dlm_controld/dlm_controld.8 2013-03-06 13:26:29.000000000 -0500 +++ dlm-4.0.1/dlm_controld/dlm_controld.8 2013-07-24 13:21:21.279859898 -0400 @@ -18,7 +18,7 @@ Command line options override a corresponding setting in .BR dlm.conf (5). .br -For default settings, see dlm_controld -h. +For default settings, see dlm_controld \-h. .B --daemon_debug | -D enable debugging to stderr and don't fork debian/patches/fix_lib_dir.patch0000644000000000000000000000323212173565137014122 0ustar Index: dlm-4.0.1/dlm_controld/Makefile =================================================================== --- dlm-4.0.1.orig/dlm_controld/Makefile 2013-03-06 13:26:29.000000000 -0500 +++ dlm-4.0.1/dlm_controld/Makefile 2013-07-23 16:39:36.107556087 -0400 @@ -1,6 +1,6 @@ DESTDIR= PREFIX=/usr -LIBNUM=/lib64 +LIBNUM=/lib BINDIR=$(PREFIX)/sbin LIBDIR=$(PREFIX)/$(LIBNUM) HDRDIR=$(PREFIX)/include Index: dlm-4.0.1/libdlm/libdlm.pc.in =================================================================== --- dlm-4.0.1.orig/libdlm/libdlm.pc.in 2013-03-06 13:26:29.000000000 -0500 +++ dlm-4.0.1/libdlm/libdlm.pc.in 2013-07-23 16:39:54.843500924 -0400 @@ -1,7 +1,7 @@ prefix=@PREFIX@ exec_prefix=${prefix} includedir=${prefix}/include -libdir=${exec_prefix}/lib64 +libdir=${exec_prefix}/lib Name: libdlm Description: The dlm library Index: dlm-4.0.1/libdlm/Makefile =================================================================== --- dlm-4.0.1.orig/libdlm/Makefile 2013-03-06 13:26:29.000000000 -0500 +++ dlm-4.0.1/libdlm/Makefile 2013-07-23 16:40:08.923459542 -0400 @@ -1,6 +1,6 @@ DESTDIR= PREFIX=/usr -LIBNUM=/lib64 +LIBNUM=/lib LIBDIR=$(PREFIX)/$(LIBNUM) HDRDIR=$(PREFIX)/include MANDIR=$(PREFIX)/share/man Index: dlm-4.0.1/libdlm/libdlm_lt.pc.in =================================================================== --- dlm-4.0.1.orig/libdlm/libdlm_lt.pc.in 2013-07-23 16:40:37.739375039 -0400 +++ dlm-4.0.1/libdlm/libdlm_lt.pc.in 2013-07-23 16:40:51.427334986 -0400 @@ -1,7 +1,7 @@ prefix=@PREFIX@ exec_prefix=${prefix} includedir=${prefix}/include -libdir=${exec_prefix}/lib64 +libdir=${exec_prefix}/lib Name: libdlm_lt Description: The non-threaded dlm library debian/libdlm3.preinst0000644000000000000000000000060212173564136012130 0ustar #!/bin/sh set -e if [ "$1" = install ] || [ "$1" = upgrade ]; then if [ -e "/etc/udev/rules.d/45-dlm.rules" ]; then if [ "`md5sum \"/etc/udev/rules.d/45-dlm.rules\" | sed -e \"s/ .*//\"`" = \ "`dpkg-query -W -f='${Conffiles}' libdlm3 | sed -n -e \"\\\\' /etc/udev/rules.d/45-dlm.rules's/.* //p\"`" ] then rm -f "/etc/udev/rules.d/45-dlm.rules" fi fi fi #DEBHELPER# debian/libdlmcontrol3.links0000644000000000000000000000007012173564136013164 0ustar usr/lib/libdlmcontrol.so.3.1 usr/lib/libdlmcontrol.so.3 debian/dlm.install0000644000000000000000000000020612173567460011343 0ustar usr/share/man/man5/dlm.conf.5 usr/share/man/man8/dlm_controld.8 usr/share/man/man8/dlm_tool.8 usr/sbin/dlm_controld usr/sbin/dlm_tool debian/libdlm-dev.install0000644000000000000000000000025612173576332012611 0ustar usr/include/libdlm.h #usr/lib/libdlm.a #usr/lib/libdlm_lt.a usr/share/man/man3/dlm_*.3 usr/share/man/man3/libdlm.3 usr/lib/pkgconfig/libdlm.pc usr/lib/pkgconfig/libdlm_lt.pc debian/libdlmcontrol-dev.links0000644000000000000000000000006412173564136013660 0ustar usr/lib/libdlmcontrol.so.3 usr/lib/libdlmcontrol.so debian/source/0000755000000000000000000000000012173557165010502 5ustar debian/source/format0000644000000000000000000000001412173557165011710 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000001712173557165010053 0ustar README.license debian/rules0000755000000000000000000000132412174002512010240 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 BUILDROOT := $(shell pwd) %: dh $@ override_dh_install: install -d -m 0755 debian/tmp/lib/udev/rules.d mv debian/tmp/lib/udev/rules.d/51-dlm.rules debian/tmp/lib/udev/rules.d/45-dlm.rules cp init/dlm.init $(BUILDROOT)/debian/dlm.init dh_install --sourcedir=debian/tmp --list-missing debian/libdlm-dev.links0000644000000000000000000000012212173564136012252 0ustar usr/lib/libdlm.so.3 usr/lib/libdlm.so usr/lib/libdlm_lt.so.3 usr/lib/libdlm_lt.so debian/libdlm3.install0000644000000000000000000000011512173564136012111 0ustar lib/udev/rules.d/45-dlm.rules usr/lib/libdlm_lt.so.3.0 usr/lib/libdlm.so.3.0 debian/control0000644000000000000000000000510112174311404010563 0ustar Source: dlm Section: admin Priority: optional Maintainer: Andres Rodriguez Build-Depends: debhelper (>= 8.0.0), libcfg-dev, pacemaker-dev, libxml2-dev, libsystemd-daemon-dev, libqb-dev Standards-Version: 3.9.4 Homepage: https://git.fedorahosted.org/git/dlm.git Package: dlm Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Breaks: cman Replaces: cman Description: DLM - Distributed lock manager binaries DLM is a symmetric general-purpose distributed lock manager. It is used for example by GFS and the distributed volume manager. . These are the binaries that interface with the lock manager. The lock manager itself is a kernel module. Package: libdlm3 Section: libs Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Breaks: udev (<< 0.136-1), libdlm3 (<= 3.1.8-1.1) Replaces: libdlm3 (<= 3.1.8-1.1) Description: DLM - distributed lock manager library DLM is a symmetric general-purpose distributed lock manager. It is used for example by GFS and the distributed volume manager. . This is the client library for applications using the lock manager. The lock manager itself is a kernel module. Package: libdlm-dev Section: libdevel Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, libdlm3 (= ${binary:Version}) Breaks: libdlm-dev (<= 3.1.8-1.1) Replaces: libdlm-dev (<= 3.1.8-1.1) Description: DLM - distributed lock manager development files DLM is a symmetric general-purpose distributed lock manager. It is used for example by GFS and the distributed volume manager. . This package contains the files needed for developing applications that use the lock manager. Package: libdlmcontrol3 Section: libs Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Breaks: libdlmcontrol3 (<= 3.1.8-1.1) Replaces: libdlmcontrol3 (<= 3.1.8-1.1) Description: DLM - distributed lock manager library DLM is a symmetric general-purpose distributed lock manager. It is used for example by GFS and the distributed volume manager. . This is the client library for applications using the lock manager. The lock manager itself is a kernel module. Package: libdlmcontrol-dev Section: libdevel Architecture: any Depends: ${misc:Depends}, libdlmcontrol3 (= ${binary:Version}) Breaks: libdlmcontrol-dev (<= 3.1.8-1.1) Replaces: libdlmcontrol-dev (<= 3.1.8-1.1) Description: DLM - distributed lock manager development files DLM is a symmetric general-purpose distributed lock manager. It is used for example by GFS and the distributed volume manager. . This package contains the files needed for developing applications that use the lock manager. debian/libdlm3.links0000644000000000000000000000013212173564136011562 0ustar usr/lib/libdlm_lt.so.3.0 usr/lib/libdlm_lt.so.3 usr/lib/libdlm.so.3.0 usr/lib/libdlm.so.3 debian/compat0000644000000000000000000000000212173557317010377 0ustar 8