/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 00:54:24 UTC
  • mto: This revision was merged to the branch mainline in revision 188.
  • Revision ID: teddy@fukt.bsnet.se-20080919005424-2kw5e1h9pjygj4ug
* debian/mandos.postinst: New. Create mandos user and group.

* debian/mandos.postrm: New.  Delete mandos user and group.

* initramfs-tools-hook: Add "--userid" and "--groupid" to
                        "plugin-runner.conf" if necessary.

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
 
        debconf-updatepo
42
46
 
43
47
install: install-indep install-arch
44
48
install-indep:
46
50
        dh_testroot
47
51
        dh_prep
48
52
        dh_installdirs --indep
 
53
# Add here commands to install the indep part of the package into
 
54
# debian/<package>-doc.
49
55
        $(MAKE) DESTDIR=$(CURDIR)/debian/mandos install-server
50
56
        dh_lintian
51
 
        dh_installinit --onlyscripts --no-start \
52
 
                --update-rcd-params="defaults 25 15"
 
57
        dh_installinit --onlyscripts --no-start
53
58
        dh_install --indep
54
59
 
55
60
install-arch:
57
62
        dh_testroot
58
63
        dh_prep
59
64
        dh_installdirs --same-arch
 
65
 
 
66
# Add here commands to install the arch part of the package into
 
67
# debian/tmp.
60
68
        $(MAKE) DESTDIR=$(CURDIR)/debian/mandos-client install-client-nokey
61
69
        dh_lintian
62
70
        dh_install --same-arch
63
71
 
 
72
# Must not depend on anything. This is to be called by
 
73
# binary-arch/binary-indep
 
74
# in another 'make' thread.
64
75
binary-common:
65
76
        dh_testdir
66
77
        dh_testroot
67
78
        dh_installchangelogs
68
79
        dh_installdocs
69
 
        dh_installdebconf
 
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
70
92
        dh_link
71
93
        dh_strip
72
94
        dh_compress
73
95
        dh_fixperms --exclude etc/keys/mandos \
74
96
                --exclude etc/mandos/clients.conf \
75
 
                --exclude etc/mandos/plugins.d \
76
97
                --exclude usr/lib/mandos/plugins.d
 
98
#       dh_perl
 
99
        dh_makeshlibs
77
100
        dh_installdeb
78
101
        dh_shlibdeps
79
102
        dh_gencontrol
80
103
        dh_md5sums
81
104
        dh_builddeb
82
 
 
83
105
# Build architecture independant packages using the common target.
84
106
binary-indep: build-indep install-indep
85
107
        $(MAKE) -f debian/rules DH_OPTIONS=--indep binary-common