summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-21 20:56:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-21 20:56:20 +0000
commit868522aa377a4519adb0b9f402586ab7a41b86ba (patch)
tree44e805e154a3ace9bd8dbac73843e80d296b7814 /debian/rules
parentAdding upstream version 5.28.2+dfsg1+~cs23.11.12.3. (diff)
downloadnode-undici-debian.tar.xz
node-undici-debian.zip
Adding debian version 5.28.2+dfsg1+~cs23.11.12.3-6.debian/5.28.2+dfsg1+_cs23.11.12.3-6debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules46
1 files changed, 46 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..87c0ddd
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,46 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+include /usr/share/dpkg/pkg-info.mk
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+LLHTTPVERSION = $(shell pkgjs-pjson llhttp version)
+LLHTTPMAJORVERSION = $(shell pkgjs-pjson llhttp version|perl -pe 's/\..*//')
+export SONAME = libllhttp.so.$(LLHTTPVERSION)
+export SONAMEALIAS = libllhttp.so.$(LLHTTPMAJORVERSION)
+LIBLLHTTPVERSION = $(LLHTTPVERSION)~$(DEB_VERSION)
+
+zz:
+ echo $(LLHTTPMAJORVERSION)
+
+%:
+ dh $@
+
+override_dh_auto_test:
+ # autopkgtest only
+
+execute_after_dh_auto_install:
+ cd llhttp && $(MAKE) install DESTDIR=../debian/tmp PREFIX=/usr LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
+ dh_auto_install --buildsystem=cmake -Dllhttp/release
+
+execute_after_dh_install:
+ rm -f debian/node-undici/usr/share/nodejs/undici/lib/fetch/LICENSE
+
+execute_after_dh_fixperms:
+ chmod -x debian/*/usr/share/nodejs/undici/lib/llhttp/llhttp-wasm
+
+override_dh_makeshlibs:
+ dh_makeshlibs -a -- -plibllhttp9.1
+
+override_dh_gencontrol:
+ dh_gencontrol -pnode-undici -- -v$(DEB_VERSION)
+ dh_gencontrol -plibllhttp-dev -- -v$(LLHTTPVERSION)~$(DEB_VERSION) \
+ -Vlibllhttp:Version=$(LIBLLHTTPVERSION) \
+ -DHomepage=https://github.com/nodejs/llhttp
+ dh_gencontrol -pnode-llhttp -- -v$(LLHTTPVERSION)~$(DEB_VERSION) \
+ -DHomepage=https://github.com/nodejs/llhttp
+ dh_gencontrol -plibllhttp9.1 -- -v$(LLHTTPVERSION)~$(DEB_VERSION) \
+ -DHomepage=https://github.com/nodejs/llhttp