source: trunk/dports/net/rsync/Portfile @ 96189

Last change on this file since 96189 was 96189, checked in by ryandesign@…, 8 years ago

rsync: update to 3.0.9; new maintainer jimjag (#35498)

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