debian/0000755000000000000000000000000011764455252007201 5ustar debian/rules0000755000000000000000000000003611764455252010260 0ustar #!/usr/bin/make -f %: dh $@ debian/control0000644000000000000000000000221711764455252010606 0ustar Source: liblockfile-simple-perl Section: perl Priority: optional Maintainer: Debian Perl Group Uploaders: Jay Bonci , Damyan Ivanov , Rene Mayorga , Maximilian Gass , gregor herrmann Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl, liblog-agent-perl Standards-Version: 3.9.3 Homepage: http://search.cpan.org/dist/LockFile-Simple/ Vcs-Git: git://git.debian.org/pkg-perl/packages/liblockfile-simple-perl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/liblockfile-simple-perl.git Package: liblockfile-simple-perl Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, liblog-agent-perl Description: Perl module for simple advisory file locking The LockFile::Simple extension provides simple file locking, of the advisory kind, i.e. it requires cooperation between applications wishing to lock the same files. . It is meant to be used in quick-and-dirty scripts or more elaborated programs that want a simple locking scheme, yet with a reasonable level of configuration. debian/source/0000755000000000000000000000000011764455252010501 5ustar debian/source/format0000644000000000000000000000001411764455252011707 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001205511764455252011056 0ustar liblockfile-simple-perl (0.208-1) unstable; urgency=low [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ gregor herrmann ] * New upstream release. * debian/copyright: update to Copyright-Format 1.0. * Add /me to Uploaders. * Bump Standards-Version to 3.9.3 (no changes). -- gregor herrmann Fri, 08 Jun 2012 22:03:48 +0200 liblockfile-simple-perl (0.207-2) unstable; urgency=low [ gregor herrmann ] * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). [ Rene Mayorga ] * debian/control: update my email address. [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ Salvatore Bonaccorso ] * debian/control: Changed: Replace versioned (build-)dependency on perl (>= 5.6.0-{12,16}) with an unversioned dependency on perl (as permitted by Debian Policy 3.8.3). [ Maximilian Gass ] * Switch to source format 3.0 (quilt) * Add (modified) patch by Baurzhan Ismagulov to detect lock file creation errors (closes: #294972) * Update copyright file: add year 2011, update format * Add patch to fix typos in POD * Add myself to Uploaders * Bump Standards-Version to 3.9.1: no changes necessary * Reduce debian/rules to minimum * Change short description to noun phrase * Switch to debhelper compat level 8 -- Maximilian Gass Wed, 23 Feb 2011 17:16:18 +0100 liblockfile-simple-perl (0.207-1) unstable; urgency=low * New upstream release * debian/copyright - Upstream Added GPL license * debian/control + Set standards-version to 3.8.0 (no changes neede) + debhelper and compat level set to 7 + Add ${misc:Depends} to Depends field + add /myself to uploaders * debian/rules - use dh7 template from dh-make-perl -- Rene Mayorga Fri, 10 Oct 2008 11:13:44 -0600 liblockfile-simple-perl (0.206-1) unstable; urgency=low [ gregor gerrmann ] * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser field (source stanza); Homepage field (source stanza). * Set Maintainer to Debian Perl Group. * Use dist-based URL in debian/watch. * debian/rules: delete /usr/lib/perl5 only if it exists. [ Damyan Ivanov ] * New upstream release * debian/copyright: convert to machine-readable format + upstream license is Artistic-only + update years of copyright * debian/rules: replaced with (adapted) rules.MakeMaker.noxs from dh-make-perl * bump debhelper compatibility level to 5 * Standards-Version: 3.7.3 (no changes) * Move debhelper from B-D-I to B-D * Add myself to Uploaders * debian/watch: improved version matching pattern * Revert the patch to Simple.pm applied to fix #136233 -- warning when not using nfs. The new upstream release now takes care to initialize $hostname for non-nfs usage too. -- Damyan Ivanov Mon, 25 Feb 2008 00:07:12 +0200 liblockfile-simple-perl (0.2.5-7) unstable; urgency=low * Changed priority to optional (from extra) - Now corresponds to override file -- Jay Bonci Wed, 16 Feb 2005 18:28:16 -0500 liblockfile-simple-perl (0.2.5-6) unstable; urgency=low * New maintainer (Closes: #293327) * Changed section from libs to perl * Removed debhelper example files (debian/*.ex, debian/ex.*) * Removed README.Debian file as it was blank * Changed Build-Depends to Build-Depends-Indep * Removed the docs file, as it's only installing the README * Removed README from the package as it is just textified POD * Changed shlibs:depends to perl:depends (now correct) * Bumped debhelper dependancy to 4.1 * Adds debian/compat file per debhelper best practices * Adds Build-Dependancy on perl 5.6.1-16 and liblog-agent-perl * Adds regular dependancy on liblog-agent-perl * Merged to my standard rules template * Cleaned build cruft out of diff -- Jay Bonci Wed, 16 Feb 2005 17:14:33 -0500 liblockfile-simple-perl (0.2.5-5) unstable; urgency=low * Applied patch from Martin Pitt to remove /usr/lib/perl/5.8 since it conflicts with perl-base. Closes: #293315. * I'm orphaning this package. Maintainer set to QA group. -- John Goerzen Wed, 2 Feb 2005 09:21:09 -0600 liblockfile-simple-perl (0.2.5-4) unstable; urgency=low * Made sure to remove .packlist from deb. Closes: #152225, #171871. -- John Goerzen Wed, 5 Feb 2003 16:10:08 -0600 liblockfile-simple-perl (0.2.5-3) unstable; urgency=low * Fix binary-indep target. Closes: #157484. -- John Goerzen Tue, 15 Oct 2002 09:20:03 -0500 liblockfile-simple-perl (0.2.5-2) unstable; urgency=low * Fixed warning. Closes: #136233. -- John Goerzen Sat, 20 Apr 2002 13:10:54 -0500 liblockfile-simple-perl (0.2.5-1) unstable; urgency=low * Initial Release. -- John Goerzen Sat, 6 Jan 2001 17:52:19 -0500 Local variables: mode: debian-changelog add-log-mailing-address "jgoerzen@complete.org" End: debian/compat0000644000000000000000000000000211764455252010377 0ustar 8 debian/patches/0000755000000000000000000000000011764455252010630 5ustar debian/patches/handle-print-error.patch0000644000000000000000000000150711764455252015370 0ustar Description: Detect lock file creation errors Author: Baurzhan Ismagulov Author: Maximilian Gass Origin: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294972 Bug: https://rt.cpan.org/Ticket/Display.html?id=66087 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294972 --- a/Simple.pm +++ b/Simple.pm @@ -422,7 +422,16 @@ # Attempt to create lock if (open(FILE, ">$lockfile")) { local $\ = undef; - print FILE "$stamp\n"; + my $buf = "$stamp\n"; + if (!syswrite(FILE, $buf, length($buf))) { + &$wfunc("writing to $lockfile: $!\n"); + close(FILE); + if (!unlink($lockfile)) { + &$wfunc("removing $lockfile: $!"); + } + umask($mask); + return 0; # Couldn't write to file + } close FILE; open(FILE, $lockfile); # Check lock my $l; debian/patches/series0000644000000000000000000000005711764455252012047 0ustar fix-typo-in-pod.patch handle-print-error.patch debian/patches/fix-typo-in-pod.patch0000644000000000000000000000161111764455252014613 0ustar Description: Fix typo in POD Author: Maximilian Gass Bug: https://rt.cpan.org/Ticket/Display.html?id=66086 --- a/Simple.pm +++ b/Simple.pm @@ -677,7 +677,7 @@ it redirects to the logerr() routine if you have Log::Agent installed, to Perl's warn() function otherwise. -You may set it explicitely to C<\&LockFile::Simple::core_warn> to force the +You may set it explicitly to C<\&LockFile::Simple::core_warn> to force the use of Perl's warn() function, or to C to suppress logging. =item I @@ -746,7 +746,7 @@ it redirects to the logwarn() routine if you have Log::Agent installed, to Perl's warn() function otherwise. -You may set it explicitely to C<\&LockFile::Simple::core_warn> to force the +You may set it explicitly to C<\&LockFile::Simple::core_warn> to force the use of Perl's warn() function, or to C to suppress logging. =item I debian/copyright0000644000000000000000000000271711764455252011143 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: LockFile-Simple Upstream-Contact: Raphael Manfredi Source: http://search.cpan.org/dist/LockFile-Simple/ Files: * Copyright: 2000,2007, Johan Vromans 1998-1999, Raphael Manfredi License: Artistic or GPL-2+ Files: debian/* Copyright: 2001-2005, John Goerzen 2005, Jay Bonci 2008, Damyan Ivanov 2008, Rene Mayorga 2011, Maximilian Gass 2012, gregor herrmann License: Artistic or GPL-2+ Comment: It is assumed that all maintainers license their work using terms that are compatible with upstream license. 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-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 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/watch0000644000000000000000000000014011764455252010225 0ustar version=3 http://search.cpan.org/dist/LockFile-Simple/ .*/LockFile-Simple-v?(\d[\d.]*)\.tar\.gz