# $Id: Portfile 48920 2009-03-31 11:28:38Z ryandesign@macports.org $

PortSystem 1.0

name               ftpsync
version            1.2.34
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-net port:p5-libwww-perl

use_bzip2          yes

configure {
    reinplace "s|/usr/bin/perl|${prefix}/bin/perl|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}
}

