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

name                dirvish
version             1.2.1
revision            9
categories          sysutils
maintainers         nomaintainer
license             OSL-2
supported_archs     noarch

description         Client/server rsync- and hard-link-based snapshot backup system

long_description    {Dirvish is a "Time-Machine-alike" for UNIX- and UNIX-like machines (e.g., \
                    FreeBSD, Linux, Solaris, Mac OS X < 10.5) that allows for snapshot-style \
                    backups that preserve space by hard-linking to unchanged versions of files in \
                    a given backup tree.  Like Time Machine, it allows each snapshot to present a \
                    full tree, even for incremental backups. However, because only OS X has \
                    fseventsd, and because among backup sysems only Time Machine actually uses \
                    it, other client systems have to do a traditional tree walk to find changed \
                    files. \
                     \
                    Dirvish transmits changed files (or portions of changed files) via rsync to \
                    the backup server, which in turn maintains the backup repository as a set of \
                    hard-linked trees, with databases to track what has changed, as well as an \
                    optional locate index to provide fast searching in the backup tree.  There is \
                    no GUI; however, dirvish appears to be much more robust than other software \
                    of this type in its exclude processing. \
                     \
                    Using dirvish, your OS X Mac can become a snapshot backup server for your \
                    non-OS X (or your pre-Leopard OS X) UNIX- and UNIX-like machines.}

homepage            http://www.dirvish.org/
platforms           any
master_sites        ${homepage}

# 1.2.1 was stealth-updated 2012-01-07
dist_subdir         ${name}/${version}_1

checksums           rmd160  7af67f7e04142da885a9ce3c5596e9960f192c39 \
                    sha256  6b7f29c3541448db3d317607bda3eb9bac9fb3c51f970611ffe27e9d63507dcd \
                    size    48604

extract.suffix      .tgz

patchfiles          patch-Makefile.diff \
                    patch-default.conf.dist.diff \
                    patch-master.conf.dist.diff

perl5.branches      5.34

use_configure       no

build.type          bsd
build.args          PREFIX=${prefix} PERL=${perl5.bin}
destroot.args       PREFIX=${prefix} PERL=${perl5.bin}

depends_lib         port:perl${perl5.major} \
                    port:p${perl5.major}-timedate \
                    port:p${perl5.major}-time-parsedate \
                    port:p${perl5.major}-time-period \
                    path:bin/rsync:rsync

# The latest version is from 2005.
livecheck.type      none
