summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:51:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:51:47 +0000
commit4b14a49f00036518b610199c20df4c5a6e2ae71b (patch)
treeb7217f08d5a9bd3aeec79a930579ece330c16cec /debian/rules
parentAdding upstream version 7.0.6. (diff)
downloadvirtualbox-ext-pack-debian/7.0.6-1.tar.xz
virtualbox-ext-pack-debian/7.0.6-1.zip
Adding debian version 7.0.6-1.debian/7.0.6-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 ..