2013-09-21 00:10:23 +02:00
|
|
|
# Created by: Brad Davis <so14k@so14k.com>
|
2004-01-07 07:39:57 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rtg
|
|
|
|
PORTVERSION= 0.7.4
|
2015-07-13 22:10:13 +02:00
|
|
|
PORTREVISION= 12
|
2004-01-07 07:39:57 +01:00
|
|
|
CATEGORIES= net
|
2014-06-15 11:17:57 +02:00
|
|
|
MASTER_SITES= SF \
|
|
|
|
ftp://ftpmirror.uk/freebsd-ports/rtg/
|
2004-01-07 07:39:57 +01:00
|
|
|
|
2010-06-30 22:05:46 +02:00
|
|
|
MAINTAINER= freebsd-ports@dan.me.uk
|
2014-07-10 14:13:11 +02:00
|
|
|
COMMENT= Flexible, high-performance SNMP statistics monitoring system
|
2004-01-07 07:39:57 +01:00
|
|
|
|
2014-05-30 10:05:11 +02:00
|
|
|
LICENSE= GPLv2
|
2004-01-07 07:39:57 +01:00
|
|
|
|
2016-04-21 18:43:14 +02:00
|
|
|
BROKEN_powerpc64= Does not build
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
|
|
|
|
RUN_DEPENDS= p5-DBI>=0:databases/p5-DBI \
|
|
|
|
p5-DBD-mysql>=0:databases/p5-DBD-mysql
|
2004-01-07 07:39:57 +01:00
|
|
|
|
2010-06-30 22:05:46 +02:00
|
|
|
USE_RC_SUBR= rtgpoll
|
2014-06-22 21:03:47 +02:00
|
|
|
USE_MYSQL= client
|
2014-05-30 10:05:11 +02:00
|
|
|
WANT_PERL= yes
|
|
|
|
USES= shebangfix
|
2015-07-13 22:10:13 +02:00
|
|
|
SHEBANG_FILES= etc/95.pl etc/report.pl etc/rtgtargmkr.pl.in
|
2014-05-30 10:05:11 +02:00
|
|
|
SUB_FILES= pkg-message
|
2004-01-07 07:39:57 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2009-09-19 19:26:28 +02:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/${PORTNAME} \
|
|
|
|
--with-mysql=${LOCALBASE} \
|
|
|
|
--with-snmp=${LOCALBASE}
|
2014-06-22 21:03:47 +02:00
|
|
|
OPTIONS_DEFINE= WEB MYSQL
|
|
|
|
OPTIONS_DEFAULT=WEB
|
|
|
|
MYSQL_DESC= Pull MySQL server in as a dependancy for local setups
|
|
|
|
WEB_DESC= Include PHP-based web client interface pre-requisites
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
|
|
USE_MYSQL= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MWEB}
|
|
|
|
WANT_PHP_WEB= yes
|
|
|
|
USE_PHP= mysqli spl
|
|
|
|
.endif
|
2004-01-07 07:39:57 +01:00
|
|
|
|
2010-06-30 22:05:46 +02:00
|
|
|
CFLAGS+= -fstack-protector
|
|
|
|
LDFLAGS+= -fstack-protector
|
|
|
|
|
2010-08-04 12:30:14 +02:00
|
|
|
post-patch:
|
|
|
|
@${MV} ${WRKSRC}/etc/rtg.conf ${WRKSRC}/etc/rtg.conf.sample
|
|
|
|
@${MV} ${WRKSRC}/etc/routers ${WRKSRC}/etc/routers.sample
|
|
|
|
|
2015-04-03 13:26:48 +02:00
|
|
|
.include <bsd.port.mk>
|