You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
85 lines
3.1 KiB
Tcl
85 lines
3.1 KiB
Tcl
# -*- 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
|
|
version 3.19.1
|
|
revision 0
|
|
categories databases
|
|
platforms {darwin any}
|
|
supported_archs noarch
|
|
license GPL-3+
|
|
maintainers {makr @mohd-akram} openmaintainer
|
|
|
|
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
|
|
|
|
checksums rmd160 f24698ec01352f9b92ecce7e7e215a6664766d04 \
|
|
sha256 2f71c4a1f1ba53f694cbdf838bb9906d8ba02b97d1fd3041196e8999bec7a1ee \
|
|
size 539392
|
|
|
|
python.default_version 314
|
|
|
|
# setuptools for distutils
|
|
# https://github.com/EnterpriseDB/barman/issues/750
|
|
depends_lib-append port:py${python.version}-argcomplete \
|
|
port:py${python.version}-dateutil \
|
|
port:py${python.version}-psycopg2 \
|
|
port:py${python.version}-setuptools
|
|
|
|
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
|
|
|
|
post-patch {
|
|
reinplace "s|/etc/|${prefix}/etc/|g" \
|
|
${worksrcpath}/barman/config.py \
|
|
${worksrcpath}/docs/barman.conf \
|
|
${worksrcpath}/docs/_build/man/barman.1 \
|
|
${worksrcpath}/docs/_build/man/barman.5
|
|
reinplace "s|/var/|${prefix}/var/|g" \
|
|
${worksrcpath}/docs/barman.conf \
|
|
${worksrcpath}/docs/_build/man/barman.5
|
|
}
|
|
|
|
destroot.keepdirs ${destroot}${conf_dir} \
|
|
${destroot}${home_dir} \
|
|
${destroot}${log_dir}
|
|
|
|
post-destroot {
|
|
xinstall -d ${destroot}${prefix}/share/doc/${name}
|
|
copy ${worksrcpath}/docs/barman.conf ${destroot}${prefix}/share/doc/${name}
|
|
|
|
foreach p [glob ${destroot}${python.prefix}/share/man/man1/*] {
|
|
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/
|
|
}
|
|
|
|
xinstall -d ${destroot}${conf_dir}
|
|
xinstall -o ${name} -g ${name} -d ${destroot}${home_dir}
|
|
xinstall -o ${name} -g ${name} -d ${destroot}${log_dir}
|
|
}
|
|
|
|
post-activate {
|
|
if {![file exists ${prefix}/etc/barman.conf]} {
|
|
copy ${prefix}/share/doc/${name}/barman.conf ${prefix}/etc/
|
|
}
|
|
}
|