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:)))
18
32
configure: configure-stamp
21
# Add here commands to configure the package.
22
35
touch configure-stamp
25
37
build: build-arch build-indep
27
39
build-arch: build-arch-stamp
28
40
build-arch-stamp: configure-stamp
29
# Add here commands to compile the arch part of the package.
30
dh_auto_build -- all doc
41
LC_ALL=en_US.utf8 dh_auto_build -- all doc
33
44
build-indep: build-indep-stamp
34
45
build-indep-stamp: configure-stamp
35
# Add here commands to compile the indep part of the package.
46
LC_ALL=en_US.UTF-8 dh_auto_build -- doc
42
52
rm -f build-arch-stamp build-indep-stamp configure-stamp
43
# Add here commands to clean up after the build process.
52
61
dh_installdirs --indep
53
# Add here commands to install the indep part of the package into
54
# debian/<package>-doc.
55
62
$(MAKE) DESTDIR=$(CURDIR)/debian/mandos install-server
57
dh_installinit --onlyscripts --no-start
64
dh_installinit --onlyscripts \
65
--update-rcd-params="defaults 25 15"
64
72
dh_installdirs --same-arch
66
# Add here commands to install the arch part of the package into
68
73
$(MAKE) DESTDIR=$(CURDIR)/debian/mandos-client install-client-nokey
70
75
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.
78
80
dh_installchangelogs
95
85
dh_fixperms --exclude etc/keys/mandos \
96
86
--exclude etc/mandos/clients.conf \
97
--exclude usr/lib/mandos/plugins.d
87
--exclude etc/mandos/plugins.d \
88
--exclude usr/lib/mandos/plugins.d \
89
--exclude usr/share/doc/mandos-client/network-hooks.d
105
96
# Build architecture independant packages using the common target.
106
97
binary-indep: build-indep install-indep
107
98
$(MAKE) -f debian/rules DH_OPTIONS=--indep binary-common