summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:40:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:40:51 +0000
commit017870ebf041f17c3a8fa10e97d010701431d14b (patch)
tree370430da4af7aa2682815861078f5bd1c9821b90 /debian/rules
parentAdding upstream version 3.0.13. (diff)
downloaddkms-017870ebf041f17c3a8fa10e97d010701431d14b.tar.xz
dkms-017870ebf041f17c3a8fa10e97d010701431d14b.zip
Adding debian version 3.0.13-1.debian/3.0.13-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e2ae425
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,26 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+include /usr/share/dpkg/pkg-info.mk
+
+%:
+ dh $@
+
+debian/scripts/dh_dkms: debian/scripts/dh_dkms.in
+ sed -r "s,^#VERSION#,our \$$VERSION = \"$(DEB_VERSION)\";," $< > $@
+ chmod +x $@
+
+debian/scripts/dh_dkms.1: debian/scripts/dh_dkms
+ pod2man \
+ --center "DKMS Debhelper" \
+ --release $(DEB_VERSION_UPSTREAM) \
+ $< > $@
+
+override_dh_auto_build: debian/scripts/dh_dkms
+override_dh_auto_build: debian/scripts/dh_dkms.1
+
+override_dh_auto_install:
+ $(MAKE) install-debian DESTDIR=$(CURDIR)/debian/dkms
+
+execute_after_dh_install:
+ DH_AUTOSCRIPTDIR=debian/scripts debian/scripts/dh_dkms