/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: 2008-09-19 01:10:27 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080919011027-rhb2aafbgqe85s00
* debian/mandos-client.postinst: Create mandos user and group.

* debian/mandos.postrm: Removed.  Never delete mandos user and group.

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