2016-10-21 14:52:27 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.34 2016/10/21 14:52:27 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-10-21 14:52:27 +00:00
|
|
|
V = 201609.01
|
2015-08-12 15:25:04 +00:00
|
|
|
DISTNAME = librenms-$V
|
|
|
|
DISTFILES = librenms-$V{$V}.tar.gz
|
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
|
|
|
|
|
2015-08-12 15:25:04 +00:00
|
|
|
MASTER_SITES = https://github.com/librenms/librenms/archive/
|
|
|
|
|
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
|
|
|
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 \
|
|
|
|
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
|
|
|
|
|
|
|
R = s,^\#!( )?/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; \
|
|
|
|
sed -i 's,%LNMS_VERSION%,$V,' includes/definitions.inc.php
|
2015-10-12 15:39:06 +00:00
|
|
|
cp /usr/share/snmp/mibs/OPENBSD-* ${INSTDIR}/mibs/
|
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>
|