debian/0000755000000000000000000000000012246432212007164 5ustar debian/libdcap1.install0000644000000000000000000000010111556206637012240 0ustar debian/tmp/usr/lib/libdcap.so.* debian/tmp/usr/lib/libpdcap.so.* debian/dcap-dev.install0000644000000000000000000000033311556211000012227 0ustar debian/tmp/usr/include/dc_hack.h debian/tmp/usr/include/dcap.h debian/tmp/usr/include/dcap_errno.h debian/tmp/usr/lib/libdcap.a debian/tmp/usr/lib/libdcap.so debian/tmp/usr/lib/libpdcap.a debian/tmp/usr/lib/libpdcap.so debian/control0000644000000000000000000000537712163362370010610 0ustar Source: dcap Priority: optional Maintainer: Mattias Ellert Build-Depends: debhelper (>= 5), libglobus-gssapi-gsi-dev, libkrb5-dev, libssl-dev, autoconf, automake, libtool Standards-Version: 3.9.4 Section: libs Vcs-Browser: http://svn.nordugrid.org/trac/packaging/browser/debian/dcap Vcs-Svn: http://svn.nordugrid.org/repos/packaging/debian/dcap Homepage: http://www.dcache.org/manuals/libdcap.shtml Package: dcap Section: net Architecture: any Depends: libdcap1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Client Tools for dCache dCache is a distributed mass storage system. This package contains the client tools. Package: libdcap1 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: dcap-tunnel-gsi (= ${binary:Version}), dcap-tunnel-krb (= ${binary:Version}), dcap-tunnel-ssl (= ${binary:Version}), dcap-tunnel-telnet (= ${binary:Version}) Description: Client Libraries for dCache dCache is a distributed mass storage system. This package contains the client libraries. Package: dcap-dev Section: libdevel Architecture: any Depends: libdcap1 (= ${binary:Version}), ${misc:Depends} Description: Client Development Files for dCache dCache is a distributed mass storage system. This package contains the client development files. Package: dcap-tunnel-gsi Architecture: any Depends: libdcap1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: GSI tunnel for dCache This package contains the gsi tunnel plugin library used by dcap. This library is dynamically loaded at runtime. Package: dcap-tunnel-krb Architecture: any Depends: libdcap1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Kerberos tunnel for dCache This package contains the kerberos tunnel plugin library used by dcap. This library is dynamically loaded at runtime. Package: dcap-tunnel-ssl Architecture: any Depends: libdcap1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: SSL tunnel for dCache This package contains the ssl tunnel plugin library used by dcap. This library is dynamically loaded at runtime. Package: dcap-tunnel-telnet Architecture: any Depends: libdcap1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Telnet tunnel for dCache This package contains the telnet tunnel plugin library used by dcap. This library is dynamically loaded at runtime. Package: dcap-dbg Section: debug Priority: extra Architecture: any Depends: dcap (= ${binary:Version}) | libdcap1 (= ${binary:Version}) | dcap-tunnel-gsi (= ${binary:Version}) | dcap-tunnel-krb (= ${binary:Version}) | dcap-tunnel-ssl (= ${binary:Version}) | dcap-tunnel-telnet (= ${binary:Version}), ${misc:Depends} Description: Debug symbols for dcap This package contains debug symbols for dcap. debian/rules0000755000000000000000000000373612246432144010261 0ustar #!/usr/bin/make -f # -*- makefile -*- -include /usr/share/dpkg/buildflags.mk DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) INSTALLDIR = $(CURDIR)/debian/tmp _prefix = /usr _bindir = $(_prefix)/bin _sbindir = $(_prefix)/sbin _libdir = $(_prefix)/lib _includedir = $(_prefix)/include _sysconfdir = /etc _localstatedir = /var _datadir = $(_prefix)/share _mandir = $(_datadir)/man _docdir = $(_datadir)/doc configure: configure-stamp configure-stamp: dh_testdir chmod +x bootstrap.sh ./bootstrap.sh CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \ LDFLAGS="$(LDFLAGS) -Wl,-z,defs" \ ./configure \ --prefix=/usr \ --with-globus-include="$(_includedir)/globus -I$(_libdir)/globus/include -I$(_includedir)/$(DEB_HOST_MULTIARCH)/globus" \ --with-globus-lib=/dummy \ --with-tunneldir=$(_libdir)/dcap touch $@ build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp: configure-stamp dh_testdir $(MAKE) touch $@ clean: dh_testdir dh_testroot if [ -r Makefile ] ; then $(MAKE) clean && $(MAKE) distclean ; fi rm -rf config rm -f aclocal.m4 rm -f configure rm -f Makefile.in rm -f src/debug_level.h.in rm -f src/Makefile.in rm -f plugins/Makefile.in rm -f plugins/*/Makefile.in rm -f build-stamp configure-stamp dh_clean install: build-stamp dh_testdir dh_testroot dh_prep $(MAKE) install DESTDIR=$(INSTALLDIR) rm $(INSTALLDIR)$(_libdir)/dcap/*.a rm $(INSTALLDIR)$(_libdir)/dcap/*.la rm $(INSTALLDIR)$(_libdir)/*.la rm -rf $(INSTALLDIR)$(_datadir)/doc binary: binary-arch binary-indep binary-arch: install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples dh_install --fail-missing dh_installman dh_link dh_strip --dbg-package=dcap-dbg dh_compress dh_fixperms dh_makeshlibs dh_installdeb dh_shlibdeps -l debian/libdcap1/usr/lib dh_gencontrol dh_md5sums dh_builddeb binary-indep: .PHONY: binary binary-arch binary-indep build build-arch build-indep clean configure install debian/copyright0000644000000000000000000000456012203163262011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: dcap Upstream-Contact: Tigran Mkrtchyan Source: https://github.com/dCache/dcap/archive/2.47.8.tar.gz Files: * Copyright: © 2000-2004 DESY Hamburg DMG-Division License: LGPL-2 On Debian systems the full text of the LGPL-2 license can be found in the /usr/share/common-licenses/LGPL-2 file. Files: plugins/gssapi/base64.? plugins/gssapi/gssIoTunnel.c plugins/gssapi/util.c Copyright: © 1997-2000 Kungliga Tekniska Högskolan (Royal Institute of Technology), Stockholm, Sweden License: BSD Files: src/dcap_unix2win.c Copyright: © 1994 Jason R. Thorpe. All rights reserved. License: BSD Files: debian/* Copyright: © 2009-2012 Mattias Ellert License: LGPL-2 On Debian systems the full text of the LGPL-2 license can be found in the /usr/share/common-licenses/LGPL-2 file. License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. Neither the name of the Institute nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/README.source0000644000000000000000000000051511556206637011361 0ustar The source is checked out from svn. See the get-orig-source rule in the debian/rules file for details. The following files were removed from the svn checkout since they have different copyright and/or license than the rest of the sources and are not used during compilation: - src/dcap_unix2win.c - plugins/javatunnel/Base64.java debian/compat0000644000000000000000000000000211556206637010377 0ustar 5 debian/dcap-tunnel-telnet.install0000644000000000000000000000005311556206637014272 0ustar debian/tmp/usr/lib/dcap/libtelnetTunnel.so debian/dcap-tunnel-krb.install0000644000000000000000000000005011556206637013552 0ustar debian/tmp/usr/lib/dcap/libgssTunnel.so debian/patches/0000755000000000000000000000000012203163714010614 5ustar debian/patches/series0000644000000000000000000000016612203163052012027 0ustar # Allow loading of plugins outside of the default library search path # http://rb.dcache.org/r/3765 dcap-dlopen.patch debian/patches/dcap-dlopen.patch0000644000000000000000000000610511641277424014036 0ustar diff -ur dcap-2.47.5.orig/configure.ac dcap-2.47.5/configure.ac --- dcap-2.47.5.orig/configure.ac 2010-10-28 17:20:48.000000000 +0200 +++ dcap-2.47.5/configure.ac 2011-09-30 10:34:24.687030563 +0200 @@ -876,6 +876,16 @@ AC_SUBST(GLOBUS_INCLUDE_DIR) AC_SUBST(GLOBUS_LIB_DIR) +TUNNELLIBDIR="$libdir" +AC_ARG_WITH(tunneldir, +[ --with-tunneldir[[=DIR]] where to install dcap plugins],[ +if test "X${withval}" != "X" ; then +TUNNELLIBDIR="$withval" +fi +]) + +AC_DEFINE_UNQUOTED(TUNNELLIBDIR, "$TUNNELLIBDIR", [where to install dcap plugins]) +AC_SUBST(TUNNELLIBDIR) AC_OUTPUT(Makefile \ src/Makefile \ Endast i dcap-2.47.5: configure.ac~ diff -ur dcap-2.47.5.orig/plugins/gssapi/Makefile.am dcap-2.47.5/plugins/gssapi/Makefile.am --- dcap-2.47.5.orig/plugins/gssapi/Makefile.am 2010-02-09 14:34:19.000000000 +0100 +++ dcap-2.47.5/plugins/gssapi/Makefile.am 2011-09-30 09:14:07.488647699 +0200 @@ -5,12 +5,13 @@ AM_CFLAGS=$(CWFLAG) \ -D_REENTRANT -DLIBC_SYSCALLS -D_GNU_SOURCE -lib_LTLIBRARIES = +tunnellibdir = $(TUNNELLIBDIR) +tunnellib_LTLIBRARIES = if WANT_LIBGSITUNNEL -lib_LTLIBRARIES += libgsiTunnel.la +tunnellib_LTLIBRARIES += libgsiTunnel.la endif if WANT_LIBGSSTUNNEL -lib_LTLIBRARIES += libgssTunnel.la +tunnellib_LTLIBRARIES += libgssTunnel.la endif libgsiTunnel_la_SOURCES = $(c_sources) $(h_sources) diff -ur dcap-2.47.5.orig/plugins/ssl/Makefile.am dcap-2.47.5/plugins/ssl/Makefile.am --- dcap-2.47.5.orig/plugins/ssl/Makefile.am 2010-03-24 12:32:03.000000000 +0100 +++ dcap-2.47.5/plugins/ssl/Makefile.am 2011-09-30 09:14:21.681465099 +0200 @@ -4,7 +4,8 @@ AM_CFLAGS=$(CWFLAG) \ -D_REENTRANT -DLIBC_SYSCALLS -D_GNU_SOURCE -lib_LTLIBRARIES = libsslTunnel.la +tunnellibdir = $(TUNNELLIBDIR) +tunnellib_LTLIBRARIES = libsslTunnel.la libsslTunnel_la_SOURCES = $(c_sources) $(h_sources) libsslTunnel_la_LIBADD = $(SSL_LIBS) diff -ur dcap-2.47.5.orig/plugins/telnet/Makefile.am dcap-2.47.5/plugins/telnet/Makefile.am --- dcap-2.47.5.orig/plugins/telnet/Makefile.am 2010-02-09 14:34:19.000000000 +0100 +++ dcap-2.47.5/plugins/telnet/Makefile.am 2011-09-30 09:14:35.058292998 +0200 @@ -7,7 +7,8 @@ AM_CFLAGS= $(CWFLAG) \ -D_REENTRANT -DLIBC_SYSCALLS -D_GNU_SOURCE -lib_LTLIBRARIES = libtelnetTunnel.la +tunnellibdir = $(TUNNELLIBDIR) +tunnellib_LTLIBRARIES = libtelnetTunnel.la libtelnetTunnel_la_SOURCES = $(c_sources) $(h_sources) libtelnetTunnel_la_LIBADD = -lcrypt diff -ur dcap-2.47.5.orig/src/tunnelManager.c dcap-2.47.5/src/tunnelManager.c --- dcap-2.47.5.orig/src/tunnelManager.c 2010-09-20 16:28:23.000000000 +0200 +++ dcap-2.47.5/src/tunnelManager.c 2011-09-30 09:13:46.658915680 +0200 @@ -87,6 +87,7 @@ { void *handle; ioTunnel *tunnel; + char *fullpath; if(libname == NULL) { dc_debug(DC_ERROR, "Bad tunnel name"); @@ -100,6 +101,15 @@ handle = dlopen( libname, RTLD_NOW); + if(handle == NULL) { + fullpath = malloc(strlen(TUNNELLIBDIR) + strlen(libname) + 2); + strcpy(fullpath, TUNNELLIBDIR); + strcat(fullpath, "/"); + strcat(fullpath, libname); + handle = dlopen(fullpath, RTLD_NOW); + free(fullpath); + } + if(handle == NULL) { goto fail; } debian/dcap.install0000644000000000000000000000007511760145617011477 0ustar debian/tmp/usr/bin/dccp debian/tmp/usr/share/man/man1/dccp.1 debian/changelog0000644000000000000000000000620612246432015011043 0ustar dcap (2.47.8-2) unstable; urgency=low * Adapt to multi-arch Globus installation (Closes: #730920) -- Mattias Ellert Sat, 30 Nov 2013 19:38:29 +0100 dcap (2.47.8-1) unstable; urgency=low * New upstream release * Drop patch dcap-segfault.patch - merged upstream -- Mattias Ellert Thu, 15 Aug 2013 16:31:23 +0200 dcap (2.47.7-2) unstable; urgency=low * Fix segfault - issue found by Mayhem Team, Carnegie Mellon University -- Mattias Ellert Fri, 28 Jun 2013 21:17:24 +0200 dcap (2.47.7-1) unstable; urgency=low * New upstream release -- Mattias Ellert Tue, 27 Nov 2012 10:00:57 +0100 dcap (2.47.6-2) unstable; urgency=low * Drop patch dcap-inline.patch (gcc bug #672411 is fixed - no longer needed) -- Mattias Ellert Sat, 09 Jun 2012 10:57:57 +0200 dcap (2.47.6-1) unstable; urgency=low * New upstream release (EMI 2 release) (Closes: #630367) * Drop patches dcap-aliasing.patch, dcap-libs.patch and dcap-no-testinstall.patch implemented upstream -- Mattias Ellert Sat, 26 May 2012 13:19:13 +0200 dcap (2.47.5-5) unstable; urgency=low * Add debug package -- Mattias Ellert Thu, 08 Dec 2011 11:03:06 +0100 dcap (2.47.5-4) unstable; urgency=low * Update dcap-dlopen.patch (Closes: #643475) * Use dpkg's build flags -- Mattias Ellert Thu, 29 Sep 2011 21:33:20 +0200 dcap (2.47.5-3) unstable; urgency=low * Remove reference to /usr/share/common-licenses/BSD -- Mattias Ellert Tue, 17 May 2011 13:59:17 +0200 dcap (2.47.5-2) unstable; urgency=low * Remove libtool archives (Closes: #621281) -- Mattias Ellert Thu, 28 Apr 2011 08:49:54 +0200 dcap (2.47.5-1) unstable; urgency=low * New upstream release -- Mattias Ellert Sat, 06 Nov 2010 21:48:07 +0100 dcap (2.47.2-2) unstable; urgency=low * Convert to package format 3.0 -- Mattias Ellert Thu, 17 Jun 2010 13:36:01 +0200 dcap (2.47.2-1) unstable; urgency=low * New upstream release (Closes: #576224) -- Mattias Ellert Wed, 07 Apr 2010 13:00:49 +0200 dcap (1.2.44-5) unstable; urgency=low * Fix building on avr32 -- Mattias Ellert Tue, 05 Jan 2010 16:07:41 +0100 dcap (1.2.44-4) unstable; urgency=low * Big/Little endian porting for more architectures (Closes: #563408) -- Mattias Ellert Sat, 02 Jan 2010 22:10:15 +0100 dcap (1.2.44-3) unstable; urgency=low * Porting for GNU/Hurd and GNU/kFreeBSD -- Mattias Ellert Sat, 02 Jan 2010 15:04:28 +0100 dcap (1.2.44-2) unstable; urgency=low * Fix copyright issues (Closes: #562514). -- Mattias Ellert Fri, 25 Dec 2009 09:27:03 +0100 dcap (1.2.44-1) UNRELEASED; urgency=low * Initial packaging. -- Mattias Ellert Tue, 22 Dec 2009 12:40:00 +0100 debian/dcap-tunnel-gsi.install0000644000000000000000000000005011556206637013556 0ustar debian/tmp/usr/lib/dcap/libgsiTunnel.so debian/source/0000755000000000000000000000000011556206637010501 5ustar debian/source/format0000644000000000000000000000001411556206637011707 0ustar 3.0 (quilt) debian/dcap-tunnel-ssl.install0000644000000000000000000000005011556206637013575 0ustar debian/tmp/usr/lib/dcap/libsslTunnel.so