# -*- 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
PortGroup           github 1.0

github.setup        aolserver aolserver 650ff5697c8b423f7cc338fbca64ac7f1d891e99
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             4.5.1
revision            1
categories          www
maintainers         nomaintainer
description         America Online's open-source web server
long_description    AOLserver is America Online's open-source web server. AOLserver \
                    is the backbone of the largest and busiest production environments \
                    in the world. AOLserver is a multithreaded, Tcl-enabled web server \
                    used for large scale, dynamic web sites.
homepage            https://aolserver.github.io/
license             MPL-1.1-AOLserver

checksums           rmd160  add0c17e2dce666beb35846989cf59f585b92ba5 \
                    sha256  efdfd83425c0466d59e02be039f514a34e04c14f4bf2d7223041c0d2ad986734 \
                    size    732733

# Requires tcl +threads, see ticket #126
depends_lib-append  port:tcl

patchfiles-append   patch-tcl86.diff

configure.pre_args  --prefix=${prefix}/aolserver
configure.args-append \
                    --with-tcl=${prefix}/lib
configure.env-append \
                    TCLSH=${prefix}/bin/tclsh

build.args-append   CC="${configure.cc} [get_canonical_archflags cc]"

destroot.destdir    AOLSERVER=${destroot}${prefix}/aolserver
destroot.violate_mtree yes

notes "AOLserver installed into ${prefix}/aolserver

You now need to configure the server to your needs.
You might want to create another user (e.g. aolserver)
to run the server."
