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

37 lines
943 B
Makefile
Raw Normal View History

# Created by: clement@FreeBSD.org
# $FreeBSD$
PORTNAME= spine
2017-06-12 17:10:48 +02:00
PORTVERSION= 1.1.10
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
GNU_CONFIGURE= YES
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} --with-snmp=${LOCALBASE}
CPPFLAGS+= `net-snmp-config --cflags`
2016-04-26 20:31:46 +02:00
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
2016-04-26 20:31:46 +02:00
do-build:
@cd ${WRKSRC}; ${MAKE}
post-install:
${MV} ${STAGEDIR}${PREFIX}/etc/spine.conf.dist ${STAGEDIR}${PREFIX}/etc/spine.conf.sample
.include <bsd.port.mk>