Ticket #37250: munin-config.diff
File munin-config.diff, 1.4 KB (added by raimue (Rainer Müller), 12 years ago) |
---|
-
Portfile
5 5 6 6 name munin 7 7 version 1.4.7 8 revision 1 8 9 categories net 9 10 maintainers alpha 10 11 platforms darwin … … 79 80 destroot.keepdirs ${destroot}${prefix}/var/log/munin \ 80 81 ${destroot}${prefix}/var/run/munin \ 81 82 ${destroot}${prefix}/etc/munin/plugins \ 83 ${destroot}${prefix}/etc/munin/plugin-conf.d \ 82 84 ${destroot}${prefix}/var/munin \ 83 85 ${destroot}${prefix}/www/munin 84 86 destroot.target install-common-prime install-node-prime \ … … 134 136 } 135 137 } 136 138 139 post-activate { 140 # Copy sample versions of config files into place 141 if {![file exists ${prefix}/etc/munin/munin-node.conf]} { 142 file copy ${prefix}/etc/munin/munin-node.conf.sample ${prefix}/etc/munin/munin-node.conf 143 } 144 if { [variant_isset server] } { 145 if {![file exists ${prefix}/etc/munin/munin.conf]} { 146 file copy ${prefix}/etc/munin/munin.conf.sample ${prefix}/etc/munin/munin.conf 147 } 148 } 149 } 150 137 151 notes " 138 152 To detect supported Munin plugins please use the following command: 139 153 140 sudo munin-node-configure --suggest --shell |sh154 sudo -u munin munin-node-configure --suggest --shell | sudo sh 141 155 "