# -*- 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                rvm
version             1.11
categories          sysutils net
platforms           darwin
maintainers         nomaintainer
description         archive manager to manage backups of multiple clients
long_description    The Rsync Vault Manager is an archive manager that \
                    uses rsync to manage backups of multiple clients \
                    across multiple logical partitions (vaults).

homepage            http://rvm.sourceforge.net/
master_sites        sourceforge:project/rvm/rvm/${version}

checksums           rmd160  d05dddc4fb9b7299aa2da71eb01de6a4a5f66de3 \
                    sha256  7a0c126b9e6e01b406c5900d890ed901c7a7cb00bf40e419e4aa49e39bd2303e

distfiles           ${name}_${version}${extract.suffix}

depends_lib         path:bin/rsync:rsync

configure.args      --with-rsync=${prefix}/bin/rsync \
                    --with-default-config-file=${prefix}/etc/rvm.conf \
                    --with-default-log-dir=${prefix}/var/log/rvm

# avoid ridiculous conftest that uses up all memory to see if it gets an error when it runs out of memory
configure.args-append \
                    ac_cv_cxx_exception_on_failed_alloc=yes

test.run            yes
test.target         check

destroot.keepdirs   ${destroot}${prefix}/var/log/rvm
