Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 include /usr/share/dpkg/pkg-info.mk
7 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
8
9 PERL_VERSION := $(shell perl -MExtUtils::MM -e 'print MM->parse_version("bindings/perl/lib/Net/Oping.pm");')
10 DEB_DELTA := $(shell echo $(DEB_VERSION) | sed s/$(DEB_VERSION_EPOCH_UPSTREAM)-//)
11 LIBPERL_VERSION := $(DEB_VERSION_EPOCH_UPSTREAM)-$(PERL_VERSION)-$(DEB_DELTA)
12
13 %:
14 dh $@
15
16 override_dh_auto_configure:
17 dh_auto_configure -- --with-perl-bindings="INSTALLDIRS=vendor"
18
19 execute_before_dh_auto_build:
20 @echo "delete any existing man pages to force rebuilding"
21 -rm --verbose src/mans/*.[1-8]
22
23 execute_after_dh_auto_build:
24 -chrpath --list bindings/perl/blib/arch/auto/Net/Oping/Oping.so
25 chrpath --delete bindings/perl/blib/arch/auto/Net/Oping/Oping.so
26
27 execute_after_dh_fixperms:
28 chmod u+s debian/oping/usr/bin/oping debian/oping/usr/bin/noping
29
30 override_dh_gencontrol:
31 dh_gencontrol -Nlibnet-oping-perl
32 dh_gencontrol -plibnet-oping-perl -- -v$(LIBPERL_VERSION)