r4462 - in /packages/libfilesys-smbclient-perl/trunk: Makefile.PL
debian/
debian/README.Debian debian/changelog debian/compat debian/control
debian/copyright debian/rules debian/watch
gwolf at users.alioth.debian.org
gwolf at users.alioth.debian.org
Thu Nov 30 01:22:29 CET 2006
Author: gwolf
Date: Thu Nov 30 01:22:28 2006
New Revision: 4462
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=4462
Log:
Somehow, svn-inject missed applying the .diff.gz - Here it is, ready
to produce the currently-shipping 1.5-2
Added:
packages/libfilesys-smbclient-perl/trunk/debian/
packages/libfilesys-smbclient-perl/trunk/debian/README.Debian
packages/libfilesys-smbclient-perl/trunk/debian/changelog
packages/libfilesys-smbclient-perl/trunk/debian/compat
packages/libfilesys-smbclient-perl/trunk/debian/control
packages/libfilesys-smbclient-perl/trunk/debian/copyright
packages/libfilesys-smbclient-perl/trunk/debian/rules (with props)
packages/libfilesys-smbclient-perl/trunk/debian/watch
Modified:
packages/libfilesys-smbclient-perl/trunk/Makefile.PL
Modified: packages/libfilesys-smbclient-perl/trunk/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libfilesys-smbclient-perl/trunk/Makefile.PL?rev=4462&op=diff
==============================================================================
--- packages/libfilesys-smbclient-perl/trunk/Makefile.PL (original)
+++ packages/libfilesys-smbclient-perl/trunk/Makefile.PL Thu Nov 30 01:22:28 2006
@@ -5,39 +5,16 @@
# special flag for AIX
($^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");
+# path to libsmbclient.h
+my $include = '/usr/include';
-# 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");
-
-# 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");
-if ($ans =~ /^y(es)?$/i)
- {
- my $server = prompt("Server ?","localhost");
- my $share = prompt("Share ?","homes");
- my $workgroup = prompt("Workgroup/Domain ?","");
- my $user = prompt("Smb user ?",$ENV{'USER'});
- my $pass = prompt("Smb password ?");
- open(FILE,">.c") || warn "Can't create .c for test: $!\n";
- print FILE $server,"\t",$share,"\t",$workgroup,"\t",$user,"\t",$pass;
- close FILE;
- }
-
-# Trace for debug
-$ans = prompt("Compile module with trace to STDERR ?", "no");
-if ($ans =~ /^y(es)?$/i) { $define = "-DVERBOSE"; }
+# path to libsmbclient.so
+my $lib = '/usr/lib';
# Create config.h for alloca via configure
system("./configure") == 0 or die "Can't run configure:$!\n";
+
+$define = "-DVERBOSE" if $ENV{'DH_VERBOSE'};
# Create makefile
WriteMakefile
@@ -58,44 +35,3 @@
)
: ()
);
-
-sub warn_user
- {
- my $file = $_[0];
- warn <<EOF;
-*************************************************************
-** WHAT !!!!
-** I Can't find $file : $!.
-*************************************************************
-If you don't have this file you can download last version
-of Samba on www.samba.org and do:
-
-\$ tar zxvf samba-2.2.x.tar.gz
-\$ cd samba-2.2.x/source
-\$ ./configure
-\$ make bin/libsmbclient.so
-
-Then you can find libsmbclient.h in source/include directory and
-libsmbclient.so in source/bin directory. You can then put them in
-/usr/include and /usr/lib (or /usr/local/include and
-/usr/local/lib)
-
-EOF
-
- }
-
-sub try_to_find {
- my $name = shift;
- my @path;
- if ($name=~m!\.h$!) {
- @path = qw!/usr/include /usr/local/include /usr/local/samba/include /usr/local/samba3/include!;
- }
- else {
- @path = qw!/usr/lib /usr/local/lib /usr/local/bin /usr/local/samba/bin /usr/local/samba3/lib!;
- }
- print "-- Try to find $name in ", join(' ', at path),"\n";
- foreach my $d (@path) {
- print "-- I found $name in $d\n";
- if (-e "$d/$name") { return $d; }
- }
-}
Added: packages/libfilesys-smbclient-perl/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libfilesys-smbclient-perl/trunk/debian/README.Debian?rev=4462&op=file
==============================================================================
--- packages/libfilesys-smbclient-perl/trunk/debian/README.Debian (added)
+++ packages/libfilesys-smbclient-perl/trunk/debian/README.Debian Thu Nov 30 01:22:28 2006
@@ -1,0 +1,22 @@
+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:
+
+<samba server> <name of samba share> <workgroup/domain> <user> <password>
+
+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 <amitshah at gmx.net>, Sat Nov 1 10:47:40 2003
Added: packages/libfilesys-smbclient-perl/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libfilesys-smbclient-perl/trunk/debian/changelog?rev=4462&op=file
==============================================================================
--- packages/libfilesys-smbclient-perl/trunk/debian/changelog (added)
+++ packages/libfilesys-smbclient-perl/trunk/debian/changelog Thu Nov 30 01:22:28 2006
@@ -1,0 +1,32 @@
+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 <gwolf at debian.org> 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 <amitshah at gmx.net> 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 <gwolf at debian.org>
+
+ -- Gunnar Wolf <gwolf at debian.org> Tue, 4 Nov 2003 11:43:46 -0600
Added: packages/libfilesys-smbclient-perl/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libfilesys-smbclient-perl/trunk/debian/compat?rev=4462&op=file
==============================================================================
--- packages/libfilesys-smbclient-perl/trunk/debian/compat (added)
+++ packages/libfilesys-smbclient-perl/trunk/debian/compat Thu Nov 30 01:22:28 2006
@@ -1,0 +1,1 @@
+4
Added: packages/libfilesys-smbclient-perl/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libfilesys-smbclient-perl/trunk/debian/control?rev=4462&op=file
==============================================================================
--- packages/libfilesys-smbclient-perl/trunk/debian/control (added)
+++ packages/libfilesys-smbclient-perl/trunk/debian/control Thu Nov 30 01:22:28 2006
@@ -1,0 +1,14 @@
+Source: libfilesys-smbclient-perl
+Section: perl
+Priority: extra
+Build-Depends: debhelper (>= 4), perl (>= 5.8.0-7), libsmbclient-dev
+Maintainer: Amit Shah <amitshah at gmx.net>
+Standards-Version: 3.6.1.0
+
+Package: libfilesys-smbclient-perl
+Architecture: any
+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.
Added: packages/libfilesys-smbclient-perl/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libfilesys-smbclient-perl/trunk/debian/copyright?rev=4462&op=file
==============================================================================
--- packages/libfilesys-smbclient-perl/trunk/debian/copyright (added)
+++ packages/libfilesys-smbclient-perl/trunk/debian/copyright Thu Nov 30 01:22:28 2006
@@ -1,0 +1,21 @@
+This is the debian package for the Filesys::SmbClient module. It was
+created by Amit Shah <amitshah at gmx.net>.
+
+The debianizing of the package (which involves the stuff in the
+debian/ directory and additional patches to the upstream sources) is
+Copyright (C) 2003-4 Amit Shah <amitshah at gmx.net>.
+
+The sources were downloaded from
+http://search.cpan.org/CPAN/authors/id/A/AL/ALIAN/
+
+Upstream author: Alain Barbet <alian at alianwebserver.com>.
+
+Copyright:
+Copyright 2000 A.Barbet alian at alianwebserver.com. All rights reserved.
+
+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 of the License, or (at
+your option) any later version.
+
+See /usr/share/common-licenses/GPL for a copy of the license.
Added: packages/libfilesys-smbclient-perl/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libfilesys-smbclient-perl/trunk/debian/rules?rev=4462&op=file
==============================================================================
--- packages/libfilesys-smbclient-perl/trunk/debian/rules (added)
+++ packages/libfilesys-smbclient-perl/trunk/debian/rules Thu Nov 30 01:22:28 2006
@@ -1,0 +1,89 @@
+#!/usr/bin/make -f
+#-*- makefile -*-
+# Made with the aid of dh_make, by Craig Small
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+# Some lines taken from debmake, by Christoph Lameter.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+PACKAGE=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+ifndef DESTDIR
+DESTDIR=..
+endif
+TMP =`pwd`/debian/$(PACKAGE)
+
+OPTIMIZE = -O2 -Wall
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+OPTIMIZE += -g
+endif
+
+
+# Fix for the files which have the 'x' bit set in upstream
+fix-upstream:
+ chmod 0644 *
+ chmod 0744 configure
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE) OPTIMIZE="$(OPTIMIZE)" LD_RUN_PATH=""
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ -$(MAKE) realclean
+ dh_clean
+
+install: fix-upstream
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ $(MAKE) install PREFIX=$(TMP)/usr
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installdocs debian/README.Debian
+ dh_installexamples t/*.t smb2www-2.cgi smb2www.css
+
+ # Remove the reference to /usr/share/perl5/ directory, if it's empty.
+ # (Makefile.PL weirdness: it uses this directory, even if not needed.)
+ rmdir --ignore-fail-on-non-empty $(TMP)/usr/share/perl5/
+
+# dh_installmenu
+# dh_installinit
+# dh_installcron
+# dh_installman
+ dh_installchangelogs Changes
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_makeshlibs
+ dh_installdeb
+ dh_perl
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb --destdir=$(DESTDIR)
+
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
Propchange: packages/libfilesys-smbclient-perl/trunk/debian/rules
------------------------------------------------------------------------------
svn:executable = *
Added: packages/libfilesys-smbclient-perl/trunk/debian/watch
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libfilesys-smbclient-perl/trunk/debian/watch?rev=4462&op=file
==============================================================================
--- packages/libfilesys-smbclient-perl/trunk/debian/watch (added)
+++ packages/libfilesys-smbclient-perl/trunk/debian/watch Thu Nov 30 01:22:28 2006
@@ -1,0 +1,2 @@
+version=2
+http://search.cpan.org/CPAN/authors/id/A/AL/ALIAN/Filesys-SmbClient-(.*)\.tar\.gz
More information about the Pkg-perl-cvs-commits
mailing list