summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:37:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:37:38 +0000
commit53d04d9ab57185eef71a52b9cd8b8acb182c8d25 (patch)
treefd3dfc39ef170fb257c8971f0c22f4f771096676 /debian/rules
parentAdding upstream version 1.0.114+deb10u1. (diff)
downloaddebootstrap-53d04d9ab57185eef71a52b9cd8b8acb182c8d25.tar.xz
debootstrap-53d04d9ab57185eef71a52b9cd8b8acb182c8d25.zip
Adding debian version 1.0.114+deb10u1.debian/1.0.114+deb10u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xdebian/rules31
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e5e45d1
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,31 @@
+#! /usr/bin/make -f
+
+ifeq (0,$(shell dpkg-vendor --derives-from Ubuntu; echo $$?))
+ KEYRING := ubuntu-keyring
+else ifeq (0,$(shell dpkg-vendor --derives-from Tanglu; echo $$?))
+ KEYRING := tanglu-archive-keyring
+else ifeq (0,$(shell dpkg-vendor --derives-from Kali; echo $$?))
+ KEYRING := kali-archive-keyring
+else
+ KEYRING := debian-archive-keyring
+endif
+
+%:
+ dh $@
+
+# need to be root to make devices, so build is done in install target
+override_dh_auto_build:
+
+override_dh_auto_install:
+ dh_auto_build
+
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/debootstrap
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/debootstrap-udeb
+
+override_dh_gencontrol:
+ dh_gencontrol -- -Vkeyring=$(KEYRING)
+
+# Specify gzip to mitigate #770217:
+override_dh_builddeb:
+ dh_builddeb -pdebootstrap -- -Zgzip
+ dh_builddeb -pdebootstrap-udeb -- -Zxz