Files
ports/net/rtg/Makefile
T
Rainer Hurling d4f08da488 net/rtg: Update to 0.7.5
* Updated to latest cgilib (0.7)
* Removed old GD/PNG/ZLIB bundled libraries for ease of upgrading
* Added -b (background/daemonise) flag to rtgpoll
* Added -p <file> (PID file) flag to rtgpoll
* Added graph titles and legends to rtgplot
* Updated PHP scripts from ancient mysql to newer mysqli library
* Fixed many potential SQL injection and other vulnerabilities
* Updated MySQL support to compile against MySQL 8.0+
* Updated MySQL support to use mysql_config to pull in
  CFLAGS/LDFLAGS required depending on MySQL build
* Updated MySQL table schemas to support clustered MySQL setups
* Updated MySQL table schemas to improve speed (indexes)
* Added MySQL option to auto-reconnect if MySQL server goes away
* Changed default SNMP version to 2
* Removed deprecated SNMP library options
* Added 'Update_desc' option to rtg.con to auto-update interface
  descriptions
* Fixed all compilation warnings, even when compiling with
  -pedantic -Wall -Werror
* Push config into sysconfdir and web utils into htmldir
* Added -u <user> -g <group> options for rtgpoll to run as user
  instead of root
* Added -r <path> chroot option

No changelog, only NEWS file

PR:		253311
Submitted by:	Daniel Austin <freebsd-ports@dan.me.uk> (maintainer)
Approved by:	arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D28523
2021-02-08 09:25:18 +00:00

52 lines
1.3 KiB
Makefile

# Created by: Brad Davis <so14k@so14k.com>
# $FreeBSD$
PORTNAME= rtg
PORTVERSION= 0.7.5
CATEGORIES= net
MASTER_SITES= ftp://ftpmirror.uk/freebsd-ports/rtg/
MAINTAINER= freebsd-ports@dan.me.uk
COMMENT= Flexible, high-performance SNMP statistics monitoring system
LICENSE= GPLv2
LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp \
libgd.so:graphics/gd
RUN_DEPENDS= p5-DBI>=0:databases/p5-DBI \
p5-DBD-mysql>=0:databases/p5-DBD-mysql
USES= mysql:client perl5 shebangfix ssl
USE_RC_SUBR= rtgpoll
SHEBANG_FILES= etc/95.pl etc/report.pl etc/rtgtargmkr.pl.in
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/${PORTNAME} \
--htmldir=${PREFIX}/www/data \
--with-mysql=${LOCALBASE} \
--with-gd=${LOCALBASE} \
--with-snmp=${LOCALBASE}
CFLAGS+= -fstack-protector
LDFLAGS+= -fstack-protector
USERS= rtg
GROUPS= rtg
OPTIONS_DEFINE= WEB MYSQL
MYSQL_DESC= Pull MySQL server in as a dependancy for local setups
WEB_DESC= Include PHP-based web client interface pre-requisites
MYSQL_USES= mysql:server
WEB_USES= php
WEB_USE= PHP=mysqli,spl
WEB_SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/etc/95.pl
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/etc/report.pl
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/etc/common.php.in
.include <bsd.port.mk>