From 094d10145ccaeb02757dfe59573723fd849aa9ba Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 22 May 2019 20:32:51 +0200 Subject: [PATCH] add DSC source package and fix its reported lintian errors Signed-off-by: Thomas Lamprecht --- Makefile | 23 +++++++++++++++-------- debian/control | 4 ++-- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 865a2af..dc9d65b 100644 --- a/Makefile +++ b/Makefile @@ -8,25 +8,32 @@ XTERMJSVER=3.13.2 XTERMJSTGZ=xterm-${XTERMJSVER}.tgz SRCDIR=src - +BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} GITVERSION:=$(shell cat .git/refs/heads/master) DEB=${PACKAGE}_${VERSION}_all.deb +DSC=${PACKAGE}_${VERSION}.dsc all: ${DEB} @echo ${DEB} +${BUILDDIR}: ${SRCDIR} debian + rm -rf ${BUILDDIR} + rsync -a ${SRCDIR}/ debian ${BUILDDIR} + echo "git clone git://git.proxmox.com/git/pve-xtermjs.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE + .PHONY: deb deb: ${DEB} -${DEB}: - rm -rf ${SRCDIR}.tmp - cp -rpa ${SRCDIR} ${SRCDIR}.tmp - cp -a debian ${SRCDIR}.tmp/ - echo "git clone git://git.proxmox.com/git/pve-xtermjs.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}.tmp/debian/SOURCE - cd ${SRCDIR}.tmp; dpkg-buildpackage -b -uc -us +${DEB}: ${BUILDDIR} + cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us lintian ${DEB} @echo ${DEB} +.PHONY: dsc +dsc: ${DSC} +${DSC}: ${BUILDDIR} + cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d + lintian ${DSC} X_EXCLUSIONS=--exclude=addons/attach --exclude=addons/fullscreen --exclude=addons/search \ --exclude=addons/terminado --exclude=addons/webLinks --exclude=addons/zmodem @@ -46,7 +53,7 @@ distclean: clean .PHONY: clean clean: - rm -rf *~ debian/*~ *_${ARCH}.deb ${SRCDIR}.tmp ${XTERMJSDIR} *_all.deb *.changes *.dsc *.buildinfo + rm -rf *~ debian/*~ ${PACKAGE}-*/ *.deb *.changes *.dsc *.tar.gz *.buildinfo .PHONY: dinstall dinstall: deb diff --git a/debian/control b/debian/control index 258862a..216b672 100644 --- a/debian/control +++ b/debian/control @@ -4,13 +4,13 @@ Priority: optional Maintainer: Proxmox Support Team Build-Depends: debhelper (>= 10~), libpve-common-perl, -Standards-Version: 3.8.3 +Standards-Version: 4.1.3 Package: pve-xtermjs Architecture: all Depends: libpve-common-perl (>= 5.0-23), libwww-perl, - ${misc:Depends} + ${misc:Depends}, ${perl:Depends} Description: HTML/JS Shell client This is an xterm.js client for PVE Host, Container and Qemu Serial Terminal -- 2.39.2