/mandos/release

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

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Teddy Hogeborn
  • Date: 2008-09-19 12:02:03 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080919120203-xvsf3w1h0n2bvtkb
* debian/mandos-client.postinst: Use "type" instead of "which".  Split
                                 to functions.  Create key.

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