]> git.proxmox.com Git - novnc-pve.git/commitdiff
d/rules use dpkg make script helper for package version
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 17 May 2021 08:36:03 +0000 (10:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 17 May 2021 08:58:10 +0000 (10:58 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/rules

index 7d9211b48ae100d905294d11f04917a99f26f6df..2ee7acd0726c8f33b34f113a8f07ac02e9998f56 100755 (executable)
@@ -1,10 +1,11 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/pkg-info.mk
+
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
 export DEB_BUILD_HARDENING=1
-DEB_VERSION = $(shell dpkg-parsechangelog -SVersion)
 
 %:
        dh ${@} --with quilt
@@ -15,5 +16,5 @@ override_dh_auto_build:
 
 override_dh_install:
        cp vnc.html index.html.tpl
-       sed -i -re "s/\.(css|js)/\.\1?ver=${DEB_VERSION}/g" index.html.tpl
+       sed -i -re "s/\.(css|js)/\.\1?ver=${DEB_VERSION_UPSTREAM_REVISION}/g" index.html.tpl
        dh_install