[123815] trunk/dports/net/nagios-plugins/Portfile
mojca at macports.org
mojca at macports.org
Thu Aug 14 14:52:35 PDT 2014
Revision: 123815
https://trac.macports.org/changeset/123815
Author: mojca at macports.org
Date: 2014-08-14 14:52:35 -0700 (Thu, 14 Aug 2014)
Log Message:
-----------
nagios-plugins: whitespace, checksums, status line, add variable perl_version
Modified Paths:
--------------
trunk/dports/net/nagios-plugins/Portfile
Modified: trunk/dports/net/nagios-plugins/Portfile
===================================================================
--- trunk/dports/net/nagios-plugins/Portfile 2014-08-14 21:43:21 UTC (rev 123814)
+++ trunk/dports/net/nagios-plugins/Portfile 2014-08-14 21:52:35 UTC (rev 123815)
@@ -1,82 +1,87 @@
+# -*- 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
-PortGroup perl5 1.0
+PortSystem 1.0
+PortGroup perl5 1.0
-name nagios-plugins
-version 1.4.15
-revision 4
-categories net
-license GPL-3+
-maintainers markd openmaintainer
-platforms darwin
+name nagios-plugins
+version 1.4.15
+revision 4
+categories net
+license GPL-3+
+maintainers markd openmaintainer
+platforms darwin
-description Nagios plugins for the Nagios host and service monitor
+description Nagios plugins for the Nagios host and service monitor
-long_description Nagios plugins are standalone programs that report the \
- status of hosts and services to the Nagios monitoring \
- framework.
+long_description Nagios plugins are standalone programs that report the \
+ status of hosts and services to the Nagios monitoring \
+ framework.
-homepage http://nagios.org
-master_sites sourceforge:nagiosplug
-checksums md5 56abd6ade8aa860b38c4ca4a6ac5ab0d
-patchfiles patch-plugins-check_procs.c.diff
+homepage http://nagios.org
+master_sites sourceforge:nagiosplug
-perl5.branches 5.12
+checksums rmd160 c2780a3523cf4eaaed34a94c07f5f6bd6fb1f736 \
+ sha256 51136e5210e3664e1351550de3aff4a766d9d9fea9a24d09e37b3428ef96fa5b
-destroot.destdir prefix=${prefix} DESTDIR=${destroot}
+patchfiles patch-plugins-check_procs.c.diff
-depends_build port:fping \
- port:p5.12-net-snmp \
- port:p5.12-digest-sha1 \
- port:p5.12-digest-hmac \
- port:p5.12-crypt-des \
- port:openssl
+set perl_version 5.12
+perl5.branches ${perl_version}
-configure.args --sbindir=${prefix}/share/nagios/cgi-bin \
- --libexecdir=${prefix}/libexec/nagios \
- --datadir=${prefix}/share/nagios \
- --sysconfdir=${prefix}/etc/nagios \
- --with-df-command="/bin/df -Pkt noprocfs" \
- --with-trusted-path=${prefix}/bin:${prefix}/sbin:/bin:/sbin:/usr/bin:/usr/sbin \
- --with-openssl=${prefix}/bin \
- --without-mysql \
- --without-pgsql \
- --without-radius \
- --without-lmstat \
- --without-qstat \
- --without-qmail-qstat \
- --with-ps-command="/bin/ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command'" \
- --with-ps-format="%s %d %d %d %d %d %f %s %n" \
- --with-ps-cols=9 \
- --with-ps-varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos"
+destroot.destdir prefix=${prefix} DESTDIR=${destroot}
+depends_build port:fping \
+ port:p${perl_version}-net-snmp \
+ port:p${perl_version}-digest-sha1 \
+ port:p${perl_version}-digest-hmac \
+ port:p${perl_version}-crypt-des \
+ port:openssl
+
+configure.args --sbindir=${prefix}/share/nagios/cgi-bin \
+ --libexecdir=${prefix}/libexec/nagios \
+ --datadir=${prefix}/share/nagios \
+ --sysconfdir=${prefix}/etc/nagios \
+ --with-df-command="/bin/df -Pkt noprocfs" \
+ --with-trusted-path=${prefix}/bin:${prefix}/sbin:/bin:/sbin:/usr/bin:/usr/sbin \
+ --with-openssl=${prefix}/bin \
+ --without-mysql \
+ --without-pgsql \
+ --without-radius \
+ --without-lmstat \
+ --without-qstat \
+ --without-qmail-qstat \
+ --with-ps-command="/bin/ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command'" \
+ --with-ps-format="%s %d %d %d %d %d %f %s %n" \
+ --with-ps-cols=9 \
+ --with-ps-varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos"
+
variant mysql5 {
- depends_lib-append path:bin/mysql_config5:mysql5
- configure.args-delete --without-mysql
- configure.args-append --with-mysql=${prefix}/lib/mysql5
+ depends_lib-append path:bin/mysql_config5:mysql5
+ configure.args-delete --without-mysql
+ configure.args-append --with-mysql=${prefix}/lib/mysql5
}
variant mysql4 {
- depends_lib-append port:mysql4
- configure.args-delete --without-mysql
- configure.args-append --with-mysql=${prefix}
+ depends_lib-append port:mysql4
+ configure.args-delete --without-mysql
+ configure.args-append --with-mysql=${prefix}
}
variant qstat {
- depends_lib-append port:qstat
- configure.args-delete --without-qstat
- configure.args-append --with-qstat=${prefix}/bin
+ depends_lib-append port:qstat
+ configure.args-delete --without-qstat
+ configure.args-append --with-qstat=${prefix}/bin
}
post-extract {
# Replace check_nt with the enhanced one from www.shatterit.com/nc_net/files that supports NC_Net Win client
- file copy -force ${filespath}/check_nt.c ${worksrcpath}/plugins
+ file copy -force ${filespath}/check_nt.c ${worksrcpath}/plugins
}
post-destroot {
# Put a copy of utils.pm in perl's path for certain Nagios perl plugins
- xinstall -m 755 -d ${destroot}${perl5.archlib}
- xinstall -m 755 ${destroot}${prefix}/libexec/nagios/utils.pm \
- ${destroot}${perl5.archlib}
+ xinstall -m 755 -d ${destroot}${perl5.archlib}
+ xinstall -m 755 ${destroot}${prefix}/libexec/nagios/utils.pm \
+ ${destroot}${perl5.archlib}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140814/a70166e4/attachment.html>
More information about the macports-changes
mailing list