Ticket #50720: Portfile-xymon-client.diff
File Portfile-xymon-client.diff, 3.3 KB (added by fclaire@…, 9 years ago) |
---|
-
Portfile
old new 6 6 name xymon-client 7 7 set shortname xymon 8 8 conflicts xymon-server 9 version 4.3.10 10 revision 1 9 version 4.3.26 11 10 categories net 12 11 platforms darwin 13 12 license {GPL-2 OpenSSLException} 14 maintainers free.fr:fclaire 13 maintainers free.fr:fclaire openmaintainer 15 14 16 15 description Xymon network monitor Client 17 16 … … 26 25 distname ${shortname}-${version} 27 26 dist_subdir ${shortname} 28 27 29 checksums sha 1 d37765da5741adc4282e081e3ad59862eb22353f\30 rmd160 df5e01ab4528bc1146cdf784bbf69616f743bfa128 checksums sha256 cbd0586c77378c92d9866497c8e5ddc64ec9973e4078e44860f572258f8521c5 \ 29 rmd160 c43ac804be298dca61d0f310bd599caea0b804de 31 30 32 31 depends_lib port:rrdtool \ 33 32 port:fping \ … … 47 46 } 48 47 set xymongroup ${xymonuser} 49 48 set xytopdir ${prefix}/lib/${shortname} 50 set xyetcdir ${xytopdir}/ client/etc51 set xylogdir ${xytopdir}/ client/logs52 set xytmpdir ${xytopdir}/ client/tmp49 set xyetcdir ${xytopdir}/etc 50 set xylogdir ${xytopdir}/logs 51 set xytmpdir ${xytopdir}/tmp 53 52 set xyvardir ${xytopdir}/data 54 53 set xywebdir ${xytopdir}/web 55 54 set xywwwdir ${xytopdir}/www … … 70 69 XYMONHOSTIP=127.0.0.1 \ 71 70 XYMONHOSTOS=${os.platform} \ 72 71 MANROOT=${prefix}/share/man \ 73 INSTALLBINDIR=${xytopdir}/ client/bin \72 INSTALLBINDIR=${xytopdir}/bin \ 74 73 INSTALLETCDIR=${xyetcdir} \ 75 INSTALLEXTDIR=${xytopdir}/ client/ext \74 INSTALLEXTDIR=${xytopdir}/ext \ 76 75 INSTALLTMPDIR=${xytmpdir} \ 77 76 INSTALLWEBDIR=${xywebdir} \ 78 77 INSTALLWWWDIR=${xywwwdir} \ … … 94 93 ${destroot}${xywebdir} 95 94 96 95 startupitem.create yes 97 startupitem.start "sudo su ${xymonuser} -c \"${xytopdir}/ client/runclient.sh start\""98 startupitem.stop "sudo su ${xymonuser} -c \"${xytopdir}/ client/runclient.sh stop\""99 startupitem.restart "sudo su ${xymonuser} -c \"${xytopdir}/ client/runclient.sh restart\""96 startupitem.start "sudo su ${xymonuser} -c \"${xytopdir}/runclient.sh start\"" 97 startupitem.stop "sudo su ${xymonuser} -c \"${xytopdir}/runclient.sh stop\"" 98 startupitem.restart "sudo su ${xymonuser} -c \"${xytopdir}/runclient.sh restart\"" 100 99 #startupitem.pidfile auto ${xylogdir}/clientlaunch.*.pid 101 100 startupitem.pidfile none 102 101 … … 128 127 $ sudo dscl . -append /Groups/admin GroupMembership ${xymonuser} 129 128 130 129 You can start,stop and restart the xymon client with: 131 $ sudo -u ${xymonuser} ${xytopdir}/ client/runclient.sh \[start|stop|restart\]130 $ sudo -u ${xymonuser} ${xytopdir}/runclient.sh \[start|stop|restart\] 132 131 " 133 132 134 133 use_parallel_build no