[152597] trunk/dports/net/nagios/Portfile

mps at macports.org mps at macports.org
Mon Sep 12 14:28:08 PDT 2016


Revision: 152597
          https://trac.macports.org/changeset/152597
Author:   mps at macports.org
Date:     2016-09-12 14:28:08 -0700 (Mon, 12 Sep 2016)
Log Message:
-----------
nagios: add mode line and do white space clean-up.

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

Modified: trunk/dports/net/nagios/Portfile
===================================================================
--- trunk/dports/net/nagios/Portfile	2016-09-12 21:22:42 UTC (rev 152596)
+++ trunk/dports/net/nagios/Portfile	2016-09-12 21:28:08 UTC (rev 152597)
@@ -1,61 +1,62 @@
+# -*- 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
 
-name			nagios
-version			3.5.0
-revision		3
-categories		net
-license			GPL-2
-maintainers		nomaintainer
-platforms		darwin
+name            nagios
+version         3.5.0
+revision        3
+categories      net
+license         GPL-2
+maintainers     nomaintainer
+platforms       darwin
 
-description		Nagios is a host and service monitoring program
+description     Nagios is a host and service monitoring program
 
-long_description	A network service and host monitor that can notify you \
-			when servers go down by monitoring for external services \
-			such as HTTP, FTP, SMTP, SNMP, as well as internal host \
-			checks for things such as CPU and disk usage and many \
-			other things.
+long_description    A network service and host monitor that can notify you \
+            when servers go down by monitoring for external services \
+            such as HTTP, FTP, SMTP, SNMP, as well as internal host \
+            checks for things such as CPU and disk usage and many \
+            other things.
 
-homepage		http://nagios.org
+homepage        http://nagios.org
 
-livecheck.regex		nagios-(\[0-9.\]+)${extract.suffix}
+livecheck.regex     nagios-(\[0-9.\]+)${extract.suffix}
 
-master_sites		sourceforge:project/nagios/nagios-3.x/nagios-${version}
-checksums		rmd160 d75a764486fd3dc0462fb49924698754852d39be \
-			sha256 469381b2954392689c85d3db733e8da4bd43b806b3d661d1a7fbd52dacc084db
+master_sites        sourceforge:project/nagios/nagios-3.x/nagios-${version}
+checksums       rmd160 d75a764486fd3dc0462fb49924698754852d39be \
+                sha256 469381b2954392689c85d3db733e8da4bd43b806b3d661d1a7fbd52dacc084db
 
-worksrcdir              ${name}
+worksrcdir      ${name}
 
-depends_build		port:gd2
-depends_lib             path:lib/libssl.dylib:openssl \
-			port:nagios-plugins
+depends_build       port:gd2
+depends_lib         path:lib/libssl.dylib:openssl \
+                    port:nagios-plugins
 
-set sysconfdir		${prefix}/etc/${name}
-destroot.destdir        prefix=${prefix} DESTDIR=${destroot}
+set sysconfdir      ${prefix}/etc/${name}
+destroot.destdir    prefix=${prefix} DESTDIR=${destroot}
 
-destroot.target		install install-config install-commandmode install-init
+destroot.target     install install-config install-commandmode install-init
 
-configure.args         	--with-cgiurl=/nagios/cgi-bin \
-			--with-htmurl=/nagios \
-			--with-nagios-user=nagios \
-			--with-nagios-grp=nagios \
-			--with-command-grp=nagios \
-			--with-gd-lib=${prefix}/lib \
-			--with-gd-inc=${prefix}/include \
-			--sbindir=${prefix}/sbin/nagios \
-			--libexecdir=${prefix}/libexec/nagios \
-			--datadir=${prefix}/share/nagios \
-			--with-lockfile=${prefix}/var/nagios/nagios.lock \
-			--with-init-dir=${prefix}/var/nagios \
-			--sysconfdir=${sysconfdir} \
-			--localstatedir=${prefix}/var/nagios \
-			--with-httpd-conf=/etc/apache2/httpd.conf
+configure.args      --with-cgiurl=/nagios/cgi-bin \
+            --with-htmurl=/nagios \
+            --with-nagios-user=nagios \
+            --with-nagios-grp=nagios \
+            --with-command-grp=nagios \
+            --with-gd-lib=${prefix}/lib \
+            --with-gd-inc=${prefix}/include \
+            --sbindir=${prefix}/sbin/nagios \
+            --libexecdir=${prefix}/libexec/nagios \
+            --datadir=${prefix}/share/nagios \
+            --with-lockfile=${prefix}/var/nagios/nagios.lock \
+            --with-init-dir=${prefix}/var/nagios \
+            --sysconfdir=${sysconfdir} \
+            --localstatedir=${prefix}/var/nagios \
+            --with-httpd-conf=/etc/apache2/httpd.conf
 
 platform darwin 8 {
-	configure.args-delete --with-httpd-conf=/etc/apache2/httpd.conf
-	configure.args-append --with-httpd-conf=/etc/httpd/httpd.conf
+    configure.args-delete --with-httpd-conf=/etc/apache2/httpd.conf
+    configure.args-append --with-httpd-conf=/etc/httpd/httpd.conf
 }
 
 startupitem.create      yes
