Files

85 lines
3.1 KiB
Tcl
Raw Permalink Normal View History

2019-03-18 12:26:01 +04:00
# -*- 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 python 1.0
name barman
2026-06-06 15:39:11 +04:00
version 3.19.1
2026-01-09 18:10:53 +04:00
revision 0
2019-03-18 12:26:01 +04:00
categories databases
2024-04-26 16:35:04 +04:00
platforms {darwin any}
supported_archs noarch
2025-05-25 12:16:06 +04:00
license GPL-3+
2024-05-05 16:09:51 +04:00
maintainers {makr @mohd-akram} openmaintainer
2019-03-18 12:26:01 +04:00
description Backup and Recovery Manager for PostgreSQL
long_description Barman (Backup and Recovery Manager) is an open-source \
administration tool for disaster recovery of PostgreSQL \
servers written in Python. It allows your organisation to \
perform remote backups of multiple servers in business \
critical environments to reduce risk and help DBAs during \
the recovery phase.
homepage https://www.pgbarman.org
2026-06-06 15:39:11 +04:00
checksums rmd160 f24698ec01352f9b92ecce7e7e215a6664766d04 \
sha256 2f71c4a1f1ba53f694cbdf838bb9906d8ba02b97d1fd3041196e8999bec7a1ee \
size 539392
2019-03-18 12:26:01 +04:00
2026-01-04 19:51:46 +04:00
python.default_version 314
2019-03-18 12:26:01 +04:00
2024-01-04 00:06:04 +04:00
# setuptools for distutils
# https://github.com/EnterpriseDB/barman/issues/750
2019-03-18 12:26:01 +04:00
depends_lib-append port:py${python.version}-argcomplete \
port:py${python.version}-dateutil \
2024-01-04 00:06:04 +04:00
port:py${python.version}-psycopg2 \
port:py${python.version}-setuptools
2019-03-18 12:26:01 +04:00
set conf_dir ${prefix}/etc/barman.d
set home_dir ${prefix}/var/lib/${name}
set log_dir ${prefix}/var/log/${name}
add_users ${name} group=${name} home=${home_dir} \
realname=Backup\ and\ Recovery\ Manager\ for\ PostgreSQL \
shell=/bin/sh
2023-02-08 19:20:37 +04:00
post-patch {
2019-03-18 12:26:01 +04:00
reinplace "s|/etc/|${prefix}/etc/|g" \
${worksrcpath}/barman/config.py \
2024-12-20 21:07:20 +04:00
${worksrcpath}/docs/barman.conf \
2026-06-06 15:39:11 +04:00
${worksrcpath}/docs/_build/man/barman.1 \
2024-12-20 21:07:20 +04:00
${worksrcpath}/docs/_build/man/barman.5
2019-03-18 12:26:01 +04:00
reinplace "s|/var/|${prefix}/var/|g" \
2024-12-20 21:07:20 +04:00
${worksrcpath}/docs/barman.conf \
${worksrcpath}/docs/_build/man/barman.5
2019-03-18 12:26:01 +04:00
}
destroot.keepdirs ${destroot}${conf_dir} \
${destroot}${home_dir} \
${destroot}${log_dir}
post-destroot {
2023-10-05 16:29:56 +04:00
xinstall -d ${destroot}${prefix}/share/doc/${name}
2024-12-20 21:07:20 +04:00
copy ${worksrcpath}/docs/barman.conf ${destroot}${prefix}/share/doc/${name}
2023-10-05 16:29:56 +04:00
2025-05-25 12:16:06 +04:00
foreach p [glob ${destroot}${python.prefix}/share/man/man1/*] {
2022-04-17 12:44:01 +04:00
ln -s [string range $p [string length ${destroot}] end] \
${destroot}${prefix}/share/man/man1/
}
foreach p [glob ${destroot}${python.prefix}/share/man/man5/*] {
ln -s [string range $p [string length ${destroot}] end] \
${destroot}${prefix}/share/man/man5/
}
2019-03-18 12:26:01 +04:00
xinstall -d ${destroot}${conf_dir}
xinstall -o ${name} -g ${name} -d ${destroot}${home_dir}
xinstall -o ${name} -g ${name} -d ${destroot}${log_dir}
}
2023-10-05 16:29:56 +04:00
post-activate {
if {![file exists ${prefix}/etc/barman.conf]} {
copy ${prefix}/share/doc/${name}/barman.conf ${prefix}/etc/
}
}