/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: 2009-11-03 00:12:35 UTC
  • Revision ID: teddy@fukt.bsnet.se-20091103001235-op9jfvtx6xvxch3h
* README (FAQ): Fix typo.
* mandos (main): Try to always do cleanup() before exit, since
                 otherwise the D-Bus bus name gets unregistered first.

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 is broken on the mips and mipsel architectures, see
 
19
# <http://bugs.debian.org/526961>
 
20
ifneq (,$(findstring :$(DEB_HOST_ARCH):,:mips:mipsel:))
 
21
  BROKEN_PIE := yes
 
22
  export BROKEN_PIE
 
23
endif
 
24
ifneq (,$(findstring :$(DEB_BUILD_ARCH):,:mips:mipsel:))
 
25
  BROKEN_PIE := yes
 
26
  export BROKEN_PIE
 
27
endif
 
28
 
18
29
configure: configure-stamp
19
30
configure-stamp:
20
31
        dh_testdir
21
 
# Add here commands to configure the package.
22
32
        touch configure-stamp
23
33
 
24
 
#Architecture
25
34
build: build-arch build-indep
26
35
 
27
36
build-arch: build-arch-stamp
28
37
build-arch-stamp: configure-stamp
29
 
# Add here commands to compile the arch part of the package.
30
38
        dh_auto_build -- all doc
31
39
        touch $@
32
40
 
33
41
build-indep: build-indep-stamp
34
42
build-indep-stamp: configure-stamp
35
 
# Add here commands to compile the indep part of the package.
36
43
        dh_auto_build -- doc
37
44
        touch $@
38
45
 
40
47
        dh_testdir
41
48
        dh_testroot
42
49
        rm -f build-arch-stamp build-indep-stamp configure-stamp
43
 
# Add here commands to clean up after the build process.
44
50
        dh_auto_clean
45
51
        dh_clean
46
52
 
50
56
        dh_testroot
51
57
        dh_prep
52
58
        dh_installdirs --indep
53
 
# Add here commands to install the indep part of the package into
54
 
# debian/<package>-doc.
55
59
        $(MAKE) DESTDIR=$(CURDIR)/debian/mandos install-server
56
60
        dh_lintian
57
 
        dh_installinit --onlyscripts --no-start
 
61
        dh_installinit --onlyscripts \
 
62
                --update-rcd-params="defaults 25 15"
58
63
        dh_install --indep
59
64
 
60
65
install-arch:
62
67
        dh_testroot
63
68
        dh_prep
64
69
        dh_installdirs --same-arch
65
 
 
66
 
# Add here commands to install the arch part of the package into
67
 
# debian/tmp.
68
70
        $(MAKE) DESTDIR=$(CURDIR)/debian/mandos-client install-client-nokey
69
71
        dh_lintian
70
72
        dh_install --same-arch
71
73
 
72
 
# Must not depend on anything. This is to be called by
73
 
# binary-arch/binary-indep
74
 
# in another 'make' thread.
75
74
binary-common:
76
75
        dh_testdir
77
76
        dh_testroot
78
77
        dh_installchangelogs
79
78
        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
79
        dh_link
93
80
        dh_strip
94
81
        dh_compress
95
82
        dh_fixperms --exclude etc/keys/mandos \
96
83
                --exclude etc/mandos/clients.conf \
 
84
                --exclude etc/mandos/plugins.d \
97
85
                --exclude usr/lib/mandos/plugins.d
98
 
#       dh_perl
99
 
        dh_makeshlibs
100
86
        dh_installdeb
101
87
        dh_shlibdeps
102
88
        dh_gencontrol
103
89
        dh_md5sums
104
90
        dh_builddeb
 
91
 
105
92
# Build architecture independant packages using the common target.
106
93
binary-indep: build-indep install-indep
107
94
        $(MAKE) -f debian/rules DH_OPTIONS=--indep binary-common