# -*- 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           makefile    1.0

name                openradius
version             0.9.12c
revision            0

homepage            http://sites.e-advies.nl/openradius

description         RADIUS server with various back ends
long_description    {*}${description}

categories          net
installs_libs       no
license             GPL-2
maintainers         nomaintainer

master_sites        ${homepage}/download/

checksums           rmd160  ed0bc106d98beef1082cade5ad9d2a1b4192e178 \
                    sha256  faf55f3ede8d842a73014656c2d9e6d2516baca453709a7d5c5d13bbeaf79cc6 \
                    size    254179

patchfiles          patch-Makefile.macosx.diff \
                    patch-radldap.module.diff

post-patch {
  reinplace -E "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Makefile.macosx
}

build.args-append       -f Makefile.macosx
destroot.args-append    -f Makefile.macosx
