# -*- 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

name            whatmask
version         1.2
revision        1
platforms       darwin
categories      net
license         GPL-2+
maintainers     nomaintainer

description     Easily convert between three common subnet mask notations
long_description \
    Notations supported:\n\
    \n\
    Name\t\t\tExample\n\
    ---------------------------------\n\
    CIDR\t\t\t/24\n\
    Netmask\t\t\t255.255.255.0\n\
    Wilcard Bits\t\t0.0.0.255\n\
    \n\
    The above notations are all identical. CIDR notation commonly has a "/" in \
    front of the number (representing the number of bits). Whatmask can accept \
    these notations with or without a slash.\n\
    \n\
    Netmask notation is pretty much the standard old-school way of doing it.\n\
    \n\
    Wilcard bits are similar to the netmask, but they are the logical not of the \
    netmask. This notation is used by a number of popular routers.

homepage        http://www.laffeycomputer.com/whatmask.html
master_sites    http://downloads.laffeycomputer.com/current_builds/whatmask/

checksums       md5     26aeff74dbba70262ccd426e681dcf4a \
                rmd160  5863edc9fe0e3f98b5ff03e79117e44080e58033 \
                sha256  7dca0389e22e90ec1b1c199a29838803a1ae9ab34c086a926379b79edb069d89 \
                size    170183

patchfiles      implicit.patch

configure.args  --mandir=${prefix}/share/man

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 755 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}
}
