mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
35 lines
937 B
Makefile
35 lines
937 B
Makefile
# Created by: clement@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= spine
|
|
PORTVERSION= 1.1.28
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= http://www.cacti.net/downloads/${PORTNAME}/
|
|
DISTNAME= cacti-${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= skreuzer@FreeBSD.org
|
|
COMMENT= Multithreaded poller for Cacti written in C
|
|
|
|
LICENSE= LGPL21+
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= help2man:misc/help2man
|
|
LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp \
|
|
libpkg.so:ports-mgmt/pkg
|
|
|
|
GNU_CONFIGURE= YES
|
|
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} --with-snmp=${LOCALBASE}
|
|
CPPFLAGS+= `net-snmp-config --cflags`
|
|
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
|
|
|
|
post-install:
|
|
${MV} ${STAGEDIR}${PREFIX}/etc/spine.conf.dist ${STAGEDIR}${PREFIX}/etc/spine.conf.sample
|
|
|
|
.include <bsd.port.mk>
|