# $Id: Portfile 58336 2009-09-26 21:21:09Z toby@macports.org $

PortSystem 1.0

name                sshfs
version             2.2
categories          fuse
platforms           darwin
maintainers         eridius
description         SSH filesystem for FUSE
long_description    This is a filesystem client based on the \
                    SSH File Transfer Protocol. Since most SSH \
                    servers already support this protocol it is \
                    very easy to set up: i.e. on the server side \
                    there's nothing to do.  On the client side \
                    mounting the filesystem is as easy as logging \
                    into the server with ssh.

homepage            http://fuse.sourceforge.net/sshfs.html

distname            sshfs-fuse-${version}
master_sites        sourceforge:fuse
checksums           ${distfiles} md5 26e9206eb5169e87e6f95f54bc005a4f \
                                 sha1 5c75cc747f97fd4fa031059346c25282027e5bc9

livecheck.distname  sshfs-fuse

depends_build       path:bin/pkg-config:pkgconfig
depends_lib         port:gettext \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:macfuse \
                    port:libiconv \
                    port:openssh

configure.cppflags-append     -DDARWIN_SEMAPHORE_COMPAT
configure.post_args-append --disable-dependency-tracking

platform darwin {
    patch_sites         http://macfuse.googlecode.com/svn/tags/macfuse-2.0/filesystems/sshfs
    patchfiles          sshfs-fuse-${version}-macosx.patch
    checksums-append    sshfs-fuse-${version}-macosx.patch md5 08330f4c10e25052b3a5c26d180e4752 \
                                                           sha1 24e6721c25fb883c945550ac62e20f4c35f4393e
    
    # override patch.pre_args since it defaults to -p0
    patch.pre_args -p1
}
