]> git.proxmox.com Git - pve-xtermjs.git/commitdiff
add DSC source package and fix its reported lintian errors
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 May 2019 18:32:51 +0000 (20:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 May 2019 18:43:10 +0000 (20:43 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile
debian/control

index 865a2afbfc067626350a46611de173cfb638a21b..dc9d65bc20313caf38a95f41d7187cf4a846e048 100644 (file)
--- 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
index 258862a8e7cfc5eac038b97defc2be1e56ec0cee..216b67284663bb3e31523112b906347736aabc29 100644 (file)
@@ -4,13 +4,13 @@ Priority: optional
 Maintainer: Proxmox Support Team <support@proxmox.com>
 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