/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

* Makefile (BROKEN_PIE): Add comment.
* debian/rules (BROKEN_PIE): - '' -
* plugin-runner.c: Really always use <sysexits.h> exit codes.
* plugins.d/mandos-client.c: Use <sysexits.h> exit codes.
  (start_mandos_communication): Make sure errno is always set when
                                returning -1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
47
58
        dh_installdirs --indep
48
59
        $(MAKE) DESTDIR=$(CURDIR)/debian/mandos install-server
49
60
        dh_lintian
50
 
        dh_installinit --onlyscripts --no-start
 
61
        dh_installinit --onlyscripts \
 
62
                --update-rcd-params="defaults 25 15"
51
63
        dh_install --indep
52
64
 
53
65
install-arch:
64
76
        dh_testroot
65
77
        dh_installchangelogs
66
78
        dh_installdocs
67
 
#       dh_installdebconf
68
79
        dh_link
69
80
        dh_strip
70
81
        dh_compress
71
82
        dh_fixperms --exclude etc/keys/mandos \
72
83
                --exclude etc/mandos/clients.conf \
 
84
                --exclude etc/mandos/plugins.d \
73
85
                --exclude usr/lib/mandos/plugins.d
74
86
        dh_installdeb
75
87
        dh_shlibdeps