debian/0000755000000000000000000000000012064613447007175 5ustar debian/source/0000755000000000000000000000000012064613447010475 5ustar debian/source/format0000644000000000000000000000001412064613447011703 0ustar 3.0 (quilt) debian/dirs0000644000000000000000000000001012064613447010050 0ustar usr/bin debian/watch0000644000000000000000000000022012064613447010220 0ustar # See uscan(1) for format version=3 # http://www.philippwesche.org/200811/whohas/intro.html whohas-(.*)\.tar\.gz debian/patches/0000755000000000000000000000000012064613447010624 5ustar debian/patches/series0000644000000000000000000000036112064613447012041 0ustar 04-manpage-0.23 05-manpage-0.24 06-ubuntu-versions 10-debian-versions 26-help-param 30-strictness 35-gentoo-result-url-516071 40-improve-fetchdoc openbsd-cache-results 60-dont-mask-vars-560891 95-archlinux-url-561536 96-fedora-search-619873 debian/patches/05-manpage-0.240000644000000000000000000000132312064613447012761 0ustar Description: Update the version number in the manual from 0.23 to 0.24. Author: Jonathan Wiltshire Forwarded: phi1ipp@yahoo.com --- usr/share/man/man1/whohas.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: whohas-0.29/usr/share/man/man1/whohas.1 =================================================================== --- whohas-0.29.orig/usr/share/man/man1/whohas.1 2012-01-15 14:32:29.366201967 -0300 +++ whohas-0.29/usr/share/man/man1/whohas.1 2012-01-15 14:32:31.994092003 -0300 @@ -1,4 +1,4 @@ -.TH "whohas" "1" "0.23" "Jonathan Wiltshire" "" +.TH "whohas" "1" "0.24" "Jonathan Wiltshire" "" .SH "NAME" .LP whohas \- find packages in various distributions' repositories debian/patches/30-strictness0000644000000000000000000001277412064613447013203 0ustar ## Description: Add a --strict option to output only exactly matching package names ## Origin/Author: Jonathan Wiltshire ## Bug: http://bugs.debian.org/510020 --- a/program/whohas +++ b/program/whohas @@ -72,21 +72,23 @@ my @distroSelections; my $nothreads; my $shallow; my $option_help; +my $option_strict; GetOptions( "d=s" => \@distroSelections, "no-threads" => \$nothreads, "shallow" => \$shallow, "help|usage|h" => \$option_help, + "strict|s" => \$option_strict, ); if ($option_help) { - print "Usage: $0 [--no-threads] [--shallow] [-d Dist1[,Dist2[,Dist3...]]] pkgname\n"; + print "Usage: $0 [--no-threads] [--shallow] [--strict] [-d Dist1[,Dist2[,Dist3...]]] pkgname\n"; exit 0; } if (@ARGV > 1) { - die "Error:\tToo many parameters. Usage: $0 [--no-threads] [--shallow] [-d Dist1[,Dist2[,Dist3...]]] pkgname\n"; + die "Error:\tToo many parameters. Usage: $0 [--no-threads] [--shallow] [--strict] [-d Dist1[,Dist2[,Dist3...]]] pkgname\n"; } elsif (@ARGV < 1) { die "Error:\tPlease specify a search term.\n"; } @@ -1172,6 +1174,9 @@ sub fetchdoc { } sub pretty_print { + if( $option_strict && trim($_[$cols+2]) ne $ARGV[0]) { + return; # strictness enabled, we should print exact matches only + } my $n = $_[0]; my @colwidths = @_[1..$n]; my @colvals = @_[($n+1)..(@_-1)]; @@ -1190,6 +1195,15 @@ sub pretty_print { print $colvals[@colvals-1]."\n"; #last column is unrestricted in length } +sub trim($) { + # Perl trim function to remove whitespace from the start and end of the + # string + my $string = shift; + $string =~ s/^\s+//; + $string =~ s/\s+$//; + return $string; +} + sub prep_suse_repo { if ($_[0] =~ /http\:\/\/download\.opensuse\.org/) { if ($_[0] =~ /repositories/) { --- a/usr/share/man/de/man1/whohas.1 +++ b/usr/share/man/de/man1/whohas.1 @@ -1,35 +1,38 @@ -.TH "whohas" "1" "0.23" "Philipp Wesche" "" +.TH "whohas" "1" "0.29" "Philipp Wesche" "" .SH "NAME" -.LP +.LP whohas \- findet Pakete in verschiedenen Repositories .SH "SYNTAX" -.LP -whohas [\fI\-\-no\-threads\fP] [\fI\-d Dist1[,Dist2[,Dist3 etc.]]\fP] \fIpkgname\fP +.LP +whohas [\fI\-\-no\-threads\fP] [\fI\-\-shallow\fP] [\fI\-\-strict\fP] [\fI\-d Dist1[,Dist2[,Dist3 etc.]]\fP] \fIpkgname\fP .SH "BESCHREIBUNG" -.LP +.LP whohas ist ein Kommandozeilenprogramm, das verfügbare Pakete von Arch, Debian, Fedora, Gentoo, Mandriva, openSUSE, Slackware (and linuxpackages.net), Source Mage, Ubuntu, FreeBSD, NetBSD, OpenBSD, Fink, MacPorts und Cygwin findet, die einem Suchbegriff entsprechen. .SH "OPTIONEN" -.LP -.TP +.LP +.TP \fB\-\-no\-threads\fR Keine Threads bei der Ausführung, Repositories werden seriell nacheinander befragt und jeweils die Antwort abgewartet (sehr viel langsamer) -.TP +.TP \fB\-\-shallow\fR Nur ein Aufruf pro Server. Bietet weniger Informationen, ist aber schneller. Typischerweise sind Informationen über Größe und Release-Datum der Pakete betroffen. -.TP +.TP +\fB\-\-strict\fR +Listet nur die Pakete, die genau \fIpkgname\fP haben wie ihr Name. +.TP \fB\-d Dist1[,Dist2[,Dist3 etc.]]\fR Durchsucht nur aufgelistete Distributionen. Gültige Angaben für Dist1 etc. sind "archlinux", "cygwin", "debian", "fedora", "fink", "freebsd", "gentoo", "macports", "mandriva", "netbsd", "openbsd", "opensuse", "slackware", "sourcemage", und "ubuntu". -.TP +.TP \fBpkgname\fR Suchbegriff .SH "DATEIEN" .LP whohas speichert Cachedateien für einige Repositories in ~/.whohas .SH "SIEHE AUCH" -.LP +.LP \fIintro.txt\fP und \fI/usr/share/doc/whohas/intro.html\fP sind alternative Quellen über whohas. .SH "AUTOR" -.LP +.LP whohas wird von Philipp Wesche entwickelt. -.LP +.LP Diese Dokumentation wurde von Philipp Wesche geschrieben, basierend auf einer Vorlage von Jonathan Wiltshire für das Debian Projekt. --- a/usr/share/man/man1/whohas.1 +++ b/usr/share/man/man1/whohas.1 @@ -1,32 +1,35 @@ -.TH "whohas" "1" "0.24" "Jonathan Wiltshire" "" +.TH "whohas" "1" "0.29" "Jonathan Wiltshire" "" .SH "NAME" -.LP +.LP whohas \- find packages in various distributions' repositories .SH "SYNTAX" -.LP -whohas [\fI\-\-no\-threads\fP] [\fI\-\-shallow\fP] [\fI\-d Dist1[,Dist2[,Dist3 etc.]]\fP] \fIpkgname\fP +.LP +whohas [\fI\-\-no\-threads\fP] [\fI\-\-shallow\fP] [\fI\-\-strict\fP] [\fI\-d Dist1[,Dist2[,Dist3 etc.]]\fP] \fIpkgname\fP .SH "DESCRIPTION" -.LP +.LP whohas is a command line tool to query package lists from the Arch, Debian, Fedora, Gentoo, Mandriva, openSUSE, Slackware (and linuxpackages.net), Source Mage, Ubuntu, FreeBSD, NetBSD, OpenBSD, Fink, MacPorts and Cygwin distributions. .SH "OPTIONS" -.LP -.TP +.LP +.TP \fB\-\-no\-threads\fR Don't use multiple threads to query package lists (will be much slower) -.TP +.TP \fB\-\-shallow\fR Limit to one call per server. Faster, but loses some information, typically package size and release date. -.TP +.TP +\fB\-\-strict\fR +List only those packages that have exactly \fIpkgname\fP as their name. +.TP \fB\-d Dist1[,Dist2[,Dist3 etc.]]\fR Queries only for packages for the listed distributions. Recognised values for Dist1, Dist2, etc. are "archlinux", "cygwin", "debian", "fedora", "fink", "freebsd", "gentoo", "mandriva", "macports", "netbsd", "openbsd", "opensuse", "slackware", "sourcemage", and "ubuntu". -.TP +.TP \fBpkgname\fR Package name to query for .SH "FILES" .LP whohas uses various files in ~/.whohas to cache package lists for some distributions. .SH "SEE ALSO" -.LP +.LP See \fIintro.txt\fP or \fIintro.html\fP notes on using whohas. .SH "AUTHORS" .LP debian/patches/10-debian-versions0000644000000000000000000000134512064613447014060 0ustar From: Yaroslav Halchenko Subject: Fetch all versions from the same page for Debian Similarly to Ubuntu's logic supplied in 06-ubuntu-versions patch -- fetch all versions available from the same page without querying each suite separately. This way we also get possibly present urls to backports (#655497). Also altogether should be more efficient avoiding multiple fetches/parsings. Origin: Debian Bug-Debian: http://bugs.debian.org/655497 Last-Update: 2012-09-27 --- a/program/whohas +++ b/program/whohas @@ -938,7 +938,7 @@ sub debian_size_convert { } sub debian { - my @dists = ( 'stable', 'testing' ); + my @dists = ( 'all' ); &debuntu('http://packages.debian.org','Debian',\@dists,$_[0]); return(); } debian/patches/60-dont-mask-vars-5608910000644000000000000000000000104212064613447014407 0ustar Description: Remove a double-declaration of @dates Author: Jonathan Wiltshire Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560891 Forwarded: phi1ipp@yahoo.com --- program/whohas | 1 - 1 file changed, 1 deletion(-) --- a/program/whohas +++ b/program/whohas @@ -1041,7 +1041,6 @@ sub aur { my @dates; my @urls; my @sizes; - my @dates; my $indicator = 0; for (my $i = 100; $i < @lines; $i++) { # 100 is a compromise between safety and efficiency if ($lines[$i] =~ //, $lines[($i+2)])[1]; for (my $a = $i+1; $a < $i + 20; $a++) { - if ($lines[$a] =~ /

