Ticket #6436: Portfile.2

File Portfile.2, 2.9 KB (added by cssdev, 17 years ago)

Renames the port to rsync-lart and adjusts the distfile directories

Line 
1# $Id: Portfile,v 1.23 2005/07/29 05:22:32 mww Exp $
2
3PortSystem 1.0
4
5name                    rsync-lart
6version                 2.6.6
7categories              net
8maintainers             css@macports.org
9description             rsync with LART extended attributes support patches
10platforms               darwin freebsd
11long_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
25homepage                http://www.lartmaker.nl/rsync/
26master_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/
31distname                rsync-${version}
32checksums               md5 30c4e2849cbeae93f55548453865c2f2
33platforms               darwin freebsd sunos
34
35depends_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/
39patchfiles              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
58configure.args          --mandir=${prefix}/share/man \
59                        --with-rsyncd-conf=${prefix}/etc/rsyncd.conf \
60                        --enable-ea-support
61configure.env           CPPFLAGS=-I${prefix}/include \
62                        LDFLAGS=-L${prefix}/lib
63
64build.type              gnu
65
66platform 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.
72platform 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
82post-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}