[123819] trunk/dports/net/smokeping/Portfile

mojca at macports.org mojca at macports.org
Thu Aug 14 15:05:01 PDT 2014


Revision: 123819
          https://trac.macports.org/changeset/123819
Author:   mojca at macports.org
Date:     2014-08-14 15:05:01 -0700 (Thu, 14 Aug 2014)
Log Message:
-----------
smokeping: whitespace, sha256, status line, add variable perl_version

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

Modified: trunk/dports/net/smokeping/Portfile
===================================================================
--- trunk/dports/net/smokeping/Portfile	2014-08-14 21:58:51 UTC (rev 123818)
+++ trunk/dports/net/smokeping/Portfile	2014-08-14 22:05:01 UTC (rev 123819)
@@ -1,98 +1,102 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
+PortSystem          1.0
 
-PortGroup		perl5 1.0
+PortGroup           perl5 1.0
 
-name			smokeping
-version			2.6.8
-categories		net perl
-maintainers		markd openmaintainer
-description		A deluxe latency logging and graphing system.
-long_description	SmokePing is a deluxe latency measurement tool. \
-			It can measure, store, and display latency, latency \
-			distribution, and packet loss. SmokePing uses RRDtool \
-			to maintain a longterm data-store and to draw pretty \
-			graphs, giving up to the minute information on the \
-			state of each network connection.
+name                smokeping
+version             2.6.8
+categories          net perl
+maintainers         markd openmaintainer
+description         A deluxe latency logging and graphing system.
+long_description    SmokePing is a deluxe latency measurement tool. \
+                    It can measure, store, and display latency, latency \
+                    distribution, and packet loss. SmokePing uses RRDtool \
+                    to maintain a longterm data-store and to draw pretty \
+                    graphs, giving up to the minute information on the \
+                    state of each network connection.
 
-platforms		darwin
-homepage                http://oss.oetiker.ch/smokeping/
-master_sites		http://oss.oetiker.ch/smokeping/pub/
-checksums		md5 14a968daab2d17a27d41600077e3e967 \
-			rmd160 4a81dfbceee93f917d77698a9b73f6133eb21ffa
+platforms           darwin
+homepage            http://oss.oetiker.ch/smokeping/
+master_sites        http://oss.oetiker.ch/smokeping/pub/
 
-patchfiles		patch-etc-config.dist.diff \
-			patch-bin-smokeping.diff \
-			patch-bin-tSmoke.diff \
-			patch-bin-smokeinfo.diff \
-			patch-bin-smokeping_cgi.diff
+checksums           rmd160  4a81dfbceee93f917d77698a9b73f6133eb21ffa \
+                    sha256  15fd99487d01649a552d2954bc1c6b0442967a72fca51c8ff197447389b1b16c
 
-perl5.branches	5.12
+patchfiles          patch-etc-config.dist.diff \
+                    patch-bin-smokeping.diff \
+                    patch-bin-tSmoke.diff \
+                    patch-bin-smokeinfo.diff \
+                    patch-bin-smokeping_cgi.diff
 
-depends_lib-append	port:perl5.12 \
-			port:mod_fastcgi \
-			port:p5.12-fcgi \
-			port:apache2 \
-			port:rrdtool \
-			port:p5.12-libwww-perl \
-			port:p5.12-socket6 \
-			port:p5.12-net-snmp \
-			port:p5.12-net-telnet \
-			port:p5.12-net-dns \
-			port:p5.12-net-radius \
-			port:p5.12-perl-ldap \
-			port:p5.12-io-socket-ssl \
-			port:p5.12-pathtools \
-			port:p5.12-snmp_session \
-			port:p5.12-config-grammar \
-			port:fping \
-			port:curl
+set perl_version    5.12
+perl5.branches      ${perl_version}
 
+depends_lib-append  port:perl${perl_version} \
+                    port:p${perl_version}-fcgi \
+                    port:p${perl_version}-libwww-perl \
+                    port:p${perl_version}-socket6 \
+                    port:p${perl_version}-net-snmp \
+                    port:p${perl_version}-net-telnet \
+                    port:p${perl_version}-net-dns \
+                    port:p${perl_version}-net-radius \
+                    port:p${perl_version}-perl-ldap \
+                    port:p${perl_version}-io-socket-ssl \
+                    port:p${perl_version}-pathtools \
+                    port:p${perl_version}-snmp_session \
+                    port:p${perl_version}-config-grammar \
+                    port:mod_fastcgi \
+                    port:apache2 \
+                    port:rrdtool \
+                    port:fping \
+                    port:curl
+
 set smokeroot ${prefix}/lib/smokeping
 set smokedata ${prefix}/var/smokeping
 set smokeetc ${prefix}/etc
 set macports_apache_docroot ${prefix}/apache2/htdocs
 
