debian/0000755000000000000000000000000012257356533007201 5ustar debian/rules0000755000000000000000000000032712257356533010263 0ustar #!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_auto_install: dh_auto_install sed -i -e '1i #!/usr/bin/perl -w\n' $(TMP)/usr/bin/cpanp-run-perl debian/control0000644000000000000000000000140212257356533010601 0ustar Source: libcpanplus-perl Section: perl Priority: optional Maintainer: Debian Perl Group Uploaders: gregor herrmann Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libcpanplus-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libcpanplus-perl.git Homepage: https://metacpan.org/release/CPANPLUS/ Package: libcpanplus-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends} Provides: cpanplus Description: API & CLI access to the CPAN mirrors The CPANPLUS library is an API to the CPAN mirrors and a collection of interactive shells, commandline programs, etc, that use this API. debian/source/0000755000000000000000000000000012257356533010501 5ustar debian/source/format0000644000000000000000000000001412257356533011707 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000252612257356533011060 0ustar libcpanplus-perl (0.9144-1) unstable; urgency=medium * New upstream release. * Declare compliance with Debian Policy 3.9.5. -- gregor herrmann Fri, 27 Dec 2013 21:04:35 +0100 libcpanplus-perl (0.9142-1) unstable; urgency=low * New upstream release. * debian/copyright: add information for new third-party file. -- gregor herrmann Wed, 18 Sep 2013 18:43:04 +0200 libcpanplus-perl (0.9140-1) unstable; urgency=low * New upstream release. * Update years of third-party copyright. * Drop spelling patch, applied upstream. -- gregor herrmann Sat, 10 Aug 2013 17:30:29 +0200 libcpanplus-perl (0.9136-2) unstable; urgency=low * Add the two patches that are applied to CPANPLUS in the perl package. - cpanplus_config_path.diff: Save local versions of CPANPLUS::Config::System into /etc/perl. - cpanplus_definstalldirs.diff: Configure CPANPLUS to use the site directories by default. Thanks to Niko Tyni for the pointer. * debian/control: provide a virtual cpanplus package. Thanks to Niko Tyni for the proposal. -- gregor herrmann Mon, 20 May 2013 22:53:26 +0200 libcpanplus-perl (0.9136-1) unstable; urgency=low * Initial Release. (Closes: #707968) -- gregor herrmann Mon, 20 May 2013 21:19:22 +0200 debian/compat0000644000000000000000000000000212257356533010377 0ustar 8 debian/patches/0000755000000000000000000000000012257356533010630 5ustar debian/patches/series0000644000000000000000000000006712257356533012050 0ustar cpanplus_config_path.diff cpanplus_definstalldirs.diff debian/patches/cpanplus_config_path.diff0000644000000000000000000000306412257356533015653 0ustar From b8ab15d6bed9e9155b2524f9c57731f2780872fa Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Mon, 6 Jul 2009 22:17:53 +0300 Subject: Save local versions of CPANPLUS::Config::System into /etc/perl. This is a configuration file and needs to go in /etc by policy. Besides, /usr may not even be writable. This mirrors the Debian setup of CPAN.pm in debian/cpan_config_path. See #533707. Patch-Name: debian/cpanplus_config_path.diff --- cpan/CPANPLUS/lib/CPANPLUS/Configure.pm | 1 + cpan/CPANPLUS/lib/CPANPLUS/Internals/Constants.pm | 3 +++ 2 files changed, 4 insertions(+) --- a/lib/CPANPLUS/Configure.pm +++ b/lib/CPANPLUS/Configure.pm @@ -280,6 +280,7 @@ If this package is not C, it will be saved in your C<.cpanplus> directory, otherwise it will be attempted to be saved in the system wide directory. +(On Debian systems, this system wide directory is /etc/perl.) If no argument is provided, it will default to your personal config. --- a/lib/CPANPLUS/Internals/Constants.pm +++ b/lib/CPANPLUS/Internals/Constants.pm @@ -213,6 +213,9 @@ ) . '.pm'; }; use constant CONFIG_SYSTEM_FILE => sub { + # Debian-specific shortcut + return '/etc/perl/CPANPLUS/Config/System.pm'; + require CPANPLUS::Internals; require File::Basename; my $dir = File::Basename::dirname( debian/patches/cpanplus_definstalldirs.diff0000644000000000000000000000301412257356533016374 0ustar From 43e79995e19b9e9b0f76295232087d1ea23f9b9c Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Mon, 6 Jul 2009 21:58:41 +0300 Subject: Configure CPANPLUS to use the site directories by default. Bug-Debian: http://bugs.debian.org/533707 The core modules usually default to INSTALLDIRS=perl (ExtUtils::MakeMaker) or installdirs=core (Module::Build), so we need to explicitly ask for the site destination to get upgraded versions into /usr/local. See also the sister patch, debian/cpan_definstalldirs . Patch-Name: debian/cpanplus_definstalldirs.diff --- cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 cpan/CPANPLUS/lib/CPANPLUS/Config/System.pm --- /dev/null +++ b/lib/CPANPLUS/Config/System.pm @@ -0,0 +1,30 @@ +### minimal pod, so you can find it with perldoc -l, etc +=pod + +=head1 NAME + +CPANPLUS::Config::System - CPANPLUS configuration file for Debian systems + +=head1 DESCRIPTION + +This is a CPANPLUS configuration file that sets appropriate default +settings on Debian systems. + +The only preconfigured settings are C (set to +C) and C (set to C<--installdirs site>). + +These settings will not have any effect if +C is present. + +=cut + + +package CPANPLUS::Config::System; + +sub setup { + my $conf = shift; + $conf->set_conf( makemakerflags => 'INSTALLDIRS=site' ); + $conf->set_conf( buildflags => '--installdirs site' ); +} + +1; debian/copyright0000644000000000000000000001123012257356533011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: CPANPLUS Source: https://metacpan.org/release/CPANPLUS/ Upstream-Contact: Chris Williams Files: * Copyright: 2001-2007, Jos Boumans Chris Williams License: Artistic or GPL-1+ Files: lib/CPANPLUS/Config/HomeEnv.pm Copyright: Chris Williams Jos Boumans License: Artistic or GPL-1+ Files: inc/Module/* Copyright: 2002-2012, Adam Kennedy 2002-2012, Audrey Tang 2002-2012, Brian Ingerson License: Artistic or GPL-1+ Files: inc/bundle/CPAN/Meta/YAML.pm Copyright: 2010, by Adam Kennedy License: Artistic or GPL-1+ Files: inc/bundle/Devel/InnerPackage.pm: Copyright: 2005, Simon Wistow License: Artistic or GPL-1+ Files: inc/bundle/File/Spec/Functions.pm inc/bundle/File/Spec/Unix.pm inc/bundle/File/Spec/OS2.pm inc/bundle/File/Spec/VMS.pm inc/bundle/File/Spec/Mac.pm inc/bundle/File/Spec/Epoc.pm Copyright: 2004 by the Perl 5 Porters License: Artistic or GPL-1+ Files: inc/bundle/File/Spec/Cygwin.pm inc/bundle/File/Spec/Win32.pm inc/bundle/File/Spec/Cygwin.pm Copyright: 2004,2007 by the Perl 5 Porters License: Artistic or GPL-1+ Files: inc/bundle/File/Spec.pm inc/bundle/File/Spec.pm Copyright: 2004-2013 by the Perl 5 Porters License: Artistic or GPL-1+ Files: inc/bundle/HTTP/Tiny.pm Copyright: 2013, Christian Hansen License: Artistic or GPL-1+ Files: inc/bundle/IO/Zlib.pm Copyright: 1998-2004, Tom Hughes License: Artistic or GPL-1+ Files: inc/bundle/IO/String.pm Copyright: 1998-2005, Gisle Aas License: Artistic or GPL-1+ Files: inc/bundle/JSON/PP/Compat5006.pm Copyright: 2007-2010, Makamaka Hannyaharamitu License: Artistic or GPL-1+ Files: inc/bundle/JSON/PP.pm Copyright: 2007-2013, Makamaka Hannyaharamitu License: Artistic or GPL-1+ Files: inc/bundle/Locale/Maketext/Simple.pm Copyright: 2003, 2004, 2005, 2006 by Audrey Tang License: other This software is released under the MIT license cited below. Additionally, when this software is distributed with Perl Kit, Version 5, you may also redistribute it and/or modify it under the same terms as Perl itself. . The "MIT" License . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: inc/bundle/Module/CoreList/Utils.pm Copyright: 2013, Chris Williams License: Artistic or GPL-1+ Files: inc/bundle/Module/Pluggable/Object.pm inc/bundle/Module/Pluggable.pm Copyright: 2006, Simon Wistow License: Artistic or GPL-1+ Files: inc/bundle/Module/Metadata.pm Copyright: Original code Copyright (c) 2001-2011 Ken Williams. Additional code Copyright (c) 2010-2011 Matt Trout and David Golden. License: Artistic or GPL-1+ Files: inc/bundle/Parse/CPAN/Meta.pm Copyright: 2013, Adam Kennedy and Contributors License: Artistic or GPL-1+ Files: inc/bundle/version/typemap Copyright: 2001, John Peacock License: Artistic or GPL-1+ Files: debian/* Copyright: 2013, gregor herrmann License: Artistic or GPL-1+ 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-1+ 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 1, 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-1'. debian/libcpanplus-perl.docs0000644000000000000000000000000712257356533013324 0ustar README debian/watch0000644000000000000000000000015612257356533010234 0ustar version=3 https://metacpan.org/release/CPANPLUS/ .*/CPANPLUS-v?(\d[\d.-]*)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/postrm0000644000000000000000000000153712257356533010456 0ustar #!/bin/sh set -e if [ "$1" = remove ] then dpkg-divert --remove --package libcpanplus-perl --rename \ --divert /usr/bin/cpanp.bundled /usr/bin/cpanp dpkg-divert --remove --package libcpanplus-perl --rename \ --divert /usr/bin/cpan2dist.bundled /usr/bin/cpan2dist dpkg-divert --remove --package libcpanplus-perl --rename \ --divert /usr/bin/cpanp-run-perl.bundled /usr/bin/cpanp-run-perl dpkg-divert --remove --package libcpanplus-perl --rename \ --divert /usr/share/man/man1/cpanp.bundled.1.gz /usr/share/man/man1/cpanp.1.gz dpkg-divert --remove --package libcpanplus-perl --rename \ --divert /usr/share/man/man1/cpan2dist.bundled.1.gz /usr/share/man/man1/cpan2dist.1.gz fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/preinst0000644000000000000000000000200712257356533010607 0ustar #!/bin/sh set -e if [ "$1" = install ] || [ "$1" = upgrade ] then dpkg-divert --add --package libcpanplus-perl --rename \ --divert /usr/bin/cpanp.bundled /usr/bin/cpanp dpkg-divert --add --package libcpanplus-perl --rename \ --divert /usr/bin/cpan2dist.bundled /usr/bin/cpan2dist dpkg-divert --add --package libcpanplus-perl --rename \ --divert /usr/bin/cpanp-run-perl.bundled /usr/bin/cpanp-run-perl # this diversion is needed even if we don't actually ship cpan*.1.gz, # because otherwise it takes precedence over cpan*.1p.gz (which we do # ship) dpkg-divert --add --package libcpanplus-perl --rename \ --divert /usr/share/man/man1/cpanp.bundled.1.gz /usr/share/man/man1/cpanp.1.gz dpkg-divert --add --package libcpanplus-perl --rename \ --divert /usr/share/man/man1/cpan2dist.bundled.1.gz /usr/share/man/man1/cpan2dist.1.gz fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0