[Pkg-virtualbox-commits] [virtualbox-ext-pack] 04/05: Automatically generate postinst version
Gianfranco Costamagna
locutusofborg at moszumanska.debian.org
Tue Oct 17 16:22:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
locutusofborg pushed a commit to branch master
in repository virtualbox-ext-pack.
commit f472a856ddabb62853931fbc6e048b1d298d8982
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date: Tue Oct 17 18:21:14 2017 +0200
Automatically generate postinst version
---
debian/{postinst => postinst.in} | 2 +-
debian/rules | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/debian/postinst b/debian/postinst.in
similarity index 97%
rename from debian/postinst
rename to debian/postinst.in
index 57cdecb..686236e 100644
--- a/debian/postinst
+++ b/debian/postinst.in
@@ -1,7 +1,7 @@
#!/bin/sh
set -e
-version=5.1.30
+version=#VERSION#
hash=2da095e32f85fe5a1fe943158e079bd5aecb2724691c4038bd619ddee967b288
file=Oracle_VM_VirtualBox_Extension_Pack-$version.vbox-extpack
accept_license=b674970f720eb020ad18926a9268607089cc1703908696d24a04aa870f34c8e8
diff --git a/debian/rules b/debian/rules
index c278b1b..68bede4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,16 +1,18 @@
#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
-VERSION=5.1.30
+VERSION ?= $(DEB_VERSION_UPSTREAM)
%:
dh $@
override_dh_clean:
debconf-updatepo
- dh_clean
+ dh_clean debian/postinst
-#VIRTUALBOX_VERSION=$(shell dpkg-query --show --showformat='$${version}' virtualbox | cut -f1 -d "-")
+override_dh_installdeb:
+ cat debian/postinst.in | sed 's/#VERSION#/$(DEB_VERSION_UPSTREAM)/g' > debian/postinst
+ dh_installdeb
override_dh_gencontrol:
dh_gencontrol -- \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-virtualbox/virtualbox-ext-pack.git
More information about the Pkg-virtualbox-commits
mailing list