-	startupitem.create	yes
-	startupitem.name	smokeping
-	startupitem.executable	${prefix}/bin/smokeping --nodaemon
+startupitem.create  yes
+startupitem.name    smokeping
+startupitem.executable \
+                    ${prefix}/bin/smokeping --nodaemon
 
 
 post-patch {
-	reinplace "s|__PREFIX__|${prefix}|g" \
-		${worksrcpath}/bin/smokeping \
-		${worksrcpath}/bin/tSmoke \
-		${worksrcpath}/bin/smokeinfo \
-		${worksrcpath}/bin/smokeping_cgi \
-		${worksrcpath}/etc/config.dist
+    reinplace "s|__PREFIX__|${prefix}|g" \
+        ${worksrcpath}/bin/smokeping \
+        ${worksrcpath}/bin/tSmoke \
+        ${worksrcpath}/bin/smokeinfo \
+        ${worksrcpath}/bin/smokeping_cgi \
+        ${worksrcpath}/etc/config.dist
 
-	reinplace "s|__PERL5__ARCHLIB__|${perl5.archlib}|g" \
-                ${worksrcpath}/bin/smokeping \
-                ${worksrcpath}/bin/tSmoke \
-                ${worksrcpath}/bin/smokeinfo \
-                ${worksrcpath}/bin/smokeping_cgi
+    reinplace "s|__PERL5__ARCHLIB__|${perl5.archlib}|g" \
+        ${worksrcpath}/bin/smokeping \
+        ${worksrcpath}/bin/tSmoke \
+        ${worksrcpath}/bin/smokeinfo \
+        ${worksrcpath}/bin/smokeping_cgi
 
-	reinplace "s|/usr/bin/|${prefix}/bin/|g" \
-		${worksrcpath}/lib/Smokeping.pm \
-		${worksrcpath}/lib/Smokeping/Examples.pm \
-		${worksrcpath}/lib/Smokeping/probes/Curl.pm \
-		${worksrcpath}/lib/Smokeping/probes/RemoteFPing.pm \
-		${worksrcpath}/lib/Smokeping/probes/SSH.pm \
-		${worksrcpath}/lib/Smokeping/probes/FPing6.pm \
-		${worksrcpath}/lib/Smokeping/probes/EchoPing.pm \
-		${worksrcpath}/lib/Smokeping/probes/FPing.pm
+    reinplace "s|/usr/bin/|${prefix}/bin/|g" \
+        ${worksrcpath}/lib/Smokeping.pm \
+        ${worksrcpath}/lib/Smokeping/Examples.pm \
+        ${worksrcpath}/lib/Smokeping/probes/Curl.pm \
+        ${worksrcpath}/lib/Smokeping/probes/RemoteFPing.pm \
+        ${worksrcpath}/lib/Smokeping/probes/SSH.pm \
+        ${worksrcpath}/lib/Smokeping/probes/FPing6.pm \
+        ${worksrcpath}/lib/Smokeping/probes/EchoPing.pm \
+        ${worksrcpath}/lib/Smokeping/probes/FPing.pm
 
-	reinplace "s|/usr/share/smokeping/etc|${smokeetc}|g" \
-		${worksrcpath}/lib/Smokeping/probes/passwordchecker.pm
+    reinplace "s|/usr/share/smokeping/etc|${smokeetc}|g" \
+        ${worksrcpath}/lib/Smokeping/probes/passwordchecker.pm
 }
 
 post-destroot {
 
 # Create and retain the data directory
 
-       xinstall -m 755 -d ${destroot}${smokedata}/log
-       destroot.keepdirs ${destroot}${smokedata}/log
+    xinstall -m 755 -d ${destroot}${smokedata}/log
+    destroot.keepdirs ${destroot}${smokedata}/log
 }
 
 notes \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140814/0d00f9a1/attachment.html>


More information about the macports-changes mailing list