Ticket #18809: Portfile.diff

File Portfile.diff, 1.4 KB (added by usx303@…, 16 years ago)

Portfile diff

  • Portfile

     
    55
    66name            argus-clients
    77version         3.0.0
     8revision        1
    89categories      net
    910maintainers     googlemail.com:usx303 \
    1011                openmaintainer
     
    1617    comprehensive IP network traffic auditing.
    1718
    1819platforms       darwin
    19 depends_lib     path:bin/perl:perl5
     20depends_lib     path:bin/perl:perl5\
     21                port:rrdtool
    2022
    2123master_sites    ftp://qosient.com/pub/argus/src/
    2224checksums       md5 69220c898c0a3ad612292eaecdec70d2\
    2325                sha1 d3055bed8050cc7e13f30c60ec17683e58d4e13c\
    2426                rmd160 eda4bcaec5ec53528feb2336e311abe719b7b438
    2527
    26 default_variants +graph
    2728
    28 variant graph description {Build ragraph (depends on rrdtool)} {
    29     depends_lib-append port:rrdtool
     29variant no_ragraph description {Build without ragraph (no dependencies on rrdtool)} {
     30    depends_lib-delete port:rrdtool
    3031}
    3132
    3233post-destroot   {
    3334    move "${destroot}${prefix}/argus" "${destroot}${prefix}/share/argus"
    3435    delete "${destroot}${prefix}/bin/argusbug"
    35     if {[variant_isset graph]} {
     36    if {[variant_isset no_ragraph]} {
     37        delete "${destroot}${prefix}/bin/ragraph"
     38    } else {
    3639        reinplace "s|#! /usr/bin/perl|#! ${prefix}/bin/perl|" ${destroot}${prefix}/bin/ragraph
    37     } else {
    38         delete "${destroot}${prefix}/bin/ragraph"
    3940    }
    4041}