# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

# $Id$

# This is just a metapackage that defines dependencies
# on the globus client tools that we wish to include

PortSystem              1.0

name                    globus-clients
version                 2.0
revision                1
platforms               darwin
categories              net
license                 Apache-2
maintainers             nikhef.nl:dennisvd
homepage                http://www.ige-project.eu/

description             Globus Toolkit - client collection
long_description        The Globus Toolkit is an open source software \
                        toolkit used for building Grid systems and \
                        applications. It is being developed by the \
                        Globus Alliance and many others all over the \
                        world. A growing number of projects and \
                        companies are using the Globus Toolkit to \
                        unlock the potential of grids for their \
                        cause. This package defines only the dependencies \
                        to include all the Globus client tools that \
                        are relevant to end users.

depends_run             port:globus-ftp-client \
                        port:globus-gass-copy \
                        port:globus-proxy-utils \
                        port:globus-gram-client-tools \
                        port:igtf-certificates \
                        port:fetch-crl \
                        port:gsi-openssh \
                        port:myproxy \
                        port:voms \
                        port:globus-gram-client-tools \
                        port:globus-proxy-utils

distfiles

livecheck.type          none

pre-configure {
    ui_msg "This is just a metapackage"
    return
}

configure {}

# Create at least one file in the package
build {
    system "mkdir ${worksrcpath}"
    system "echo 'This is the globus-client metapackage' > ${worksrcpath}/README"
}

destroot { 
    file mkdir ${destroot}${prefix}/share/doc/${name}
    xinstall ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}/
    # symlink GLOBUS_LOCATION/share/certificates to the igtf distribution
    # so tools automatically find the CAs
    ln -s ${prefix}/etc/grid-security/certificates ${destroot}${prefix}/share/
}
