2004-01-07 06:39:57 +00:00
|
|
|
# New ports collection makefile for: rtg
|
|
|
|
# Date created: 6 January 2004
|
|
|
|
# Whom: Brad Davis <so14k@so14k.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rtg
|
|
|
|
PORTVERSION= 0.7.4
|
2011-03-19 13:15:34 +00:00
|
|
|
PORTREVISION= 8
|
2004-01-07 06:39:57 +00:00
|
|
|
CATEGORIES= net
|
2009-08-22 00:32:25 +00:00
|
|
|
MASTER_SITES= SF
|
2004-01-07 06:39:57 +00:00
|
|
|
|
2010-06-30 20:05:46 +00:00
|
|
|
MAINTAINER= freebsd-ports@dan.me.uk
|
2004-01-07 06:39:57 +00:00
|
|
|
COMMENT= A flexible, high-performance SNMP statistics monitoring system
|
|
|
|
|
2010-06-30 20:05:46 +00:00
|
|
|
LIB_DEPENDS= netsnmp:${PORTSDIR}/net-mgmt/net-snmp
|
2004-01-07 06:39:57 +00:00
|
|
|
|
|
|
|
MAN1= rtgplot.1 rtgpoll.1
|
|
|
|
|
2010-06-30 20:05:46 +00:00
|
|
|
USE_RC_SUBR= rtgpoll
|
|
|
|
USE_MYSQL= yes
|
2004-01-07 06:39:57 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2009-09-19 17:26:28 +00:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/${PORTNAME} \
|
|
|
|
--with-mysql=${LOCALBASE} \
|
|
|
|
--with-snmp=${LOCALBASE}
|
2004-01-07 06:39:57 +00:00
|
|
|
|
2010-06-30 20:05:46 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-08-04 10:30:14 +00:00
|
|
|
.if ( ${OSVERSION} >= 800040 )
|
2010-06-30 20:05:46 +00:00
|
|
|
CFLAGS+= -fstack-protector
|
|
|
|
LDFLAGS+= -fstack-protector
|
|
|
|
.endif
|
|
|
|
|
2004-01-07 06:39:57 +00:00
|
|
|
pre-configure:
|
2005-05-17 18:49:27 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,-pthread,${PTHREAD_LIBS},g' ${WRKSRC}/configure
|
2004-01-07 06:39:57 +00:00
|
|
|
|
2010-08-04 10:30:14 +00:00
|
|
|
post-patch:
|
|
|
|
@${MV} ${WRKSRC}/etc/rtg.conf ${WRKSRC}/etc/rtg.conf.sample
|
|
|
|
@${MV} ${WRKSRC}/etc/routers ${WRKSRC}/etc/routers.sample
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO} "To enable the web interface, copy ${PREFIX}/bin/rtgplot to your site cgi-bin as rtgplot.cgi"
|
|
|
|
|
2010-06-30 20:05:46 +00:00
|
|
|
.include <bsd.port.post.mk>
|