/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 at bsnet
  • Date: 2010-08-10 19:08:24 UTC
  • mto: This revision was merged to the branch mainline in revision 419.
  • Revision ID: teddy@fukt.bsnet.se-20100810190824-5yquozxy4kh6py3f
* plugins.d/mandos-client.c: An empty interface name now means to
                             autodetect an interface; to specify no
                             particular interface, use "none".
  (sys_class_net): New global variable for the "/sys/class/net" path.
  (good_interface): New function to determine the suitability of an
                    interface.  Used by a scandir() call in main().
  (main): Changed default value for "interface" to the empty string.
          Moved "connect_to" to be a global variable.  Only take down
          and up interface if its name is not "none".
* plugins.d/mandos-client.xml (OPTIONS): Update documentation for the
                                         "--interface" option.

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