2017-06-25 22:34:36 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.42 2017/06/25 22:34:36 sthen Exp $
|
import ports/net/librenms, ok benoit@ -- still a bit of a WIP, but usable enough.
LibreNMS is an autodiscovering PHP/MySQL/SNMP based network monitoring
which includes support for a wide range of network hardware and
operating systems including Cisco, Linux, FreeBSD, Juniper, Brocade,
Foundry, HP and many more. LibreNMS is a community-based fork of
Observium.
LibreNMS is not intended to replace a Nagios-type up/down monitoring
system, but rather to complement it with an easy to manage, intuitive
representation of historical and current performance statistics,
configuration visualisation and syslog capture.
2015-04-23 16:44:34 +00:00
|
|
|
|
|
|
|
COMMENT = auto-discovering network management/monitoring system
|
|
|
|
|
2016-12-14 21:37:03 +00:00
|
|
|
GH_ACCOUNT = librenms
|
|
|
|
GH_PROJECT = librenms
|
2017-05-05 09:37:13 +00:00
|
|
|
# used below
|
2017-06-25 22:34:36 +00:00
|
|
|
GH_TAGNAME = 1.29
|
2017-05-05 09:37:13 +00:00
|
|
|
|
2016-12-14 21:37:03 +00:00
|
|
|
EPOCH = 0
|
import ports/net/librenms, ok benoit@ -- still a bit of a WIP, but usable enough.
LibreNMS is an autodiscovering PHP/MySQL/SNMP based network monitoring
which includes support for a wide range of network hardware and
operating systems including Cisco, Linux, FreeBSD, Juniper, Brocade,
Foundry, HP and many more. LibreNMS is a community-based fork of
Observium.
LibreNMS is not intended to replace a Nagios-type up/down monitoring
system, but rather to complement it with an easy to manage, intuitive
representation of historical and current performance statistics,
configuration visualisation and syslog capture.
2015-04-23 16:44:34 +00:00
|
|
|
|
|
|
|
CATEGORIES = net www
|
|
|
|
|
|
|
|
HOMEPAGE = http://www.librenms.org/
|
|
|
|
|
|
|
|
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
|
|
|
|
|
|
|
|
# GPLv3+
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
|
|
|
MODULES = lang/php \
|
|
|
|
lang/python
|
|
|
|
MODPY_BUILDDEP = No
|
|
|
|
|
|
|
|
RUN_DEPENDS = databases/py-mysql \
|
|
|
|
lang/php/${MODPHP_VERSION},-curl \
|
|
|
|
lang/php/${MODPHP_VERSION},-gd \
|
|
|
|
lang/php/${MODPHP_VERSION},-mcrypt \
|
|
|
|
lang/php/${MODPHP_VERSION},-mysql \
|
|
|
|
lang/php/${MODPHP_VERSION},-mysqli \
|
|
|
|
lang/php/${MODPHP_VERSION},-snmp \
|
|
|
|
net/fping \
|
|
|
|
net/mtr \
|
|
|
|
net/net-snmp \
|
|
|
|
net/nmap \
|
|
|
|
net/pear-Net-IPv4 \
|
|
|
|
net/pear-Net-IPv6 \
|
|
|
|
net/rrdtool \
|
2017-01-31 22:43:29 +00:00
|
|
|
shells/bash \
|
import ports/net/librenms, ok benoit@ -- still a bit of a WIP, but usable enough.
LibreNMS is an autodiscovering PHP/MySQL/SNMP based network monitoring
which includes support for a wide range of network hardware and
operating systems including Cisco, Linux, FreeBSD, Juniper, Brocade,
Foundry, HP and many more. LibreNMS is a community-based fork of
Observium.
LibreNMS is not intended to replace a Nagios-type up/down monitoring
system, but rather to complement it with an easy to manage, intuitive
representation of historical and current performance statistics,
configuration visualisation and syslog capture.
2015-04-23 16:44:34 +00:00
|
|
|
sysutils/ipmitool
|
|
|
|
|
|
|
|
NO_BUILD = Yes
|
|
|
|
NO_TEST = Yes
|
|
|
|
|
|
|
|
PKG_ARCH = *
|
|
|
|
|
|
|
|
PREFIX = /var/www
|
|
|
|
INSTDIR = ${PREFIX}/librenms
|
2016-04-24 23:36:07 +00:00
|
|
|
SUBST_VARS = INSTDIR MODPHP_BIN
|
import ports/net/librenms, ok benoit@ -- still a bit of a WIP, but usable enough.
LibreNMS is an autodiscovering PHP/MySQL/SNMP based network monitoring
which includes support for a wide range of network hardware and
operating systems including Cisco, Linux, FreeBSD, Juniper, Brocade,
Foundry, HP and many more. LibreNMS is a community-based fork of
Observium.
LibreNMS is not intended to replace a Nagios-type up/down monitoring
system, but rather to complement it with an easy to manage, intuitive
representation of historical and current performance statistics,
configuration visualisation and syslog capture.
2015-04-23 16:44:34 +00:00
|
|
|
|
2017-01-31 22:43:29 +00:00
|
|
|
R = s,^\#!( )?(/usr/bin/env |/bin/)bash,\#!${LOCALBASE}/bin/bash,;
|
2016-05-06 19:31:08 +00:00
|
|
|
R += s,^\#!( )?/usr/bin/(env )?python.*,\#!${MODPY_BIN},;
|
import ports/net/librenms, ok benoit@ -- still a bit of a WIP, but usable enough.
LibreNMS is an autodiscovering PHP/MySQL/SNMP based network monitoring
which includes support for a wide range of network hardware and
operating systems including Cisco, Linux, FreeBSD, Juniper, Brocade,
Foundry, HP and many more. LibreNMS is a community-based fork of
Observium.
LibreNMS is not intended to replace a Nagios-type up/down monitoring
system, but rather to complement it with an easy to manage, intuitive
representation of historical and current performance statistics,
configuration visualisation and syslog capture.
2015-04-23 16:44:34 +00:00
|
|
|
R += s,^\#!( )?/usr/bin/(env )?php,\#!${MODPHP_BIN},;
|
|
|
|
R += s,/opt/librenms,/var/www/librenms,g;
|
|
|
|
R += s,/var/www/librenms,${TRUEPREFIX}/librenms,g;
|
|
|
|
R += s,/usr/local,${LOCALBASE},g
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
find ${WRKSRC} -type f -print0 | xargs -r0 perl -pi -e '$R'
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${INSTDIR}
|
|
|
|
cd ${WRKSRC}; pax -rw . ${INSTDIR}
|
|
|
|
find ${INSTDIR} -name '*.orig' -print0 | xargs -r0 rm
|
|
|
|
mkdir -p ${INSTDIR}/{rrd,logs}
|
2016-01-06 13:11:47 +00:00
|
|
|
cd ${INSTDIR}; sed -i 's,%PHP%,${MODPHP_BIN},' daily.sh poller-wrapper.py validate.php; \
|
2017-05-05 09:37:13 +00:00
|
|
|
sed -i 's,%LNMS_VERSION%,${GH_TAGNAME},' html/pages/about.inc.php
|
2015-10-12 15:39:06 +00:00
|
|
|
cp /usr/share/snmp/mibs/OPENBSD-* ${INSTDIR}/mibs/
|
2017-05-30 21:05:44 +00:00
|
|
|
rm -r ${INSTDIR}/tests
|
import ports/net/librenms, ok benoit@ -- still a bit of a WIP, but usable enough.
LibreNMS is an autodiscovering PHP/MySQL/SNMP based network monitoring
which includes support for a wide range of network hardware and
operating systems including Cisco, Linux, FreeBSD, Juniper, Brocade,
Foundry, HP and many more. LibreNMS is a community-based fork of
Observium.
LibreNMS is not intended to replace a Nagios-type up/down monitoring
system, but rather to complement it with an easy to manage, intuitive
representation of historical and current performance statistics,
configuration visualisation and syslog capture.
2015-04-23 16:44:34 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|