source: trunk/dports/net/rancid/Portfile @ 125738

Last change on this file since 125738 was 125738, checked in by mf2k@…, 4 years ago

adodb argus-monitor base blt cacti cdpr doclifter eventlog expect gkrellm honeyd iwidgets kchmviewer libdnsres monarch moodss moomps nagios nagios-plugins nedi netmrg network-weathermap nfdump nfsen nrg nrpe nsca ntop p5-archive-zip p5-cgi p5-cgi-speedycgi p5-convert-asn1 p5-libintl-perl p5-mhonarc p5-net p5-perl-ldap rancid rrdtool scotty sendpage smokeping snort sympa syslog-ng tclx tftp-hpa tktable uplog vm-pop3d xserve-raid-tools zabbix: Ports abandoned by markd. (#44782)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# -*- 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
2# $Id: Portfile 125738 2014-09-25 14:43:03Z mf2k@macports.org $
3
4PortSystem          1.0
5
6name                rancid
7version             2.3.8
8revision            1
9categories          net
10license             BSD-old
11maintainers         nomaintainer
12platforms           darwin
13
14description         Really Awesome New Cisco confIg Differ
15
16long_description    Rancid maintains a CVS repository of router and \
17                    device config files.  It emails you when changes \
18                    occur and tells you what commands were changed.
19
20homepage            http://www.shrubbery.net/rancid
21master_sites        ftp://ftp.shrubbery.net/pub/rancid/
22
23checksums           rmd160  6105398f85617bce2053d7219e7586c1b80b76ab \
24                    sha256  44e44c87a22968d5229c01d60aa46960da023a24846eef43f9e3c8d70fd5b3fb
25
26set perl_version    5.16
27depends_lib         port:perl${perl_version} \
28                    port:openssl \
29                    port:p${perl_version}-lockfile-simple
30
31patchfiles          patch-etc-Makefile.in
32
33post-patch {
34# Set path for lg.conf.sample so Looking Glass will work
35    reinplace "s|@prefix@/bin|@prefix@/libexec/rancid:@prefix@/bin|g" \
36        ${worksrcpath}/etc/lg.conf.sample.in
37}
38
39configure.args      --localstatedir=${prefix}/var/${name} \
40                    --bindir=${prefix}/libexec/${name} \
41                    --sysconfdir=${prefix}/etc/${name} \
42                    --mandir=\\\${prefix}/share/man
43
44post-destroot {
45    system "ln -s -f ${prefix}/libexec/${name}/rancid-cvs ${destroot}${prefix}/bin/rancid-cvs"
46    system "ln -s -f ${prefix}/libexec/${name}/rancid-run ${destroot}${prefix}/bin/rancid-run"
47}
48
49notes "
50#### To complete the RANCID installation ####
51
52Copy the sample .cloginrc file to the RANCID user's home directory,\
53make sure it isn't world readable, and edit it according to your needs.
54
55        cp ${prefix}/share/rancid/cloginrc.sample ~/.cloginrc
56        sudo chmod 640 ~/.cloginrc
57
58See the README file in ${prefix}/share/rancid for more information.
59
60
61To use the optional looking glass service to run status check commands\
62(show ip route, show run, etc) against your devices from a web form,\
63perform these steps:
64
651) Copy the looking glass files and set permissions.
66
67   Use the lg.conf.sample looking glass configuration file as a start.
68        cd ${prefix}/etc/rancid
69        cp lg.conf.sample lg.conf
70
71   Make an /lg folder in your Apache document root and copy lg files
72        sudo mkdir -p <Apache-directory>/lg/log
73        cd <Apache-directory>/lg
74        sudo cp ${prefix}/share/rancid/index.html ./
75        sudo cp ${prefix}/share/rancid/lgnotes.html ./
76
77   Copy the .cgi's to the Apache document root
78        cd <Apache-directory>/lg
79        cp ${prefix}/libexec/rancid/lg.cgi      ./
80        cp ${prefix}/libexec/rancid/lgform.cgi  ./
81
82   Set the file permissions.  The rancid-user should also be the Apache user.
83        sudo chown -R <rancid-user>:<rancid-user> <Apache-docroot>/lg
84
85
862) To enable the cgi's in this directory to run, set this line in your httpd.conf:
87
88        <Directory /Library/WebServer/Documents/lg>
89                Options ExecCGI
90        </Directory>
91
92
933) Goto url http://localhost/lg with a web browser to use the looking glass.
94"
95
96livecheck.type      regex
97livecheck.url       [lindex ${master_sites} 0]
98livecheck.regex     ${name}-(\[0-9.\]+)\\.
Note: See TracBrowser for help on using the repository browser.