/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 at bsnet
  • Date: 2010-08-10 19:08:24 UTC
  • mto: (237.2.182 mandos-local)
  • mto: This revision was merged to the branch mainline in revision 270.
  • 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:
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
38
47
        rm -f build-arch-stamp build-indep-stamp configure-stamp
39
48
        dh_auto_clean
40
49
        dh_clean
41
 
        debconf-updatepo
42
50
 
43
51
install: install-indep install-arch
44
52
install-indep:
48
56
        dh_installdirs --indep
49
57
        $(MAKE) DESTDIR=$(CURDIR)/debian/mandos install-server
50
58
        dh_lintian
51
 
        dh_installinit --onlyscripts --no-start \
 
59
        dh_installinit --onlyscripts \
52
60
                --update-rcd-params="defaults 25 15"
53
61
        dh_install --indep
54
62
 
66
74
        dh_testroot
67
75
        dh_installchangelogs
68
76
        dh_installdocs
69
 
        dh_installdebconf
70
77
        dh_link
71
78
        dh_strip
72
79
        dh_compress
73
80
        dh_fixperms --exclude etc/keys/mandos \
74
81
                --exclude etc/mandos/clients.conf \
 
82
                --exclude etc/mandos/plugins.d \
75
83
                --exclude usr/lib/mandos/plugins.d
76
84
        dh_installdeb
77
85
        dh_shlibdeps