From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 19 14:10:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D2BFC276 for ; Sun, 19 May 2013 14:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B3C6AAF9 for ; Sun, 19 May 2013 14:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4JEA02d013634 for ; Sun, 19 May 2013 14:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4JEA003013631; Sun, 19 May 2013 14:10:00 GMT (envelope-from gnats) Resent-Date: Sun, 19 May 2013 14:10:00 GMT Resent-Message-Id: <201305191410.r4JEA003013631@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, Jon Nistor Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CAE62152 for ; Sun, 19 May 2013 14:06:12 +0000 (UTC) (envelope-from nistor@snickers.org) Received: from mail.snickers.org (spike.ip6.snickers.org [IPv6:2607:f698:1001:1001::150]) by mx1.freebsd.org (Postfix) with ESMTP id 7DF75AE6 for ; Sun, 19 May 2013 14:06:12 +0000 (UTC) Received: by mail.snickers.org (Postfix, from userid 1000) id A67E33AC826; Sun, 19 May 2013 10:06:05 -0400 (EDT) Message-Id: <20130519140605.A67E33AC826@mail.snickers.org> Date: Sun, 19 May 2013 10:06:05 -0400 (EDT) From: Jon Nistor To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/178772: Port update: net-mgmt/snmptt X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Jon Nistor List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 May 2013 14:10:00 -0000 >Number: 178772 >Category: ports >Synopsis: Port update: net-mgmt/snmptt >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: Sun May 19 14:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Jon Nistor >Release: FreeBSD 9.1-RELEASE-p3 amd64 >Organization: >Environment: System: FreeBSD spike.snickers.org 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Port update for net-mgmt/snmptt to fix perl paths >How-To-Repeat: N/A >Fix: Shar attached # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # snmptt # snmptt/Makefile # snmptt/distinfo # snmptt/pkg-descr # snmptt/pkg-plist # snmptt/files # snmptt/files/snmptt.in # snmptt/files/patch-snmptt-init.d # snmptt/files/patch-snmptt-net-snmp-test # snmptt/files/patch-snmptt # snmptt/files/patch-snmpttconvert # snmptt/files/patch-snmpttconvertmib # snmptt/files/patch-snmptthandler-embedded # snmptt/files/patch-snmptthandler # snmptt/files/patch-docs_snmptt.html # echo c - snmptt mkdir -p snmptt > /dev/null 2>&1 echo x - snmptt/Makefile sed 's/^X//' >snmptt/Makefile << 'e131114bb5e54cb90e883981b525ddc1' X# ports collection makefile for: snmptt X# Date created: 21 May 2004 X# Whom: Bruce M Simpson X# X# $FreeBSD: ports/net-mgmt/snmptt/Makefile,v 1.12 2012/11/17 06:00:38 svnexp Exp $ X# X XPORTNAME= snmptt XPORTVERSION= 1.3 XCATEGORIES= net-mgmt XMASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}_${PORTVERSION} XDISTNAME= ${PORTNAME}_${PORTVERSION} XEXTRACT_SUFX= .tgz X XMAINTAINER= nistor@snickers.org XCOMMENT= SNMP trap handler/translator/swiss-army-knife X XRUN_DEPENDS= net-snmp>=0:${PORTSDIR}/net-mgmt/net-snmp \ X p5-Config-IniFiles>=0:${PORTSDIR}/devel/p5-Config-IniFiles X XWRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION} X XUSE_PERL5= yes X XUSE_RC_SUBR= snmptt X XSCRIPTS= snmptt snmptt-net-snmp-test snmpttconvert \ X snmpttconvertmib snmptthandler XDOCS= faqs.html index.html layout1.css snmptt.html \ X snmpttconvert.html snmpttconvertmib.html X X.include X Xdo-build: X Xpost-build: X @${ECHO_CMD} ${WRKSRC}/snmptt ${WRKSRC}/snmptthandler ${WRKSRC}/snmptt.ini | ${XARGS} \ X ${REINPLACE_CMD} -e \ X "s|/etc/snmptt.ini|${PREFIX}/etc/snmptt.ini|g ; \ X s|/etc/snmp/snmptt.ini|${PREFIX}/etc/snmp/snmptt.ini|g ; \ X s|/etc/snmp/snmptt.conf|${PREFIX}/etc/snmp/snmptt.conf.generic|g" X Xdo-install: X.for _SCRIPT in ${SCRIPTS} X ${INSTALL_SCRIPT} ${WRKSRC}/${_SCRIPT} ${PREFIX}/sbin X.endfor X ${MKDIR} ${PREFIX}/etc/snmp X ${INSTALL_DATA} ${WRKSRC}/snmptt.ini ${PREFIX}/etc/snmp/snmptt.ini-dist X.if !exists(${PREFIX}/etc/snmp/snmptt.ini) X ${INSTALL_DATA} ${WRKSRC}/snmptt.ini ${PREFIX}/etc/snmp X.endif X ${INSTALL_DATA} ${WRKSRC}/examples/snmptt.conf.generic ${PREFIX}/etc/snmp/snmptt.conf.generic-dist X.if !exists(${PREFIX}/etc/snmp/snmptt.conf) X ${INSTALL_DATA} ${WRKSRC}/examples/snmptt.conf.generic ${PREFIX}/etc/snmp/snmptt.conf.generic X.endif X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X.for _DOC in ${DOCS} X ${INSTALL_MAN} ${WRKSRC}/docs/${_DOC} ${DOCSDIR} X.endfor X.endif X X.include e131114bb5e54cb90e883981b525ddc1 echo x - snmptt/distinfo sed 's/^X//' >snmptt/distinfo << 'abdbb5e8f65f03aa46226b066d42a7f9' XSHA256 (snmptt_1.3.tgz) = 2f09d489a2073f5b1f4bdc207533b7dcf99d5b57d1c9659cfaa3c2af44ce6567 XSIZE (snmptt_1.3.tgz) = 146314 abdbb5e8f65f03aa46226b066d42a7f9 echo x - snmptt/pkg-descr sed 's/^X//' >snmptt/pkg-descr << '09d9b902467ecb006886a7d2d062908a' XSNMPTT (SNMP Trap Translator) is an SNMP trap handler written in Perl Xfor use with the Net-SNMP / UCD-SNMP snmptrapd program (www.net-snmp.org). X XWWW: http://www.snmptt.org/ 09d9b902467ecb006886a7d2d062908a echo x - snmptt/pkg-plist sed 's/^X//' >snmptt/pkg-plist << 'f2bb589c35a6554a40834a254c335d27' Xsbin/snmptt Xsbin/snmptt-net-snmp-test Xsbin/snmpttconvert Xsbin/snmpttconvertmib Xsbin/snmptthandler X@unexec if cmp -s %D/etc/snmp/snmptt.ini %D/etc/snmp/snmptt.ini-dist; then rm -f %D/etc/snmp/snmptt.ini; fi Xetc/snmp/snmptt.ini-dist X@exec [ ! -f %B/snmptt.ini ] && cp %B/%f %B/snmptt.ini X@unexec if cmp -s %D/etc/snmp/snmptt.conf.generic %D/etc/snmp/snmptt.conf.generic-dist; then rm -f %D/etc/snmp/snmptt.conf.generic; fi Xetc/snmp/snmptt.conf.generic-dist X@exec [ ! -f %B/snmptt.conf.generic ] && cp %B/%f %B/snmptt.conf.generic X%%PORTDOCS%%%%DOCSDIR%%/faqs.html X%%PORTDOCS%%%%DOCSDIR%%/index.html X%%PORTDOCS%%%%DOCSDIR%%/layout1.css X%%PORTDOCS%%%%DOCSDIR%%/snmptt.html X%%PORTDOCS%%%%DOCSDIR%%/snmpttconvert.html X%%PORTDOCS%%%%DOCSDIR%%/snmpttconvertmib.html X%%PORTDOCS%%@dirrm %%DOCSDIR%% f2bb589c35a6554a40834a254c335d27 echo c - snmptt/files mkdir -p snmptt/files > /dev/null 2>&1 echo x - snmptt/files/snmptt.in sed 's/^X//' >snmptt/files/snmptt.in << '709cc0fdf3408a5a28d4704ea0fb8cb9' X#!/bin/sh X# X# $FreeBSD: ports/net-mgmt/snmptt/files/snmptt.in,v 1.2 2012/11/17 06:00:38 svnexp Exp $ X# X X# PROVIDE: snmptt X# REQUIRE: LOGIN X X# X# Add the following lines to /etc/rc.conf to enable snmptt: X# X# snmptt_enable="YES" X# snmptt_flags="" X# X# See snmptt documentation for flags. X# X X. /etc/rc.subr X Xname=snmptt Xrcvar=snmptt_enable X Xcommand=%%PREFIX%%/sbin/${name} Xcommand_args=">/dev/null --daemon" Xpidfile=/var/run/${name}.pid X# XXX: Makes assumptions about the interpreter path and version. However, X# USE_PERL5 should guarantee that this path is valid. In any event, we X# don't sed-ify the #! operators. Xprocname=/usr/bin/perl Xrequired_files=%%PREFIX%%/etc/snmp/${name}.ini X X# set defaults X Xsnmptt_enable=${snmptt_enable:-"NO"} X Xstop_postcmd=stop_postcmd X Xstop_postcmd() X{ X rm -f $pidfile X} X Xload_rc_config ${name} Xrun_rc_command "$1" 709cc0fdf3408a5a28d4704ea0fb8cb9 echo x - snmptt/files/patch-snmptt-init.d sed 's/^X//' >snmptt/files/patch-snmptt-init.d << '386c2e52b2fa981aa87b71973387e974' X X$FreeBSD$ X X--- snmptt-init.d.orig X+++ snmptt-init.d X@@ -7,7 +7,7 @@ X # chkconfig: - 49 51 X # description: SNMP Trap Translator daemon X # X-# processname: /usr/sbin/snmptt X+# processname: /usr/local/sbin/snmptt X # pidfile: /var/run/snmptt.pid X X ### BEGIN INIT INFO X@@ -29,7 +29,7 @@ X X start() { X echo -n $"Starting $prog: " X- daemon /usr/sbin/snmptt $OPTIONS X+ daemon /usr/local/sbin/snmptt $OPTIONS X RETVAL=$? X echo X touch /var/lock/subsys/snmptt X@@ -38,7 +38,7 @@ X X stop() { X echo -n $"Stopping $prog: " X- killproc /usr/sbin/snmptt 2>/dev/null X+ killproc /usr/local/sbin/snmptt 2>/dev/null X RETVAL=$? X echo X rm -f /var/lock/subsys/snmptt 386c2e52b2fa981aa87b71973387e974 echo x - snmptt/files/patch-snmptt-net-snmp-test sed 's/^X//' >snmptt/files/patch-snmptt-net-snmp-test << '1a17a7134fe8bef98d25e331b2bace47' X X$FreeBSD$ X X--- snmptt-net-snmp-test.orig X+++ snmptt-net-snmp-test X@@ -1,4 +1,4 @@ X-#!/usr/bin/perl X+#!/usr/bin/env perl X # X # SNMPTT Net-SNMP-Test v1.0 X # 1a17a7134fe8bef98d25e331b2bace47 echo x - snmptt/files/patch-snmptt sed 's/^X//' >snmptt/files/patch-snmptt << '638f8de9dd850279ff897be5b80897f0' X X$FreeBSD$ X X--- snmptt.orig X+++ snmptt X@@ -1,4 +1,4 @@ X-#!/usr/bin/perl X+#!/usr/bin/env perl X # X # SNMPTT v1.3 X # 638f8de9dd850279ff897be5b80897f0 echo x - snmptt/files/patch-snmpttconvert sed 's/^X//' >snmptt/files/patch-snmpttconvert << '85146be33b29abcd28b133770f59d658' X X$FreeBSD$ X X--- snmpttconvert.orig X+++ snmpttconvert X@@ -1,4 +1,4 @@ X-#!/usr/bin/perl X+#!/usr/bin/env perl X # X # SNMPTTCONVERT v1.3 X # 85146be33b29abcd28b133770f59d658 echo x - snmptt/files/patch-snmpttconvertmib sed 's/^X//' >snmptt/files/patch-snmpttconvertmib << 'a6a136e69c9b58bf95ffd815d3168c33' X X$FreeBSD$ X X--- snmpttconvertmib.orig X+++ snmpttconvertmib X@@ -1,4 +1,4 @@ X-#!/usr/bin/perl X+#!/usr/bin/env perl X # X # SNMPTTCONVERTMIB v1.3 X # a6a136e69c9b58bf95ffd815d3168c33 echo x - snmptt/files/patch-snmptthandler-embedded sed 's/^X//' >snmptt/files/patch-snmptthandler-embedded << 'eb9c410501138102f65e3a7d08e05dea' X X$FreeBSD$ X X--- snmptthandler-embedded.orig X+++ snmptthandler-embedded X@@ -1,4 +1,4 @@ X-#!/usr/bin/perl X+#!/usr/bin/env perl X # X # SNMPTTHANDLER-E v1.3 X # eb9c410501138102f65e3a7d08e05dea echo x - snmptt/files/patch-snmptthandler sed 's/^X//' >snmptt/files/patch-snmptthandler << 'f27140b7dc7cd8c25639c4fd125ff611' X X$FreeBSD$ X X--- snmptthandler.orig X+++ snmptthandler X@@ -1,4 +1,4 @@ X-#!/usr/bin/perl X+#!/usr/bin/env perl X # X # SNMPTTHANDLER v1.3 X # f27140b7dc7cd8c25639c4fd125ff611 echo x - snmptt/files/patch-docs_snmptt.html sed 's/^X//' >snmptt/files/patch-docs_snmptt.html << 'a25c73eaac3e0b6fe39a3e28cdfecfd9' X X$FreeBSD$ X X--- docs/snmptt.html.orig X+++ docs/snmptt.html X@@ -3893,7 +3893,7 @@ X "http://kodu.neti.ee/%7Eristo/sec/examples.html">SEC Examples X page.
X
X-
#!/usr/bin/perl
X+
#!/usr/bin/env perl
X #
X # the cisco_msg script:
X #
X@@ -3913,15 +3913,15 @@ X }
X
X # use snmpget utility from Net-SNMP package
X-$ifname=`/usr/bin/snmpget -c public -OQv $NODE X+$ifname=`/usr/local/bin/snmpget -c public -OQv $NODE X .1.3.6.1.2.1.2.2.1.2.$IF`
X-$description=`/usr/bin/snmpget -c public -OQv $NODE X+$description=`/usr/local/bin/snmpget -c public -OQv $NODE X .1.3.6.1.4.1.9.2.2.1.1.28.$IF`
X
X $message="Interface $ifname ($description) $text";
X $message=~s/\"/\'/g;
X
X-open (TRAP, "|/usr/sbin/snmptthandler");
X+open (TRAP, "|/usr/local/sbin/snmptthandler");
X
X select TRAP;
X
a25c73eaac3e0b6fe39a3e28cdfecfd9 exit >Release-Note: >Audit-Trail: >Unformatted: