/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Teddy Hogeborn
  • Date: 2011-02-27 17:26:35 UTC
  • Revision ID: teddy@fukt.bsnet.se-20110227172635-hw1sire7k3vuo1co
Update copyright year to "2011" wherever appropriate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
# build-arch and build-indep targets  by Bill Allombert 2001
11
11
 
12
12
# Uncomment this to turn on verbose mode.
13
 
export DH_VERBOSE=1
 
13
#export DH_VERBOSE=1
14
14
 
15
15
# This has to be exported to make some magic below work.
16
16
export DH_OPTIONS
17
17
 
 
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}' \
 
21
                        --show binutils)
 
22
ifeq (yes,$(shell dpkg --compare-versions $(BINUTILS_V) lt 2.20-3 \
 
23
                && dpkg --compare-versions $(BINUTILS_V) ge 2.19.1-1 \
 
24
                && echo yes))
 
25
  ifneq (,$(strip $(findstring :$(DEB_HOST_ARCH):,:mips:mipsel:) \
 
26
                $(findstring :$(DEB_BUILD_ARCH):,:mips:mipsel:)))
 
27
    BROKEN_PIE := yes
 
28
    export BROKEN_PIE
 
29
  endif
 
30
endif
 
31
 
18
32
configure: configure-stamp
19
33
configure-stamp:
20
34
        dh_testdir
21
 
# Add here commands to configure the package.
22
35
        touch configure-stamp
23
36
 
24
 
#Architecture
25
37
build: build-arch build-indep
26
38
 
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
41
        dh_auto_build -- all doc
31
42
        touch $@
32
43
 
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.
36
46
        dh_auto_build -- doc
37
47
        touch $@
38
48
 
40
50
        dh_testdir
41
51
        dh_testroot
42
52
        rm -f build-arch-stamp build-indep-stamp configure-stamp
43
 
# Add here commands to clean up after the build process.
44
53
        dh_auto_clean
45
54
        dh_clean
46
55
 
50
59
        dh_testroot
51
60
        dh_prep
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
56
63
        dh_lintian
57
 
        dh_installinit --onlyscripts --no-start
 
64
        dh_installinit --onlyscripts \
 
65
                --update-rcd-params="defaults 25 15"
58
66
        dh_install --indep
59
67
 
60
68
install-arch:
62
70
        dh_testroot
63
71
        dh_prep
64
72
        dh_installdirs --same-arch
65
 
 
66
 
# Add here commands to install the arch part of the package into
67
 
# debian/tmp.
68
73
        $(MAKE) DESTDIR=$(CURDIR)/debian/mandos-client install-client-nokey
69
74
        dh_lintian
70
75
        dh_install --same-arch
71
76
 
72
 
# Must not depend on anything. This is to be called by
73
 
# binary-arch/binary-indep
74
 
# in another 'make' thread.
75
77
binary-common:
76
78
        dh_testdir
77
79
        dh_testroot
78
80
        dh_installchangelogs
79
81
        dh_installdocs
80
 
#       dh_installexamples
81
 
#       dh_installmenu
82
 
#       dh_installdebconf
83
 
#       dh_installlogrotate
84
 
#       dh_installemacsen
85
 
#       dh_installpam
86
 
#       dh_installmime
87
 
#       dh_pycentral
88
 
#       dh_installinit
89
 
#       dh_installcron
90
 
#       dh_installinfo
91
 
#       dh_installman
92
82
        dh_link
93
83
        dh_strip
94
84
        dh_compress
95
85
        dh_fixperms --exclude etc/keys/mandos \
96
86
                --exclude etc/mandos/clients.conf \
 
87
                --exclude etc/mandos/plugins.d \
97
88
                --exclude usr/lib/mandos/plugins.d
98
 
#       dh_perl
99
 
        dh_makeshlibs
100
89
        dh_installdeb
101
90
        dh_shlibdeps
102
91
        dh_gencontrol
103
92
        dh_md5sums
104
93
        dh_builddeb
 
94
 
105
95
# Build architecture independant packages using the common target.
106
96
binary-indep: build-indep install-indep
107
97
        $(MAKE) -f debian/rules DH_OPTIONS=--indep binary-common