# -*- 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             webredirect
version          0.3
revision         1
categories       www
license          Permissive
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         https://rasmus.krats.se/2001/webredirect.en
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 755 ${worksrcpath}/webredirect \
        ${destroot}${prefix}/bin
    xinstall -m 444 ${worksrcpath}/webredirect.1 \
        ${destroot}${prefix}/share/man/man1
}
