diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:31:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:31:02 +0000 |
commit | 3f0e321b489e2eb1de700d20b850d5a43aecf769 (patch) | |
tree | 2e1bf6a66273dce009ed7f1f08dfb5bb9424bc80 /debian/rules | |
parent | Adding upstream version 5:7.0.15. (diff) | |
download | redis-debian.tar.xz redis-debian.zip |
Adding debian version 5:7.0.15-1~deb12u1.debian/5%7.0.15-1_deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | debian/rules | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b3510b9 --- /dev/null +++ b/debian/rules @@ -0,0 +1,50 @@ +#!/usr/bin/make -f + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +export BUILD_TLS = yes +export CFLAGS CPPFLAGS LDFLAGS +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_CFLAGS_MAINT_APPEND = -I/usr/include/liblzf +export DEB_LDFLAGS_MAINT_APPEND = -Wl,-no-as-needed -ldl -latomic -llzf + +# Build jemelloc in parallel +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + MAKEFLAGS += -j$(NUMJOBS) + export MAKEFLAGS +endif + +%: + dh $@ + +override_dh_auto_clean: + dh_auto_clean + rm -f src/release.h debian/*.service + +override_dh_auto_build: + dh_auto_build -- V=1 USE_SYSTEM_JEMALLOC=yes USE_SYSTEMD=yes USE_JEMALLOC=yes + +override_dh_auto_test: +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + # Generate a root CA and server certificate for testing + ./utils/gen-test-certs.sh + # Avoid race conditions in upstream testsuite + ./runtest --clients 1 --verbose --dump-logs --tls || true + timeout 30m ./runtest-cluster --tls || true + ./runtest-sentinel || true + # Clean up after gen-test-certs.sh + rm -rf tests/tls || true + # Other cleanup + find tests/tmp ! -name .gitignore -type f -exec rm -rfv {} + +endif + +override_dh_auto_install: + debian/bin/generate-systemd-service-files + +override_dh_compress: + dh_compress -Xredis-trib.rb + +override_dh_installchangelogs: + dh_installchangelogs --keep 00-RELEASENOTES |