# $Id: Portfile 82553 2011-08-15 19:22:39Z jmr@macports.org $

PortSystem 1.0

name               ftpsync
version            1.2.34
revision           1
categories         net
platforms          darwin
maintainers        mww
description        Synchronizes a local and a remote ftp directory tree

long_description   ${description}
homepage           http://ossw.ibcl.at/FTPSync/
master_sites       http://ossw.ibcl.at/FTPSync/ \
                   http://ftpsync.sourceforge.net/

checksums          sha1 2cfae6b0b27d1c4cdd4669bb558f7fe6601e5024

depends_run        port:p5.12-net port:p5.12-libwww-perl

use_bzip2          yes

configure {
    reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.12|1" ${worksrcpath}/ftpsync.pl
}

build              {}

destroot {
    xinstall -m 755 ${worksrcpath}/ftpsync.pl ${destroot}${prefix}/bin
    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0444 -W ${worksrcpath} COPYING Changes README TODO \
        ${destroot}${prefix}/share/doc/${name}
}

