add dsc target, fix various packaging related stuff

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-04-09 17:57:06 +02:00
parent eb39fafa4f
commit 382381f701
5 changed files with 24 additions and 10 deletions

View File

@ -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

2
debian/compat vendored
View File

@ -1 +1 @@
10
12

8
debian/control vendored
View File

@ -2,11 +2,13 @@ Source: pve-eslint
Section: devel
Priority: optional
Maintainer: Proxmox Support Team <support@proxmox.com>
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.

2
debian/copyright vendored
View File

@ -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 <support@proxmox.com>

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
1.0