source: trunk/dports/sysutils/rsnapshot/Portfile

Last change on this file was 154102, checked in by mojca@…, 9 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
Line 
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
2# $Id: Portfile 154102 2016-10-20 03:20:57Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                rsnapshot
8version             1.4.1
9revision            1
10perl5.branches      5.24
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.
21
22homepage            http://www.rsnapshot.org/
23master_sites        ${homepage}/downloads/
24
25checksums           sha1    d9f6d3266fbfec706f6d3dcbbc415978297b5023 \
26                    rmd160  430289adc2680083e83810d1411b684622e074e5 \
27                    sha256  fb4a1129a7d3805c41749fd0494debfe2ca2341eba0f8b50e4f54985efe448e8
28
29depends_lib         port:p${perl5.major}-lchown \
30                    port:rsync \
31                    bin:ssh:openssh \
32
33configure.args      --mandir=${prefix}/share/man \
34                    --with-rsync=${prefix}/bin/rsync \
35                    --with-perl=${perl5.bin}
36
37test.run            yes
38
39post-destroot    {
40    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
41    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL.md \
42        README.md ${destroot}${prefix}/share/doc/${name}
43    system "cp -R ${worksrcpath}/utils/* \
44        ${destroot}${prefix}/share/doc/${name}/examples"
45}
46
47post-activate {
48    if {![file exists ${prefix}/etc/rsnapshot.conf]} {
49        xinstall -m 644 ${prefix}/etc/rsnapshot.conf.default \
50            ${prefix}/etc/rsnapshot.conf
51    }
52}
Note: See TracBrowser for help on using the repository browser.