freebsd-ports/net-mgmt/cacti-spine/Makefile

34 lines
946 B
Makefile
Raw Normal View History

# Created by: clement@FreeBSD.org
PORTNAME= spine
2021-01-11 17:46:47 +01:00
PORTVERSION= 1.2.16
CATEGORIES= net-mgmt
MASTER_SITES= http://www.cacti.net/downloads/${PORTNAME}/
2012-04-25 15:58:03 +02:00
DISTNAME= cacti-${PORTNAME}-${PORTVERSION}
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Multithreaded poller for Cacti written in C
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/LICENSE
2016-04-26 20:31:46 +02:00
BUILD_DEPENDS= help2man:misc/help2man
LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp \
libpkg.so:${PKG_ORIGIN}
GNU_CONFIGURE= YES
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} --with-snmp=${LOCALBASE}
CPPFLAGS+= `net-snmp-config --cflags`
2021-01-11 17:46:47 +01:00
LDFLAGS+= `net-snmp-config --libs` -lexecinfo
2019-05-16 03:28:14 +02:00
USES= libtool mysql ssl autoreconf
CONFLICTS_INSTALL= cacti88
post-patch:
@${REINPLACE_CMD} 's,#define\ *DEFAULT_CONF_FILE .*,#define DEFAULT_CONF_FILE "${PREFIX}/etc/spine.conf",' ${WRKSRC}/spine.h
post-install:
${MV} ${STAGEDIR}${PREFIX}/etc/spine.conf.dist ${STAGEDIR}${PREFIX}/etc/spine.conf.sample
.include <bsd.port.mk>