r6061 - in /trunk/libsys-utmp-perl: debian/ debian/changelog debian/compat debian/control debian/copyright debian/rules debian/watch t/06taint.t t/07utent_methods.t t/08utent_types.t

joeyh at users.alioth.debian.org joeyh at users.alioth.debian.org
Mon Jul 30 05:13:56 UTC 2007


Author: joeyh
Date: Mon Jul 30 05:13:55 2007
New Revision: 6061

URL: http://svn.debian.org/wsvn/?sc=1&rev=6061
Log:
[svn-inject] Applying Debian modifications to trunk

Added:
    trunk/libsys-utmp-perl/debian/
    trunk/libsys-utmp-perl/debian/changelog
    trunk/libsys-utmp-perl/debian/compat
    trunk/libsys-utmp-perl/debian/control
    trunk/libsys-utmp-perl/debian/copyright
    trunk/libsys-utmp-perl/debian/rules   (with props)
    trunk/libsys-utmp-perl/debian/watch
Modified:
    trunk/libsys-utmp-perl/t/06taint.t
    trunk/libsys-utmp-perl/t/07utent_methods.t
    trunk/libsys-utmp-perl/t/08utent_types.t

Added: trunk/libsys-utmp-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libsys-utmp-perl/debian/changelog?rev=6061&op=file
==============================================================================
--- trunk/libsys-utmp-perl/debian/changelog (added)
+++ trunk/libsys-utmp-perl/debian/changelog Mon Jul 30 05:13:55 2007
@@ -1,0 +1,45 @@
+libsys-utmp-perl (1.6-3) unstable; urgency=low
+
+  * Fix the test suite to not die if the utmp file is empty.
+    Closes: #394618
+
+ -- Joey Hess <joeyh at debian.org>  Tue, 24 Oct 2006 12:31:48 -0400
+
+libsys-utmp-perl (1.6-2) unstable; urgency=low
+
+  * The test suite depends on the system having a utmp file, and since utmp
+    files are IIRC not portable across arches, it's not easy to include a demo
+    one for the tests to run against. Instead, if the utmp file is not
+    present, skip the test suite. Closes: #394618
+
+ -- Joey Hess <joeyh at debian.org>  Sun, 22 Oct 2006 15:16:41 -0400
+
+libsys-utmp-perl (1.6-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Joey Hess <joeyh at debian.org>  Sun, 22 Oct 2006 00:53:24 -0400
+
+libsys-utmp-perl (1.5-4) unstable; urgency=low
+
+  * Update to current stadands-version.
+
+ -- Joey Hess <joeyh at debian.org>  Sat, 23 Jul 2005 19:34:31 -0400
+
+libsys-utmp-perl (1.5-3) unstable; urgency=low
+
+  * Built for perl 5.8.
+
+ -- Joey Hess <joeyh at debian.org>  Wed, 31 Jul 2002 02:42:19 +0000
+
+libsys-utmp-perl (1.5-2) unstable; urgency=low
+
+  * Debhelper v4. Fixed dpkg-dev build-dep.
+
+ -- Joey Hess <joeyh at debian.org>  Mon, 29 Jul 2002 19:05:43 +0000
+
+libsys-utmp-perl (1.5-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Joey Hess <joeyh at debian.org>  Tue, 12 Feb 2002 20:49:36 -0500

Added: trunk/libsys-utmp-perl/debian/compat
URL: http://svn.debian.org/wsvn/trunk/libsys-utmp-perl/debian/compat?rev=6061&op=file
==============================================================================
--- trunk/libsys-utmp-perl/debian/compat (added)
+++ trunk/libsys-utmp-perl/debian/compat Mon Jul 30 05:13:55 2007
@@ -1,0 +1,1 @@
+5

Added: trunk/libsys-utmp-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libsys-utmp-perl/debian/control?rev=6061&op=file
==============================================================================
--- trunk/libsys-utmp-perl/debian/control (added)
+++ trunk/libsys-utmp-perl/debian/control Mon Jul 30 05:13:55 2007
@@ -1,0 +1,15 @@
+Source: libsys-utmp-perl
+Section: perl
+Priority: optional
+Build-Depends: debhelper (>= 5), perl (>= 5.8), dpkg-dev (>= 1.9.0)
+Maintainer: Joey Hess <joeyh at debian.org>
+Standards-Version: 3.7.2
+XS-Vcs-Svn: svn://svn.kitenet.net/joey/trunk/src/packages/libsys-utmp-perl
+
+Package: libsys-utmp-perl
+Architecture: any
+Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: perl module to query UTMP files
+ Sys::Utmp provides a vaguely object oriented interface to the Unix user
+ accounting file /var/run/utmp, and other files of similar format. It can
+ only be used to query the contents of the file, and cannot modify it.

Added: trunk/libsys-utmp-perl/debian/copyright
URL: http://svn.debian.org/wsvn/trunk/libsys-utmp-perl/debian/copyright?rev=6061&op=file
==============================================================================
--- trunk/libsys-utmp-perl/debian/copyright (added)
+++ trunk/libsys-utmp-perl/debian/copyright Mon Jul 30 05:13:55 2007
@@ -1,0 +1,18 @@
+This is a Debian prepackaged version of the Sys::Utmp perl module.
+
+This package was put together by Joey Hess <joeyh at debian.org>, using
+sources from the CPAN.
+
+The following copyright applies to this package:
+
+  Copyright Netscalibur UK 2001.
+  Copyright Jonathan Stowe 2001.
+
+  This software carries no warranty either express or implied.
+
+  This is free software it can be copied and/or modified under the same terms
+  as perl itself.
+
+Perl, and thus this software, is dual licensed under the Artistic and GPL
+licences. The complete text to both can be found in
+/usr/share/common-licenses/

Added: trunk/libsys-utmp-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libsys-utmp-perl/debian/rules?rev=6061&op=file
==============================================================================
--- trunk/libsys-utmp-perl/debian/rules (added)
+++ trunk/libsys-utmp-perl/debian/rules Mon Jul 30 05:13:55 2007
@@ -1,0 +1,49 @@
+#!/usr/bin/make -f
+
+OPTIMIZE = -O2 -Wall -g
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	
+	perl Makefile.PL INSTALLDIRS=vendor
+	$(MAKE) OPTIMIZE="$(OPTIMIZE)"
+	if [ -e /var/run/utmp ]; then \
+		$(MAKE) test; \
+	fi
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	-$(MAKE) realclean
+	dh_clean
+
+install: 
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	$(MAKE) install PREFIX=`pwd`/debian/libsys-utmp-perl/usr
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installexamples examples/pwho
+	dh_installchangelogs Changes
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_perl 
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary

Propchange: trunk/libsys-utmp-perl/debian/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: trunk/libsys-utmp-perl/debian/watch
URL: http://svn.debian.org/wsvn/trunk/libsys-utmp-perl/debian/watch?rev=6061&op=file
==============================================================================
--- trunk/libsys-utmp-perl/debian/watch (added)
+++ trunk/libsys-utmp-perl/debian/watch Mon Jul 30 05:13:55 2007
@@ -1,0 +1,2 @@
+version=2
+http://search.cpan.org/search?dist=Sys-Utmp .*/Sys-Utmp-(.*).tar.gz

Modified: trunk/libsys-utmp-perl/t/06taint.t
URL: http://svn.debian.org/wsvn/trunk/libsys-utmp-perl/t/06taint.t?rev=6061&op=diff
==============================================================================
--- trunk/libsys-utmp-perl/t/06taint.t (original)
+++ trunk/libsys-utmp-perl/t/06taint.t Mon Jul 30 05:13:55 2007
@@ -23,5 +23,8 @@
  
 my $utent =  $utmp->getutent();
 
-ok(tainted($utent->ut_user()),"ut_user is tainted");
-ok(tainted($utent->ut_host()),"ut_host is tainted");
+SKIP: {
+	skip "no utmp entries", 2 if ! $utent;
+	ok(tainted($utent->ut_user()),"ut_user is tainted");
+	ok(tainted($utent->ut_host()),"ut_host is tainted");
+}

Modified: trunk/libsys-utmp-perl/t/07utent_methods.t
URL: http://svn.debian.org/wsvn/trunk/libsys-utmp-perl/t/07utent_methods.t?rev=6061&op=diff
==============================================================================
--- trunk/libsys-utmp-perl/t/07utent_methods.t (original)
+++ trunk/libsys-utmp-perl/t/07utent_methods.t Mon Jul 30 05:13:55 2007
@@ -7,10 +7,13 @@
 
 my $utent = $utmp->getutent();
 
-ok(defined $utent->ut_user(),"ut_user");
-ok(defined $utent->ut_id(),"ut_id");
-ok(defined $utent->ut_line(),"ut_line");
-ok(defined $utent->ut_pid(),"ut_pid");
-ok(defined $utent->ut_type(),"ut_type");
-ok(defined $utent->ut_host(),"ut_host");
-ok(defined $utent->ut_time(),"ut_time");
+SKIP: {
+	skip "no utmp entries", 7 if ! $utent;
+	ok(defined $utent->ut_user(),"ut_user");
+	ok(defined $utent->ut_id(),"ut_id");
+	ok(defined $utent->ut_line(),"ut_line");
+	ok(defined $utent->ut_pid(),"ut_pid");
+	ok(defined $utent->ut_type(),"ut_type");
+	ok(defined $utent->ut_host(),"ut_host");
+	ok(defined $utent->ut_time(),"ut_time");
+}

Modified: trunk/libsys-utmp-perl/t/08utent_types.t
URL: http://svn.debian.org/wsvn/trunk/libsys-utmp-perl/t/08utent_types.t?rev=6061&op=diff
==============================================================================
--- trunk/libsys-utmp-perl/t/08utent_types.t (original)
+++ trunk/libsys-utmp-perl/t/08utent_types.t Mon Jul 30 05:13:55 2007
@@ -6,13 +6,16 @@
 my $utmp = Sys::Utmp->new();
 my $utent = $utmp->getutent();
 
-ok(defined $utent->accounting(),"accounting");
-ok(defined $utent->boot_time(),"boot_time");
-ok(defined $utent->dead_process(),"dead_process");
-ok(defined $utent->empty(),"empty");
-ok(defined $utent->init_process(),"init_process");
-ok(defined $utent->login_process(),"login_process");
-ok(defined $utent->new_time(),"new_time");
-ok(defined $utent->old_time(),"old_time");
-ok(defined $utent->run_lvl(),"run_lvl");
-ok(defined $utent->user_process(),"user_process");
+SKIP: {
+	skip "no utmp entries", 10 if ! $utent;
+	ok(defined $utent->accounting(),"accounting");
+	ok(defined $utent->boot_time(),"boot_time");
+	ok(defined $utent->dead_process(),"dead_process");
+	ok(defined $utent->empty(),"empty");
+	ok(defined $utent->init_process(),"init_process");
+	ok(defined $utent->login_process(),"login_process");
+	ok(defined $utent->new_time(),"new_time");
+	ok(defined $utent->old_time(),"old_time");
+	ok(defined $utent->run_lvl(),"run_lvl");
+	ok(defined $utent->user_process(),"user_process");
+}




More information about the Pkg-perl-cvs-commits mailing list