Ticket #32573: munin-initial-setup.diff
File munin-initial-setup.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.5 8 revision 1 8 9 categories net 9 10 maintainers alpha 10 11 platforms darwin … … 78 79 destroot.keepdirs ${destroot}${prefix}/var/log/munin \ 79 80 ${destroot}${prefix}/var/run/munin \ 80 81 ${destroot}${prefix}/etc/munin/plugins \ 82 ${destroot}${prefix}/etc/munin/plugin-conf.d \ 81 83 ${destroot}${prefix}/var/munin \ 82 84 ${destroot}${prefix}/www/munin 83 85 destroot.target install-common-prime install-node-prime \ … … 133 135 } 134 136 } 135 137 138 post-activate { 139 # Copy sample versions of config files into place 140 if {![file exists ${prefix}/etc/munin/munin-node.conf]} { 141 file copy ${prefix}/etc/munin/munin-node.conf.sample ${prefix}/etc/munin/munin-node.conf 142 } 143 if { [variant_isset server] } { 144 if {![file exists ${prefix}/etc/munin/munin.conf]} { 145 file copy ${prefix}/etc/munin/munin.conf.sample ${prefix}/etc/munin/munin.conf 146 } 147 } 148 } 149 136 150 notes " 137 151 To detect supported Munin plugins please use the following command: 138 152 139 sudo munin-node-configure --suggest --shell |sh153 sudo -u munin munin-node-configure --suggest --shell | sudo sh 140 154 "