From: Thomas Lamprecht Date: Thu, 9 Apr 2020 15:57:06 +0000 (+0200) Subject: add dsc target, fix various packaging related stuff X-Git-Url: https://git.proxmox.com/?p=pve-eslint.git;a=commitdiff_plain;h=382381f70113495b9f3dfc2d6a413bb74fde6ac3 add dsc target, fix various packaging related stuff Signed-off-by: Thomas Lamprecht --- diff --git a/Makefile b/Makefile index d264323..147b4d4 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ GITVERSION:=$(shell git rev-parse HEAD) BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc SRCDIR=src UPSTREAM=eslint @@ -15,15 +16,25 @@ BUILDSRC=${UPSTREAM}-${UPSTREAMTAG} all: ${DEB} @echo ${DEB} -.PHONY: deb -deb: ${DEB} -${DEB}: ${SRCDIR} +.PHONY: dsc deb builddir + +${BUILDDIR}: builddir +builddir: ${SRCDIR} rm -rf ${BUILDDIR} mkdir ${BUILDDIR} cp -a debian ${BUILDDIR}/ cp -a ${SRCDIR}/* ${BUILDDIR}/ echo "git clone git://git.proxmox.com/git/pve-eslint.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE - cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us + + +dsc: ${DSC} +${DSC}: builddir + cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us + lintian ${DSC} + +deb: ${DEB} +${DEB}: builddir + cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us lintian ${DEB} @echo ${DEB} @@ -60,7 +71,7 @@ distclean: clean .PHONY: clean clean: - rm -rf *~ debian/*~ *.deb ${BUILDSRC} ${BUILDSRC}.tmp ${UPSTREAM}.tmp ${BUILDDIR} *.changes *.dsc *.buildinfo + rm -rf *~ debian/*~ *.deb ${BUILDSRC} *.tmp/ ${BUILDDIR} *.changes *.tar.gz *.dsc *.buildinfo .PHONY: dinstall dinstall: deb diff --git a/debian/compat b/debian/compat index f599e28..48082f7 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -10 +12 diff --git a/debian/control b/debian/control index 6a49d6b..3f9b014 100644 --- a/debian/control +++ b/debian/control @@ -2,11 +2,13 @@ Source: pve-eslint Section: devel Priority: optional Maintainer: Proxmox Support Team -Build-Depends: debhelper (>= 7.0.0~) +Build-Depends: debhelper (>= 12~) +Standards-Version: 4.3.0 +Homepage: http://www.proxmox.com Package: pve-eslint Architecture: all -Depends: node-commander, node-colors, nodejs +Depends: node-commander, node-colors, nodejs, ${misc:Depends}, Description: ESLint for Proxmox Virtual Environment development This package contains a version of eslint used to develop the - Proxmox Virtual Environment GUI. + Proxmox Virtual Environment, and other Proxmox projects, web GUI. diff --git a/debian/copyright b/debian/copyright index 50e7951..7892eda 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,4 +1,4 @@ -Copyright (C) 2020 Proxmox Server Solutions GmbH +Copyright (C) 2020 Proxmox Server Solutions GmbH (packaging) This software is written by Proxmox Server Solutions GmbH 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