# -*- 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                libgfshare
version             2.0.0
categories          security
maintainers         bialkiewicz.fr:joel-alexis
license             MIT

description         utilities for multi-way secret sharing

long_description    libgfshare is an implementation of the Shamir′s \
                    secret sharing algorithm. It allows to break \
                    a password or a secret key into several components, \
                    a predefined number of which is necessary \
                    to reconstruct it.

homepage            http://www.digital-scurf.org/software/libgfshare
master_sites        http://www.digital-scurf.org/files/libgfshare/
use_bzip2           yes

checksums           rmd160  634a2c30e3d34e20cf89732818a901b5960fc3cb \
                    sha256  86f602860133c828356b7cf7b8c319ba9b27adf70a624fe32275ba1ed268331f \
                    size    269254

configure.args      --disable-linker-optimisations

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYRIGHT \
        README \
        ${destroot}${docdir}
}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}