diff --git a/Makefile b/Makefile index 2de3088..6eea569 100644 --- a/Makefile +++ b/Makefile @@ -8,24 +8,34 @@ BUILDDIR=${SRCDIR}.tmp GITVERSION:=$(shell git rev-parse HEAD) DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc all: ${DEB} @echo ${DEB} -.PHONY: deb -deb: ${DEB} -${DEB}: | submodule +${SRCDIR}/vnc.html: submodule +${BUILDDIR}: $(SRCDIR)/vnc.html rm -rf ${BUILDDIR} cp -rpa ${SRCDIR} ${BUILDDIR} cp -a debian ${BUILDDIR} echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE - cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us + +.PHONY: deb +deb: ${DEB} +${DEB}: ${BUILDDIR} + cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us lintian ${DEB} @echo ${DEB} +.PHONY: dsc +dsc: ${DSC} +${DSC}: ${BUILDDIR} + cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us -d + lintian ${DSC} + .PHONY: submodule submodule: - test -f "${SRCDIR}/vnc.html" || git submodule update --init + git submodule update --init .PHONY: download download ${SRCDIR}: diff --git a/debian/control b/debian/control index cedc692..a5b8b8b 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: novnc-pve Section: web Priority: optional Maintainer: Proxmox Support Team -Build-Depends: debhelper (>= 10~), +Build-Depends: debhelper (>= 11~), node-es6-module-transpiler, quilt, Standards-Version: 4.1.3 diff --git a/debian/patches/series b/debian/patches/series index 1cc9d2a..c8affc6 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -9,4 +9,4 @@ 0009-decrease-animation-time.patch 0010-use-only-app.js.patch 0011-add-localCursor-setting-to-rfb.patch -0012-pass-custom-command-to-vnc.patch \ No newline at end of file +0012-pass-custom-command-to-vnc.patch diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..e2edfd4 --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1 @@ +novnc-pve source: source-is-missing core/util/browser.js line length is *