--- /dev/null
+
+
+LVMVERSION=2.02.86
+LVMRELEASE=1
+LVMDIR=lvm2-${LVMVERSION}
+LVMSRC=lvm2_${LVMVERSION}.orig.tar.gz
+LVMDEBSRC=lvm2_${LVMVERSION}-${LVMRELEASE}.debian.tar.gz
+
+ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+all: ${LVMSRC} ${LVMDEBSRC}
+ rm -rf ${LVMDIR} tmpdeb
+ mkdir tmpdeb
+ cd tmpdeb; tar xvf ../${LVMDEBSRC}
+ mv tmpdeb/debian/clvm.defaults tmpdeb/debian/clvm.default
+ cd tmpdeb; ln -s ../patchdir patches; quilt push -a
+ tar xf ${LVMSRC}
+ cp -av tmpdeb/debian ${LVMDIR}
+ cd ${LVMDIR}; dpkg-buildpackage -b -uc -us
+
+.PHONY: download
+download:
+ rm -f ${LVMSRC} ${LVMDEBSRC}
+ wget http://ftp.de.debian.org/debian/pool/main/l/lvm2/${LVMSRC}
+ wget http://ftp.de.debian.org/debian/pool/main/l/lvm2/${LVMDEBSRC}
+
+.PHONY: clean
+clean:
+ rm -rf *~ tmpdeb debian/*~ *_${ARCH}.deb *_${ARCH}.udeb *.changes *.dsc ${LVMDIR}
--- /dev/null
+Index: lvm2new/debian/control
+===================================================================
+--- lvm2new.orig/debian/control 2011-09-20 09:30:56.000000000 +0200
++++ lvm2new/debian/control 2011-09-20 10:14:57.000000000 +0200
+@@ -3,7 +3,7 @@
+ Priority: optional
+ Maintainer: Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>
+ Uploaders: Bastian Blank <waldi@debian.org>
+-Build-Depends: debhelper (>> 7), automake, libcman-dev (>> 2), libdlm-dev (>> 2), libreadline-gplv2-dev, libselinux1-dev, libudev-dev, pkg-config, quilt
++Build-Depends: debhelper (>> 7), automake, redhat-cluster-pve-dev, libreadline6-dev, libselinux1-dev, libudev-dev, pkg-config, quilt
+ Standards-Version: 3.9.1
+ Homepage: http://sources.redhat.com/lvm2/
+ Vcs-Svn: svn://svn.debian.org/pkg-lvm/lvm2/trunk/
+@@ -39,7 +39,7 @@
+ Package: clvm
+ Priority: extra
+ Architecture: any
+-Depends: ${shlibs:Depends}, ${misc:Depends}, lvm2 (= ${binary:Version}), lsb-base, cman
++Depends: ${shlibs:Depends}, ${misc:Depends}, lvm2 (= ${binary:Version}), lsb-base, redhat-cluster-pve
+ Description: Cluster LVM Daemon for lvm2
+ This package provides the clustering interface for lvm2, when used with
+ Red Hat's "cman" cluster infrastructure. It allows logical volumes to
--- /dev/null
+Index: lvm2new/debian/clvm.init
+===================================================================
+--- lvm2new.orig/debian/clvm.init 2011-09-20 10:42:31.000000000 +0200
++++ lvm2new/debian/clvm.init 2011-09-20 10:43:21.000000000 +0200
+@@ -4,8 +4,8 @@
+ # Provides: clvm
+ # Required-Start: $remote_fs lvm2 cman
+ # Required-Stop: $remote_fs lvm2 cman
+-# Default-Start: S
+-# Default-Stop: 0 6
++# Default-Start: 2 3 4 5
++# Default-Stop: 0 1 6
+ # Short-Description: start and stop the lvm cluster locking daemon
+ ### END INIT INFO
+ #
+Index: lvm2new/debian/rules
+===================================================================
+--- lvm2new.orig/debian/rules 2011-09-20 10:52:11.000000000 +0200
++++ lvm2new/debian/rules 2011-09-20 10:52:32.000000000 +0200
+@@ -160,7 +160,7 @@
+ install_clvm: DIR = $(BUILD_DIR)/install_deb
+ install_clvm: $(STAMPS_DIR)/install_deb
+ +$(MAKE_SELF) install-base-prep INSTALL_DIR='$(DIR)'
+- dh_installinit --no-start -- start 63 S . start 51 0 6 .
++ dh_installinit --no-start -- start 63 2 3 4 5 . start 51 0 1 6 .
+ +$(MAKE_SELF) install-base
+
+ install_dmsetup: export DH_OPTIONS = -pdmsetup
--- /dev/null
+fix-build-dependencies.patch
+fix-clvm-init-script.patch