# $Id: Portfile 59683 2009-10-19 20:05:06Z blb@macports.org $

PortSystem          1.0
name                nslint
version             2.1a9
categories          net
maintainers         nomaintainer
description         Lint program for dns files
long_description    ${description}

platforms           darwin sunos

homepage            http://ee.lbl.gov/
master_sites        ftp://ftp.ee.lbl.gov/ \
                    ftp://ftp.ee.lbl.gov/old/

checksums           md5     6676296e338882b1801afcbda699ebe2 \
                    sha1    4dd0df54f847dedc4b1641d57e3effb2d526ed71 \
                    rmd160  50d953c45b4f3dbf56f30d91fb35bf739cd2682a

post-extract {
   # Many files are read-only...
   system "chmod -R u+w ${worksrcpath}/"
   # Replace the symlinks which point to /usr/local with a real file
   foreach fileToReplace {config.guess config.sub install-sh} {
      delete ${worksrcpath}/${fileToReplace}
      copy ${filespath}/${fileToReplace} ${worksrcpath}
   }
}

patchfiles          patch-Makefile.in

build.target

destroot.target     install install-man

livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     > nslint-(.*)\\.tar\\.gz
