# $Id: Portfile 30257 2007-10-23 02:28:30Z jmpp@macports.org $

PortSystem 1.0

name             webredirect
version          0.3
categories       www
maintainers      nomaintainer
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
}
