# -*- 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        okoeroo ssss 1.0.1
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            3
categories          security
platforms           darwin
maintainers         nikhef.nl:okoeroo
license             Apache-2

description         Shamir's Secret Sharing Service

long_description    Shamir's Secret Sharing is an algorithm in cryptography. It is a form of secret sharing, where a \
                    secret is divided into parts, giving each participant its own unique part, where some of the parts \
                    or all of them are needed in order to reconstruct the secret. \
                    Counting on all participants to combine together the secret might be impractical, and therefore \
                    sometimes the threshold scheme is used where any k of the parts are sufficient to reconstruct the \
                    original secret.

checksums           rmd160 52db3ea26b68202e17057f30934c83dcf666ed0d \
                    sha256 d936cd1bd36ca0d5fe0f0e9401d5f3d1f2ea458bd218b6245c7b80de10661a53

depends_build       port:autoconf \
                    port:automake \
                    port:libtool

depends_lib         path:lib/libssl.dylib:openssl

post-extract {
    file mkdir ${worksrcpath}/project
}

pre-configure {
    system -W ${worksrcpath} "./bootstrap"
}

test.run            yes
test.target         check