1 | # $Id: Portfile,v 1.23 2005/07/29 05:22:32 mww Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name rsync-lart |
---|
6 | version 2.6.6 |
---|
7 | categories net |
---|
8 | maintainers css@macports.org |
---|
9 | description rsync with LART extended attributes support patches |
---|
10 | platforms darwin freebsd |
---|
11 | long_description rsync is a file transfer program for Unix systems. \ |
---|
12 | rsync uses the 'rsync algorithm' which provides a very fast \ |
---|
13 | method for bringing remote files into sync. It does this by \ |
---|
14 | sending just the differences in the files across the link, \ |
---|
15 | without requiring that both sets of files are present at one \ |
---|
16 | of the ends of the link beforehand. NOTE This version of \ |
---|
17 | rsync adds extended attribute support from Apple as well as \ |
---|
18 | third party fixes from http://www.lartmaker.nl/rsync/ |
---|
19 | |
---|
20 | # Related pages: |
---|
21 | # http://www.lartmaker.nl/rsync/ |
---|
22 | # http://www.opensource.apple.com/darwinsource/10.4.3/rsync-20/ |
---|
23 | # http://www.opensource.apple.com/darwinsource/10.4.3/rsync-20/patches/ |
---|
24 | |
---|
25 | homepage http://www.lartmaker.nl/rsync/ |
---|
26 | master_sites http://samba.org/ftp/rsync/old-versions/ \ |
---|
27 | ftp://samba.anu.edu.au/pub/rsync/old-versions/ \ |
---|
28 | ftp://sunsite.auc.dk/pub/unix/rsync/old-versions/ \ |
---|
29 | ftp://ftp.sunet.se/pub/unix/admin/rsync/old-versions/ \ |
---|
30 | ftp://ftp.fu-berlin.de/pub/unix/network/rsync/old-versions/ |
---|
31 | distname rsync-${version} |
---|
32 | checksums md5 30c4e2849cbeae93f55548453865c2f2 |
---|
33 | platforms darwin freebsd sunos |
---|
34 | |
---|
35 | depends_lib port:popt |
---|
36 | |
---|
37 | # These patches include Apple's EA and PR-3945747-endian patches as well |
---|
38 | # as Tiger rsync fixes from http://www.lartmaker.nl/rsync/ |
---|
39 | patchfiles patch-config.h.in.diff \ |
---|
40 | patch-configure.diff \ |
---|
41 | patch-configure.in.diff \ |
---|
42 | patch-flist.c.diff \ |
---|
43 | patch-generator.c.diff \ |
---|
44 | patch-main.c.diff \ |
---|
45 | patch-options.c.diff \ |
---|
46 | patch-proto.h.diff \ |
---|
47 | patch-receiver.c.diff \ |
---|
48 | patch-rsync.1.diff \ |
---|
49 | patch-rsync.c.diff \ |
---|
50 | patch-rsync.h.diff \ |
---|
51 | patch-rsync.yo.diff \ |
---|
52 | patch-sender.c.diff \ |
---|
53 | patch-syscall.c.diff \ |
---|
54 | patch-t_unsafe.c.diff \ |
---|
55 | patch-tls.c.diff \ |
---|
56 | patch-trimslash.c.diff |
---|
57 | |
---|
58 | configure.args --mandir=${prefix}/share/man \ |
---|
59 | --with-rsyncd-conf=${prefix}/etc/rsyncd.conf \ |
---|
60 | --enable-ea-support |
---|
61 | configure.env CPPFLAGS=-I${prefix}/include \ |
---|
62 | LDFLAGS=-L${prefix}/lib |
---|
63 | |
---|
64 | build.type gnu |
---|
65 | |
---|
66 | platform darwin 6 { |
---|
67 | patchfiles-append patch-darwin6-configure.diff |
---|
68 | } |
---|
69 | |
---|
70 | # Activate Apple's copyfile.h header by copying it into the |
---|
71 | # worksrcpath, then modify the configure command to locate it. |
---|
72 | platform darwin 8 { |
---|
73 | # Copy Apple's copyfile.h for use on Mac OS X 10.4 and higher. |
---|
74 | # See APPLE_LICENSE.txt for license and copying information. |
---|
75 | post-patch { |
---|
76 | file copy ${portpath}/${filesdir}/copyfile.h ${worksrcpath} |
---|
77 | } |
---|
78 | configure.env-delete "CPPFLAGS=-I${prefix}/include" |
---|
79 | configure.env-append "CPPFLAGS='-I${prefix}/include -I${worksrcpath}'" |
---|
80 | } |
---|
81 | |
---|
82 | post-destroot { |
---|
83 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
84 | xinstall -m 644 -W ${worksrcpath} COPYING INSTALL NEWS OLDNEWS TODO \ |
---|
85 | README doc/README-SGML doc/profile.txt doc/rsync.sgml \ |
---|
86 | ${destroot}${prefix}/share/doc/${name} |
---|
87 | } |
---|