source: trunk/dports/net/rsync/Portfile

Last change on this file was 153651, checked in by raimue@…, 12 months ago

rsync: port abandoned, #52038

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# -*- 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
2# $Id: Portfile 153651 2016-10-06 18:56:31Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                rsync
7version             3.1.2
8revision            0
9categories          net
10license             GPL-3+
11installs_libs       no
12platforms           darwin freebsd sunos
13maintainers         nomaintainer
14description         Fast incremental file transfer
15long_description    rsync is an open source utility that provides fast \
16                    incremental file transfer. It works both locally and remote \
17                    with either the custom rsyncd protocol or a remote shell \
18                    like ssh.
19
20homepage            http://samba.org/rsync/
21master_sites        http://rsync.samba.org/ftp/rsync/ \
22                    http://rsync.samba.org/ftp/rsync/src/
23
24checksums           md5     0f758d7e000c0f7f7d3792610fad70cb \
25                    sha1    0d4c7fb7fe3fc80eeff922a7c1d81df11dbb8a1a \
26                    rmd160  f7d6c0c9752af8d9eb933cffc6032c1763490a04 \
27                    sha256  ecfa62a7fa3c4c18b9eccd8c16eaddee4bd308a76ea50b5c02a5840f09c0a1c2
28
29depends_lib         port:popt port:libiconv
30
31# these come from http://rsync.samba.org/ftp/rsync/rsync-patches-3.1.2.tar.gz
32# and need to be updated with each release
33patchfiles          patch-fileflags.diff \
34                    patch-crtimes.diff \
35                    patch-hfs-compression.diff \
36                    patch-hfs-compression-options.diff \
37                    patch-acls-unpack-error.diff
38patch.pre_args      -p1
39
40configure.args      --with-rsyncd-conf=${prefix}/etc/rsyncd.conf
41
42pre-configure {
43    system "cd ${worksrcpath}; ./prepare-source"
44}
45
46test.run           yes
47test.target        check
48
49post-destroot {
50    xinstall -d ${destroot}${prefix}/share/doc/${name}
51    xinstall -m 644 -W ${worksrcpath} \
52                    COPYING INSTALL NEWS OLDNEWS TODO README doc/README-SGML \
53                    doc/profile.txt doc/rsync.sgml \
54                    ${destroot}${prefix}/share/doc/${name}
55    xinstall -m 644 ${filespath}/rsyncd.conf.example \
56                    ${destroot}${prefix}/etc/rsyncd.conf.example
57    reinplace "s|__PREFIX__|${prefix}|g" \
58        ${destroot}${prefix}/etc/rsyncd.conf.example
59}
60
61livecheck.type      regex
62livecheck.regex     "Rsync version (\\d+(?:\\.\\d+)*) released"
63
64startupitem.create  yes
65startupitem.name    rsyncd
66startupitem.logfile ${prefix}/var/log/rsyncd.log
67startupitem.start   "${prefix}/bin/rsync --daemon --config=${prefix}/etc/rsyncd.conf"
68startupitem.stop    "kill `cat ${prefix}/var/run/rsyncd.pid`"
69startupitem.pidfile auto ${prefix}/var/run/rsyncd.pid
70
71notes "
72To use the rsyncd server you must copy\
73${prefix}/etc/rsyncd.conf.example to rsyncd.conf and add\
74your modules there. See 'man rsyncd.conf' for more\
75information.
76"
Note: See TracBrowser for help on using the repository browser.