]> git.proxmox.com Git - pve-zsync.git/commitdiff
buildsys: add dsc target
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 31 Mar 2019 13:52:20 +0000 (15:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 31 Mar 2019 13:52:20 +0000 (15:52 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile
debian/control
debian/source/format [new file with mode: 0644]

index 4b6518c03ae1f1db099330fcd8a5b26d165c570f..996c39a15c1a4ed02d402468af28cc1656617230 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,12 +10,13 @@ MAN8DIR=${DESTDIR}/usr/share/man/man8
 DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
 WORKDIR=${DESTDIR}/var/lib/pve-zsync
 
-BUILDDIR=build
+BUILDDIR ?= ${PACKAGE}-${VERSION}
 
 ARCH=all
 GITVERSION:=$(shell git rev-parse HEAD)
 
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
+DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
 
 all:
 
@@ -34,19 +35,27 @@ install: pve-zsync.8
        install -d ${MAN8DIR}
        install -m 0644 pve-zsync.8 ${MAN8DIR}/pve-zsync.8
        install -d ${DOCDIR}
-       echo "git clone git://git.proxmox.com/git/pve-zsync.git\\ngit checkout ${GITVERSION}" > ${DOCDIR}/SOURCE
+
+${BUILDDIR}:
+       rm -rf ${BUILDDIR}
+       rsync -a * ${BUILDDIR}
+       echo "git clone git://git.proxmox.com/git/dab.git\\ngit checkout ${GITVERSION}" >  ${BUILDDIR}/debian/SOURCE
 
 .PHONY: deb
 deb: ${DEB}
-${DEB}:
-       rm -rf ${BUILDDIR}
-       rsync -a * build
-       cd build; dpkg-buildpackage -b -us -uc
+${DEB}: ${BUILDDIR}
+       cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
        lintian ${DEB}
 
+.PHONY: dsc
+dsc: ${DSC}
+${DSC}:${BUILDDIR}
+       cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
+       lintian ${DSC}
+
 .PHONY: clean
 clean:
-       rm -rf ${BUILDDIR} *.deb *.buildinfo *.changes
+       rm -rf ${BUILDDIR} *.deb *.dsc ${PACKAGE}*.tar.gz *.buildinfo *.changes
        find . -name '*~' -exec rm {} ';'
 
 .PHONY: distclean
index 50597b42699718a3f9d2bc5df71a2b6b04023075..c29f1bb20b062cf123c6a40a2287d2fb8ab40e9c 100644 (file)
@@ -2,12 +2,14 @@ Source: pve-zsync
 Section: perl
 Priority: optional
 Maintainer: Proxmox Support Team <support@proxmox.com>
-Standards-Version: 3.8.4
+Build-Depends: debhelper (>= 10~)
+Standards-Version: 3.9.8
 
 Package: pve-zsync
 Section: perl
 Priority: optional
 Architecture: all
 Depends: ${perl:Depends},
+         ${misc:Depends}
 Description: Proxmox VE ZFS syncing tool
  Tool for automated syncing of ZFS subvolumes and pools.
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