522df7d5d6
Upstream changelog: Changes from 4.3.6 -> 4.3.7 (13 Dec 2011) ========================================= * rev 6803 * Fix acknowledge CGI (broken in 4.3.6) * Fix broken uptime calculation for systems reporting "1 day" * Workaround Solaris breakage in the LFS-support detection * Fix/add links to the HTML man-page index. * Fix "Stop after" value not being shown on the "info" page. * Fix broken alert texts when using FORMAT=SMS * Fix wrong description of xymondboard CRITERIA in xymon(1) * Fix missing columnname in analysis.cfg(5) DS example * Fix missing space in output from disk IGNORE rules in xymond_client --dump-config * Fix overwrite of xymon-apache.conf when upgrading * Fix installation so it does not remove include/directory lines from configuration files. * Add client/local/ directory for custom client script Changes from 4.3.5 -> 4.3.6 (5 Dec 2011) ======================================== * rev 6788 * Optionally choose the color for the "cpu" status when it goes non-green due to uptime or clock offset. * Allow for "include" and "directory" in combo.cfg and protocols.cfg * New INTERFACES definition in hosts.cfg to select which network interfaces are tracked in graphs. * New access control mechanism for some CGI scripts returning host-specific information. Access optionally checked against an Apache-style "group" file (see xymonwebaccess(5) CGI manpage). * New "vertical" page-definitions (vpage, vsubpage,vsubparent) for listing hosts across and tests down on a page. * Fix hostlist CGI crash when called with HTTP "HEAD" * Fix svcstatus CGI crash when called with non-existing hostname * Fix "ackinfo" updates being cleared when host hits a DOWNTIME period. * Fix compile-errors on Solaris due to network libraries not being included. * Fix "logrotate" messages not being sent to some channels. * Fix problem with loading the hosts.cfg file. * STATUSLIFETIME now provides the default time a status is valid (in xymond). * Critical systems view: Use priority 99 for un-categorised priorities (imported from NK tags) and show this as 'No priority' on the webpage. * useradm CGI: Sort usernames * New xymond module - xymond_distribute - can forward administrative commands (drop, rename, disable, enable) from one Xymon server to another. * New tool: appfeed CGI provides data for the Android "xymonQV" app by Darrik Mazey.
126 lines
3.4 KiB
Makefile
126 lines
3.4 KiB
Makefile
# $NetBSD: Makefile,v 1.11 2012/04/28 20:55:31 gendalia Exp $
|
|
#
|
|
|
|
DISTNAME= xymon-4.3.7
|
|
PKGNAME= xymonclient-4.3.7
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xymon/}
|
|
|
|
MAINTAINER= spz@NetBSD.org
|
|
HOMEPAGE= http://xymon.sourceforge.net/
|
|
COMMENT= Network services monitor a la Big Brother
|
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
MAKE_JOBS_SAFE= NO
|
|
|
|
CONFLICTS+= hobbitmon-[0-9]*
|
|
CONFLICTS+= hobbitclient-[0-9]*
|
|
|
|
HAS_CONFIGURE= YES
|
|
USE_TOOLS+= gmake
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# xymons user/group
|
|
|
|
XYMONUSER?= xymon
|
|
XYMONGROUP?= xymon
|
|
|
|
PKG_GROUPS= ${XYMONGROUP}
|
|
PKG_USERS= ${XYMONUSER:Q}:${XYMONGROUP:Q}
|
|
|
|
PKG_GECOS.${XYMONUSER}= Xymon monitor
|
|
PKG_HOME.${XYMONUSER}= ${XYMONHOME}
|
|
|
|
PKG_GROUPS_VARS+= XYMONGROUP
|
|
PKG_USERS_VARS+= XYMONUSER
|
|
|
|
# startup and config
|
|
|
|
RCD_SCRIPTS+= xymonclient
|
|
PKG_SYSCONFDIR.xymon= ${PREFIX}/etc/xymon
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/xymon
|
|
|
|
XYMONHOME?= ${PREFIX}/share/xymon/xymonhome
|
|
XYMONTOPDIR?= ${PREFIX}/libexec/xymon
|
|
|
|
XYMONSERVERNAME?= "`uname -n`"
|
|
XYMONSERVERIP?= 127.0.0.1
|
|
|
|
XYMONLOGDIR?= ${VARBASE}/log/xymon
|
|
XYMONVAR?= ${VARBASE}/xymon
|
|
|
|
XYBINDIR?= ${XYMONTOPDIR}
|
|
XYETCDIR?= ${PKG_SYSCONFDIR.xymon}
|
|
XYEXTDIR?= ${XYMONTOPDIR}/ext
|
|
XYTMPDIR?= ${VARBASE}/xymon/tmp
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
BUILD_DEFS+= XYMONSERVERNAME
|
|
BUILD_DEFS+= XYMONSERVERIP
|
|
|
|
FILES_SUBST+= XYMONHOME=${XYMONHOME:Q}
|
|
FILES_SUBST+= XYMONLOGDIR=${XYMONLOGDIR}
|
|
FILES_SUBST+= XYMONVAR=${XYMONVAR:Q}
|
|
FILES_SUBST+= XYBINDIR=${XYBINDIR}
|
|
FILES_SUBST+= XYETCDIR=${XYETCDIR}
|
|
FILES_SUBST+= XYEXTDIR=${XYEXTDIR}
|
|
FILES_SUBST+= XYTMPDIR=${XYTMPDIR}
|
|
|
|
CONFIGURE_ARGS+= "--client"
|
|
|
|
CONFIGURE_ENV+= CONFTYPE="server"
|
|
CONFIGURE_ENV+= PKGBUILD=y
|
|
CONFIGURE_ENV+= XYMONHOSTNAME=${XYMONSERVERNAME:Q}
|
|
CONFIGURE_ENV+= XYMONHOSTIP=${XYMONSERVERIP:Q}
|
|
CONFIGURE_ENV+= XYMONUSER=${XYMONUSER:Q}
|
|
CONFIGURE_ENV+= XYMONHOME=${XYMONHOME:Q}
|
|
CONFIGURE_ENV+= XYMONTOPDIR=${XYMONTOPDIR}
|
|
CONFIGURE_ENV+= XYMONLOGDIR=${XYMONLOGDIR}
|
|
CONFIGURE_ENV+= XYMONVAR=${XYMONVAR:Q}
|
|
CONFIGURE_ENV+= INSTALLROOT=${DESTDIR}
|
|
CONFIGURE_ENV+= INSTALLBINDIR=${XYBINDIR}
|
|
CONFIGURE_ENV+= INSTALLETCDIR=${XYETCDIR}
|
|
CONFIGURE_ENV+= INSTALLEXADIR=${EXAMPLEDIR}
|
|
CONFIGURE_ENV+= INSTALLEXTDIR=${XYEXTDIR}
|
|
CONFIGURE_ENV+= INSTALLTMPDIR=${XYTMPDIR}
|
|
CONFIGURE_ENV+= MANROOT=${PREFIX}/${PKGMANDIR}/
|
|
|
|
USE_TOOLS+= awk:run cat:run cp:run
|
|
USE_TOOLS+= cut:run date:run egrep:run
|
|
USE_TOOLS+= expr:run find:run grep:run
|
|
USE_TOOLS+= head:run id:run ls:run
|
|
USE_TOOLS+= mv:run rm:run sed:run
|
|
USE_TOOLS+= sort:run tail:run touch:run
|
|
USE_TOOLS+= tr:run wc:run
|
|
|
|
|
|
OWN_DIRS+= ${XYMONTOPDIR}
|
|
MAKE_DIRS+= ${XYMONTOPDIR}/client
|
|
OWN_DIRS+= ${EXAMPLEDIR}
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR.xymon}
|
|
OWN_DIRS+= ${XYMONHOME}
|
|
MAKE_DIRS+= ${XYMONHOME}/client
|
|
|
|
OWN_DIRS_PERMS+= ${XYEXTDIR}/client ${XYMONUSER} ${XYMONGROUP} 0755
|
|
OWN_DIRS_PERMS+= ${XYMONLOGDIR} ${XYMONUSER} ${XYMONGROUP} 0755
|
|
OWN_DIRS_PERMS+= ${XYTMPDIR} ${XYMONUSER} ${XYMONGROUP} 0755
|
|
OWN_DIRS_PERMS+= ${XYTMPDIR}/client ${XYMONUSER} ${XYMONGROUP} 0755
|
|
|
|
OWN_DIRS_PERMS+= ${XYMONVAR} ${XYMONUSER} ${XYMONGROUP} 0755
|
|
OWN_DIRS_PERMS+= ${XYMONVAR}/data ${XYMONUSER} ${XYMONGROUP} 0755
|
|
|
|
CFILES+= clientlaunch.cfg xymonclient.cfg
|
|
.for file in ${CFILES}
|
|
CONF_FILES_PERMS+= ${EXAMPLEDIR}/${file} ${PKG_SYSCONFDIR.xymon}/${file} ${XYMONUSER} ${XYMONGROUP} 0644
|
|
.endfor
|
|
|
|
MAKE_ENV+= MAKE=${MAKE_PROGRAM:Q}
|
|
MAKE_ENV+= PKGDIR=${PREFIX}
|
|
MAKE_ENV+= INSTALLROOT=${DESTDIR}
|
|
MAKE_ENV+= PKGBUILD=y
|
|
MAKE_ENV+= ${TOOLS_ENV}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|