diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:16:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:16:25 +0000 |
commit | 493d99a59cc0189b4a6e9b5d4d74d9d747e34e01 (patch) | |
tree | f874c5dd860f5340e2988d0ad4fd30724db945a1 /debian/rules | |
parent | Adding upstream version 2.8.5. (diff) | |
download | man-db-493d99a59cc0189b4a6e9b5d4d74d9d747e34e01.tar.xz man-db-493d99a59cc0189b4a6e9b5d4d74d9d747e34e01.zip |
Adding debian version 2.8.5-2.debian/2.8.5-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..fb29d88 --- /dev/null +++ b/debian/rules @@ -0,0 +1,53 @@ +#! /usr/bin/make -f +%: + dh $@ --builddirectory=debian/build --with=autoreconf,systemd --parallel + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +dtmp = debian/man-db + +export DEB_BUILD_MAINT_OPTIONS := hardening=+all +# Use DT_RUNPATH rather than DT_RPATH, so that LD_LIBRARY_PATH works properly. +export DEB_LDFLAGS_MAINT_APPEND := -Wl,--enable-new-dtags + +# --libdir and --libexecdir are set here because debhelper defaults to using +# multiarch paths at compat level 9, which is a reasonable choice in general +# but unnecessary here. +override_dh_auto_configure: + dh_auto_configure -- \ + --libdir=\$${prefix}/lib --libexecdir=\$${libdir} \ + --enable-setuid --enable-undoc='man 7 undocumented' \ + --with-device=latin1 --enable-mb-groff \ + --with-config-file=/etc/manpath.config \ + --with-browser=www-browser --with-pager=pager \ + --with-col=col --with-vgrind=vgrind --with-grap=grap \ + --with-compress=compress --with-bzip2=bzip2 \ + --with-xz=xz --with-lzip=lzip --with-lzma=lzma \ + --with-sections='1 n l 8 3 2 3posix 3pm 3perl 3am 5 4 9 6 7' + +override_dh_auto_test: + VERBOSE=1 dh_auto_test + +override_dh_auto_install: + dh_auto_install + rm -f $(dtmp)/usr/lib/man-db/*.la + +override_dh_install: + dh_install + dh_apparmor --profile-name=usr.bin.man + +ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) +override_dh_installman: + PATH="$(CURDIR)/$(dtmp)/usr/bin:$$PATH" \ + LD_LIBRARY_PATH="$(CURDIR)/$(dtmp)/usr/lib/man-db:$$LD_LIBRARY_PATH" \ + dh_installman +endif + +override_dh_fixperms: + dh_fixperms + chown man:man $(dtmp)/var/cache/man + +# Our shared libraries are private. +override_dh_makeshlibs: + : |