pkgsrc/net/cacti-spine/Makefile
obache 8d1321c796 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.
2013-12-11 03:01:57 +00:00

41 lines
1.3 KiB
Makefile

# $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"