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

go.setup            github.com/orgrim/pg_back 2.3.1 v
go.offline_build    no
revision            0

description         Simple backup tool for PostgreSQL

long_description    \
    pg_back is a dump tool for PostgreSQL. The goal is to dump all or some \
    databases with globals at once in the format you want, because a simple \
    call to pg_dumpall only dumps databases in the plain SQL format. Behind \
    the scene, pg_back uses pg_dumpall to dump roles and tablespaces \
    definitions, pg_dump to dump all or each selected database to a separate \
    file in the custom format. It also extract database level ACL and \
    configuration that is not dumped by pg_dump older than 11. Finally, it \
    dumps all configuration options of the PostgreSQL instance.

categories          databases
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  92da3031604e9e7a84f8ab3dfe0af66885882e1e \
                    sha256  fd45943850694265a0b19119a5aa794d36f454aadb57f72ba28d13184c5b7a6c \
                    size    84598

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}