]> git.proxmox.com Git - redhat-cluster-pve.git/blobdiff - Makefile
start rgmanager after service vz and qemu-server
[redhat-cluster-pve.git] / Makefile
index 62810ca542db72e42ab5888098ed283be60293df..504fd4301ce6f7d5de74b187850828439e225a12 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
-RELEASE=2.0
+RELEASE=3.0
 
-RHCVER=3.1.5
-RHCBRANCH=origin/STABLE31
+RHCVER=3.2.0
+RHCBRANCH=STABLE32
+
+RHCDIR=cluster-${RHCVER}
+RHCSRC=${RHCDIR}.tar.gz
 
 PACKAGE=redhat-cluster-pve
 PKGREL=2
@@ -13,16 +16,21 @@ DEBS=                                                                       \
 all: ${DEBS}
        echo ${DEBS}
 
-.PHONY: cluster-${RHCVER}
-${DEBS} cluster-${RHCVER}: cluster.git
-       rm -rf cluster-${RHCVER}
-       rsync -a --exclude .git --exclude .gitignore cluster.git/ cluster-${RHCVER}
-       cp -a debian cluster-${RHCVER}/debian
-       cd cluster-${RHCVER}; dpkg-buildpackage -rfakeroot -b -us -uc
-
-cluster.git download:
-       git clone git://git.fedorahosted.org/cluster.git cluster.git
-       cd cluster.git; git checkout -b local ${RHCBRANCH}
+${DEBS}: ${RHCSRC}
+       rm -rf ${RHCDIR}
+       tar xf ${RHCSRC}
+       cp -a debian ${RHCDIR}/debian
+       cat ${RHCDIR}/doc/COPYRIGHT >>${RHCDIR}/debian/copyright
+       cd ${RHCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
+       lintian -X copyright-file ${DEBS}
+
+${RHCSRC} download:
+       rm -rf ${RHCDIR} cluster.git
+       git clone git://git.fedorahosted.org/cluster.git -b ${RHCBRANCH} cluster.git
+       rsync -a --exclude .git --exclude .gitignore cluster.git/ ${RHCDIR}
+       tar czf ${RHCSRC}.tmp ${RHCDIR}
+       rm -rf ${RHCDIR} 
+       mv ${RHCSRC}.tmp ${RHCSRC}
 
 .PHONY: upload
 upload: ${DEBS}
@@ -38,7 +46,7 @@ distclean: clean
        rm -rf cluster.git
 
 clean:
-       rm -rf *~ *.deb cluster-${RHCVER} ${PACKAGE}_* ${PACKAGE}-dev_*
+       rm -rf *~ *.deb ${RHCDIR} ${PACKAGE}_* ${PACKAGE}-dev_*
 
 .PHONY: dinstall
 dinstall: ${DEBS}