[144211] trunk/dports/net/snmptt/Portfile

mojca at macports.org mojca at macports.org
Mon Jan 4 13:32:38 PST 2016


Revision: 144211
          https://trac.macports.org/changeset/144211
Author:   mojca at macports.org
Date:     2016-01-04 13:32:37 -0800 (Mon, 04 Jan 2016)
Log Message:
-----------
snmptt: whitespace only

Modified Paths:
--------------
    trunk/dports/net/snmptt/Portfile

Modified: trunk/dports/net/snmptt/Portfile
===================================================================
--- trunk/dports/net/snmptt/Portfile	2016-01-04 21:26:30 UTC (rev 144210)
+++ trunk/dports/net/snmptt/Portfile	2016-01-04 21:32:37 UTC (rev 144211)
@@ -1,76 +1,72 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem        1.0
+PortSystem          1.0
 
-name              snmptt
-version           1.2
-revision          2
-categories        net
-license           GPL-2+
-maintainers       nomaintainer
-description       An SNMP trap handler written in Perl for use with the Net-SNMP / UCD-SNMP snmptrapd program
-long_description  ${description}
+name                snmptt
+version             1.2
+revision            2
+categories          net
+license             GPL-2+
+maintainers         nomaintainer
+description         An SNMP trap handler written in Perl for use with the Net-SNMP / UCD-SNMP snmptrapd program
+long_description    ${description}
 
-platforms         darwin
-supported_archs   noarch
-homepage          http://www.snmptt.org/
-master_sites      sourceforge:snmptt
-checksums         md5 5200502b7058c9e2cbe3816bf0fe27d0
-distfiles	  ${name}_${version}.tgz
-worksrcdir	  ${name}_${version}
+platforms           darwin
+supported_archs     noarch
+homepage            http://www.snmptt.org/
+master_sites        sourceforge:snmptt
+checksums           md5 5200502b7058c9e2cbe3816bf0fe27d0
+distfiles           ${name}_${version}.tgz
+worksrcdir          ${name}_${version}
 
-depends_lib       port:perl5.16 \
-		  port:p5.16-config-inifiles
+depends_lib         port:perl5.16 \
+                    port:p5.16-config-inifiles
 
-use_configure     no
-build             {}
+use_configure       no
+build               {}
 
-set bindir	${prefix}/sbin
-set docsdir	${prefix}/share/doc/${name}
-set etcdir	${prefix}/etc/${name}
-set scriptdir	${prefix}/share/${name}
+set bindir          ${prefix}/sbin
+set docsdir         ${prefix}/share/doc/${name}
+set etcdir          ${prefix}/etc/${name}
+set scriptdir       ${prefix}/share/${name}
 
 post-patch {
-	reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.16|g" \
-		${worksrcpath}/snmptt \
-		${worksrcpath}/snmptt-net-snmp-test \
-		${worksrcpath}/snmpttconvert \
-		${worksrcpath}/snmpttconvertmib \
-		${worksrcpath}/snmptthandler
+    reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.16|g" \
+        ${worksrcpath}/snmptt \
+        ${worksrcpath}/snmptt-net-snmp-test \
+        ${worksrcpath}/snmpttconvert \
+        ${worksrcpath}/snmpttconvertmib \
+        ${worksrcpath}/snmptthandler
 
-reinplace "s|/etc/snmp/snmptt.ini|${prefix}/etc/${name}/snmptt.ini|g" \
-                ${worksrcpath}/snmptt \
-                ${worksrcpath}/snmptthandler
+    reinplace "s|/etc/snmp/snmptt.ini|${prefix}/etc/${name}/snmptt.ini|g" \
+        ${worksrcpath}/snmptt \
+        ${worksrcpath}/snmptthandler
 
-reinplace "s|/etc/snmp/snmptt.conf|${prefix}/etc/snmptt.conf|g" \
-		${worksrcpath}/snmptt.ini
+    reinplace "s|/etc/snmp/snmptt.conf|${prefix}/etc/snmptt.conf|g" \
+        ${worksrcpath}/snmptt.ini
 }
 
 destroot {
-	xinstall -m 755 -d ${destroot}${bindir}
-	xinstall -m 755 -d ${destroot}${docsdir}/docs
-	xinstall -m 755 -d ${destroot}${scriptdir}
-	xinstall -m 755 -d ${destroot}${etcdir}
+    xinstall -m 755 -d ${destroot}${bindir}
+    xinstall -m 755 -d ${destroot}${docsdir}/docs
+    xinstall -m 755 -d ${destroot}${scriptdir}
+    xinstall -m 755 -d ${destroot}${etcdir}
 
-	xinstall -m 755 -W ${worksrcpath} snmptt snmptt-net-snmp-test snmpttconvert \
-			snmpttconvertmib snmptthandler \
-				${destroot}${bindir}
+    xinstall -m 755 -W ${worksrcpath} snmptt snmptt-net-snmp-test snmpttconvert \
+        snmpttconvertmib snmptthandler                           ${destroot}${bindir}
 
-	xinstall -m 755 -W ${worksrcpath}/docs faqs.html index.html layout1.css \
-			snmptt.html snmpttconvert.html snmpttconvertmib.html \
-				${destroot}${docsdir}/docs
+    xinstall -m 755 -W ${worksrcpath}/docs faqs.html index.html layout1.css \
+        snmptt.html snmpttconvert.html snmpttconvertmib.html     ${destroot}${docsdir}/docs
 
-	xinstall -m 755 -W ${worksrcpath} ChangeLog INSTALL README \
-				${destroot}${docsdir}
+    xinstall -m 755 -W ${worksrcpath} ChangeLog INSTALL README   ${destroot}${docsdir}
 
-	eval xinstall -m 644 [glob ${worksrcpath}/sample-*] \
-				${destroot}${docsdir}
-	eval xinstall -m 644 [glob ${worksrcpath}/examples/*-trap.*] \
-				${destroot}${docsdir}
+    eval xinstall -m 644 [glob ${worksrcpath}/sample-*]          ${destroot}${docsdir}
+    eval xinstall -m 644 [glob ${worksrcpath}/examples/*-trap.*] ${destroot}${docsdir}
 
-	xinstall -m 644 ${worksrcpath}/snmptt.ini ${destroot}${etcdir}/snmptt.ini.sample
-	xinstall -m 644 ${worksrcpath}/examples/snmptt.conf.generic ${destroot}${etcdir}
-	xinstall -m 755 ${worksrcpath}/snmptt-init.d ${destroot}${docsdir}
+    xinstall -m 644 ${worksrcpath}/snmptt.ini                    ${destroot}${etcdir}/snmptt.ini.sample
+    xinstall -m 644 ${worksrcpath}/examples/snmptt.conf.generic  ${destroot}${etcdir}
+    xinstall -m 755 ${worksrcpath}/snmptt-init.d                 ${destroot}${docsdir}
 }
 
 post-activate {
@@ -91,7 +87,7 @@
 -Edit your snmptrapd.conf (you may use the snmpconf utility) and make sure that
  these items are present.
 
-	traphandle  default ${prefix}/bin/perl5.16 ${prefix}/sbin/snmptt
+    traphandle  default ${prefix}/bin/perl5.16 ${prefix}/sbin/snmptt
 
 \n"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160104/d475aa8a/attachment-0001.html>


More information about the macports-changes mailing list