1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-05 11:35:01 +00:00

Repocopy from net-mgmt/cacti-spine (r419786) -> net-mgmt/cacti88-spine

Multithreaded poller for Cacti written in C

New releases of Cacti are still unable to work with useful plugins like
"GPS Map" and "Network Weathermap".

PR:		219686
Submitted by:	Vinicius Zavam <egypcio@googlemail.com>
Approved by:	garga (mentor)
Differential Revision:	https://reviews.freebsd.org/D11024
This commit is contained in:
Danilo G. Baio 2017-06-06 01:10:34 +00:00
parent 9133f75cb0
commit 5d8cd181d7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=442733
6 changed files with 55 additions and 0 deletions

View File

@ -28,6 +28,7 @@
SUBDIR += cacti
SUBDIR += cacti-spine
SUBDIR += cacti88
SUBDIR += cacti88-spine
SUBDIR += ccnet-client
SUBDIR += ccnet-server
SUBDIR += cdpd

View File

@ -22,6 +22,8 @@ CPPFLAGS+= `net-snmp-config --cflags`
LDFLAGS+= `net-snmp-config --libs`
USES= libtool mysql ssl
CONFLICTS_INSTALL= cacti88
post-patch:
@${REINPLACE_CMD} 's,#define\ *DEFAULT_CONF_FILE .*,#define DEFAULT_CONF_FILE "${PREFIX}/etc/spine.conf",' ${WRKSRC}/spine.h

View File

@ -0,0 +1,40 @@
# Created by: clement@FreeBSD.org
# $FreeBSD$
PORTNAME= spine
PORTVERSION= 0.8.8h
CATEGORIES= net-mgmt
MASTER_SITES= http://www.cacti.net/downloads/${PORTNAME}/
PKGNAMEPREFIX= cacti88-
DISTNAME= cacti-${PORTNAME}-${PORTVERSION}
MAINTAINER= egypcio@googlemail.com
COMMENT= Multithreaded poller for Cacti written in C
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= help2man:misc/help2man
LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp \
libpkg.so:ports-mgmt/pkg
GNU_CONFIGURE= YES
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} --with-snmp=${LOCALBASE}
CPPFLAGS+= `net-snmp-config --cflags`
LDFLAGS+= `net-snmp-config --libs`
USES= libtool mysql ssl
CONFLICTS_INSTALL= cacti spine
PORTSCOUT= limit:^0.*
post-patch:
@${REINPLACE_CMD} 's,#define\ *DEFAULT_CONF_FILE .*,#define DEFAULT_CONF_FILE "${PREFIX}/etc/spine.conf",' ${WRKSRC}/spine.h
do-build:
@cd ${WRKSRC}; ${MAKE}
post-install:
${MV} ${STAGEDIR}${PREFIX}/etc/spine.conf.dist ${STAGEDIR}${PREFIX}/etc/spine.conf.sample
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1470602099
SHA256 (cacti-spine-0.8.8h.tar.gz) = a693136839bd7d03cae5b3ff4614a4d21a2153ffb14d09fc061b843ab0b2bb30
SIZE (cacti-spine-0.8.8h.tar.gz) = 804951

View File

@ -0,0 +1,7 @@
Spine, formerly Cactid, is a poller for Cacti that primarily strives to be as
fast as possible. For this reason it is written in native C, makes use of POSIX
threads, and is linked directly against the net-snmp library for minmumal SNMP
polling overhead. Spine is a replacement for the default cmd.php poller so you
must decide if using Spine makes sense for your installation.
WWW: http://cacti.net/spine_info.php

View File

@ -0,0 +1,2 @@
bin/spine
@sample etc/spine.conf.sample