[19446] trunk/dports/net/rancid/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 8 00:37:56 PDT 2006


Revision: 19446
Author:   markd at macports.org
Date:     2006-09-08 00:37:53 -0700 (Fri, 08 Sep 2006)

Log Message:
-----------
No bug.  Add looking_glass variant.

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

Modified: trunk/dports/net/rancid/Portfile
===================================================================
--- trunk/dports/net/rancid/Portfile	2006-09-08 07:17:11 UTC (rev 19445)
+++ trunk/dports/net/rancid/Portfile	2006-09-08 07:37:53 UTC (rev 19446)
@@ -4,7 +4,7 @@
 
 name				rancid
 version				2.3.1
-
+revision			1
 categories			net
 maintainers			markd at opendarwin.org
 platforms			darwin
@@ -15,10 +15,8 @@
 				device config files.  It emails you when changes \
 				occur and tells you what commands were changed.
 
-homepage			http://www.shrubbery.net/rancid
-					
+homepage			http://www.shrubbery.net/rancid					
 master_sites		        ftp://ftp.shrubbery.net/pub/rancid/
-
 checksums			md5 b188595e528515b4f87078f63936d355
 
 depends_lib                     port:openssl
@@ -32,13 +30,19 @@
                 depends_lib-append port:expect
 }
 
+variant looking_glass {
+# The looking-glass service is used to run status check commands
+# (show ip route, show run, etc) against your devices via a web form.
+
+	depends_lib-append	port:p5-lockfile-simple \
+}
+
+
 pre-configure {
  		reinplace "s|@bindir@|${destroot}@bindir@|g" \
         ${worksrcpath}/Makefile.in ${worksrcpath}/bin/Makefile.in
-
                 reinplace "s|@sysconfdir@|${destroot}@sysconfdir@|g" \
         ${worksrcpath}/Makefile.in ${worksrcpath}/etc/Makefile.in
-
                 reinplace "s|@localstatedir@|${destroot}@localstatedir@|g" \
         ${worksrcpath}/Makefile.in
 }
@@ -56,12 +60,29 @@
 }
 
 post-activate {
-
-		ui_msg "\nCopy the sample .cloginrc file to the RANCID user's home directory,
+		ui_msg "\n
+Copy the sample .cloginrc file to the RANCID user's home directory,
 make sure it isn't world readable, and edit it according to your needs.
 
-cp ${prefix}/share/rancid/cloginrc.sample ~/.cloginrc
-sudo chmod 640 ~/.cloginrc
+	cp ${prefix}/share/rancid/cloginrc.sample ~/.cloginrc
+	sudo chmod 640 ~/.cloginrc
 
-See the README file in ${prefix}/share/rancid for instructions.\n"
+See the README file in ${prefix}/share/rancid for more information.\n"
+if { [variant_isset looking_glass] } {
+ui_msg "\n
+To use the looking-glass service to run status check commands
+(show ip route, show run, etc) against your devices from a web form:
+
+1) Copy lg.cgi and lgform.cgi to Apache's cgi-bin directory.
+
+	cp ${prefix}/libexec/rancid/lg.cgi      <Apache-directory>/cgi-bin/
+	cp ${prefix}/libexec/rancid/lgform.cgi  <Apache-directory>/cgi-bin/
+
+2) Customize the ${prefix}/etc/rancid/lg.conf looking glass configuration
+   file if desired.
+
+3) Goto url http://localhost/cgi-bin/lgform.cgi with a web browser to use
+   the looking glass.
+\n"
 }
+}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20060908/0fc44568/attachment.html


More information about the macports-changes mailing list