# $Id$

PortSystem          1.0

name                nslint
version             2.1a9
categories          net
license             BSD
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

depends_build       port:automake

post-extract {
   # Many files are read-only...
   system "chmod -R u+w ${worksrcpath}/"
}

patchfiles          patch-Makefile.in

pre-configure {
   # Replace the symlinks which point to /usr/local with a real file
   foreach fileToReplace {config.guess config.sub install-sh} {
      delete ${worksrcpath}/${fileToReplace}
      copy [glob ${prefix}/share/automake-*/${fileToReplace}] ${worksrcpath}
   }
}

build.target

destroot.target     install install-man

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