Ticket #15562: Portfile

File Portfile, 1.5 KB (added by aecollins1@…, 16 years ago)

grc-1.1 Portfile

Line 
1PortSystem 1.0
2
3name            grc
4version         1.1
5categories      textproc
6maintainers     aecollins1@gmail.com
7description     Generic Colouriser for colourising logfiles and output of commands.
8
9long_description \
10    Generic Colouriser provides colourised output of logfiles \
11    and commands. It provides the grc and grcat Python scripts \
12    for filtering text output and colourising it.
13
14homepage        http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
15master_sites    http://kassiopeia.juls.savba.sk/~garabik/software/grc
16
17distname        ${name}_${version}
18worksrcdir      ${name}-${version}
19
20checksums       md5 eeb612aba2fff14cbaf1f3bec7e1eb60 \
21                sha1 0665f12ca873e51b6ef6c6890836620b9c68de5b \
22                rmd160 ffe77e6fcbffa24ee617badb891173c1dcf0a4a0
23
24use_configure   no
25build           {}
26
27post-destroot   {
28   
29    reinplace "s|/etc|${prefix}/etc|g" ${worksrcpath}/grc
30    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/grcat
31    xinstall -m 755 -W ${worksrcpath} \
32        grc grcat ${destroot}${prefix}/bin
33    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
34    xinstall -m 644 -W ${worksrcpath} \
35        conf.cvs conf.gcc conf.log conf.proftpd \
36        conf.diff conf.irclog conf.netstat conf.traceroute \
37        conf.esperanto conf.ldap conf.ping conf.wdiff ${destroot}${prefix}/share/${name}
38    xinstall -m 644 -W ${worksrcpath} \
39        grc.conf ${destroot}${prefix}/etc
40    xinstall -m 644 -W ${worksrcpath} \
41        grc.1 grcat.1 ${destroot}${prefix}/share/man/man1
42
43}