1 | # $Id: Portfile,v 1.4 2004/12/03 19:41:51 jberry Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name rancid |
---|
6 | version 2.3.1 |
---|
7 | |
---|
8 | categories net |
---|
9 | maintainers dports@mac.com |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description Really Awesome New Cisco confIg Differ |
---|
13 | |
---|
14 | long_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 | |
---|
18 | homepage http://www.shrubbery.net/rancid |
---|
19 | |
---|
20 | master_sites ftp://ftp.shrubbery.net/pub/rancid/ |
---|
21 | checksums md5 da9633e2f2f14a4ca127b67d01de3aa7 |
---|
22 | |
---|
23 | checksums md5 b188595e528515b4f87078f63936d355 |
---|
24 | |
---|
25 | destroot.destdir prefix=${destroot}${prefix} |
---|
26 | depends_lib port:expect \ |
---|
27 | port:openssl |
---|
28 | |
---|
29 | configure.args --prefix=${prefix} \ |
---|
30 | --localstatedir=${prefix}/var/${name} \ |
---|
31 | --bindir=${prefix}/libexec/${name} \ |
---|
32 | --sysconfdir=${prefix}/etc/${name} |
---|
33 | |
---|
34 | pre-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 | |
---|
45 | post-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 | |
---|
51 | post-activate { |
---|
52 | |
---|
53 | ui_msg "\nCopy the sample .cloginrc file to the RANCID user's home directory, |
---|
54 | make sure it isn't world readable, and edit it according to your needs. |
---|
55 | |
---|
56 | cp ${prefix}/share/rancid/cloginrc.sample ~/.cloginrc |
---|
57 | sudo chmod 640 ~/.cloginrc |
---|
58 | |
---|
59 | See the README file in ${prefix}/share/rancid for instructions.\n" |
---|
60 | } |
---|