[129005] trunk/dports/net/monarch/Portfile

devans at macports.org devans at macports.org
Tue Dec 2 17:38:42 PST 2014


Revision: 129005
          https://trac.macports.org/changeset/129005
Author:   devans at macports.org
Date:     2014-12-02 17:38:42 -0800 (Tue, 02 Dec 2014)
Log Message:
-----------
monarch: add mode line and retab, white space only.

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

Modified: trunk/dports/net/monarch/Portfile
===================================================================
--- trunk/dports/net/monarch/Portfile	2014-12-03 01:32:28 UTC (rev 129004)
+++ trunk/dports/net/monarch/Portfile	2014-12-03 01:38:42 UTC (rev 129005)
@@ -1,31 +1,32 @@
+# -*- 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
-
-name                    monarch
-version                 2.5.0
-revision                1
-categories              net
-maintainers             nomaintainer
-description             A GUI configuration tool for Nagios written in perl
-long_description        ${description}
-homepage                http://sourceforge.net/projects/monarch
-platforms               darwin
-master_sites            sourceforge
-checksums               md5 68658989ff485ac58a42035c3a927362
-patchfiles              patch-nmap_scan-nmap_scan.c
-depends_build		port:nagios
-depends_lib             path:bin/mysql_config5:mysql5 \
-			port:p5.12-libwww-perl \
-			port:p5.12-xml-namespacesupport \
-			port:p5.12-xml-sax \
-			port:p5.12-xml-libxml \
-			port:p5.12-nmap-scanner \
-			port:p5.12-dbi \
-			port:p5.12-dbd-mysql \
-			port:p5.12-cgi-ajax \
-			port:p5.12-class-accessor
-patch.post_args		-F 3
-use_configure		no
+PortSystem          1.0
+                    
+name                monarch
+version             2.5.0
+revision            1
+categories          net
+maintainers         nomaintainer
+description         A GUI configuration tool for Nagios written in perl
+long_description    ${description}
+homepage            http://sourceforge.net/projects/monarch
+platforms           darwin
+master_sites        sourceforge
+checksums           md5 68658989ff485ac58a42035c3a927362
+patchfiles          patch-nmap_scan-nmap_scan.c
+depends_build       port:nagios
+depends_lib         path:bin/mysql_config5:mysql5 \
+                    port:p5.12-libwww-perl \
+                    port:p5.12-xml-namespacesupport \
+                    port:p5.12-xml-sax \
+                    port:p5.12-xml-libxml \
+                    port:p5.12-nmap-scanner \
+                    port:p5.12-dbi \
+                    port:p5.12-dbd-mysql \
+                    port:p5.12-cgi-ajax \
+                    port:p5.12-class-accessor
+patch.post_args     -F 3
+use_configure       no
 build {}
 
 variant server  {
@@ -38,55 +39,55 @@
 set monarchdir ${prefix}/groundwork/monarch
 
 destroot {
-        xinstall -m 755 -d ${destroot}${monarchdir}
-        system "cp -R ${worksrcpath}/* ${destroot}${monarchdir}"
+    xinstall -m 755 -d ${destroot}${monarchdir}
+    system "cp -R ${worksrcpath}/* ${destroot}${monarchdir}"
 }
 
 post-destroot {
-        eval reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.12|g" \
-                [glob ${destroot}${monarchdir}/*.pl]
+    eval reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.12|g" \
+        [glob ${destroot}${monarchdir}/*.pl]
 
-	eval reinplace "s|/usr/local/groundwork/bin/perl|${prefix}/bin/perl5.12|g" \
-		[glob ${destroot}${monarchdir}/*.cgi]
+    eval reinplace "s|/usr/local/groundwork/bin/perl|${prefix}/bin/perl5.12|g" \
+        [glob ${destroot}${monarchdir}/*.cgi]
 
-        eval reinplace "s|/usr/local/groundwork/bin/perl|${prefix}/bin/perl5.12|g" \
-                [glob ${destroot}${monarchdir}/*.p*]  
+    eval reinplace "s|/usr/local/groundwork/bin/perl|${prefix}/bin/perl5.12|g" \
+        [glob ${destroot}${monarchdir}/*.p*]  
 
-        eval reinplace "s|/usr/local/groundwork/monarch|${monarchdir}|g" \
-		[glob ${destroot}${monarchdir}/*.*]
+    eval reinplace "s|/usr/local/groundwork/monarch|${monarchdir}|g" \
+        [glob ${destroot}${monarchdir}/*.*]
 
 # Fix mysqldump location
-	reinplace "s|/usr/bin/mysqldump|${prefix}/bin/mysqldump5|g" \
+    reinplace "s|/usr/bin/mysqldump|${prefix}/bin/mysqldump5|g" \
                 ${destroot}${monarchdir}/MonarchStorProc.pm
 
 # Enable Nmap Scanner
-	xinstall -m 755 -d ${destroot}${monarchdir}/bin
+    xinstall -m 755 -d ${destroot}${monarchdir}/bin
 
-	reinplace "s|/usr/local/groundwork|${monarchdir}|g" \
-		${destroot}${monarchdir}/nmap_scan_one.pl
+    reinplace "s|/usr/local/groundwork|${monarchdir}|g" \
+        ${destroot}${monarchdir}/nmap_scan_one.pl
 
-	xinstall -m 755 ${destroot}${monarchdir}/nmap_scan_one.pl \
-                ${destroot}${monarchdir}/bin
+    xinstall -m 755 ${destroot}${monarchdir}/nmap_scan_one.pl \
+        ${destroot}${monarchdir}/bin
 
-	reinplace "s|__PREFIX__|${prefix}|g" \
-		${worksrcpath}/nmap_scan/nmap_scan.c
+    reinplace "s|__PREFIX__|${prefix}|g" \
+        ${worksrcpath}/nmap_scan/nmap_scan.c
 
-	system "cd ${worksrcpath}/nmap_scan && gcc -g -O2 -Wall -o nmap_scan_one nmap_scan.c"
+    system "cd ${worksrcpath}/nmap_scan && gcc -g -O2 -Wall -o nmap_scan_one nmap_scan.c"
 
 # Install nmap_scan_one with mode 4750 and chown it to root (below) to allow normal user to run nmap with root privs
-	xinstall -m 4750 ${worksrcpath}/nmap_scan/nmap_scan_one \
-		${destroot}${monarchdir}/bin
+    xinstall -m 4750 ${worksrcpath}/nmap_scan/nmap_scan_one \
+        ${destroot}${monarchdir}/bin
 
 # Delete precompiled Linux version of nmap_scan_one and leftover nmap_scan_one.pl
-	file delete ${destroot}${monarchdir}/nmap_scan_one
-	file delete ${destroot}${monarchdir}/nmap_scan_one.pl
+    file delete ${destroot}${monarchdir}/nmap_scan_one
+    file delete ${destroot}${monarchdir}/nmap_scan_one.pl
 
 # End enable Nmap-Scanner
 
 # Set permissions & modes
-	system "chown -R nagios:nagios ${destroot}${monarchdir}/*"
-	system "chmod +x ${destroot}${monarchdir}/*.cgi"
-	system "chown root ${destroot}${monarchdir}/bin/nmap_scan_one"
+    system "chown -R nagios:nagios ${destroot}${monarchdir}/*"
+    system "chmod +x ${destroot}${monarchdir}/*.cgi"
+    system "chown root ${destroot}${monarchdir}/bin/nmap_scan_one"
 }
 
 post-activate {
@@ -112,36 +113,36 @@
         Follow the instructions that were given after you executed 'mysql_install_db' above.
 
    Create the Monarch MySQL user and password and set the account's permissions
-	mysql5 -u root -p (login with new root password when prompted)
+    mysql5 -u root -p (login with new root password when prompted)
         mysql> grant CREATE,INSERT,SELECT,DELETE,UPDATE on monarch.* to monarch at localhost;
         mysql> grant CREATE,INSERT,SELECT,DELETE,UPDATE on monarch.* to monarch;
-	mysql> SET PASSWORD FOR monarch at localhost = PASSWORD('my-password');
+    mysql> SET PASSWORD FOR monarch at localhost = PASSWORD('my-password');
         mysql> exit
 
 
 3) Create the Monarch MySQL database and initialize it using monarch_setup.pl.
    Login to MySQL and the create Monarch database
-	mysql5 -u root -p (login with new root password when prompted)
+    mysql5 -u root -p (login with new root password when prompted)
         mysql> create database monarch;
 
    Run monarch_setup.pl
-	cd ${monarchdir}
-	sudo ./monarch_setup.pl
+    cd ${monarchdir}
+    sudo ./monarch_setup.pl
 
    Responses for the monarch_setup.pl program
-	What is the host name of your MySQL database server? - localhost
-	What is the name of the user that will have access to the database? - monarch
-	What is the password for user monarch to access the database monarch - <my-password>
-	What is the name of the database you will use for your Monarch installation? - monarch
-	Enter web server's user account - nagios
-	Enter web server's user group - nagios
-	Please enter your web server's relative path to cgi-bin - /cgi-bin
-	What is your web server's document root - /Library/WebServer/Documents
-	Enter the full path of your cgi-bin directory - /Library/WebServer/CGI-Executables/
-	Enter the full installation path for Monarch - ${monarchdir}
-	Enter the full path to your nagios.cfg file - ${prefix}/etc/nagios
-	Enter the full path to your nagios binary file - ${prefix}/bin
-	
+    What is the host name of your MySQL database server? - localhost
+    What is the name of the user that will have access to the database? - monarch
+    What is the password for user monarch to access the database monarch - <my-password>
+    What is the name of the database you will use for your Monarch installation? - monarch
+    Enter web server's user account - nagios
+    Enter web server's user group - nagios
+    Please enter your web server's relative path to cgi-bin - /cgi-bin
+    What is your web server's document root - /Library/WebServer/Documents
+    Enter the full path of your cgi-bin directory - /Library/WebServer/CGI-Executables/
+    Enter the full installation path for Monarch - ${monarchdir}
+    Enter the full path to your nagios.cfg file - ${prefix}/etc/nagios
+    Enter the full path to your nagios binary file - ${prefix}/bin
+    
    Verify Monarch DB:
         mysql5 -u root -p
         mysql> use monarch;
@@ -157,8 +158,8 @@
 4) Set your Apache user and group to the Nagios user
         sudo pico /etc/httpd/httpd.conf
         
-	user nagios
-	group nagios
+    user nagios
+    group nagios
 
 
 5) Initial Monarch setup at http://localhost/cgi-bin/monarch.cgi
@@ -195,4 +196,4 @@
 \n"
 }
 
-livecheck.regex	 "${name}-(\\d+(?:\\.\\d+)*)\\.tar"
+livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)\\.tar"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141202/9ef10d26/attachment.html>


More information about the macports-changes mailing list