/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-17 00:36:05 UTC
  • mfrom: (24.1.95 mandos)
  • Revision ID: teddy@fukt.bsnet.se-20080917003605-m64km1tbwn3wrpbf
Merge.

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