aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/cacti88-spine/Makefile
blob: 711dcb868d27ab1c133bfa43758d59b377fe6293 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: clement@FreeBSD.org

PORTNAME=	spine
PORTVERSION=	0.8.8h
CATEGORIES=	net-mgmt
MASTER_SITES=	http://www.cacti.net/downloads/${PORTNAME}/
PKGNAMEPREFIX=	cacti88-
DISTNAME=	cacti-${PORTNAME}-${PORTVERSION}

MAINTAINER=	egypcio@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:${PKG_ORIGIN}

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=	cacti spine

PORTSCOUT=	limit:^0.*

post-patch:
	@${REINPLACE_CMD} 's,#define\ *DEFAULT_CONF_FILE .*,#define DEFAULT_CONF_FILE "${PREFIX}/etc/spine.conf",' ${WRKSRC}/spine.h

do-build:
	@cd ${WRKSRC}; ${MAKE}

post-install:
	${MV} ${STAGEDIR}${PREFIX}/etc/spine.conf.dist ${STAGEDIR}${PREFIX}/etc/spine.conf.sample

.include <bsd.port.mk>