]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
add target to build DSC
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Mar 2019 17:59:36 +0000 (18:59 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Mar 2019 17:59:36 +0000 (18:59 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile
debian/control
debian/source/format [new file with mode: 0644]

index 707c6165ecdd79fa950cb59426cf068710e5cbc1..175897e2cb39cb6976cb694445e081a0c67e8a57 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,35 +4,42 @@ SIMPACKAGE=pve-ha-simulator
 PKGREL=8
 
 GITVERSION:=$(shell git rev-parse HEAD)
-
+BUILDDIR ?= ${PACKAGE}-${VERSION}
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
+DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
 SIMDEB=${SIMPACKAGE}_${VERSION}-${PKGREL}_all.deb
-
+SIMDSC=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
 
 all: deb
 
+${BUILDDIR}:
+       rm -rf ${BUILDDIR}
+       rsync -a src/ debian ${BUILDDIR}
+       echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
+
 .PHONY: dinstall
 dinstall: $(DEB) $(SIMDEB)
        dpkg -i ${DEB} ${SIMDEB}
 
 .PHONY: deb
 deb: ${DEB} ${SIMDEB}
-${DEB}:
-       rm -rf build
-       mkdir build
-       rsync -a src/ build
-       rsync -a debian/ build/debian
-       echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
-       cd build; dpkg-buildpackage -b -us -uc
+${DEB}: ${BUILDDIR}
+       cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
        lintian ${DEB}
        lintian ${SIMDEB}
 
+.PHONY: dsc
+dsc: ${DSC}
+${DSC}: ${BUILDDIR}
+       cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
+       lintian ${DSC}
+
 .PHONY: clean
 clean:
        make -C src clean
-       rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes *.buildinfo
+       rm -rf ${BUILDDIR} *.dsc *.deb ${PACKAGE}-*.tar.gz *.changes *.buildinfo
        find . -name '*~' -exec rm {} ';'
 
 .PHONY: distclean
index 4aca1feab002ad61d91974ad1398da934827fe72..d0d5dc15a2ed72654a441a2dcb5ccd0d1e410072 100644 (file)
@@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 10~),
                lintian,
                pve-cluster,
                pve-doc-generator (>= 5.3-3),
-Standards-Version: 3.8.4
+Standards-Version: 3.9.8
 
 Package: pve-ha-manager
 Section: perl
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..d3827e7
--- /dev/null
@@ -0,0 +1 @@
+1.0