Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    CPAN::Inject 0.13

    Download button

    No screenshots available
    Downloads: 263  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Adam Kennedy | More programs
    Perl Artistic License / FREE
    November 10th, 2011, 05:11 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    CPAN::Inject description

    Base class for injecting distributions into CPAN sources

    CPAN::Mini::Inject is a Perl module that was created to add additional distributions into a minicpan mirror.

    While it was created for use with a minicpan mirror, similar functionality can be reused in other situations.

    CPAN::Inject replicates the basics of this functionality.

    Specifically, it takes an arbitrary tarball and adds it to the CPAN sources directory for a particular author, and then add the new file to the CHECKSUMS file.

    It does not reimplement the logic to add files to the indexes.

    The initial use this module was created for was to inject tarballs into the CPAN sources directory for the reserved LOCAL user, so that the can be installed via the CPAN shell, with automated recursion to CPAN dependencies.

    But although the number of functions is limited (current only add exists, with the others to be added as needed) the implementation is very generic and sub-classable, so that it can be reused in other situations.

    SYNOPSIS

     # Create the injector
     my $cpan = CPAN::Inject->new(
     sources => '/root/.cpan/sources', # Required field
     author => 'LOCAL', # The default
     );
     
     # Add a file to the user
     $cpan->add( file => 'some/random/Perl-Tarball-1.02.tar.gz' );
     
     # What would have have to use when installing
     # $path = 'LOCAL/Perl-Tarball-1.02.tar.gz';
     my $path = $cpan->install_path( 'some/random/Perl-Tarball-1.02.tar.gz' );



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    minicpan mirror | Perl module | CPAN | Perl | minicpan

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM