debian/0000755000000000000000000000000012247014553007171 5ustar debian/gfal2-plugin-lfc.install0000644000000000000000000000011112024652052013576 0ustar usr/lib/gfal2-plugins/libgfal_plugin_lfc.so* etc/gfal2.d/lfc_plugin.conf debian/gfal2-plugin-dcap.docs0000644000000000000000000000004312024663572013240 0ustar src/common/dcap/README_PLUGIN_DCAP debian/libgfal2.docs0000644000000000000000000000002512203635614011521 0ustar README RELEASE-NOTES debian/gfal2-plugin-rfio.install0000644000000000000000000000011312024651650013776 0ustar usr/lib/gfal2-plugins/libgfal_plugin_rfio.so* etc/gfal2.d/rfio_plugin.conf debian/gfal2-plugin-http.docs0000644000000000000000000000004312203617004013274 0ustar src/common/http/README_PLUGIN_HTTP debian/gfal2-dev.install0000644000000000000000000000012712024367202012323 0ustar usr/include/* usr/lib/lib*.a usr/lib/lib*.so usr/lib/pkgconfig/* usr/share/pkgconfig/* debian/libgfal-transfer2.docs0000644000000000000000000000003512024663572013351 0ustar src/transfer/README_TRANSFER debian/control0000644000000000000000000001002412247010604010562 0ustar Source: gfal2 Priority: optional Maintainer: Mattias Ellert Build-Depends: debhelper (>= 8.0.0), cmake, doxygen, libglib2.0-dev, libglibmm-2.4-dev, libattr1-dev, libldap2-dev, uuid-dev, liblfc-dev, libdpm-dev, srm-ifce-dev (>= 1.16.0), dcap-dev, libglobus-gass-copy-dev, davix-dev (>= 0.2.7), libgridsite-dev, gsoap, pkg-config, libgtest-dev Standards-Version: 3.9.5 Section: net Homepage: https://svnweb.cern.ch/trac/lcgutil/wiki/gfal2 Package: gfal2 Architecture: any Depends: libgfal2-2 (= ${binary:Version}), libgfal-transfer2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Recommends: gfal2-plugin-lfc (= ${binary:Version}), gfal2-plugin-rfio (= ${binary:Version}), gfal2-plugin-dcap (= ${binary:Version}), gfal2-plugin-srm (= ${binary:Version}), gfal2-plugin-gridftp (= ${binary:Version}), gfal2-plugin-http (= ${binary:Version}) Description: Grid file access library 2.0 GFAL 2.0 offers an a single and simple POSIX-like API for the file operations in grids and cloud environments. The set of supported protocols depends on the gfal2 installed plugins. Package: libgfal2-2 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Core of the Grid File access Library 2.0 The main library of gfal2. The gfal protocol support relies on a plugin system. Package: libgfal-transfer2 Section: libs Architecture: any Depends: libgfal2-2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: File Transfer logic of gfal2 gfal-transfer is the high level API for file transfer operations in gfal2. It supports third-party copy. Package: libgfal2-dev Section: libdevel Architecture: any Depends: libgfal2-2 (= ${binary:Version}), libgfal-transfer2 (= ${binary:Version}), libglib2.0-dev, libattr1-dev, ${misc:Depends} Description: Development files of gfal2 Development files for gfal2 Package: gfal2-doc Section: doc Architecture: all Depends: ${misc:Depends} Description: Documentation for gfal2 Documentation, doxygen and examples of gfal2. Package: gfal2-plugin-lfc Architecture: any Depends: libgfal2-2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Provide the lfc access for gfal2 Provide the lfc support (LFN://) for gfal2. The LFC plugin allows read-only POSIX operations for the LFC catalog. Package: gfal2-plugin-rfio Architecture: any Depends: libgfal2-2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Provide the rfio access for gfal2 Provide the rfio support (RFIO://) for gfal2. The rfio plugin provides the POSIX operations for the rfio URLs, the rfio protocol is used on the DPM and on the Castor storage systems. Package: gfal2-plugin-dcap Architecture: any Depends: libgfal2-2 (= ${binary:Version}), dcap-tunnel-gsi, ${shlibs:Depends}, ${misc:Depends} Description: Provide the dcap access for gfal2 Provide the dcap support (GSIDCAP://, DCAP://) for gfal2. The dcap plugin provides the POSIX operations for the dcap URLs, the dcap protocol is used on the DCACHE storage system Package: gfal2-plugin-srm Architecture: any Depends: libgfal2-2 (= ${binary:Version}), libgfal-srm-ifce1 (>= 1.16.0), ${shlibs:Depends}, ${misc:Depends} Description: Provide the srm access for gfal2 Provide the srm support (SRM://) for gfal2. The srm plugin provides the POSIX operations and the third party transfer support on the SRM URLs. Package: gfal2-plugin-gridftp Architecture: any Depends: libgfal2-2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Provide the gridftp access for gfal2 Provide the gridftp support (GSIFTP://) for gfal2. The gridftp plugin provides the POSIX operations and the third party transfer support on the GSIFTP URLs. Package: gfal2-plugin-http Architecture: any Depends: libgfal2-2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Provide the http access for gfal2 Provide the HTTP and WebDAV support for gfal2. The http plugin provides the POSIX operations and the third party transfer support on the HTTP URLs. This plugin is able to do third-party copy with WebDAV. debian/rules0000755000000000000000000000153512204614136010251 0ustar #!/usr/bin/make -f # -*- makefile -*- -include /usr/share/dpkg/buildflags.mk CFLAGS += $(CPPFLAGS) CXXFLAGS += $(CPPFLAGS) export CFLAGS CXXFLAGS LDFLAGS %: dh $@ override_dh_auto_configure: ln -fs /usr/src/gtest test/gtest dh_auto_configure -- -DLIB_SUFFIX="" -DUNIT_TESTS=TRUE override_dh_auto_build: dh_auto_build -- all doc override_dh_install: mkdir -p debian/gfal2-doc/usr/share/doc/gfal2-doc mv debian/tmp/usr/share/doc/gfal2/examples \ debian/tmp/usr/share/doc/gfal2/html \ debian/gfal2-doc/usr/share/doc/gfal2-doc rm -rf debian/tmp/usr/share/doc dh_install --fail-missing override_dh_auto_clean: rm -f test/gtest dh_auto_clean override_dh_auto_test: objdir=`ls -d obj-*` ; \ export GFAL_PLUGIN_DIR=$(CURDIR)/$${objdir}/plugins ; \ export GFAL_CONFIG_DIR=$(CURDIR)/$${objdir}/test/conf_test ; \ dh_auto_test -- "ARGS+=-V" debian/libgfal-transfer2.install0000644000000000000000000000003612024651316014061 0ustar usr/lib/libgfal_transfer.so.* debian/copyright0000644000000000000000000000255012204613152011117 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: gfal2 Source: http://grid-deployment.web.cern.ch/grid-deployment/dms/lcgutil/tar/gfal2/gfal2-2.3.0.tar.gz Comment: The following files were removed from the upstream sources - test/gtest-1.6.0 (bundled - use libgtest-dev instead) - testing/ManExample1 (binary file without sources) - testing/build/ManExample1 (same file again) Files: * Copyright: Copyright (c) Members of the EGEE Collaboration. 2004-2013. See http://www.eu-egee.org/partners/ for details on the copyright holders. License: Apache-2.0 Files: debian/* Copyright: 2012-2013, Mattias Ellert License: Apache-2.0 License: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. . On Debian systems the full text of the Apache-2.0 license can be found in the /usr/share/common-licenses/Apache-2.0 file. debian/gfal2-plugin-srm.docs0000644000000000000000000000004112024663572013130 0ustar src/common/srm/README_PLUGIN_SRM debian/gfal2.install0000644000000000000000000000007112024651235011547 0ustar usr/bin/gfal2_version usr/share/man/man1/gfal2_version.1 debian/gfal2-plugin-rfio.docs0000644000000000000000000000004312024663572013270 0ustar src/common/rfio/README_PLUGIN_RFIO debian/gfal2-plugin-lfc.docs0000644000000000000000000000004112024663572013073 0ustar src/common/lfc/README_PLUGIN_LFC debian/libgfal2-2.install0000644000000000000000000000016612024664502012403 0ustar usr/lib/libgfal2.so.* usr/lib/gfal2-plugins/libgfal_plugin_file.so* etc/gfal2.d/bdii.conf etc/gfal2.d/gfal2_core.conf debian/compat0000644000000000000000000000000212024367202010362 0ustar 8 debian/gfal2.docs0000644000000000000000000000001412203635613011027 0ustar DESCRIPTION debian/libgfal2-dev.install0000644000000000000000000000025612024656372013026 0ustar usr/include/gfal2 usr/include/gfal2/*.h usr/include/gfal2/*/*.h usr/lib/pkgconfig/gfal2.pc usr/lib/pkgconfig/gfal_transfer.pc usr/lib/libgfal2.so usr/lib/libgfal_transfer.so debian/libgfal2-2.docs0000644000000000000000000000004312024663572011665 0ustar src/common/file/README_PLUGIN_FILE debian/patches/0000755000000000000000000000000012247005036010614 5ustar debian/patches/gfal2-unbundle.patch0000644000000000000000000000072412204613775014455 0ustar diff -ur gfal2-2.3.0.orig/test/CMakeLists.txt gfal2-2.3.0/test/CMakeLists.txt --- gfal2-2.3.0.orig/test/CMakeLists.txt 2013-07-02 16:29:23.000000000 +0200 +++ gfal2-2.3.0/test/CMakeLists.txt 2013-08-20 09:16:11.559021532 +0200 @@ -18,7 +18,7 @@ IF(UNIT_TESTS OR FUNCTIONAL_TESTS) # incldues tests -add_subdirectory(gtest-1.6.0) +add_subdirectory(gtest) ENDIF(UNIT_TESTS OR FUNCTIONAL_TESTS) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/gtest-1.6.0/include) debian/patches/gfal2-dirent-off.patch0000644000000000000000000000104612141461422014662 0ustar diff -ur gfal2-2.2.1.orig/src/common/lfc/gfal_common_lfc.c gfal2-2.2.1/src/common/lfc/gfal_common_lfc.c --- gfal2-2.2.1.orig/src/common/lfc/gfal_common_lfc.c 2013-04-30 11:09:19.000000000 +0200 +++ gfal2-2.2.1/src/common/lfc/gfal_common_lfc.c 2013-05-05 15:46:36.494986282 +0200 @@ -463,7 +463,9 @@ st->st_blocks = 0; st->st_blksize = 0; gsimplecache_add_item_kstr(cache, fullurl, (void*) st); +#if defined(SOLARIS) || defined(__linux__) dir->d_off +=1; +#endif g_strlcpy(dir->d_name, filestat->d_name, NAME_MAX); return dir; } debian/patches/gfal2-cthread.patch0000644000000000000000000000121312221306160014227 0ustar diff -ur gfal2-2.3.0.orig/src/common/lfc/lfc_ifce_ng.c gfal2-2.3.0/src/common/lfc/lfc_ifce_ng.c --- gfal2-2.3.0.orig/src/common/lfc/lfc_ifce_ng.c 2013-07-02 14:29:23.000000000 +0000 +++ gfal2-2.3.0/src/common/lfc/lfc_ifce_ng.c 2013-09-27 13:37:12.000000000 +0000 @@ -136,7 +139,8 @@ // Routine for internal lfc hack, need to be call for the thread safety void gfal_lfc_init_thread(struct lfc_ops* ops){ if(_local_thread_init==FALSE){ - ops->_Cthread_addcid (NULL, 0, NULL, 0, (void*)pthread_self(), 0, NULL, 0); + Cth_pid_t th = pthread_self(); + ops->_Cthread_addcid (NULL, 0, NULL, 0, &th, 0, NULL, 0); _local_thread_init= TRUE; } } debian/patches/gfal2-ecomm.patch0000644000000000000000000000570712141137725013743 0ustar diff -ur gfal2-2.2.1.orig/src/common/gridftp/gridftpwrapper.cpp gfal2-2.2.1/src/common/gridftp/gridftpwrapper.cpp --- gfal2-2.2.1.orig/src/common/gridftp/gridftpwrapper.cpp 2013-04-30 11:09:19.000000000 +0200 +++ gfal2-2.2.1/src/common/gridftp/gridftpwrapper.cpp 2013-05-04 09:52:27.643746357 +0200 @@ -18,6 +18,10 @@ #include #include "gridftpwrapper.h" +#ifndef ECOMM +#define ECOMM EIO +#endif + const char* gridftp_version_config = "GRIDFTP_V2"; const char* gridftp_session_reuse_config= "SESSION_REUSE"; const char* gridftp_dcau_config= "DCAU"; diff -ur gfal2-2.2.1.orig/src/common/lfc/gfal_common_lfc_open.c gfal2-2.2.1/src/common/lfc/gfal_common_lfc_open.c --- gfal2-2.2.1.orig/src/common/lfc/gfal_common_lfc_open.c 2013-04-30 11:09:19.000000000 +0200 +++ gfal2-2.2.1/src/common/lfc/gfal_common_lfc_open.c 2013-05-04 09:53:39.575743671 +0200 @@ -37,6 +37,9 @@ #include "gfal_common_lfc.h" #include "lfc_ifce_ng.h" +#ifndef ECOMM +#define ECOMM EIO +#endif /* * open function for the srm plugin diff -ur gfal2-2.2.1.orig/src/common/lfc/lfc_ifce_ng.c gfal2-2.2.1/src/common/lfc/lfc_ifce_ng.c --- gfal2-2.2.1.orig/src/common/lfc/lfc_ifce_ng.c 2013-04-30 11:09:19.000000000 +0200 +++ gfal2-2.2.1/src/common/lfc/lfc_ifce_ng.c 2013-05-04 08:54:42.147897070 +0200 @@ -26,6 +26,9 @@ #define GFAL_LFN_MAX_LEN 2048 #include +#ifndef ECOMM +#define ECOMM EIO +#endif #include #include #include diff -ur gfal2-2.2.1.orig/src/common/mds/gfal_common_mds_ldap_internal.c gfal2-2.2.1/src/common/mds/gfal_common_mds_ldap_internal.c --- gfal2-2.2.1.orig/src/common/mds/gfal_common_mds_ldap_internal.c 2013-04-30 11:09:19.000000000 +0200 +++ gfal2-2.2.1/src/common/mds/gfal_common_mds_ldap_internal.c 2013-05-04 08:43:34.467927245 +0200 @@ -25,6 +25,9 @@ * */ #include +#ifndef ECOMM +#define ECOMM EIO +#endif #include #include #include diff -ur gfal2-2.2.1.orig/src/common/rfio/gfal_rfio_plugin_bindings.c gfal2-2.2.1/src/common/rfio/gfal_rfio_plugin_bindings.c --- gfal2-2.2.1.orig/src/common/rfio/gfal_rfio_plugin_bindings.c 2013-04-30 11:09:19.000000000 +0200 +++ gfal2-2.2.1/src/common/rfio/gfal_rfio_plugin_bindings.c 2013-05-04 09:54:24.203742078 +0200 @@ -39,6 +39,10 @@ #include "gfal_rfio_plugin_main.h" #include "gfal_rfio_plugin_layer.h" +#ifndef ECOMM +#define ECOMM EIO +#endif + static void rfio_report_error(gfal_plugin_rfio_handle h, const char * func_name, GError** err){ char buff_error[2048]= {0}; int status = h->rf->geterror(); diff -ur gfal2-2.2.1.orig/src/common/srm/gfal_common_srm.c gfal2-2.2.1/src/common/srm/gfal_common_srm.c --- gfal2-2.2.1.orig/src/common/srm/gfal_common_srm.c 2013-04-30 11:09:19.000000000 +0200 +++ gfal2-2.2.1/src/common/srm/gfal_common_srm.c 2013-05-04 09:54:57.599740666 +0200 @@ -51,6 +51,10 @@ #include +#ifndef ECOMM +#define ECOMM EIO +#endif + /* * * list of the turls supported protocols debian/patches/series0000644000000000000000000000015712247003445012036 0ustar gfal2-ecomm.patch gfal2-dirent-off.patch gfal2-unbundle.patch gfal2-cthread.patch gfal2-new-davix-errors.patch debian/patches/gfal2-new-davix-errors.patch0000644000000000000000000000742012247010275016046 0ustar diff -ur gfal2-2.3.0.orig/src/common/http/gfal_http_plugin.cpp gfal2-2.3.0/src/common/http/gfal_http_plugin.cpp --- gfal2-2.3.0.orig/src/common/http/gfal_http_plugin.cpp 2013-07-02 16:29:23.000000000 +0200 +++ gfal2-2.3.0/src/common/http/gfal_http_plugin.cpp 2013-12-02 05:45:41.860555870 +0100 @@ -2,6 +2,7 @@ #include #include +using namespace Davix; const char* http_module_name = "http_plugin"; GQuark http_plugin_domain = g_quark_from_static_string(http_module_name); @@ -87,64 +88,66 @@ -static int davix2errno(Davix::StatusCode::Code code) +static int davix2errno(StatusCode::Code code) { int errcode; switch (code) { - case DAVIX_STATUS_OK: - case DAVIX_STATUS_PARTIAL_DONE: + case StatusCode::OK: + case StatusCode::PartialDone: errcode = 0; break; - case DAVIX_STATUS_WEBDAV_PROPERTIES_PARSING_ERROR: - case DAVIX_STATUS_URI_PARSING_ERROR: + case StatusCode::WebDavPropertiesParsingError: + case StatusCode::UriParsingError: errcode = EIO; break; - case DAVIX_STATUS_SESSION_CREATION_ERROR: + case StatusCode::SessionCreationError: errcode = EPERM; break; - case DAVIX_STATUS_NAME_RESOLUTION_FAILURE: + case StatusCode::NameResolutionFailure: errcode = EHOSTUNREACH; break; - case DAVIX_STATUS_CONNECTION_PROBLEM: + case StatusCode::ConnectionProblem: errcode = EHOSTDOWN; break; - case DAVIX_STATUS_REDIRECTION_NEEDED: + case StatusCode::RedirectionNeeded: errcode = ENOSYS; break; - case DAVIX_STATUS_CONNECTION_TIMEOUT: - case DAVIX_STATUS_OPERATION_TIMEOUT: + case StatusCode::ConnectionTimeout: + case StatusCode::OperationTimeout: errcode = ETIMEDOUT; break; - case DAVIX_STATUS_OPERATION_NOT_SUPPORTED: + case StatusCode::PermissionRefused: errcode = EPERM; break; - case DAVIX_STATUS_IS_NOT_A_DIRECTORY: + case StatusCode::IsNotADirectory: errcode = ENOTDIR; break; - case DAVIX_STATUS_INVALID_FILE_HANDLE: + case StatusCode::InvalidFileHandle: errcode = EBADF; break; - case DAVIX_STATUS_AUTHENTIFICATION_ERROR: - case DAVIX_STATUS_LOGIN_PASSWORD_ERROR: - case DAVIX_STATUS_CREDENTIAL_NOT_FOUND: - case DAVIX_STATUS_PERMISSION_REFUSED: + case StatusCode::AuthentificationError: + case StatusCode::LoginPasswordError: + case StatusCode::CredentialNotFound: + case StatusCode::CredDecryptionError: errcode = EACCES; break; - case DAVIX_STATUS_FILE_NOT_FOUND: + case StatusCode::FileNotFound: errcode = ENOENT; break; + case StatusCode::FileExist: + errcode = EEXIST; default: errcode = EIO; break; @@ -155,7 +158,7 @@ -void davix2gliberr(const Davix::DavixError* daverr, GError** err) +void davix2gliberr(const DavixError* daverr, GError** err) { g_set_error(err, http_plugin_domain, davix2errno(daverr->getStatus()), "%s", daverr->getErrMsg().c_str()); @@ -189,16 +192,16 @@ ukey = getenv("X509_USER_KEY"); } -int gfal_http_authn_cert_X509(void* userdata, const Davix::SessionInfo & info, - Davix::X509Credential * cert, Davix::DavixError** err) +int gfal_http_authn_cert_X509(void* userdata, const SessionInfo & info, + X509Credential * cert, DavixError** err) { std::string ucert, ukey; gfal_http_get_ucert(ucert, ukey); // No luck if (ucert.empty() || ukey.empty()) { - Davix::DavixError::setupError(err, http_module_name, - Davix::StatusCode::AuthentificationError, + DavixError::setupError(err, http_module_name, + StatusCode::AuthentificationError, "Could not set the user's proxy or certificate"); return -1; } debian/gfal2-plugin-gridftp.install0000644000000000000000000000012012024657453014503 0ustar usr/lib/gfal2-plugins/libgfal_plugin_gridftp.so* etc/gfal2.d/gsiftp_plugin.conf debian/gfal2-plugin-http.install0000644000000000000000000000011312203622641014013 0ustar usr/lib/gfal2-plugins/libgfal_plugin_http.so* etc/gfal2.d/http_plugin.conf debian/gfal2-plugin-dcap.install0000644000000000000000000000011312024652021013737 0ustar usr/lib/gfal2-plugins/libgfal_plugin_dcap.so* etc/gfal2.d/dcap_plugin.conf debian/changelog0000644000000000000000000000234012247011030011025 0ustar gfal2 (2.3.0-4) unstable; urgency=low * Adapt to new davix (patch from upstream svn) -- Mattias Ellert Mon, 02 Dec 2013 05:47:29 +0100 gfal2 (2.3.0-3) unstable; urgency=low * Fix non-pointer dereference that cause segmentation fault -- Mattias Ellert Fri, 27 Sep 2013 15:43:22 +0200 gfal2 (2.3.0-2) unstable; urgency=low * Remove binary files in source tarball -- Mattias Ellert Tue, 20 Aug 2013 09:11:13 +0200 gfal2 (2.3.0-1) unstable; urgency=low * New upstream release * New binary package gfal2-plugin-http -- Mattias Ellert Fri, 09 Aug 2013 20:49:23 +0200 gfal2 (2.2.1-2) unstable; urgency=low * Workaraond for no dirent d_off on hurd and kfreebsd -- Mattias Ellert Sun, 05 May 2013 15:50:21 +0200 gfal2 (2.2.1-1) unstable; urgency=low * New upstream release * Workaround missing ECOMM on hurd and kfreebsd -- Mattias Ellert Fri, 03 May 2013 18:55:59 +0200 gfal2 (2.0.0-1) unstable; urgency=low * Initial release (Closes: #687682) -- Mattias Ellert Thu, 13 Sep 2012 16:32:12 +0200 debian/gfal2-plugin-gridftp.docs0000644000000000000000000000005112024663572013767 0ustar src/common/gridftp/README_PLUGIN_GRIDFTP debian/gfal2-plugin-srm.install0000644000000000000000000000011112024652110013626 0ustar usr/lib/gfal2-plugins/libgfal_plugin_srm.so* etc/gfal2.d/srm_plugin.conf debian/source/0000755000000000000000000000000012024367202010464 5ustar debian/source/format0000644000000000000000000000001412024367202011672 0ustar 3.0 (quilt)