10
10
# build-arch and build-indep targets by Bill Allombert 2001
12
12
# Uncomment this to turn on verbose mode.
15
15
# This has to be exported to make some magic below work.
18
# -pie was broken briefly on the mips and mipsel architectures, see
19
# <http://bugs.debian.org/526961>
20
BINUTILS_V := $(shell dpkg-query --showformat='$${Version}' \
22
ifeq (yes,$(shell dpkg --compare-versions $(BINUTILS_V) lt 2.20-3 \
23
&& dpkg --compare-versions $(BINUTILS_V) ge 2.19.1-1 \
25
ifneq (,$(strip $(findstring :$(DEB_HOST_ARCH):,:mips:mipsel:) \
26
$(findstring :$(DEB_BUILD_ARCH):,:mips:mipsel:)))
32
18
configure: configure-stamp
21
# Add here commands to configure the package.
35
22
touch configure-stamp
37
25
build: build-arch build-indep
39
27
build-arch: build-arch-stamp
40
28
build-arch-stamp: configure-stamp
41
LC_ALL=en_US.utf8 dh_auto_build -- all doc
29
# Add here commands to compile the arch part of the package.
30
dh_auto_build -- all doc
44
33
build-indep: build-indep-stamp
45
34
build-indep-stamp: configure-stamp
46
LC_ALL=en_US.UTF-8 dh_auto_build -- doc
35
# Add here commands to compile the indep part of the package.
52
42
rm -f build-arch-stamp build-indep-stamp configure-stamp
43
# Add here commands to clean up after the build process.
61
52
dh_installdirs --indep
53
# Add here commands to install the indep part of the package into
54
# debian/<package>-doc.
62
55
$(MAKE) DESTDIR=$(CURDIR)/debian/mandos install-server
64
dh_installinit --onlyscripts \
65
--update-rcd-params="defaults 25 15"
57
dh_installinit --onlyscripts --no-start
72
64
dh_installdirs --same-arch
66
# Add here commands to install the arch part of the package into
73
68
$(MAKE) DESTDIR=$(CURDIR)/debian/mandos-client install-client-nokey
75
70
dh_install --same-arch
72
# Must not depend on anything. This is to be called by
73
# binary-arch/binary-indep
74
# in another 'make' thread.
80
78
dh_installchangelogs
85
95
dh_fixperms --exclude etc/keys/mandos \
86
96
--exclude etc/mandos/clients.conf \
87
--exclude etc/mandos/plugins.d \
88
--exclude usr/lib/mandos/plugins.d \
89
--exclude usr/share/doc/mandos-client/network-hooks.d
97
--exclude usr/lib/mandos/plugins.d
96
105
# Build architecture independant packages using the common target.
97
106
binary-indep: build-indep install-indep
98
107
$(MAKE) -f debian/rules DH_OPTIONS=--indep binary-common