Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  1 Feb 2006 00:06:53 -0500 (EST)
From:      Jon Nistor <nistor@snickers.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/92667: port update
Message-ID:  <20060201050653.854E75CFD@snickers.org>
Resent-Message-ID: <200602010510.k115A37H047188@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         92667
>Category:       ports
>Synopsis:       port update
>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:   Wed Feb 01 05:10:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jon Nistor
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
n/a
>Environment:
System: FreeBSD spike.snickers.org 5.4-STABLE FreeBSD 5.4-STABLE #8: Fri Oct 28 06:31:02 EDT 2005 root@:/usr/obj/usr/src/sys/SPIKE i386


>Description:
	Update to net-mgmt/snmptt.

>How-To-Repeat:
	n/a
>Fix:

# 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/files
#	snmptt/files/snmptt.sh.in
#	snmptt/Makefile
#	snmptt/distinfo
#	snmptt/pkg-descr
#	snmptt/pkg-plist
#
echo c - snmptt
mkdir -p snmptt > /dev/null 2>&1
echo c - snmptt/files
mkdir -p snmptt/files > /dev/null 2>&1
echo x - snmptt/files/snmptt.sh.in
sed 's/^X//' >snmptt/files/snmptt.sh.in << 'END-of-snmptt/files/snmptt.sh.in'
X#!/bin/sh
X#
X# $FreeBSD: ports/net-mgmt/snmptt/files/snmptt.sh.in,v 1.1 2005/11/08 16:22:22 pav Exp $
X#
X
X# PROVIDE: snmptt
X# REQUIRE: LOGIN
X# KEYWORD: FreeBSD
X
X#
X# Add the following lines to /etc/rc.conf to enable snmptt:
X#
X#snmptt_enable="YES"
X#
X# See snmptt documentation for flags.
X#
X
X. %%RC_SUBR%%
X
Xname=snmptt
Xrcvar=`set_rcvar`
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"}
Xsnmptt_flags=${snmptt_flags:-""}
X
Xstop_postcmd=stop_postcmd
X
Xstop_postcmd()
X{
X  rm -f $pidfile
X}
X
Xload_rc_config ${name}
Xrun_rc_command "$1"
END-of-snmptt/files/snmptt.sh.in
echo x - snmptt/Makefile
sed 's/^X//' >snmptt/Makefile << 'END-of-snmptt/Makefile'
X# ports collection makefile for:	snmptt
X# Date created:				21 May 2004
X# Whom:					Bruce M Simpson <bms@FreeBSD.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		snmptt
XPORTVERSION=		1.1
XCATEGORIES=		net-mgmt
XMASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XDISTNAME=		${PORTNAME}_${PORTVERSION}
XEXTRACT_SUFX=		.tgz
X
XMAINTAINER=	nistor@snickers.org
XCOMMENT=	SNMP trap handler/translator/swiss-army-knife
X
XRUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/SNMP.pm:${PORTSDIR}/net-mgmt/net-snmp \
X		${SITE_PERL}/Config/IniFiles.pm:${PORTSDIR}/devel/p5-Config-IniFiles
X
XWRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION}
X
XUSE_PERL5=	yes
XUSE_REINPLACE=	yes
X
XUSE_RC_SUBR=	snmptt.sh
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 <bsd.port.pre.mk>
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 <bsd.port.post.mk>
END-of-snmptt/Makefile
echo x - snmptt/distinfo
sed 's/^X//' >snmptt/distinfo << 'END-of-snmptt/distinfo'
XMD5 (snmptt_1.1.tgz) = e4c2ec342040f33cdf0c7edab1545aab
XSHA256 (snmptt_1.1.tgz) = 593f3986e20b80ed5170ab997d4ab51c3f4b7f91f22fb69cdd550c6ad338aa50
XSIZE (snmptt_1.1.tgz) = 119251
END-of-snmptt/distinfo
echo x - snmptt/pkg-descr
sed 's/^X//' >snmptt/pkg-descr << 'END-of-snmptt/pkg-descr'
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/
X
XBruce
Xbms@FreeBSD.org
END-of-snmptt/pkg-descr
echo x - snmptt/pkg-plist
sed 's/^X//' >snmptt/pkg-plist << 'END-of-snmptt/pkg-plist'
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%%
END-of-snmptt/pkg-plist
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060201050653.854E75CFD>