]> git.proxmox.com Git - pve-eslint.git/commitdiff
add dsc target, fix various packaging related stuff
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Apr 2020 15:57:06 +0000 (17:57 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Apr 2020 16:06:06 +0000 (18:06 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile
debian/compat
debian/control
debian/copyright
debian/source/format [new file with mode: 0644]

index d264323876439500658c5eca79e1d9fe6df33fc3..147b4d4be850b37eae1baed93a7e77928c11b6ab 100644 (file)
--- 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
index f599e28b8ab0d8c9c57a486c89c4a5132dcbd3b2..48082f72f087ce7e6fa75b9c41d7387daecd447b 100644 (file)
@@ -1 +1 @@
-10
+12
index 6a49d6bdd7eb8437b7cc895b00e9259667a7a154..3f9b0145f39a33c6fa7536188af2324b3aa784ee 100644 (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.
index 50e79512f2e502eaed288d7b53cd088c7b209f64..7892eda448abdaf1ee4e69d75ad19554ba263a78 100644 (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>
 
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..d3827e7
--- /dev/null
@@ -0,0 +1 @@
+1.0