Ticket #4265: Portfile

File Portfile, 1.8 KB (added by dports@…, 19 years ago)

RANCID Portfile

Line 
1# $Id: Portfile,v 1.4 2004/12/03 19:41:51 jberry Exp $
2
3PortSystem      1.0
4
5name                            rancid
6version                         2.3.1
7
8categories                      net
9maintainers                     dports@mac.com
10platforms                       darwin
11
12description                     Really Awesome New Cisco confIg Differ
13
14long_description                Rancid maintains a CVS repository of router and \
15                                device config files.  It emails you when changes \
16                                occur and tells you what commands were changed.
17
18homepage                        http://www.shrubbery.net/rancid
19                                       
20master_sites                    ftp://ftp.shrubbery.net/pub/rancid/
21checksums                       md5 da9633e2f2f14a4ca127b67d01de3aa7
22
23checksums                       md5 b188595e528515b4f87078f63936d355
24
25destroot.destdir                prefix=${destroot}${prefix}
26depends_lib                     port:expect \
27                                port:openssl
28
29configure.args                  --prefix=${prefix} \
30                                --localstatedir=${prefix}/var/${name} \
31                                --bindir=${prefix}/libexec/${name} \
32                                --sysconfdir=${prefix}/etc/${name}
33
34pre-configure {
35                reinplace "s|@bindir@|${destroot}@bindir@|g" \
36        ${worksrcpath}/Makefile.in ${worksrcpath}/bin/Makefile.in
37
38                reinplace "s|@sysconfdir@|${destroot}@sysconfdir@|g" \
39        ${worksrcpath}/Makefile.in ${worksrcpath}/etc/Makefile.in
40
41                reinplace "s|@localstatedir@|${destroot}@localstatedir@|g" \
42        ${worksrcpath}/Makefile.in
43}
44
45post-destroot {
46                xinstall -d 755  ${destroot}${prefix}/bin
47                system "ln -s -f ${prefix}/libexec/${name}/rancid-cvs ${destroot}${prefix}/bin/rancid-cvs"
48                system "ln -s -f ${prefix}/libexec/${name}/rancid-run ${destroot}${prefix}/bin/rancid-run"       
49}
50
51post-activate {
52
53                ui_msg "\nCopy the sample .cloginrc file to the RANCID user's home directory,
54make sure it isn't world readable, and edit it according to your needs.
55
56cp ${prefix}/share/rancid/cloginrc.sample ~/.cloginrc
57sudo chmod 640 ~/.cloginrc
58
59See the README file in ${prefix}/share/rancid for instructions.\n"
60}