/) { my @temps = split /\"\>|\<\/a\>/, $lines[$a]; $temps[1] =~ s/\/openSUSE_$major\.$minor$//; $temps[1] =~ s/^openSUSE\:$major\.$minor\///; @@ -1292,7 +1292,7 @@ } } for (my $a = $i + 10; $a < $i + 50; $a++) { - if ($lines[$a] =~ /a style="margin-right: 2em" href/) { + if ($lines[$a] =~ //) { my @parts = split /\"\>|\<\/a\>/, $lines[$a]; my @segments = split /\-/, $parts[1]; push @versions, $segments[(@segments-2)]; @@ -1304,7 +1304,7 @@ push @dates, ''; push @groups, ''; } - if ($lines[$i] =~ /type:'post', url:'\/search\/search.*'\}\); return false;">$continuity<\/a>/) { + if ($lines[$i] =~ /type:'post', url:'\/search.*'\}\); return false;">$continuity<\/a>/) { push @lines, split /\n/, &fetchdoc($opensusebase."?q=".$_[0]."&baseproject=openSUSE:".$release_string.'&p='.$continuity); $continuity++; } debian/patches/35-gentoo-result-url-5160710000644000000000000000000000237412064613447015152 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 35-gentoo-result-url-516071.dpatch by Jonathan Wiltshire ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Return a more official link to the gentoo package, where more useful ## DP: information can be found @DPATCH@ --- a/program/whohas +++ b/program/whohas @@ -712,6 +712,7 @@ sub cygwin { sub gentoo { my $gentoobase = "http://gentoo-portage.com"; + my $gentoobaseofficial = "http://packages.gentoo.org/package"; my $distroname = "Gentoo"; my @names; my @versions; @@ -733,6 +734,7 @@ sub gentoo { my @dosparts = split /\//, $parts[1]; $dosparts[1] =~ / +$/; my $tempurl = $gentoobase."/".$dosparts[0]."/".$dosparts[1]; + my $officialurl = $gentoobaseofficial."/".$dosparts[0]."/".$dosparts[1]; my @newlines = split /\n/, &fetchdoc($tempurl); for (my $li = 0; $li < @newlines; $li++) { if ($newlines[$li] =~ /\
  • Subject: Reincarnated and refactored the patch to fetch multiple suites from listing page for ubuntu (and Debian) original patch had header: ## 06-ubuntu-versions-510203.dpatch by Jonathan Wiltshire ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Patch to show all versions of a package from Ubuntu, not just ## DP: the earliest, see bug 510203. ## DP: Additionally, show the repo that the package is from (eg. universe) ## DP: Original patch from Steve Cotton ## DP: Status: forwarded upstream to Philipp Wesche I have not relied on it actually but redone it, this time relying more on the markup instead of lines counts. Also fixed stripping of additional HREFs after the version (e.g. to backports repo) Origin: Debian Bug-Debian: http://bugs.debian.org/670675 Last-Update: 2012-09-27 --- a/program/whohas +++ b/program/whohas @@ -51,7 +51,7 @@ my @columns = (11,38,18,4,10,25); my $cols = 6; my $fedora_release = 16 ; -my $ubuntu_current_release = "oneiric" ; +my $ubuntu_current_release = "all" ; my $opensuse_major = "12" ; my $opensuse_minor = "1" ; my $mandrivaVersion = "2011.0" ; @@ -964,17 +964,31 @@ sub debuntu { for (my $i = 50; $i < @lines; $i++) { if ($lines[$i] =~ /

    Package /) { my $name = (split /h3>Package |<\/h3>/, $lines[$i])[1]; - push @names, $name; - my @parts = split /href\=\"|\"\>|<\/a\>/, $lines[$i+3]; - $parts[4] =~ s/ \(|\)://g; - push @groups, $parts[4]; - push @repos, $dists[$x]; - push @urls, $baseurl.$parts[2]; - push @dates, ""; - @parts = split />|: /, $lines[$i+6]; - $parts[1] =~ s/ \[\intrepid (base): + # $lines[$i+3]
    1.14.20ubuntu6: amd64 i386 + # And this list starts with
      and ends with
    + $i += 1; + while (($lines[$i] !~ '') && ($i < @lines)) { + if ($lines[$i] =~ /class="resultlink"/) { + push @names, $name; + my @parts = split /href\=\"|\"\>|<\/a\>/, $lines[$i]; + $parts[4] =~ s/ \(|\)://g; + push @groups, $parts[4]; + push @repos, $dists[$x]; + push @urls, $baseurl.$parts[2]; + push @dates, ""; + my $vline = $lines[$i+3]; + # prune possibly existing link to backports + $vline =~ s/ *\[.*strong.*\]//g; + # Split lines e.g. "0.8.4-3+squeeze1: all" + @parts = split />|: /, $vline; + push @versions, $parts[1]; + $i += 4; # do not be too greedy + } else { + $i += 1; + } + } } } } debian/patches/openbsd-cache-results0000644000000000000000000000106512064613447014743 0ustar For OpenBSD, use @name to loop through a cached list, not @repos which is never populated. Status: sent upstream Reported: http://bugs.debian.org/557724 Author: Jonathan Wiltshire --- a/program/whohas +++ b/program/whohas @@ -666,7 +666,7 @@ sub openbsd_older { close OUT; } my $matcher = $_[0]; - for (my $i = 0; $i < @repos; $i++) { + for (my $i = 0; $i < @names; $i++) { if ($names[$i] =~ /$matcher/i) { &pretty_print($cols,@columns,$distroname,$names[$i],$versions[$i],$sizes[$i],$dates[$i],$repos[$i],$urls[$i]); } debian/patches/96-fedora-search-6198730000644000000000000000000000313412064613447014266 0ustar ## Description: Support fedora's package listing ## Origin/Author: maxy@debian.org ## Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619873 --- a/program/whohas +++ b/program/whohas @@ -187,27 +187,26 @@ sub fedora { for (my $a = 0; $a < @fed_urls; $a++) { my @lines = split /\n/, &fetchdoc($baseurl.$fed_urls[0]); for (my $li = 0; $li < @lines; $li++) { - if ($lines[$li] =~ /\/icons\/unknown\.gif/) { - my @parts = split /\<|\>|\"/, $lines[$li]; - my $prev_release = $fedora_release - 1; - $parts[22] =~ s/\.fc($fedora_release|$prev_release).+//; - my ($name,$version) = &combos($parts[22]); - push @dates, &month_to_digits($parts[32]); - $parts[38] =~ s/^\s+//; - push @sizes, $parts[38]; + if ($lines[$li] =~ /\.rpm<\/a>/) { + my $line = trim($lines[$li]); + my @parts = split / +|<|>|"/, $line, 10; + $parts[5] =~ s/\.fc[0-9]+.+$//; + my ($name,$version) = &combos($parts[5]); + push @dates, &month_to_digits($parts[7])." ".$parts[8]; + push @sizes, $parts[9]; push @names, $name; push @versions, $version; push @repos, ""; - push @urls, ""; + push @urls, "$baseurl$fed_urls[0]/$parts[3]"; } } } + open OUT, ">$file"; + for (my $i = 0; $i < @urls;$i++) { + print OUT "$names[$i]\t$versions[$i]\t$sizes[$i]\t$dates[$i]\n"; + } + close OUT; } - open OUT, ">$file"; - for (my $i = 0; $i < @urls;$i++) { - print OUT "$names[$i]\t$versions[$i]\t$sizes[$i]\t$dates[$i]\n"; - } - close OUT; } for (my $i = 0; $i < @names; $i++) { if ($names[$i] =~ /$searchy/i) { debian/patches/04-manpage-0.230000644000000000000000000000167512064613447012771 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 05-manpage-0.23.dpatch by Jonathan Wiltshire ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Add the --shallow option to the syntax line in the manpage ## DP: Status: Sent upstream to phi1ipp@yahoo.com @DPATCH@ --- whohas-0.23.orig/usr/share/man/man1/whohas.1 +++ whohas-0.23/usr/share/man/man1/whohas.1 @@ -4,7 +4,7 @@ whohas \- find packages in various distributions' repositories .SH "SYNTAX" .LP -whohas [\fI\-\-no\-threads\fP] [\fI\-d Dist1[,Dist2[,Dist3 etc.]]\fP] \fIpkgname\fP +whohas [\fI\-\-no\-threads\fP] [\fI\-\-shallow\fP] [\fI\-d Dist1[,Dist2[,Dist3 etc.]]\fP] \fIpkgname\fP .SH "DESCRIPTION" .LP whohas is a command line tool to query package lists from the Arch, Debian, Fedora, Gentoo, Mandriva, openSUSE, Slackware (and linuxpackages.net), Source Mage, Ubuntu, FreeBSD, NetBSD, OpenBSD, Fink, MacPorts and Cygwin distributions. debian/patches/40-improve-fetchdoc0000644000000000000000000000326712064613447014236 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 40-improve-fetchdoc.dpatch by Jonathan Wiltshire ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Shift some of the burden in sub fetchdoc onto the LWP::UserAgent class ## DP: This also allows us to process XML files without breaking the first line @DPATCH@ --- a/program/whohas +++ b/program/whohas @@ -1146,33 +1146,16 @@ sub fetchdoc { my $ua = LWP::UserAgent->new; $ua->env_proxy; - my @firstline; - my @response; - for (my $count = 0; ; ++$count) { # termination condition inside loop - my $req = HTTP::Request->new(GET => $url); - my $res = $ua->request($req)->as_string; - @response = split (/\n/, $res); - @firstline = split (/ /, $response[0]); - my $restest = 0; - if (@firstline == 3) { - $restest = $firstline[1]; - } elsif (@firstline > 3) { - $restest = $firstline[0]; - } - if ($restest == 200 || $response[0] =~ /200 OK/) { #NB the matching expression added specifically for NetBSD package page! - # server response 200 is a stringent criterion, but should work - last; - } elsif ($count > 4) { # loop termination condition - unless ($silent == 1) { - print ("Tried fetching \"$url\" five times. Giving up.\n"); - } - return (); - last; + my $response = $ua->get($url); + if($response->is_success) { + return $response->decoded_content; + } else { + unless ($silent == 1) + { + print("Couldn't fetch \"$url\". Giving up.\n"); } + return(); } - my $end = @response - 1; - my $finaldoc = join ("\n", @response[14..$end]); - return ($finaldoc); } sub pretty_print { debian/patches/26-help-param0000644000000000000000000000171112064613447013022 0ustar ## Description: Handle the --help parameter instead of assuming it is a package name. ## Origin/Author: Jonathan Wiltshire ## Bug: http://bugs.debian.org/513476 Index: whohas-0.29/program/whohas =================================================================== --- whohas-0.29.orig/program/whohas 2012-01-15 14:39:18.213163043 -0300 +++ whohas-0.29/program/whohas 2012-01-15 14:48:37.161862163 -0300 @@ -71,12 +71,20 @@ my @distroSelections; my $nothreads; my $shallow; +my $option_help; + GetOptions( "d=s" => \@distroSelections, "no-threads" => \$nothreads, - "shallow" => \$shallow + "shallow" => \$shallow, + "help|usage|h" => \$option_help, ); +if ($option_help) { + print "Usage: $0 [--no-threads] [--shallow] [-d Dist1[,Dist2[,Dist3...]]] pkgname\n"; + exit 0; +} + if (@ARGV > 1) { die "Error:\tToo many parameters. Usage: $0 [--no-threads] [--shallow] [-d Dist1[,Dist2[,Dist3...]]] pkgname\n"; } elsif (@ARGV < 1) { debian/changelog0000644000000000000000000002031612064613447011051 0ustar whohas (0.29-0.3) unstable; urgency=low * Non-maintainer upload. * debian/patches/10-debian-versions -- fixed up wording and removed obsolete meta-information (Thanks to Adam D. Barratt for the review) -- Yaroslav Halchenko Thu, 20 Dec 2012 08:44:38 -0500 whohas (0.29-0.2) unstable; urgency=low * Non-maintainer upload. * Fixed and improved 06-ubuntu-versions to get information on all reported releases for Ubuntu (Closes: #670675) * Adjusted 10-debian-versions to rely on fixed in 06-ubuntu-versions functionality to fetch information on all available releases at once, instead of looping through predefined list of releases. This way it should obtain information about oldstable and backports when available (Closes: #616297,#655497) * The other patches in the series were updated -- Yaroslav Halchenko Thu, 27 Sep 2012 10:14:28 -0400 whohas (0.29-0.1) unstable; urgency=low * Non-maintainer upload. * New upstream release (Closes: #516408) (Closes: #651322) * New patch 96-fedora-search-619873 to support the newer fedora package listing (Closes: #619873) * Remove patch 25-use-getopt-513473 (applied by upstream) * Remove patch 50-opkg-repo (repository not responding) * Remove patch 70-fedora-version (merged into 96-fedora-search-619873) * Update patches to apply cleanly in the new upstream release: - 06-ubuntu-versions - 10-debian-versions - 26-help-param - 30-strictness * Standards version 3.9.2 (no changes) -- Maximiliano Curia Wed, 07 Dec 2011 10:16:36 -0300 whohas (0.24-2) unstable; urgency=low * New patch 70-fedora-version to search Fedora 14 (Closes: #575909) * New patch to update openSUSE search URLs (Closes: #585596) - thanks to Guillaume Delacour * New patch to update OpenBSD search URLs (Closes: #586537) - thanks to Guillaume Delacour * New patch to update Arch search URLs (Closes: #561536) - thanks to Guillaume Delacour * Update my email address and remove DMUA flag * Standards version 3.9.1 (no changes required) -- Jonathan Wiltshire Sun, 05 Dec 2010 22:13:15 +0000 whohas (0.24-1) unstable; urgency=low * New upstream release * Refactor existing patches to fit new upstream. Patch 05-manpage-0.23 is renamed to 04-manpage-0.23, and patch openbsd-4.6-557662 is integrated in a different form upstream * New patch 05-manpage-0.24 corrects program version in whohas.1 * New patch 60-dont-mask-vars-560891 to remove a masked variable (Closes: #560891) - thanks to Jari Aalto * Standards version 3.8.4 (no changes) -- Jonathan Wiltshire Sun, 04 Apr 2010 23:41:49 +0100 whohas (0.23-3) unstable; urgency=low * Standards version 3.8.3 * Convert packaging to format 3.0 (quilt), including converting all patches to quilt * debian/whohas.doc-base: Register HTML documentation with doc-base * Patch openbsd-4.6-557662: Update the OpenBSD current release version in program/whohas (Closes: #557662) - thanks to Evgeni Golov * Patch openbsd-cache-results: Use @names for the loop on a cached OpenBSD package list, not @repos which is is never populated (Closes: #557724) -- Jonathan Wiltshire Mon, 23 Nov 2009 23:32:14 +0000 whohas (0.23-2) unstable; urgency=low * Fix patch 25-use-getopt-513473 so it doesn't dump the whole Source Mage repository when not using threads (Closes: #519202) * Update the returned Gentoo links to a more official and useful destination (Closes: #516071) * Simplify and fix the subroutine for downloading package lists to stop it mangling XML declarations * New distribution added: opkg, the OpenMoko community repository (part of 518275) * Added dependency on libxml-simple-perl and updated package description -- Jonathan Wiltshire Wed, 11 Mar 2009 20:54:56 +0000 whohas (0.23-1) unstable; urgency=low * New upstream version * Integrated patches upstream: 05-column-width-510152 07-unsupp-distro-510891 15-honour-proxy-512902 20-mandriva-repo-513466 * Update and improve patches to fit new upstream: 06-ubuntu-versions-510203.dpatch 10-debian-versions-511364.dpatch 25-use-getopt-513473 26-help-param-513476.dpatch * Patch to add the --shallow option to the syntax in the manpage * Merged patches 29-cleanup-names and 30-strictness-510020-510524, and rewrote the result to be saner * Updated copyright information -- Jonathan Wiltshire Tue, 03 Mar 2009 22:41:36 +0000 whohas (0.22-4) unstable; urgency=low * Stop 25-use-getopt-513473.dpatch from breaking Mandriva support (Closes: #514240) * Stopped 20-mandriva-repo-513466.dpatch creating a copy of whohas as whohas.orig (Closes: #514297) -- Jonathan Wiltshire Fri, 06 Feb 2009 00:56:51 +0000 whohas (0.22-3) unstable; urgency=low * Removed README.Debian (no longer necessary) * Patch to include Mandriva repositories (Sylvestre Ledru) (Closes: #513466) * Patch to handle parameters with Getopt::Long (Steve Cotton) (Closes: #513473) * Patch to handle the --help parameter properly (Steve Cotton) (Closes: #513476) * Patch to trim whitespace from package names * Patch which adds a --strict option to only output exact package matches (Closes: #510020, #510524) * Updated supported list to include Mandriva in the long description -- Jonathan Wiltshire Fri, 30 Jan 2009 12:16:07 +0000 whohas (0.22-2) unstable; urgency=low * Patch to revert the behaviour of the Debian module, showing all distributions instead of just stable and testing (Steve Cotton) (Closes: 511364) * Patch to honour the proxy settings in the users' environment (Closes: #512902) * Update README.Debian -- Jonathan Wiltshire Sun, 25 Jan 2009 19:17:02 +0000 whohas (0.22-1) unstable; urgency=low * New upstream version * Removed upstream-integrated patches: 01-arch-slash-509981 02-ubuntu-url-509975 03-freebsd-url-510189 04-ubuntu-fedora-510231 07-netbsd-url-510293 * Updated the following patches: 05-column-width-510152 06-ubuntu-versions-510203 * Patch to abort with a message if given an unsupported distribution (Steve Cotton) (Closes: #510891) * Added README.Debian to explain how each patch changes whohas's behaviour * Manual page whohas.1 is now integrated upstream * Updated debian/whohas.install to fit upstream's new layout * Tweaked copyright information -- Jonathan Wiltshire Thu, 08 Jan 2009 11:33:12 +0000 whohas (0.21-4) unstable; urgency=low * Patch to correct the FreeBSD lookup url and returned information url (Evgeni Golov) (Closes: #510189) * Patch to correct distribution lookups when used with --no-threads (Steve Cotton) (Closes: #510231) * Depend on ${DPATCH_STAMPFN} instead of patch-stamp in debian/rules (Closes: #510259) * Patch to extend the version column to 20 characters (Steve Cotton) (Closes: #510152) * Patch to show all versions of a ubuntu package, not just the earliest (Steve Cotton) (Closes: #510203) * Patch to correct the NetBSD search URL (Cristian Ionescu-Idbohrn) (Closes: #510293) -- Jonathan Wiltshire Sun, 04 Jan 2009 00:29:40 +0000 whohas (0.21-3) unstable; urgency=low * Removed duplicate space from package description * Patch to correct the Arch Linux lookup url (Giuseppe Iuculano) (Closes: #509881) * Minor path change in manual whohas.1 (Closes: #510019) * Patch to correct the Ubuntu lookup url (Steve Cotton) (Closes: #509975) -- Jonathan Wiltshire Mon, 29 Dec 2008 15:36:03 +0000 whohas (0.21-2) unstable; urgency=low * Added Vcs-Git field to debian/control * Remove unneeded dependency on ${shlibs:Depends} * Revised manual page slightly -- Jonathan Wiltshire Tue, 09 Dec 2008 06:53:10 +0000 whohas (0.21-1) unstable; urgency=low * Initial release (Closes: #507938) -- Jonathan Wiltshire Mon, 08 Dec 2008 13:04:40 +0000 debian/copyright0000644000000000000000000000245112064613447011132 0ustar This package was debianized by: Jonathan Wiltshire on Mon, 08 Dec 2008 13:04:40 +0000 It was downloaded from: http://www.philippwesche.org/200811/whohas/intro.html Upstream Author: Philipp Wesche Copyright: Copyright (C) 2005-2009 Philipp L. Wesche License: This package 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 package 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 package; 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'. The Debian packaging is: Copyright (C) 2008, 2009 Jonathan Wiltshire and is licensed under the GPLv2, see above. debian/whohas.install0000644000000000000000000000003012064613447012047 0ustar program/whohas usr/bin debian/whohas.doc-base0000644000000000000000000000035612064613447012071 0ustar Document: whohas-intro Title: whohas Introduction Author: Philipp Wesche Section: System/Package Management Format: HTML Index: /usr/share/doc/whohas/intro.html Files: /usr/share/doc/whohas/intro.html /usr/share/doc/whohas/html_assets/* debian/whohas.manpages0000644000000000000000000000003412064613447012200 0ustar usr/share/man/man1/whohas.1 debian/rules0000755000000000000000000000016112064613447010253 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ debian/docs0000644000000000000000000000004212064613447010044 0ustar intro.txt intro.html html_assets/ debian/control0000644000000000000000000000227712064613447010610 0ustar Source: whohas Section: utils Priority: extra Maintainer: Jonathan Wiltshire Build-Depends: debhelper (>= 7), quilt (>= 0.46-7) Standards-Version: 3.9.2 Homepage: http://www.philippwesche.org/200811/whohas/intro.html Vcs-Browser: http://robin.powdarrmonkey.net/cgi-bin/gitweb.cgi?p=whohas Vcs-Git: git://robin.powdarrmonkey.net/git/whohas Package: whohas Architecture: all Depends: perl, libwww-perl, libxml-simple-perl, ${misc:Depends} Description: query multiple distributions' package archives whohas is a command line tool that allows you to query several package collections at once. . It supports Arch Linux (and AUR), Debian, Fedora, Gentoo, openSUSE, Slackware (and linuxpackages.net), Source Mage Linux, Ubuntu, FreeBSD, NetBSD, OpenBSD, Fink, Mandriva, MacPorts and opkg (OpenMoko community) repositories. . whohas was designed to help package maintainers find ebuilds, pkgbuilds, and similar package definitions from other distributions to learn from. However, it can also be used by normal users who want to know which distribution provides certain packages, and which version of a given package is in use in each distribution or in each release of a distribution. debian/compat0000644000000000000000000000000212064613447010373 0ustar 7