File: rules

package info (click to toggle)
perl-openssl-defaults 3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 68 kB
  • ctags: 5
  • sloc: makefile: 21; sh: 18; perl: 15; ansic: 11
file content (41 lines) | stat: -rwxr-xr-x 1,283 bytes parent folder | download
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
#!/usr/bin/make -f

DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

CC      = $(DEB_HOST_GNU_TYPE)-gcc

# we determine the ABI level comes from the SONAME of libssl.so
# it is used for the Provides: perl-openssl-abi-XX relationship
# see #848113

debian/openssl-abiversion: debian/get-libssl-abi
	$< > $@
	# fail if we could not extract the SONAME
	[ -s $@ ]

debian/dh_perl_openssl.1: debian/dh_perl_openssl
	pod2man $< $@

# we build a binary called 'openssl-version' just to be able to generate
# a libssl* dependency. dh_shlibdeps won't run if nothing is installed
# in the binary package, so we run dpkg-shlibdeps by hand
override_dh_shlibdeps:
	# scanning uninstalled binaries is intentional, please ignore the warning
	dpkg-shlibdeps -e$(CURDIR)/openssl-version -Tdebian/perl-openssl-defaults.substvars

override_dh_gencontrol: debian/openssl-abiversion
	dh_gencontrol -- -Vperl-openssl-abi-version=$(shell cat $<)

override_dh_auto_build: debian/perl-openssl.make debian/dh_perl_openssl.1
	dh_auto_build -- CC=$(CC)

# we don't use anything outside perl-base for ourself;
# debhelper may but that's not our business
#
# note that this currently makes perl:Depends totally empty
# (as perl-base is Essential:yes)
override_dh_perl:
	dh_perl -d

%:
	dh $@