debian/0000755000000000000000000000000012246066437007200 5ustar debian/rules0000755000000000000000000000037112126251230010241 0ustar #!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ --buildsystem=perl_makemaker override_dh_fixperms: dh_fixperms chmod 644 $(TMP)/usr/share/doc/libfilesys-smbclient-perl/examples/smb2www.css debian/libfilesys-smbclient-perl.examples0000644000000000000000000000003512126251230016001 0ustar t/ smb2www-2.cgi smb2www.css debian/patches/0000755000000000000000000000000012246065404010620 5ustar debian/patches/series0000644000000000000000000000011612246065404012033 0ustar 10_Makefile.PL.patch spelling-error-in-pod.patch pod-error.patch samba4.patch debian/patches/samba4.patch0000644000000000000000000000062512246065404013013 0ustar Description: close() in gone from libsmbclient.h in samba 4.0 apparently Origin: vendor Forwarded: no Author: gregor herrmann Last-Update: 2013-11-03 --- a/SmbClient.xs +++ b/SmbClient.xs @@ -454,11 +454,7 @@ * Close file desriptor fd * */ -#ifdef HAVE_CLOSEFN RETVAL=context->close_fn(context, fd); -#else - RETVAL=context->close(context, fd); -#endif OUTPUT: RETVAL debian/patches/spelling-error-in-pod.patch0000644000000000000000000000151212126251230015757 0ustar Description: Spelling error in pod Author: Xavier Guimard Bug: https://rt.cpan.org/Ticket/Display.html?id=81794 Forwarded: https://rt.cpan.org/Ticket/Display.html?id=81794 Last-Update: 2012-12-07 --- libfilesys-smbclient-perl-3.2.orig/SmbClient.pm +++ libfilesys-smbclient-perl-3.2/SmbClient.pm @@ -762,7 +762,7 @@ Example: =item read FILEHANDLE, LENGTH -Read $count bytes of data on file descriptor $fd. It lenght is not set, +Read $count bytes of data on file descriptor $fd. It length is not set, 4096 bytes will be read. Return buffer read on success, undef at end of file, @@ -809,7 +809,7 @@ errno and $! is set. A wrapper around `libsmbclient's `smbc_free_context'. Close open files, release Samba connection, delete context, -aquired during open_* calls. +acquired during open_* calls. Example: debian/patches/pod-error.patch0000644000000000000000000000131612126251230013542 0ustar Description: Pod error Author: Xavier Guimard Bug: https://rt.cpan.org/Ticket/Display.html?id=81794 Forwarded: https://rt.cpan.org/Ticket/Display.html?id=81794 Last-Update: 2012-12-08 --- libfilesys-smbclient-perl-3.2.orig/SmbClient.pm +++ libfilesys-smbclient-perl-3.2/SmbClient.pm @@ -802,8 +802,6 @@ FILEHANDLE must be open with open of thi Close file FILEHANDLE. Return 0 on success, else -1 is return and errno and $! is set. -=back - =item shutdown flag A wrapper around `libsmbclient's `smbc_free_context'. @@ -820,6 +818,8 @@ NOTE: shutdown(1) may cause complaints about talloc memory leaks, if there are currently no open files. +=back + =head2 Print method =over debian/patches/10_Makefile.PL.patch0000644000000000000000000000376112246065404014177 0ustar Description: Remove prompts in Makefile; find libdir and includedir with pkg-config Forwarded: no Author: Damyan Ivanov Reviewed-By: Xavier Guimard gregor herrmann Last-Update: 2013-11-03 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,20 +6,24 @@ my ($define, $ccfl); ($^O =~ m/AIX/i) ? ($ccfl = '-qcpluscmt') : ($ccfl = ''); # path libsmbclient.h -my $include = try_to_find("libsmbclient.h"); -$include = prompt("Where can I find libsmbclient.h ?", $include); -warn_user("$include/libsmbclient.h") if (!-r "$include/libsmbclient.h"); +#my $include = try_to_find("libsmbclient.h"); +#$include = prompt("Where can I find libsmbclient.h ?", $include); +#warn_user("$include/libsmbclient.h") if (!-r "$include/libsmbclient.h"); +my $include = qx/pkg-config --variable=includedir smbclient/; # path libsmbclient.so -my $lib = try_to_find("libsmbclient.so"); -$lib = prompt("Where can I find libsmbclient.so ?",$lib); -warn_user("libsmbclient.so") if (!-r "$lib/libsmbclient.so"); +#my $lib = try_to_find("libsmbclient.so"); +#$lib = prompt("Where can I find libsmbclient.so ?",$lib); +#warn_user("libsmbclient.so") if (!-r "$lib/libsmbclient.so"); +my $lib = qx/pkg-config --variable=libdir smbclient/; # tests demande ? -my $ans = - prompt("Do you want make tests ?(you will be prompted for server / \n". - "worgroup / share / user / password to make read write access.", - "yes"); +#my $ans = +# prompt("Do you want make tests ?(you will be prompted for server / \n". +# "worgroup / share / user / password to make read write access.", +# "yes"); +my $ans = 'n'; + if ($ans =~ /^y(es)?$/i) { my $server = prompt("Server ?","localhost"); @@ -33,7 +37,8 @@ if ($ans =~ /^y(es)?$/i) } # Trace for debug -$ans = prompt("Compile module with trace to STDERR ?", "no"); +#$ans = prompt("Compile module with trace to STDERR ?", "no"); +$ans = 'n'; if ($ans =~ /^y(es)?$/i) { $define = "-DVERBOSE"; } # Create config.h for alloca via configure debian/README.Debian0000644000000000000000000000152311615541674011242 0ustar README for libfilesys-smbclient-perl for Debian The manual page for libfilesys-smbclient-perl can be accessed by running the following command: man Filesys::SmbClient. There are some test scripts in the /usr/share/doc/libfilesys-smbclient/examples/t directory. To run any of these test scripts, you'll need a file called ".c" in your current directory, with the following fields separated by tabs on a single line: The examples/ directory also contains smb2www-2.cgi, a script you can use to browse shares, workgroups, read/write/remove directories, create/modify/remove files. You'll need the libcgi-perl and CGI::Carp packages to run this script. This script also shows you how to use this module effectively. -- Amit Shah , Sat Nov 1 10:47:40 2003 debian/copyright0000644000000000000000000000346012246066352011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Filesys-SmbClient Source: https://metacpan.org/release/Filesys-SmbClient Upstream-Contact: Alain BARBET Files: * Copyright: 2000-2012, Alain Barbet License: Artistic or GPL-1+ Comment: According to the mail archived here: https://lists.debian.org/debian-perl/2013/01/msg00012.html, the license is fixed to Artistic or GPL-1+ Files: configure Copyright: 1992-2002, Free Software Foundation, Inc. License: GPL-2+ Files: debian/* Copyright: 2003-2004, Amit Shah 2003-2006, Gunnar Wolf 2008, Damyan Ivanov 2008, gregor herrmann 2012, Xavier Guimard License: GPL-2+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . On Debian systems, the complete text of version 2 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/watch0000644000000000000000000000017712246066361010232 0ustar version=3 https://metacpan.org/release/Filesys-SmbClient .+/Filesys-SmbClient-v?(\d[\d.]*)\.(?:tar\.gz|tar\.bz2|tgz|tbz|zip) debian/source/0000755000000000000000000000000012126251230010460 5ustar debian/source/format0000644000000000000000000000001412126251230011666 0ustar 3.0 (quilt) debian/control0000644000000000000000000000202212246066344010574 0ustar Source: libfilesys-smbclient-perl Maintainer: Debian Perl Group Uploaders: Damyan Ivanov , gregor herrmann , Xavier Guimard Section: perl Priority: extra Build-Depends: debhelper (>= 9.20120312), libsmbclient-dev, pkg-config, perl Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libfilesys-smbclient-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libfilesys-smbclient-perl.git Homepage: https://metacpan.org/release/Filesys-SmbClient Package: libfilesys-smbclient-perl Architecture: any Depends: ${misc:Depends}, ${perl:Depends}, ${shlibs:Depends} Description: perl interface to access Samba filesystem This package provides the Filesys::SmbClient module. It provides interface to the functions in libsmbclient.so. It has functions to read/write/add/modify files/directories on Samba shares. debian/compat0000644000000000000000000000000212126251230010356 0ustar 9 debian/changelog0000644000000000000000000001106512246066437011055 0ustar libfilesys-smbclient-perl (3.2-2) unstable; urgency=medium * Team upload [ Salvatore Bonaccorso ] * Change search.cpan.org based URIs to metacpan.org based URIs [ gregor herrmann ] * Update 10_Makefile.PL.patch: use pkg-config to find libdir and includedir. Build depend on pkg-config. (Closes: #728646) * Add patch to handle a change in libsmbclient.h in samba 4.0. [ Damyan Ivanov ] * Claim conformance with Policy 3.9.5 * Drop trailing slash from metacpan.org URLs -- Damyan Ivanov Fri, 29 Nov 2013 12:31:36 +0200 libfilesys-smbclient-perl (3.2-1) unstable; urgency=low [ gregor herrmann ] * debian/control: Added: ${misc:Depends} to Depends: field. * debian/control: update {versioned,alternative} (build) dependencies. [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ Xavier Guimard ] * Imported Upstream version 3.2 * Update source format to 3.0 (quilt) * Bump Standards-Version to 3.9.4 * Use debhelper 9.20120312 * Update debian/copyright (years and format) * Fix upstream license to Artistic or GPL-1+ * Update debian/rules to use "dh $@" * Add description in 10_Makefile.PL.patch * Add spelling and pod patch * Force the use of perl_makemaker in dh * override_dh_fixperms to change example files mode -- Xavier Guimard Thu, 17 Jan 2013 06:17:42 +0100 libfilesys-smbclient-perl (3.1-3) unstable; urgency=low * debian/rules: touch Makefile in clean target after unpatching Makefile.PL to prevent it from being re-built; allows building twice in a row. * debian/copyright: point to author-independent URL of the upstream source. * Refresh debian/rules, no functional changes. * debian/control: make build dependency on quilt versioned and add /me to Uploaders. -- gregor herrmann Wed, 30 Apr 2008 23:39:50 +0200 libfilesys-smbclient-perl (3.1-2) unstable; urgency=low [ gregor herrmann ] * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser field (source stanza); Homepage field (source stanza). Removed: XS- Vcs-Svn fields. * debian/rules: delete /usr/share/perl5 only if it exists. [ Damyan Ivanov ] * debian/watch: use dist-vased URL, better pattern * debian/rules: + move (still disabled) test suite in build-stamp target + use "$@" when touching stamps + remove *-stamp files before realclean + fix install(-stamp) dependencies + remove commented-out dh_* calls; remove unused dh_link and dh_makeshlibs calls + when installing t/ as examples, keep the directory * Move changes to Makefile.PL into 10_Makefile.PL.patch + add quilt to build process * chmod 0644 smb2www.css (thanks, lintian) * Standards-Version: 3.7.3 (no changes) * debhelper compatibility level 6 * add myself to Uploaders -- Damyan Ivanov Mon, 21 Jan 2008 14:16:39 +0200 libfilesys-smbclient-perl (3.1-1) unstable; urgency=low * New upstream release (Closes: #329542) * Sorry, taking over the package due to its maintainer being MIA, putting it in the Debian Perl Group's loving hands -- Gunnar Wolf Wed, 29 Nov 2006 19:13:55 -0600 libfilesys-smbclient-perl (1.5-2) unstable; urgency=low * Updated 'priority' to extra: libsmbclient, on which this package depends, is in the 'extra' group. * Updated the 'copyright' file to state upstream's copyright and also the copyright of the Debian packaging. -- Gunnar Wolf Fri, 19 Dec 2003 11:50:50 -0600 libfilesys-smbclient-perl (1.5-1) unstable; urgency=low * New upstream release * Update debian/watch to point to the cpan.org site * Add a new fix-upstream target which resets the 'x' bit for the files in the upstream distribution which are not supposed to have that bit set. Also remove the (now redundant) fix to reset the 'x' bit for the smb2www.css file. This is now done in debian/rules, so there won't be any problems during the build process. * Remove the reference to the /usr/share/perl5/ directory if it's empty from the resulting .deb. -- Amit Shah Fri, 28 Nov 2003 15:07:37 +0530 libfilesys-smbclient-perl (1.4-1) unstable; urgency=low * Initial Release (closes: #218307) * Remove all (unnecessary) prompts while building * chmod -x all files other than ./configure and t/*.t * Enable verbose mode if DH_VERBOSE is set * Sponsored by Gunnar Wolf -- Gunnar Wolf Tue, 4 Nov 2003 11:43:46 -0600