--- libfile-pid-perl-1.01.orig/debian/control +++ libfile-pid-perl-1.01/debian/control @@ -0,0 +1,18 @@ +Source: libfile-pid-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 5), quilt (>= 0.40) +Build-Depends-Indep: perl (>= 5.6.10-12), libclass-accessor-perl (>= 0.19) +Maintainer: Debian Perl Group +Uploaders: gregor herrmann +Standards-Version: 3.7.3 +Homepage: http://search.cpan.org/dist/File-Pid/ +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libfile-pid-perl/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libfile-pid-perl/ + +Package: libfile-pid-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, libclass-accessor-perl (>= 0.19) +Description: Perl module for pid file manipulation + File::Pid manages pid files. It creates a pid file, queries the process + within to discover if it's still running, and removes the pid file. --- libfile-pid-perl-1.01.orig/debian/patches/series +++ libfile-pid-perl-1.01/debian/patches/series @@ -0,0 +1 @@ +missing-pidfile.patch --- libfile-pid-perl-1.01.orig/debian/patches/missing-pidfile.patch +++ libfile-pid-perl-1.01/debian/patches/missing-pidfile.patch @@ -0,0 +1,14 @@ +Patch from http://rt.cpan.org/Public/Bug/Display.html?id=18960 to avoid +a warning on calling ->running if the pidfile doesn't exist. + +--- libfile-pid-perl.orig/lib/File/Pid.pm ++++ libfile-pid-perl/lib/File/Pid.pm +@@ -119,7 +119,7 @@ + + sub running { + my $self = shift; +- my $pid = $self->_get_pid_from_file; ++ my $pid = $self->_get_pid_from_file or return undef; + + return kill(0, $pid) + ? $pid --- libfile-pid-perl-1.01.orig/debian/rules +++ libfile-pid-perl-1.01/debian/rules @@ -0,0 +1,62 @@ +#!/usr/bin/make -f +# This debian/rules file is provided as a template for normal perl +# packages. It was created by Marc Brockschmidt for +# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may +# be used freely wherever it is useful. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +# If set to a true value then MakeMaker's prompt function will +# always return the default without waiting for user input. +export PERL_MM_USE_DEFAULT=1 + +PERL ?= /usr/bin/perl +PACKAGE = $(shell dh_listpackages) +TMP = $(CURDIR)/debian/$(PACKAGE) + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) + $(MAKE) test + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + dh_clean build-stamp install-stamp + [ ! -f Makefile ] || $(MAKE) realclean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + [ ! -d $(TMP)/usr/lib/perl5 ] || \ + rmdir --ignore-fail-on-non-empty --parents --verbose \ + $(TMP)/usr/lib/perl5 + touch $@ + +binary-arch: +# We have nothing to do here for an architecture-independent package + +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installchangelogs Changes + dh_perl + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libfile-pid-perl-1.01.orig/debian/watch +++ libfile-pid-perl-1.01/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://search.cpan.org/dist/File-Pid/ .*/File-Pid-v?(\d[\d_.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ --- libfile-pid-perl-1.01.orig/debian/copyright +++ libfile-pid-perl-1.01/debian/copyright @@ -0,0 +1,19 @@ +Upstream source location: http://search.cpan.org/dist/File-Pid/ + +Upstream author: Casey West, + +Files: * +Copyright: (c) 2005 Casey West. All rights reserved. +License: GPL-1+ | Artistic + This module is free software; you can redistribute it and/or modify it + under the same terms as Perl itself. + +Files: debian/* +Copyright: (c) 2008, Debian Perl Group +License: GPL-1+ | Artistic + The packaging is licensed under the same terms as the module itself. + +Perl is distributed under your choice of the GNU General Public License or +the Artistic License. On Debian GNU/Linux systems, the complete text of the +GNU General Public License can be found in `/usr/share/common-licenses/GPL' +and the Artistic Licence in `/usr/share/common-licenses/Artistic'. --- libfile-pid-perl-1.01.orig/debian/compat +++ libfile-pid-perl-1.01/debian/compat @@ -0,0 +1 @@ +5 --- libfile-pid-perl-1.01.orig/debian/changelog +++ libfile-pid-perl-1.01/debian/changelog @@ -0,0 +1,5 @@ +libfile-pid-perl (1.01-1) unstable; urgency=low + + * Initial release (closes: #474398). + + -- gregor herrmann Sat, 05 Apr 2008 16:14:03 +0200