Index: head/net-mgmt/Makefile =================================================================== --- head/net-mgmt/Makefile +++ head/net-mgmt/Makefile @@ -28,6 +28,7 @@ SUBDIR += cacti SUBDIR += cacti-spine SUBDIR += cacti88 + SUBDIR += cacti88-spine SUBDIR += ccnet-client SUBDIR += ccnet-server SUBDIR += cdpd Index: head/net-mgmt/cacti-spine/Makefile =================================================================== --- head/net-mgmt/cacti-spine/Makefile +++ head/net-mgmt/cacti-spine/Makefile @@ -22,6 +22,8 @@ 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 Index: head/net-mgmt/cacti88-spine/Makefile =================================================================== --- head/net-mgmt/cacti88-spine/Makefile +++ head/net-mgmt/cacti88-spine/Makefile @@ -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 Index: head/net-mgmt/cacti88-spine/distinfo =================================================================== --- head/net-mgmt/cacti88-spine/distinfo +++ head/net-mgmt/cacti88-spine/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1470602099 +SHA256 (cacti-spine-0.8.8h.tar.gz) = a693136839bd7d03cae5b3ff4614a4d21a2153ffb14d09fc061b843ab0b2bb30 +SIZE (cacti-spine-0.8.8h.tar.gz) = 804951 Index: head/net-mgmt/cacti88-spine/pkg-descr =================================================================== --- head/net-mgmt/cacti88-spine/pkg-descr +++ head/net-mgmt/cacti88-spine/pkg-descr @@ -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 Index: head/net-mgmt/cacti88-spine/pkg-plist =================================================================== --- head/net-mgmt/cacti88-spine/pkg-plist +++ head/net-mgmt/cacti88-spine/pkg-plist @@ -0,0 +1,2 @@ +bin/spine +@sample etc/spine.conf.sample