Changeset 97924
- Timestamp:
- Sep 20, 2012, 8:31:07 AM (12 years ago)
- Location:
- trunk/dports/net
- Files:
-
- 4 deleted
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/net/xymon-client/Portfile
r97300 r97924 4 4 PortSystem 1.0 5 5 6 name xymon 6 name xymon-client 7 set shortname xymon 7 8 conflicts xymon-server 8 epoch 1 9 version 4.3.7 10 revision 2 9 version 4.3.10 11 10 categories net 12 11 platforms darwin … … 24 23 homepage http://www.xymon.com/ 25 24 master_sites sourceforge:project/xymon/Xymon/${version} 25 distname ${shortname}-${version} 26 dist_subdir ${shortname} 26 27 27 checksums sha1 29339157a1a6155d134ed1ad9985391d43034ee8\28 rmd160 9547eac47a5893f978cace54b5761e9cabe7594128 checksums sha1 d37765da5741adc4282e081e3ad59862eb22353f \ 29 rmd160 df5e01ab4528bc1146cdf784bbf69616f743bfa1 29 30 30 31 depends_lib port:rrdtool \ … … 37 38 universal_variant no 38 39 39 patchfiles patch-build-Makefile.rules.diff \ 40 patch-build-Makefile.Darwin.diff \ 41 patch-lib-Makefile.diff \ 42 patch-client-xymonclient-darwin.sh.diff 40 patchfiles patch-build-Makefile.Darwin.diff 43 41 44 42 if {"darwin" == ${os.platform} && ${os.major} > 8} { … … 48 46 } 49 47 set xymongroup ${xymonuser} 50 set xytopdir ${prefix}/lib/${ name}48 set xytopdir ${prefix}/lib/${shortname} 51 49 set xyetcdir ${xytopdir}/client/etc 52 50 set xylogdir ${xytopdir}/client/logs … … 136 134 137 135 livecheck.type regex 138 livecheck.url http://sourceforge.net/projects/${ name}/files/139 livecheck.regex ${ name}-(\[0-9.\]+)\\.tar.gz136 livecheck.url http://sourceforge.net/projects/${shortname}/files/ 137 livecheck.regex ${shortname}-(\[0-9.\]+)\\.tar.gz 140 138 -
trunk/dports/net/xymon-client/files/patch-build-Makefile.Darwin.diff
r86558 r97924 1 --- build/Makefile.Darwin.orig 201 1-09-30 16:44:05.000000000 +02002 +++ build/Makefile.Darwin 201 1-09-30 16:44:15.000000000 +02001 --- build/Makefile.Darwin.orig 2012-09-13 10:32:39.000000000 +0200 2 +++ build/Makefile.Darwin 2012-09-13 10:32:50.000000000 +0200 3 3 @@ -7,7 +7,7 @@ 4 4 NETLIBS = … … 7 7 -CC = gcc 8 8 +#CC = gcc 9 CFLAGS = -g -O -Wall -Wno-unused -D_REENTRANT -DBIND_8_COMPAT=1 $(LFSDEF) $(OSDEF)10 11 # Compile flags for debugging9 GCCVER := $(shell gcc -dumpversion|cut -d. -f1) 10 ifeq ($(GCCVER),4) 11 CFLAGS = -g -O -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT -DBIND_8_COMPAT=1 $(LFSDEF) $(OSDEF) -
trunk/dports/net/xymon/Portfile
r97300 r97924 8 8 epoch 1 9 9 version 4.3.7 10 revision 2 10 revision 3 11 12 replaced_by xymon-client 13 PortGroup obsolete 1.0 14 11 15 categories net 12 16 platforms darwin 13 license GPL-214 maintainers free.fr:fclaire15 17 16 description Xymon network monitor Client 18 description Xymon network monitor Client (obsolete port) 17 19 18 20 long_description Xymon is a system for monitoring of hosts and networks, \ 19 inspired by the Big Brother system. It provides real-time \ 20 monitoring, an easy web-interface, historical data, \ 21 availability reports and performance graphs. \ 22 Xymon was previously known as \"Hobbit\". 21 inspired by the Big Brother system. This port is a \ 22 stub and has been replaced by the ${replaced_by} port. 23 23 24 24 homepage http://www.xymon.com/ 25 master_sites sourceforge:project/xymon/Xymon/${version}26 27 checksums sha1 29339157a1a6155d134ed1ad9985391d43034ee8 \28 rmd160 9547eac47a5893f978cace54b5761e9cabe7594129 30 depends_lib port:rrdtool \31 port:fping \32 port:pcre \33 port:libpng \34 port:openssl \35 port:openldap36 37 universal_variant no38 39 patchfiles patch-build-Makefile.rules.diff \40 patch-build-Makefile.Darwin.diff \41 patch-lib-Makefile.diff \42 patch-client-xymonclient-darwin.sh.diff43 44 if {"darwin" == ${os.platform} && ${os.major} > 8} {45 set xymonuser _xymon46 } else {47 set xymonuser xymon48 }49 set xymongroup ${xymonuser}50 set xytopdir ${prefix}/lib/${name}51 set xyetcdir ${xytopdir}/client/etc52 set xylogdir ${xytopdir}/client/logs53 set xytmpdir ${xytopdir}/client/tmp54 set xyvardir ${xytopdir}/data55 set xywebdir ${xytopdir}/web56 set xywwwdir ${xytopdir}/www57 58 configure.cmd ./configure.client59 configure.args-append --rrdinclude ${prefix}/include \60 --rrdlib ${prefix}/lib \61 --pcreinclude ${prefix}/include \62 --pcrelib ${prefix}/lib \63 --sslinclude ${prefix}/include \64 --ssllib ${prefix}/lib \65 --ldapinclude ${prefix}/include \66 --ldaplib ${prefix}/lib \67 --fping ${prefix}/sbin/fping68 configure.env-append ENABLESSL=y \69 XYMONUSER=${xymonuser} \70 XYMONTOPDIR=${xytopdir} \71 XYMONHOSTIP=127.0.0.1 \72 XYMONHOSTOS=${os.platform} \73 MANROOT=${prefix}/share/man \74 INSTALLBINDIR=${xytopdir}/client/bin \75 INSTALLETCDIR=${xyetcdir} \76 INSTALLEXTDIR=${xytopdir}/client/ext \77 INSTALLTMPDIR=${xytmpdir} \78 INSTALLWEBDIR=${xywebdir} \79 INSTALLWWWDIR=${xywwwdir} \80 XYMONVAR=${xyvardir} \81 CC=${configure.cc} \82 CXX=${configure.cxx} \83 CPP=${configure.cpp}84 85 build.args-append CC=${configure.cc} \86 CXX=${configure.cxx} \87 CPP=${configure.cpp}88 89 destroot.env-append INSTALLROOT=${destroot}90 destroot.keepdirs ${destroot}${xytopdir} \91 ${destroot}${xylogdir} \92 ${destroot}${xytmpdir} \93 ${destroot}${xyvardir}/logs \94 ${destroot}${xyvardir} \95 ${destroot}${xywebdir}96 97 startupitem.create yes98 startupitem.start "sudo su ${xymonuser} -c \"${xytopdir}/client/runclient.sh start\""99 startupitem.stop "sudo su ${xymonuser} -c \"${xytopdir}/client/runclient.sh stop\""100 startupitem.restart "sudo su ${xymonuser} -c \"${xytopdir}/client/runclient.sh restart\""101 #startupitem.pidfile auto ${xylogdir}/clientlaunch.*.pid102 startupitem.pidfile none103 104 add_users ${xymonuser} group=${xymongroup} realname=Xymon\ User home=${xytopdir} shell=/bin/bash105 106 post-destroot {107 xinstall -d -o ${xymonuser} -g ${xymongroup} ${destroot}${xylogdir}108 xinstall -d -o ${xymonuser} -g ${xymongroup} ${destroot}${xytmpdir}109 # Adding a suffix to config files110 foreach f { clientlaunch.cfg localclient.cfg xymonclient.cfg } {111 move ${destroot}${xyetcdir}/${f} ${destroot}${xyetcdir}/${f}.${version}112 }113 }114 115 post-activate {116 # If not already present we put default config files117 foreach f { clientlaunch.cfg localclient.cfg xymonclient.cfg } {118 if {![file exists ${xyetcdir}/${f}]} {119 file copy ${xyetcdir}/${f}.${version} ${xyetcdir}/${f}120 }121 }122 }123 124 notes "\nSet your Xymon server's IP address with the following command:125 $ sudo vi ${xyetcdir}/xymonclient.cfg126 127 If you wish your xymon client to report logfiles to your xymon server128 you need to add the user ${xymonuser} to the admin group like this:129 $ sudo dscl . -append /Groups/admin GroupMembership ${xymonuser}130 131 You can start,stop and restart the xymon client with:132 $ sudo -u ${xymonuser} ${xytopdir}/client/runclient.sh \[start|stop|restart\]133 "134 135 use_parallel_build no136 137 livecheck.type regex138 livecheck.url http://sourceforge.net/projects/${name}/files/139 livecheck.regex ${name}-(\[0-9.\]+)\\.tar.gz140
Note: See TracChangeset
for help on using the changeset viewer.