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

Rodrigo Osorio rodrigo at FreeBSD.org
Sat Sep 20 15:31:40 UTC 2014


Author: rodrigo
Date: Sat Sep 20 15:31:38 2014
New Revision: 368650
URL: http://svnweb.freebsd.org/changeset/ports/368650
QAT: https://qat.redports.org/buildarchive/r368650/

Log:
  - add license
  - use @sample to manage default configuration files
  - install DOC by default
  
  PR:		ports/192236
  Submitted by:	rodrigo
  Approved by:	bapt (mentor)

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

Modified: head/net-mgmt/snmptt/Makefile
==============================================================================
--- head/net-mgmt/snmptt/Makefile	Sat Sep 20 15:28:01 2014	(r368649)
+++ head/net-mgmt/snmptt/Makefile	Sat Sep 20 15:31:38 2014	(r368650)
@@ -9,6 +9,9 @@ DISTNAME=	${PORTNAME}_${PORTVERSION}
 MAINTAINER=	nistor at snickers.org
 COMMENT=	SNMP trap handler/translator/swiss-army-knife
 
+NO_BUILD=	yes
+LICENSE=	GPLv2
+
 USES=		perl5 shebangfix tar:tgz
 USE_RC_SUBR=	snmptt
 
@@ -21,32 +24,26 @@ RUN_DEPENDS=	net-snmp>=0:${PORTSDIR}/net
 DOCS=		faqs.html index.html layout1.css snmptt.html \
 		snmpttconvert.html snmpttconvertmib.html
 
+OPTIONS_DEFINE=	DOCS
+
 SCRIPTS=	snmptt snmptt-net-snmp-test snmpttconvert \
 		snmpttconvertmib snmptthandler
 
 SHEBANG_FILES=	${SCRIPTS}
 
-.include <bsd.port.pre.mk>
-
-do-build:
-	@echo Skipping building ${PORTNAME}
 
 do-install:
-	@echo Installing ${PORTNAME} ${PORTVERSION}
-
 .for _SCRIPT in ${SCRIPTS}
 	@${INSTALL_SCRIPT} ${WRKSRC}/${_SCRIPT} ${STAGEDIR}${PREFIX}/sbin
 .endfor
 	
 	${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
+	${INSTALL_DATA} ${WRKSRC}/snmptt.ini ${STAGEDIR}${PREFIX}/etc/snmp/snmptt.ini.sample
+	${INSTALL_DATA} ${WRKSRC}/examples/snmptt.conf.generic ${STAGEDIR}${PREFIX}/etc/snmp/snmptt.conf.generic.sample
 
-.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for _DOC in ${DOCS}
 	${INSTALL_MAN} ${WRKSRC}/docs/${_DOC} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/net-mgmt/snmptt/pkg-plist
==============================================================================
--- head/net-mgmt/snmptt/pkg-plist	Sat Sep 20 15:28:01 2014	(r368649)
+++ head/net-mgmt/snmptt/pkg-plist	Sat Sep 20 15:31:38 2014	(r368650)
@@ -1,15 +1,15 @@
-etc/snmp/snmptt.conf.generic-dist
-etc/snmp/snmptt.ini-dist
+ at sample etc/snmp/snmptt.conf.generic.sample
+ at sample etc/snmp/snmptt.ini.sample
 sbin/snmptt
 sbin/snmptt-net-snmp-test
 sbin/snmpttconvert
 sbin/snmpttconvertmib
 sbin/snmptthandler
-%%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%%@dirrmtry %%DOCSDIR%%
- at dirrmtry etc/snmp
+%%DOCSDIR%%/faqs.html
+%%DOCSDIR%%/index.html
+%%DOCSDIR%%/layout1.css
+%%DOCSDIR%%/snmptt.html
+%%DOCSDIR%%/snmpttconvert.html
+%%DOCSDIR%%/snmpttconvertmib.html
+ at dirrm %%DOCSDIR%%
+ at dirrm etc/snmp


More information about the svn-ports-head mailing list