# -*- 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            pgul binkd 1_0_4 binkd-
github.tarball_from     archive
version                 [string map {_ .} ${github.version}]
revision                0
categories              net
license                 GPL-2.0+
maintainers             {iname.com:bk532} openmaintainer

description             FidoNET mailer
long_description        ${name} is a {*}${description} designed to operate via TCP/IP networks

checksums               rmd160  2c87db3280c7c1bf5962d662956cc5a007f0cc31 \
                        sha256  67cc5c254198005e6d7c5c98b1d161ad146615874df4839daa86735aa5e3fa1d \
                        size    515322

depends_lib-append      port:bzip2 \
                        port:zlib

patchfiles              implicit.patch

configure.args-append   --mandir=${prefix}/share/man

pre-configure {
    reinplace "s|/var/|${prefix}/var/|" ${worksrcpath}/${name}.conf
    foreach configure_file [glob ${worksrcpath}/mkfls/unix/*] {
        file copy ${configure_file} ${worksrcpath}
    }
}
