2005-02-26 22:16:23 +01:00
|
|
|
# New ports collection makefile for: cactid
|
|
|
|
# Date created: Feb 26 2005
|
|
|
|
# Whom: clement@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2008-01-27 21:20:29 +01:00
|
|
|
PORTNAME= spine
|
2011-12-05 17:08:42 +01:00
|
|
|
PORTVERSION= 0.8.7.h
|
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}/
|
2011-12-05 17:08:42 +01:00
|
|
|
DISTNAME= cacti-${PORTNAME}-0.8.7h
|
2010-11-04 23:25:05 +01:00
|
|
|
|
2009-03-28 02:16:37 +01:00
|
|
|
MAINTAINER= skreuzer@FreeBSD.org
|
2005-02-26 22:16:23 +01:00
|
|
|
COMMENT= A multithreaded poller for Cacti written in C
|
|
|
|
|
2011-07-28 14:43:22 +02:00
|
|
|
LIB_DEPENDS= netsnmp.30:${PORTSDIR}/net-mgmt/net-snmp
|
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`
|
|
|
|
LDFLAGS+= `net-snmp-config --libs`
|
2005-02-26 22:16:23 +01:00
|
|
|
USE_MYSQL= YES
|
|
|
|
USE_OPENSSL= YES
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2005-02-26 22:16:23 +01:00
|
|
|
|
2010-12-22 15:53:22 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 800040
|
|
|
|
LDFLAGS+= -fstack-protector
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
2009-08-02 21:36:34 +02:00
|
|
|
pre-configure:
|
|
|
|
@(cd ${WRKSRC} ; ${LIBTOOLIZE} --copy --force --install)
|
|
|
|
|
2006-11-03 12:02:56 +01:00
|
|
|
do-install:
|
2008-01-27 21:20:29 +01:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/spine ${PREFIX}/bin
|
2005-02-26 22:16:23 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2010-10-11 18:17:53 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/spine.conf.dist ${EXAMPLESDIR}/spine.conf
|
2008-01-27 21:20:29 +01:00
|
|
|
@[ -e ${PREFIX}/etc/spine.conf ] || \
|
2010-10-13 01:08:33 +02:00
|
|
|
${INSTALL_DATA} ${EXAMPLESDIR}/spine.conf ${PREFIX}/etc/spine.conf
|
2009-08-02 21:36:34 +02:00
|
|
|
|
2010-12-22 15:53:22 +01:00
|
|
|
.include <bsd.port.post.mk>
|