aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/cacti-spine/Makefile
blob: 8e56538a6fb90f6834370da245b4e0a3d338312e (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
# New ports collection makefile for:   cactid
# Date created:        Feb 26 2005
# Whom:                clement@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   cactid
PORTVERSION=    0.8.6.g
CATEGORIES= net
MASTER_SITES=   http://www.cacti.net/downloads/cactid/
DISTNAME=   cacti-${PORTNAME}-0.8.6g

MAINTAINER= clement@FreeBSD.org
COMMENT=    A multithreaded poller for Cacti written in C

LIB_DEPENDS=    netsnmp.9:${PORTSDIR}/net-mgmt/net-snmp

GNU_CONFIGURE=  YES
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} --with-snmp=${LOCALBASE}
USE_MYSQL=  YES
USE_OPENSSL=    YES
USE_REINPLACE=  YES

post-patch:
    @${REINPLACE_CMD} 's,%%PREFIX%%,${PREFIX},' \
        ${WRKSRC}/cactid.h

post-install:
    @${MKDIR} ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/cactid.conf ${EXAMPLESDIR}
    @[ -e ${PREFIX}/etc/cactid.conf ] || \
        ${INSTALL_DATA} ${EXAMPLESDIR}/cactid.conf ${PREFIX}/etc/

.include <bsd.port.mk>