blob: fb9dc8065d36d49091f362a4a393a57b2e14d074 (
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
47
48
49
50
|
#!/usr/bin/make -f
# Add hardening build flags. -fPIE is added separately below via hooks in
# the upstream build system, since adding it globally breaks the language
# binding modules.
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
# Link with --as-needed so that the remctl client library doesn't inherit
# the shared library dependencies of libremctl.
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
# Enable -fPIE for all binaries, picked up by the upstream build system.
export REMCTL_PROGRAM_CFLAGS = -fPIE
export REMCTL_PROGRAM_LDFLAGS = -fPIE
# The additional flags to pass to Build.PL, picked up by the upstream build
# system.
export REMCTL_PERL_FLAGS := --installdirs vendor --create_packlist 0
# The supported Python versions and the additional Python flags, picked up
# by the upstream build system.
export REMCTL_PYTHON_INSTALL := --install-layout=deb
export REMCTL_PYTHON_VERSIONS := $(shell pyversions -s)
%:
dh $@ --with python2,ruby
override_dh_autoreconf:
dh_autoreconf --as-needed
override_dh_auto_configure:
dh_auto_configure -- PATH_SUDO=/usr/bin/sudo --sysconfdir=/etc/remctl \
--with-systemdsystemunitdir=/lib/systemd/system \
--enable-reduced-depends --enable-perl --enable-php \
--enable-python --enable-ruby
# Override install to check for missing installed files. Ignore the Ruby
# module installed in usr/local/lib by the upstream build system. Run
# dh_ruby --install to build and install the module for each supported Ruby
# version.
override_dh_install:
dh_install --fail-missing -Xlibremctl.la -Xusr/local/lib
dh_ruby --install
dh_php -pphp-remctl
override_dh_installchangelogs:
dh_installchangelogs NEWS
override_dh_makeshlibs:
dh_makeshlibs -V 'libremctl1 (>= 3.3)'
|