source: trunk/dports/sysutils/rsnapshot/Portfile

Last change on this file was 154102, checked in by mojca@…, 21 months ago

rsnapshot: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
RevLine 
[144331]1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
[20470]2# $Id: Portfile 154102 2016-10-20 03:20:57Z mojca@macports.org $
[6421]3
[144331]4PortSystem          1.0
5PortGroup           perl5 1.0
[6421]6
[86365]7name                rsnapshot
[144335]8version             1.4.1
[154102]9revision            1
10perl5.branches      5.24
[86365]11categories          sysutils net
12platforms           darwin
13maintainers         mww
14license             GPL-2
15description         filesystem snapshot utility based on rsync
16long_description    rsnapshot is a filesystem snapshot utility based on \
17                    rsync. It makes it easy to make periodic snapshots of \
18                    local machines, and remote machines over SSH. The code \
19                    makes extensive use of hard links whenever possible, \
20                    to greatly reduce the disk space required.
[6421]21
[86365]22homepage            http://www.rsnapshot.org/
23master_sites        ${homepage}/downloads/
[6421]24
[144335]25checksums           sha1    d9f6d3266fbfec706f6d3dcbbc415978297b5023 \
26                    rmd160  430289adc2680083e83810d1411b684622e074e5 \
27                    sha256  fb4a1129a7d3805c41749fd0494debfe2ca2341eba0f8b50e4f54985efe448e8
28
[144331]29depends_lib         port:p${perl5.major}-lchown \
30                    port:rsync \
31                    bin:ssh:openssh \
[6421]32
[86365]33configure.args      --mandir=${prefix}/share/man \
34                    --with-rsync=${prefix}/bin/rsync \
[144331]35                    --with-perl=${perl5.bin}
[6421]36
[86365]37test.run            yes
[39938]38
[86365]39post-destroot    {
40    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
[144335]41    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL.md \
42        README.md ${destroot}${prefix}/share/doc/${name}
[86365]43    system "cp -R ${worksrcpath}/utils/* \
44        ${destroot}${prefix}/share/doc/${name}/examples"
[6421]45}
[13015]46
47post-activate {
[86365]48    if {![file exists ${prefix}/etc/rsnapshot.conf]} {
49        xinstall -m 644 ${prefix}/etc/rsnapshot.conf.default \
50            ${prefix}/etc/rsnapshot.conf
51    }
[13015]52}
Note: See TracBrowser for help on using the repository browser.