From 8bc37fc67193505a5a346fd2f1bee70476eb3942 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 14:36:05 +0200 Subject: Adding debian version 1.1.0-1. Signed-off-by: Daniel Baumann --- debian/rules | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 debian/rules (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..4208018 --- /dev/null +++ b/debian/rules @@ -0,0 +1,45 @@ +#!/usr/bin/make -f + +export DH_VERBOSE=1 + +export DH_GOLANG_BUILDPKG=github.com/icinga/icingadb/cmd/icingadb \ + github.com/icinga/icingadb/cmd/icingadb-migrate + +export GO111MODULE=on + +include /usr/share/dpkg/pkg-info.mk + +BUILD_DATE=$(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)") + +MANPAGES := $(wildcard debian/man/*.*.xml) + +%: + dh $@ --builddirectory=_build --buildsystem=golang --with=golang + +override_dh_clean: + dh_clean debian/man/*.8 + +override_dh_auto_configure: + dh_auto_configure + + (mkdir -p _build/pkg && cd _build/pkg && ln -s ../../dependencies/pkg/* .) + +override_dh_auto_build: + # Create man page from DocBook XML + for x in $(MANPAGES) ; do \ + docbook2x-man --string-param header-3="$(BUILD_DATE)" $$x ; \ + mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \ + done + + dh_auto_build + +override_dh_auto_install: + dh_auto_install -- --no-source + + mv debian/icingadb/usr/bin debian/icingadb/usr/sbin + +override_dh_installsystemd: + dh_installsystemd --no-enable --no-start + +override_dh_compress: + dh_compress -X.md -- cgit v1.2.3