blob: 0c6bff58dbd1f53f3b6e085c54b9c523deec4618 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#! /usr/bin/make -f
%:
dh $@ --builddirectory=debian/build
include /usr/share/dpkg/architecture.mk
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 \
--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-zstd=zstd \
--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
override_dh_fixperms:
dh_fixperms
chown man:man $(dtmp)/var/cache/man
# Our shared libraries are private.
override_dh_makeshlibs:
:
|