summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:05:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:05:46 +0000
commitcbab85b179bb1fcbdf9f1ab0fd911609d0184d6d (patch)
tree24d585fa456ec79ce57eedd6e608ac7ae6da30b3 /debian/rules
parentAdding upstream version 6.0.4. (diff)
downloadvirtualbox-ext-pack-cbab85b179bb1fcbdf9f1ab0fd911609d0184d6d.tar.xz
virtualbox-ext-pack-cbab85b179bb1fcbdf9f1ab0fd911609d0184d6d.zip
Adding debian version 6.0.4-1.debian/6.0.4-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..57b4f5d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/default.mk
+VERSION ?= $(DEB_VERSION_UPSTREAM)
+
+%:
+ dh $@
+
+override_dh_clean:
+ debconf-updatepo
+ dh_clean debian/postinst
+
+override_dh_installdeb:
+ sed 's/#VERSION#/$(DEB_VERSION_UPSTREAM)/g' debian/postinst.in > debian/postinst
+ dh_installdeb
+
+override_dh_gencontrol:
+ dh_gencontrol -- \
+ -Vvirtualbox:Version=$(DEB_VERSION_UPSTREAM)-dfsg-0~ -Vvirtualbox:nextVersion=$(DEB_VERSION_UPSTREAM)-dfsg-z
+
+tarball:
+ mkdir virtualbox-ext-pack_$(VERSION)
+ tar cJvf virtualbox-ext-pack_$(VERSION).orig.tar.xz virtualbox-ext-pack_$(VERSION)
+ rm -rf virtualbox-ext-pack_$(VERSION)
+ mv virtualbox-ext-pack_$(VERSION).orig.tar.xz ..