# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           makefile 1.0

name                grepcidr
version             2.0
revision            2

categories          sysutils net
platforms           darwin
maintainers         nomaintainer
license             GPL-2+

description         Filter IPv4 and IPv6 addresses matching CIDR patterns
long_description    ${name} can be used to filter a list of IP addresses against\
                    one or more Classless Inter-Domain Routing (CIDR)\
                    specifications. As with grep, there are options to invert\
                    matching and load patterns from a file. ${name} is capable\
                    of efficiently processing large numbers of IPs and networks.

homepage            http://www.pc-tools.net/unix/grepcidr/
master_sites        http://www.pc-tools.net/files/unix/

checksums           rmd160  e4d7e90ab82506b2e46ba203f2c2d11d13c10f0f \
                    sha256  61886a377dabf98797145c31f6ba95e6837b6786e70c932324b7d6176d50f7fb \
                    size    16557

post-extract {
    # Fix permissions
    fs-traverse item ${worksrcpath} {
        if {[file isdirectory ${item}]} {
            file attributes ${item} -permissions a+rx
        } elseif {[file isfile ${item}]} {
            file attributes ${item} -permissions a+r
        }
    }
}

patchfiles          patch-ldflags.diff

makefile.override   PREFIX CFLAGS LDFLAGS

notes "
For usage and examples, please refer to the manual:
    \$ man ${name}
"
