Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Sep 2014 15:31:39 +0000 (UTC)
From:      Rodrigo Osorio <rodrigo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r368650 - head/net-mgmt/snmptt
Message-ID:  <201409201531.s8KFVdQp061114@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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
+@sample etc/snmp/snmptt.conf.generic.sample
+@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%%
-@dirrmtry etc/snmp
+%%DOCSDIR%%/faqs.html
+%%DOCSDIR%%/index.html
+%%DOCSDIR%%/layout1.css
+%%DOCSDIR%%/snmptt.html
+%%DOCSDIR%%/snmpttconvert.html
+%%DOCSDIR%%/snmpttconvertmib.html
+@dirrm %%DOCSDIR%%
+@dirrm etc/snmp



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