summaryrefslogtreecommitdiff
path: root/net/cacti-spine
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-12-11 03:01:57 +0000
committerobache <obache@pkgsrc.org>2013-12-11 03:01:57 +0000
commit35e4dfbb332eb210e766760560154bf543a1a9f2 (patch)
treeaf7704c62112aa677b87c7a31efde6f415ac85c1 /net/cacti-spine
parent3cc842ba5fabd173cd11475db10c413562e11455 (diff)
downloadpkgsrc-35e4dfbb332eb210e766760560154bf543a1a9f2.tar.gz
Import cacti-spine-0.8.8b as net/cacti-spine from pkgsrc-wip.
Originally packaged by Fredrik Pettai, updated by Nils Ratusznik and requested with PR pkg/48436. Spine, formally 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.
Diffstat (limited to 'net/cacti-spine')
-rw-r--r--net/cacti-spine/DESCR5
-rw-r--r--net/cacti-spine/MESSAGE19
-rw-r--r--net/cacti-spine/Makefile41
-rw-r--r--net/cacti-spine/PLIST12
-rw-r--r--net/cacti-spine/distinfo5
5 files changed, 82 insertions, 0 deletions
diff --git a/net/cacti-spine/DESCR b/net/cacti-spine/DESCR
new file mode 100644
index 00000000000..22450c45f66
--- /dev/null
+++ b/net/cacti-spine/DESCR
@@ -0,0 +1,5 @@
+Spine, formally 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.
diff --git a/net/cacti-spine/MESSAGE b/net/cacti-spine/MESSAGE
new file mode 100644
index 00000000000..805e191f818
--- /dev/null
+++ b/net/cacti-spine/MESSAGE
@@ -0,0 +1,19 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2013/12/11 03:01:57 obache Exp $
+
+cacti-spine is now installed.
+
+You must perform the following steps to make your Cacti installation
+aware of it :
+
+1/ Login to Cacti as an admin user.
+2/ "Select Settings" on the menu and click the "Paths" tab.
+3/ Enter the *complete* path to your Spine binary in
+the "Spine Poller File" Path field and click "Save".
+4/ Click the "Poller" tab.
+5/ Choose "spine" from the "Poller Type" dropdown box and click "Save".
+
+After completing these steps, Cacti will spawn Spine every 5 minutes
+instead of cmd.php. If you are having problems getting Spine to gather
+data, you can always temporarily change Poller Type back to "cmd.php".
+===========================================================================
diff --git a/net/cacti-spine/Makefile b/net/cacti-spine/Makefile
new file mode 100644
index 00000000000..b7b28d9ad60
--- /dev/null
+++ b/net/cacti-spine/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1 2013/12/11 03:01:57 obache Exp $
+#
+
+DISTNAME= cacti-spine-0.8.8b
+CATEGORIES= net
+MASTER_SITES= http://www.cacti.net/downloads/spine/
+
+MAINTAINER= pettai@nordu.net
+HOMEPAGE= http://www.cacti.net/spine_info.php
+COMMENT= Spine is a poller for Cacti for large installations
+LICENSE= gnu-lgpl-v2.1
+
+DEPENDS+= cacti>=0.8.7:../../net/cacti
+
+USE_LANGUAGES= c
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+
+CONFIGURE_ARGS= --with-mysql=${BUILDLINK_PREFIX.mysql-client}
+CONFIGURE_ARGS= --with-snmp=${BUILDLINK_PREFIX.net-snmp}
+
+DOCDIR= share/doc/cacti-spine
+EXAMPLES_DIR= examples
+EGDIR= ${PREFIX}/${DOCDIR}/${EXAMPLES_DIR}
+CONF_FILES= ${EGDIR}/spine.conf.dist ${PKG_SYSCONFDIR}/spine.conf
+INSTALLATION_DIRS= ${DOCDIR}
+
+INSTALL_MAKE_FLAGS+= configdir=${EGDIR}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DESTDIR}${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DESTDIR}${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/LICENSE* ${DESTDIR}${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/NEWS ${DESTDIR}${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README* ${DESTDIR}${PREFIX}/${DOCDIR}
+
+.include "../../mk/mysql.buildlink3.mk"
+.include "../../net/net-snmp/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/cacti-spine/PLIST b/net/cacti-spine/PLIST
new file mode 100644
index 00000000000..29af4d0a28b
--- /dev/null
+++ b/net/cacti-spine/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1 2013/12/11 03:01:57 obache Exp $
+bin/spine
+share/doc/cacti-spine/AUTHORS
+share/doc/cacti-spine/COPYING
+share/doc/cacti-spine/ChangeLog
+share/doc/cacti-spine/INSTALL
+share/doc/cacti-spine/LICENSE
+share/doc/cacti-spine/LICENSE.LGPL
+share/doc/cacti-spine/NEWS
+share/doc/cacti-spine/README
+share/doc/cacti-spine/README-WINDOWS
+share/doc/cacti-spine/examples/spine.conf.dist
diff --git a/net/cacti-spine/distinfo b/net/cacti-spine/distinfo
new file mode 100644
index 00000000000..fba18ff4b53
--- /dev/null
+++ b/net/cacti-spine/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2013/12/11 03:01:57 obache Exp $
+
+SHA1 (cacti-spine-0.8.8b.tar.gz) = cd48ec93067f3f7e5ffb99375e1e624e3f42cece
+RMD160 (cacti-spine-0.8.8b.tar.gz) = 606eeafc73061bd4d9bf8aa0f5b0fa62b5339727
+Size (cacti-spine-0.8.8b.tar.gz) = 631603 bytes