debian/0000775000000000000000000000000012161135700007164 5ustar debian/changelog0000664000000000000000000000176412161134542011051 0ustar liblinux-kernelsort-perl (0.01-3) unstable; urgency=low * Bumped standards version to 3.9.4. * Migrate package from dpatch to format '3.0 (quilt)' (Closes: #664440) * Fixed lintian warnings and errors. -- Maximilian Wilhelm Tue, 04 Jun 2013 14:42:33 +0200 liblinux-kernelsort-perl (0.01-2) unstable; urgency=low * Fixed lintian warning 'description-contains-homepage' and moved homepage from Description to Homepage field for the package. * Bumped Standards-Version to 3.7.3 * Updated debian/copyright to fit copyright information from upstream README -- Maximilian Wilhelm Sat, 29 Dec 2007 18:04:39 +0100 liblinux-kernelsort-perl (0.01-1) unstable; urgency=low * Initial release (Closes: #401940) * Fixed documentation in KernelSort.pm * Accept leading 'v' in version string. * Acceept trailing '-tree' in version string. * Accept 4 digit version (e.g. 2.6.18.2) -- Maximilian Wilhelm Sun, 17 Dec 2006 14:30:40 +0100 debian/control0000664000000000000000000000125312153364530010576 0ustar Source: liblinux-kernelsort-perl Priority: optional Maintainer: Maximilian Wilhelm Build-Depends: debhelper (>= 5), perl (>= 5.6.0-16) Standards-Version: 3.9.4 Section: perl Package: liblinux-kernelsort-perl Architecture: all Depends: perl, ${misc:Depends} Homepage: http://search.cpan.org/dist/Linux-KernelSort/ Description: Perl module for sorting Linux Kernel version strings This is the CPAN Perl module Linux::KernelSort. . Linux::KernelSort is intended to sort a list of kernel versions into ascending order. It also provides the capability to compare two kernel versions and determine if one version is newer, older, or the same as the other version. debian/patches/0000775000000000000000000000000012153361205010615 5ustar debian/patches/03_accept_leading_v_in_version_string.patch0000664000000000000000000000166012153360112021227 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 03_accept_leading_v_in_version_string.dpatch by Maximilian Wilhelm ## ## DP: Let Linux::KernelSort accept a leading 'v' in the version string @DPATCH@ --- liblinux-kernelsort-perl-0.01/lib/Linux/KernelSort.pm 2006-12-06 23:55:25.000000000 +0100 +++ Linuxkernelsort-allow_leading_v/Linux/KernelSort.pm 2006-12-07 00:11:52.000000000 +0100 @@ -75,7 +75,7 @@ my $self = shift; my $version = shift || return undef; - if ( $version !~ m/^\d+\.\d+\.\d+(-rc\d+)?(-git\d+)?(-scsi-misc\d+)?(-scsi-rc-fixes\d+)?(-mm\d+)?$/ ) { + if ( $version !~ m/^(v)?\d+\.\d+\.\d+(-rc\d+)?(-git\d+)?(-scsi-misc\d+)?(-scsi-rc-fixes\d+)?(-mm\d+)?$/ ) { if ( $self->{debug} ) { print "Invalid Kernel Version: $version\n"; } return 1; } @@ -102,6 +102,7 @@ } $version =~ s/\.//g; + $version =~ s/^v//; $version =~ m/^(\d+).*/; my $rank = $1; debian/patches/05_accept_trailing_tree.patch0000664000000000000000000000152112153360112016304 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 05_accept_trailing_tree.dpatch by Maximilian Wilhelm ## ## DP: Let Linux::KernelSort accept a trailing '-tree' in version string @DPATCH@ --- liblinux-kernelsort-perl-0.01/lib/Linux/KernelSort.pm 2006-12-07 00:43:42.000000000 +0100 +++ Linuxkernelsort-allow_trailing_tree_in_version_string/Linux/KernelSort.pm 2006-12-07 00:44:53.000000000 +0100 @@ -75,7 +75,7 @@ my $self = shift; my $version = shift || return undef; - if ( $version !~ m/^(v)?\d+\.\d+\.\d+(\.\d+)?(-rc\d+)?(-git\d+)?(-scsi-misc\d+)?(-scsi-rc-fixes\d+)?(-mm\d+)?$/ ) { + if ( $version !~ m/^(v)?\d+\.\d+\.\d+(\.\d+)?(-rc\d+)?(-git\d+)?(-scsi-misc\d+)?(-scsi-rc-fixes\d+)?(-mm\d+)?(-tree)?$/ ) { if ( $self->{debug} ) { print "Invalid Kernel Version: $version\n"; } return 1; } debian/patches/series0000664000000000000000000000031412153361005012026 0ustar 01_fix_doc_parameter_type.patch 02_fix_missing_semicolons.patch 03_accept_leading_v_in_version_string.patch 04_accept_4_digit_version_string.patch 05_accept_trailing_tree.patch 06_further_doc_fixes.patch debian/patches/02_fix_missing_semicolons.patch0000664000000000000000000000220112153360112016700 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 02_fix_missing_semicolons.dpatch by Maximilian Wilhelm ## ## DP: Add missing semicolons @DPATCH@ --- liblinux-kernelsort-perl-0.01/lib/Linux/KernelSort.pm 2006-12-06 23:55:25.000000000 +0100 +++ Linuxkernelsort-fixed-missing-semicolons/Linux/KernelSort.pm 2006-12-07 00:05:56.000000000 +0100 @@ -115,21 +115,21 @@ if ( $version =~ m/-git(\d+)/ ) { my $git = $1; - $rank = $rank . ".$git" + $rank = $rank . ".$git"; } else { $rank = $rank . ".0"; } if ( $version =~ m/-scsi-misc(\d+)/ ) { my $scsi_misc = $1; - $rank = $rank . ".$scsi_misc" + $rank = $rank . ".$scsi_misc"; } else { $rank = $rank . ".0"; } if ( $version =~ m/-scsi-rc-fixes(\d+)/ ) { my $rc_fixes = $1; - $rank = $rank . ".$rc_fixes" + $rank = $rank . ".$rc_fixes"; } else { $rank = $rank . ".0"; } @@ -138,7 +138,7 @@ my $mm = $1; $rank = $rank . ".$mm"; } else { - $rank = $rank . ".0" + $rank = $rank . ".0"; } return $rank; debian/patches/06_further_doc_fixes.patch0000664000000000000000000000260412153360112015643 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 06_further_doc_fixes.dpatch by Maximilian Wilhelm ## ## DP: Further fixes for the in .pm documentation @DPATCH@ --- liblinux-kernelsort-perl-0.01/lib/Linux/KernelSort.pm 2006-12-07 01:31:30.000000000 +0100 +++ Linuxkernelsort-further_doc_fixes/Linux/KernelSort.pm 2006-12-07 01:23:26.000000000 +0100 @@ -11,29 +11,29 @@ use Linux::KernelSort; my $kernel = new Linux::KernelSort; - int $ret; + my $ret; my $version1 = "2.6.19"; my $version2 = "2.6.19-rc2-git7"; $ret = $kernel->compare($version1, $version2); if ($ret == 0) { - print "$version1 and $version2 are the same version"; + print "$version1 and $version2 are the same version\n"; } elsif ($ret > 0) { - print "$version1 is newer than $version2"; + print "$version1 is newer than $version2\n"; } else { - print "$version1 is older than $version2"; + print "$version1 is older than $version2\n"; } - my @kernel_list = [ '2.6.15', + my @kernel_list = ( '2.6.15', '2.6.18', '2.6.18-rc2', '2.6.18-rc2-git2', '2.6.18-mm1', - '2.6.18-rc2-mm1' ]; + '2.6.18-rc2-mm1' ); my @sorted_list = $kernel->sort(@kernel_list); - print "@sorted_list"; + print join( ', ', @sorted_list ); =head1 DESCRIPTION debian/patches/01_fix_doc_parameter_type.patch0000664000000000000000000000107512153360112016651 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 01_fix_doc_parameter_type.dpatch by Maximilian Wilhelm ## ## DP: Fix doc parameter @DPATCH@ --- liblinux-kernelsort-perl-0.01/lib/Linux/KernelSort.pm 2006-11-11 02:24:48.000000000 +0100 +++ Linuxkernelsort-fixed-paramter-doc/Linux/KernelSort.pm 2006-12-06 23:53:55.000000000 +0100 @@ -31,7 +31,7 @@ '2.6.18-mm1', '2.6.18-rc2-mm1' ]; - my @sorted_list = $kernel->sort($kernel_list); + my @sorted_list = $kernel->sort(@kernel_list); print "@sorted_list"; debian/patches/04_accept_4_digit_version_string.patch0000664000000000000000000000145612153360112020140 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 04_accept_2.6.19.1_version.dpatch by Maximilian Wilhelm ## ## DP: Let Linux::KernelSort accept a 4 digit version string @DPATCH@ --- liblinux-kernelsort-perl-0.01/lib/Linux/KernelSort.pm 2006-12-06 23:55:25.000000000 +0100 +++ Linuxkernelsort-allow_4digit_version_string/Linux/KernelSort.pm 2006-12-07 00:16:52.000000000 +0100 @@ -75,7 +75,7 @@ my $self = shift; my $version = shift || return undef; - if ( $version !~ m/^(v)?\d+\.\d+\.\d+(-rc\d+)?(-git\d+)?(-scsi-misc\d+)?(-scsi-rc-fixes\d+)?(-mm\d+)?$/ ) { + if ( $version !~ m/^(v)?\d+\.\d+\.\d+(\.\d+)?(-rc\d+)?(-git\d+)?(-scsi-misc\d+)?(-scsi-rc-fixes\d+)?(-mm\d+)?$/ ) { if ( $self->{debug} ) { print "Invalid Kernel Version: $version\n"; } return 1; } debian/watch0000664000000000000000000000014212153364574010230 0ustar version=3 http://search.cpan.org/CPAN/authors/id/O/OG/OGASAWARA/Linux-KernelSort-[0-9\.]\+.tar.gz debian/compat0000664000000000000000000000000212153360112010360 0ustar 5 debian/copyright0000664000000000000000000000252612153361307011131 0ustar This package was debianized by Maximilian Wilhelm on Wed, 6 Dec 2006 22:28:33 +0100. It was downloaded from http://search.cpan.org/~ogasawara/Linux-KernelSort-0.01/. Copyright Holder: Leann Ogasawara License: Copyright (C) 2006 Leann Ogasawara All rights reserved. You may distribute this code under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file. Preamble of the GNU General Public License: 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. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file. debian/source/0000775000000000000000000000000012153360562010473 5ustar debian/source/format0000664000000000000000000000001412153360562011701 0ustar 3.0 (quilt) debian/rules0000775000000000000000000000241012153361103010240 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: dh_testdir # Building package perl Makefile.PL INSTALLDIRS=vendor $(MAKE) OPTIMIZE="-O2 -g -Wall" touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp if [ -e Makefile ]; then $(MAKE) -i distclean; fi dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/liblinux-kernelsort-perl rm -rfv debian/liblinux-kernelsort-perl/usr/lib binary-arch: build # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot dh_installchangelogs Changes dh_installdocs dh_compress dh_fixperms dh_perl dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep .PHONY: build clean binary-indep binary install