diff options
author | Ileana Dumitrescu <ileanadumi95@protonmail.com> | 2022-01-05 08:24:10 -0500 |
---|---|---|
committer | Ileana Dumitrescu <ileanadumi95@protonmail.com> | 2022-01-05 08:24:10 -0500 |
commit | d00a07007ea487c226fd59e0b22a40972be9743c (patch) | |
tree | ef9ded66a7daa4e8074b3d04b58ba08a2668d1dd /debian/rules | |
parent | 8a3db62b58d33f95ba5ca55d998876be8dce79a4 (diff) | |
parent | f2fb7ede2c182259aad440483e7098f2a61f38f5 (diff) |
boxbackup (0.13~~git20200326.g8e8b63c-2) unstable; urgency=medium
[ Ileana Dumitrescu ]
* debian/control: debhelper-compat version 13
removed some lintian warnings
updated maintainer (Closes: #817078)
* debian/rules: converted to new dh format
* debian/copyright: updated to dep5 version 1.0 format
* debian/boxbackup-client.config: added set -e
* debian/boxbackup-server.config: added set -e
* debian/compat: removed for new dh format
[ Simon Chopin ]
* debian/patches: added patch c++17.diff (Closes: #984002)
[dgit import unpatched boxbackup 0.13~~git20200326.g8e8b63c-2]
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..902bbc40 --- /dev/null +++ b/debian/rules @@ -0,0 +1,57 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpkg/pkg-info.mk + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +TMP:=$(CURDIR)/debian/tmp + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +%: + dh $@ + +override_dh_autoreconf: + echo "$(DEB_VERSION_UPSTREAM_REVISION)" > VERSION.txt + echo "boxbackup" >> VERSION.txt + sh -x ./bootstrap + dh_autoreconf + +override_dh_auto_configure: + ./configure $(DEB_EXTRA_CONFIG_FLAGS) + +override_dh_auto_test: +# the testsuite is only really maintained on i386 and amd64 +ifneq (,$(filter $(DEB_HOST_ARCH),i386 amd64)) +ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) + ./runtest.pl ALL +endif +endif + +override_dh_auto_install: + mkdir -p $(TMP)/etc/logcheck/ignore.d.workstation + mkdir -p $(TMP)/etc/logcheck/ignore.d.server + install -m 644 debian/boxbackup-server.logcheck.ignore $(TMP)/etc/logcheck/ignore.d.workstation/boxbackup-server + install -m 644 debian/boxbackup-server.logcheck.ignore $(TMP)/etc/logcheck/ignore.d.server/boxbackup-server + +docs/docbook/instguide.pdf: + $(MAKE) -C docs instguide + cd docs/docbook && docbook2pdf instguide.xml + +docs/docbook/adminguide.pdf: configure-stamp + $(MAKE) -C docs adminguide + cd docs/docbook && docbook2pdf adminguide.xml + +docs: docs/docbook/instguide.pdf docs/docbook/adminguide.pdf + $(MAKE) -C docs manpages |