From owner-svn-ports-head@FreeBSD.ORG Sat Sep 20 15:31:39 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C95A7B47; Sat, 20 Sep 2014 15:31:39 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A9B0F897; Sat, 20 Sep 2014 15:31:39 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8KFVdh6061116; Sat, 20 Sep 2014 15:31:39 GMT (envelope-from rodrigo@FreeBSD.org) Received: (from rodrigo@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8KFVdQp061114; Sat, 20 Sep 2014 15:31:39 GMT (envelope-from rodrigo@FreeBSD.org) Message-Id: <201409201531.s8KFVdQp061114@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: rodrigo set sender to rodrigo@FreeBSD.org using -f From: Rodrigo Osorio Date: Sat, 20 Sep 2014 15:31:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r368650 - head/net-mgmt/snmptt X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2014 15:31:40 -0000 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 - -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 +.include 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