# $Id: Portfile,v 1.1 2004/01/17 00:35:04 toby Exp $

PortSystem 1.0

name             webredirect
version          0.3
categories       www
maintainers      toby@opendarwin.org
description      small webserver which redirects all requests
long_description \
    webredirect is a small web server serving 301 Moved Permanently or \
    302 Moved Temporarily to all requests.
homepage         http://www.stacken.kth.se/~kaj/hack/webredirect
platforms        darwin
master_sites     ftp://ftp.stacken.kth.se/pub/projects/webredirect/
checksums        md5 dd25c18d46935cbfb7ced046de5ace69
use_configure    no
patchfiles       patch-webredirect.cc

pre-build {
    system "touch ${worksrcpath}/depend.mk"
    system "touch ${worksrcpath}/incu/depend.mk"
}

destroot {
    xinstall -m 555 ${worksrcpath}/webredirect \
        ${destroot}${prefix}/bin
    xinstall -m 444 ${worksrcpath}/webredirect.1 \
        ${destroot}${prefix}/share/man/man1
}
