From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 26 15:30:01 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 401AB518 for ; Fri, 26 Oct 2012 15:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 16F8A8FC0A for ; Fri, 26 Oct 2012 15:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9QFU0xM015523 for ; Fri, 26 Oct 2012 15:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9QFU0xX015519; Fri, 26 Oct 2012 15:30:00 GMT (envelope-from gnats) Resent-Date: Fri, 26 Oct 2012 15:30:00 GMT Resent-Message-Id: <201210261530.q9QFU0xX015519@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Alexey V. Panfilov" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1960C4C1 for ; Fri, 26 Oct 2012 15:24:41 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id DDB798FC1A for ; Fri, 26 Oct 2012 15:24:40 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9QFOdCY075975 for ; Fri, 26 Oct 2012 15:24:39 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q9QFOdaP075972; Fri, 26 Oct 2012 15:24:39 GMT (envelope-from nobody) Message-Id: <201210261524.q9QFOdaP075972@red.freebsd.org> Date: Fri, 26 Oct 2012 15:24:39 GMT From: "Alexey V. Panfilov" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/173124: update net-mgmt/mrtg X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2012 15:30:01 -0000 >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 - -.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 .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 +.include >Release-Note: >Audit-Trail: >Unformatted: