svn commit: r362378 - head/net-mgmt/snmptt

Kurt Jaeger pi at FreeBSD.org
Sun Jul 20 21:32:24 UTC 2014


Author: pi
Date: Sun Jul 20 21:32:23 2014
New Revision: 362378
URL: http://svnweb.freebsd.org/changeset/ports/362378
QAT: https://qat.redports.org/buildarchive/r362378/

Log:
  net-mgmt/snmptt: 1.3 -> 1.4
  
  PR:		191119
  Submitted by:	nistor at snickers.org (maintainer)

Modified:
  head/net-mgmt/snmptt/Makefile
  head/net-mgmt/snmptt/distinfo
  head/net-mgmt/snmptt/pkg-descr
  head/net-mgmt/snmptt/pkg-plist

Modified: head/net-mgmt/snmptt/Makefile
==============================================================================
--- head/net-mgmt/snmptt/Makefile	Sun Jul 20 21:29:24 2014	(r362377)
+++ head/net-mgmt/snmptt/Makefile	Sun Jul 20 21:32:23 2014	(r362378)
@@ -1,59 +1,52 @@
-# Created by: Bruce M Simpson <bms at FreeBSD.org>
 # $FreeBSD$
 
-PORTNAME=		snmptt
-PORTVERSION=		1.3
-CATEGORIES=		net-mgmt
-MASTER_SITES=		SF/${PORTNAME}/${PORTNAME}/${PORTNAME}_${PORTVERSION}
-DISTNAME=		${PORTNAME}_${PORTVERSION}
-EXTRACT_SUFX=		.tgz
+PORTNAME=	snmptt
+PORTVERSION=	1.4
+CATEGORIES=	net-mgmt
+MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}_${PORTVERSION}
+DISTNAME=	${PORTNAME}_${PORTVERSION}
+EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	nistor at snickers.org
 COMMENT=	SNMP trap handler/translator/swiss-army-knife
 
-RUN_DEPENDS=	net-snmp>=0:${PORTSDIR}/net-mgmt/net-snmp \
-		p5-Config-IniFiles>=0:${PORTSDIR}/devel/p5-Config-IniFiles
-
-WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION}
+USES=		perl5 shebangfix
+USE_RC_SUBR=	snmptt
 
-USES=		perl5
+RUN_DEPENDS=	net-snmp>=0:${PORTSDIR}/net-mgmt/net-snmp \
+		p5-Config-IniFiles>=0:${PORTSDIR}/devel/p5-Config-IniFiles \
+		p5-Text-Balanced>=0:${PORTSDIR}/textproc/p5-Text-Balanced \
+		p5-Text-ParseWords>=0:${PORTSDIR}/textproc/p5-Text-ParseWords \
+		p5-Time-HiRes>=0:${PORTSDIR}/devel/p5-Time-HiRes
 
-USE_RC_SUBR=	snmptt
+DOCS=		faqs.html index.html layout1.css snmptt.html \
+		snmpttconvert.html snmpttconvertmib.html
 
 SCRIPTS=	snmptt snmptt-net-snmp-test snmpttconvert \
 		snmpttconvertmib snmptthandler
-DOCS=		faqs.html index.html layout1.css snmptt.html \
-		snmpttconvert.html snmpttconvertmib.html
 
-NO_STAGE=	yes
+SHEBANG_FILES=	${SCRIPTS}
+
 .include <bsd.port.pre.mk>
 
 do-build:
-
-post-build:
-	@${ECHO_CMD} ${WRKSRC}/snmptt ${WRKSRC}/snmptthandler ${WRKSRC}/snmptt.ini | ${XARGS} \
-	 ${REINPLACE_CMD} -e \
-	 "s|/etc/snmptt.ini|${PREFIX}/etc/snmptt.ini|g ; \
-	  s|/etc/snmp/snmptt.ini|${PREFIX}/etc/snmp/snmptt.ini|g ; \
-	  s|/etc/snmp/snmptt.conf|${PREFIX}/etc/snmp/snmptt.conf.generic|g"
+	@echo Skipping building ${PORTNAME}
 
 do-install:
+	@echo Installing ${PORTNAME} ${PORTVERSION}
+
 .for _SCRIPT in ${SCRIPTS}
-	${INSTALL_SCRIPT} ${WRKSRC}/${_SCRIPT} ${PREFIX}/sbin
+	@${INSTALL_SCRIPT} ${WRKSRC}/${_SCRIPT} ${STAGEDIR}${PREFIX}/sbin
 .endfor
-	${MKDIR} ${PREFIX}/etc/snmp
-	${INSTALL_DATA} ${WRKSRC}/snmptt.ini ${PREFIX}/etc/snmp/snmptt.ini-dist
-.if !exists(${PREFIX}/etc/snmp/snmptt.ini)
-	${INSTALL_DATA} ${WRKSRC}/snmptt.ini ${PREFIX}/etc/snmp
-.endif
-	${INSTALL_DATA} ${WRKSRC}/examples/snmptt.conf.generic ${PREFIX}/etc/snmp/snmptt.conf.generic-dist
-.if !exists(${PREFIX}/etc/snmp/snmptt.conf)
-	${INSTALL_DATA} ${WRKSRC}/examples/snmptt.conf.generic ${PREFIX}/etc/snmp/snmptt.conf.generic
-.endif
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
+	
+	${MKDIR} ${STAGEDIR}${PREFIX}/etc/snmp
+	${INSTALL_DATA} ${WRKSRC}/snmptt.ini ${STAGEDIR}${PREFIX}/etc/snmp/snmptt.ini-dist
+	${INSTALL_DATA} ${WRKSRC}/examples/snmptt.conf.generic ${STAGEDIR}${PREFIX}/etc/snmp/snmptt.conf.generic-dist
+
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for _DOC in ${DOCS}
-	${INSTALL_MAN} ${WRKSRC}/docs/${_DOC} ${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/docs/${_DOC} ${STAGEDIR}${DOCSDIR}
 .endfor
 .endif
 

Modified: head/net-mgmt/snmptt/distinfo
==============================================================================
--- head/net-mgmt/snmptt/distinfo	Sun Jul 20 21:29:24 2014	(r362377)
+++ head/net-mgmt/snmptt/distinfo	Sun Jul 20 21:32:23 2014	(r362378)
@@ -1,2 +1,2 @@
-SHA256 (snmptt_1.3.tgz) = 2f09d489a2073f5b1f4bdc207533b7dcf99d5b57d1c9659cfaa3c2af44ce6567
-SIZE (snmptt_1.3.tgz) = 146314
+SHA256 (snmptt_1.4.tgz) = 512c33ecdf06da8b3c75082c1506e4b4091ddb714d0d9564771aa12ddc98ef99
+SIZE (snmptt_1.4.tgz) = 148504

Modified: head/net-mgmt/snmptt/pkg-descr
==============================================================================
--- head/net-mgmt/snmptt/pkg-descr	Sun Jul 20 21:29:24 2014	(r362377)
+++ head/net-mgmt/snmptt/pkg-descr	Sun Jul 20 21:32:23 2014	(r362378)
@@ -1,4 +1,4 @@
 SNMPTT (SNMP Trap Translator) is an SNMP trap handler written in Perl
-for use with the Net-SNMP / UCD-SNMP snmptrapd program (www.net-snmp.org).
+for use with the Net-SNMP.  Easy to setup and use.
 
 WWW: http://www.snmptt.org/

Modified: head/net-mgmt/snmptt/pkg-plist
==============================================================================
--- head/net-mgmt/snmptt/pkg-plist	Sun Jul 20 21:29:24 2014	(r362377)
+++ head/net-mgmt/snmptt/pkg-plist	Sun Jul 20 21:32:23 2014	(r362378)
@@ -1,19 +1,15 @@
+etc/snmp/snmptt.conf.generic-dist
+etc/snmp/snmptt.ini-dist
 sbin/snmptt
 sbin/snmptt-net-snmp-test
 sbin/snmpttconvert
 sbin/snmpttconvertmib
 sbin/snmptthandler
- at unexec if cmp -s %D/etc/snmp/snmptt.ini %D/etc/snmp/snmptt.ini-dist; then rm -f %D/etc/snmp/snmptt.ini; fi
-etc/snmp/snmptt.ini-dist
- at exec [ ! -f %B/snmptt.ini ] && cp %B/%f %B/snmptt.ini
- at 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
-etc/snmp/snmptt.conf.generic-dist
- at exec [ ! -f %B/snmptt.conf.generic ] && cp %B/%f %B/snmptt.conf.generic
 %%PORTDOCS%%%%DOCSDIR%%/faqs.html
 %%PORTDOCS%%%%DOCSDIR%%/index.html
 %%PORTDOCS%%%%DOCSDIR%%/layout1.css
 %%PORTDOCS%%%%DOCSDIR%%/snmptt.html
 %%PORTDOCS%%%%DOCSDIR%%/snmpttconvert.html
 %%PORTDOCS%%%%DOCSDIR%%/snmpttconvertmib.html
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
- at dirrm etc/snmp
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
+ at dirrmtry etc/snmp


More information about the svn-ports-all mailing list