Date: Fri, 26 Oct 2012 15:24:39 GMT From: "Alexey V. Panfilov" <ports@subnets.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/173124: update net-mgmt/mrtg Message-ID: <201210261524.q9QFOdaP075972@red.freebsd.org> Resent-Message-ID: <201210261530.q9QFU0xX015519@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 173124 >Category: ports >Synopsis: update net-mgmt/mrtg >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Oct 26 15:30:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Alexey V. Panfilov >Release: FreeBSD 8.3 >Organization: Meganet-2003 LLC >Environment: FreeBSD work-book.lehis.ru 8.3-STABLE FreeBSD 8.3-STABLE #3: Wed Apr 25 11:10:18 MSK 2012 root@work-book.lehis.ru:/usr/obj/usr/src/sys/BOOK-8-STABLE i386 >Description: 1. Convert to new OPTIONS framework. 2. Respect GD_PORT variable which slave ports can override with languages specific gd. >How-To-Repeat: n/a >Fix: apply attached patch Patch attached with submission follows: diff -ruN mrtg.orig/Makefile mrtg/Makefile --- mrtg.orig/Makefile 2012-10-26 18:55:58.000000000 +0400 +++ mrtg/Makefile 2012-10-26 19:13:00.000000000 +0400 @@ -18,7 +18,10 @@ MAINTAINER= ports@subnets.ru COMMENT= The multi-router traffic grapher -LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd +GD_PORT?= graphics/gd + +# slave ports override with languages specific gd +LIB_DEPENDS= gd.4:${PORTSDIR}/${GD_PORT} RUN_DEPENDS= ${SITE_PERL}/SNMP_Session.pm:${PORTSDIR}/net-mgmt/p5-SNMP_Session CONFIGURE_ARGS= --with-gd-lib=${LOCALBASE}/lib \ @@ -64,19 +67,10 @@ mrtg-r.gif mrtg-r.png mrtg-ti.gif mrtg-ti.png SCRIPTS= cfgmaker indexmaker mrtg mrtg-traffic-sum -OPTIONS= IPV6 "Enable IPv6 support" OFF \ - SNMP "Enable use of SNMPv3" OFF - +OPTIONS_DEFINE= DOCS EXAMPLES IPV6 SNMPV3 +SNMPV3_DESC= Enable use of SNMPv3 -.include <bsd.port.pre.mk> - -.if defined(WITH_IPV6) -RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6 -.endif - -.if defined(WITH_SNMP) -RUN_DEPENDS+= ${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP -.endif +.include <bsd.port.options.mk> .if !defined(NOPORTDOCS) PORTDOCS= * @@ -86,6 +80,14 @@ PORTEXAMPLES= * .endif +.if ${PORT_OPTIONS:MIPV6} +RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6 +.endif + +.if ${PORT_OPTIONS:MSNMPV3} +RUN_DEPENDS+= ${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP +.endif + post-extract: @${FIND} ${WRKSRC} -type f -name "*.orig" -delete @@ -114,4 +116,4 @@ @${SETENV} @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210261524.q9QFOdaP075972>