@@ -66,13 +67,13 @@
         reinplace "s|INIT_OPTS=-o root -g root|INIT_OPTS=-o nagios -g nagios|g" \
                 "${worksrcpath}/Makefile.in"
 
-	reinplace "s|daemon-init \$(DESTDIR)\$(INIT_DIR)/nagios|daemon-init \$(DESTDIR)\$(INIT_DIR)/nagios.init|g" \
-		"${worksrcpath}/Makefile.in"
+    reinplace "s|daemon-init \$(DESTDIR)\$(INIT_DIR)/nagios|daemon-init \$(DESTDIR)\$(INIT_DIR)/nagios.init|g" \
+        "${worksrcpath}/Makefile.in"
 
-	reinplace "s|NagiosLockDir=/var/lock/subsys|NagiosLockDir=${prefix}/var/nagios|g" \
-		${worksrcpath}/daemon-init.in
-	reinplace "s|su -|su -m|g" \
-		${worksrcpath}/daemon-init.in
+    reinplace "s|NagiosLockDir=/var/lock/subsys|NagiosLockDir=${prefix}/var/nagios|g" \
+        ${worksrcpath}/daemon-init.in
+    reinplace "s|su -|su -m|g" \
+        ${worksrcpath}/daemon-init.in
 }
 
 add_users nagios group=nagios
@@ -82,12 +83,12 @@
         destroot.keepdirs ${destroot}${prefix}/var/nagios/rw
 
 # Nagios sample files no longer install with -sample suffixes, so do this manually for safety
-	foreach cfgfile [glob ${destroot}${sysconfdir}/*.cfg] {
-		file rename ${cfgfile} ${cfgfile}-sample
-	}
-	foreach cfgfile [glob ${destroot}${sysconfdir}/objects/*.cfg] {
-		file rename ${cfgfile} ${cfgfile}-sample
-	}
+    foreach cfgfile [glob ${destroot}${sysconfdir}/*.cfg] {
+        file rename ${cfgfile} ${cfgfile}-sample
+    }
+    foreach cfgfile [glob ${destroot}${sysconfdir}/objects/*.cfg] {
+        file rename ${cfgfile} ${cfgfile}-sample
+    }
 }
 
 
@@ -100,7 +101,7 @@
 ************************************************************
 
 IMPORTANT: A user and group called 'nagios' has been created and you must run\
-	   nagios as that user.
+       nagios as that user.
 
 
 
@@ -109,7 +110,7 @@
    Insert the \"Nagios stuff\" text block somewhere *above* your Apache cgi-bin\
    ScriptAlias statement:
 
-	ScriptAlias /cgi-bin/ \"/Library/WebServer/CGI-Executables/\"
+    ScriptAlias /cgi-bin/ \"/Library/WebServer/CGI-Executables/\"
 
 #
 # Nagios stuff
@@ -173,7 +174,7 @@
 4) Create a 'nagiosadmin' Apache user/password to correspond with the Nagios Apache\
    user created above
 
-	htpasswd -c ${prefix}/etc/nagios/htpasswd.users nagiosadmin
+    htpasswd -c ${prefix}/etc/nagios/htpasswd.users nagiosadmin
 
    Create other users as desired, omit '-c' since it creates the password file.  Make\
    additional users login names match Nagios contact names to restrict web viewing to your\
@@ -183,10 +184,10 @@
 5) Set Nagios to start at system boot, and start Nagios
 
    Run launchctl so Nagios will start at system boot
-	sudo launchctl load -w /Library/LaunchDaemons/org.macports.nagios.plist
+    sudo launchctl load -w /Library/LaunchDaemons/org.macports.nagios.plist
 
    You may now start Nagios manually with this command (or a reboot):
-	sudo ${prefix}/var/nagios/nagios.init start
+    sudo ${prefix}/var/nagios/nagios.init start
 
 
 6) You may now login as 'nagiosadmin' to the Nagios web interface at http://localhost/nagios
@@ -197,10 +198,10 @@
 
 File Locations:
 
-	Configuration files: ${prefix}/etc/nagios
-	Nagios plugins: ${prefix}/libexec/nagios
-	Lock file:  ${prefix}/var/nagios/nagios.lock
- 	Init file:  ${prefix}/var/nagios/nagios.init
-	HTML URL:  http://localhost/nagios/
-	CGI URL:  http://localhost/nagios/cgi-bin/
+    Configuration files: ${prefix}/etc/nagios
+    Nagios plugins: ${prefix}/libexec/nagios
+    Lock file:  ${prefix}/var/nagios/nagios.lock
+    Init file:  ${prefix}/var/nagios/nagios.init
+    HTML URL:  http://localhost/nagios/
+    CGI URL:  http://localhost/nagios/cgi-bin/
 "
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160912/d91ad570/attachment-0001.html>


More information about the macports-changes mailing list