2013-09-21 00:24:43 +02:00
|
|
|
# Created by: clement@FreeBSD.org
|
2005-02-26 22:16:23 +01:00
|
|
|
|
2008-01-27 21:20:29 +01:00
|
|
|
PORTNAME= spine
|
2021-01-11 17:46:47 +01:00
|
|
|
PORTVERSION= 1.2.16
|
2008-01-28 09:44:13 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2008-01-27 21:20:29 +01:00
|
|
|
MASTER_SITES= http://www.cacti.net/downloads/${PORTNAME}/
|
2012-04-25 15:58:03 +02:00
|
|
|
DISTNAME= cacti-${PORTNAME}-${PORTVERSION}
|
2010-11-04 23:25:05 +01:00
|
|
|
|
2009-03-28 02:16:37 +01:00
|
|
|
MAINTAINER= skreuzer@FreeBSD.org
|
2014-07-10 14:13:11 +02:00
|
|
|
COMMENT= Multithreaded poller for Cacti written in C
|
2005-02-26 22:16:23 +01:00
|
|
|
|
2017-03-29 11:02:03 +02:00
|
|
|
LICENSE= LGPL21+
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2014-05-14 02:34:17 +02:00
|
|
|
|
2016-04-26 20:31:46 +02:00
|
|
|
BUILD_DEPENDS= help2man:misc/help2man
|
2017-06-12 22:27:31 +02:00
|
|
|
LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp \
|
2020-01-28 18:20:40 +01:00
|
|
|
libpkg.so:${PKG_ORIGIN}
|
2005-02-26 22:16:23 +01:00
|
|
|
|
|
|
|
GNU_CONFIGURE= YES
|
2005-10-30 13:53:24 +01:00
|
|
|
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} --with-snmp=${LOCALBASE}
|
2011-09-24 00:26:39 +02:00
|
|
|
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
|
2005-02-26 22:16:23 +01:00
|
|
|
|
2017-06-06 03:10:34 +02:00
|
|
|
CONFLICTS_INSTALL= cacti88
|
|
|
|
|
2005-02-26 22:16:23 +01:00
|
|
|
post-patch:
|
2008-01-27 21:20:29 +01:00
|
|
|
@${REINPLACE_CMD} 's,#define\ *DEFAULT_CONF_FILE .*,#define DEFAULT_CONF_FILE "${PREFIX}/etc/spine.conf",' ${WRKSRC}/spine.h
|
2005-02-26 22:16:23 +01:00
|
|
|
|
2014-09-19 15:54:18 +02:00
|
|
|
post-install:
|
|
|
|
${MV} ${STAGEDIR}${PREFIX}/etc/spine.conf.dist ${STAGEDIR}${PREFIX}/etc/spine.conf.sample
|
2009-08-02 21:36:34 +02:00
|
|
|
|
2014-09-19 15:54:18 +02:00
|
|
|
.include <bsd.port.mk>
|