Changeset 97924


Ignore:
Timestamp:
Sep 20, 2012, 8:31:07 AM (12 years ago)
Author:
dports@…
Message:

xymon: rename to xymon-client; update to 4.3.10 (#36180)

Location:
trunk/dports/net
Files:
4 deleted
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/xymon-client/Portfile

    r97300 r97924  
    44PortSystem              1.0
    55
    6 name                    xymon
     6name                    xymon-client
     7set shortname           xymon
    78conflicts               xymon-server
    8 epoch                   1
    9 version                 4.3.7
    10 revision                2
     9version                 4.3.10
    1110categories              net
    1211platforms               darwin
     
    2423homepage                http://www.xymon.com/
    2524master_sites            sourceforge:project/xymon/Xymon/${version}
     25distname                ${shortname}-${version}
     26dist_subdir             ${shortname}
    2627
    27 checksums               sha1    29339157a1a6155d134ed1ad9985391d43034ee8 \
    28                         rmd160  9547eac47a5893f978cace54b5761e9cabe75941
     28checksums               sha1    d37765da5741adc4282e081e3ad59862eb22353f \
     29                        rmd160  df5e01ab4528bc1146cdf784bbf69616f743bfa1
    2930
    3031depends_lib             port:rrdtool \
     
    3738universal_variant       no
    3839
    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
     40patchfiles              patch-build-Makefile.Darwin.diff
    4341
    4442if {"darwin" == ${os.platform} && ${os.major} > 8} {
     
    4846}
    4947set xymongroup          ${xymonuser}
    50 set xytopdir            ${prefix}/lib/${name}
     48set xytopdir            ${prefix}/lib/${shortname}
    5149set xyetcdir            ${xytopdir}/client/etc
    5250set xylogdir            ${xytopdir}/client/logs
     
    136134
    137135livecheck.type      regex
    138 livecheck.url       http://sourceforge.net/projects/${name}/files/
    139 livecheck.regex     ${name}-(\[0-9.\]+)\\.tar.gz
     136livecheck.url       http://sourceforge.net/projects/${shortname}/files/
     137livecheck.regex     ${shortname}-(\[0-9.\]+)\\.tar.gz
    140138
  • trunk/dports/net/xymon-client/files/patch-build-Makefile.Darwin.diff

    r86558 r97924  
    1 --- build/Makefile.Darwin.orig  2011-09-30 16:44:05.000000000 +0200
    2 +++ build/Makefile.Darwin       2011-09-30 16:44:15.000000000 +0200
     1--- build/Makefile.Darwin.orig  2012-09-13 10:32:39.000000000 +0200
     2+++ build/Makefile.Darwin       2012-09-13 10:32:50.000000000 +0200
    33@@ -7,7 +7,7 @@
    44 NETLIBS =
     
    77-CC = gcc
    88+#CC = gcc
    9  CFLAGS = -g -O -Wall -Wno-unused -D_REENTRANT -DBIND_8_COMPAT=1 $(LFSDEF) $(OSDEF)
    10  
    11  # Compile flags for debugging
     9 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  
    88epoch                   1
    99version                 4.3.7
    10 revision                2
     10revision                3
     11
     12replaced_by             xymon-client
     13PortGroup               obsolete 1.0
     14
    1115categories              net
    1216platforms               darwin
    13 license                 GPL-2
    14 maintainers             free.fr:fclaire
    1517
    16 description             Xymon network monitor Client
     18description             Xymon network monitor Client (obsolete port)
    1719
    1820long_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.
    2323
    2424homepage                http://www.xymon.com/
    25 master_sites            sourceforge:project/xymon/Xymon/${version}
    26 
    27 checksums               sha1    29339157a1a6155d134ed1ad9985391d43034ee8 \
    28                         rmd160  9547eac47a5893f978cace54b5761e9cabe75941
    29 
    30 depends_lib             port:rrdtool \
    31                         port:fping \
    32                         port:pcre \
    33                         port:libpng \
    34                         port:openssl \
    35                         port:openldap
    36 
    37 universal_variant       no
    38 
    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
    43 
    44 if {"darwin" == ${os.platform} && ${os.major} > 8} {
    45     set xymonuser       _xymon
    46 } else {
    47     set xymonuser       xymon
    48 }
    49 set xymongroup          ${xymonuser}
    50 set xytopdir            ${prefix}/lib/${name}
    51 set xyetcdir            ${xytopdir}/client/etc
    52 set xylogdir            ${xytopdir}/client/logs
    53 set xytmpdir            ${xytopdir}/client/tmp
    54 set xyvardir            ${xytopdir}/data
    55 set xywebdir            ${xytopdir}/web
    56 set xywwwdir            ${xytopdir}/www
    57 
    58 configure.cmd           ./configure.client
    59 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/fping
    68 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      yes
    98 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.*.pid
    102 startupitem.pidfile     none
    103 
    104 add_users ${xymonuser} group=${xymongroup} realname=Xymon\ User home=${xytopdir} shell=/bin/bash
    105 
    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 files
    110     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 files
    117     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.cfg
    126 
    127 If you wish your xymon client to report logfiles to your xymon server
    128 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  no
    136 
    137 livecheck.type      regex
    138 livecheck.url       http://sourceforge.net/projects/${name}/files/
    139 livecheck.regex     ${name}-(\[0-9.\]+)\\.tar.gz
    140 
Note: See TracChangeset for help on using the changeset viewer.