Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
4
5 CC = $(DEB_HOST_GNU_TYPE)-gcc
6
7 # we determine the ABI level comes from the SONAME of libssl.so
8 # it is used for the Provides: perl-openssl-abi-XX relationship
9 # see #848113
10
11 debian/openssl-abiversion: debian/get-libssl-abi
12 $< > $@
13 # fail if we could not extract the SONAME
14 [ -s $@ ]
15
16 debian/dh_perl_openssl.1: debian/dh_perl_openssl
17 pod2man $< $@
18
19 # we build a binary called 'openssl-version' just to be able to generate
20 # a libssl* dependency. dh_shlibdeps won't run if nothing is installed
21 # in the binary package, so we run dpkg-shlibdeps by hand
22 override_dh_shlibdeps:
23 # scanning uninstalled binaries is intentional, please ignore the warning
24 dpkg-shlibdeps -e$(CURDIR)/openssl-version -Tdebian/perl-openssl-defaults.substvars
25
26 override_dh_gencontrol: debian/openssl-abiversion
27 dh_gencontrol -- -Vperl-openssl-abi-version=$(shell cat $<)
28
29 override_dh_auto_build: debian/perl-openssl.make debian/dh_perl_openssl.1
30 dh_auto_build -- CC=$(CC)
31
32 # we don't use anything outside perl-base for ourself;
33 # debhelper may but that's not our business
34 #
35 # note that this currently makes perl:Depends totally empty
36 # (as perl-base is Essential:yes)
37 override_dh_perl:
38 dh_perl -d
39
40 %:
41 dh $@