Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

own search.cpan.org

by svenXY (Deacon)
on Mar 18, 2009 at 14:51 UTC ( [id://751461]=perlquestion: print w/replies, xml ) Need Help??

svenXY has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

More of a sysadmin question this time, but certainly related to perl..

We are behind several firewalls and some servers do not even have access to outside via proxy. We do already have a cpan-mirror inside here and it works fine.

Now we want to install some of the cpan modules as RPMs. I found cpan2rpm to be a nice tool to convert cpan modules directly from cpan into rpms, but after some tests I found out that it makes heavy use of the URL http://search.cpan.org... a real showstopper :-(

Now - does anybody here know how to make one's own search.cpan.... mirror? Is it possible and - is it feasible? Or are there some other usable tools out there (besides cpanflute2) that might work for me instead?

Any ideas and comments greatly appreciated.

Regards,
svenXY

Replies are listed 'Best First'.
Re: own search.cpan.org
by Corion (Patriarch) on Mar 18, 2009 at 14:54 UTC

    You can easily create and maintain your own copy of CPAN using CPAN::Mini, and if you want an actual http://search.cpan.org, or something that closely resembles it, have a look at CPAN::Mini::Webserver. You might also want to look at whether you need to reconfigure your CPAN configuration to use your local repository instead of http://search.cpan.org.

Re: own search.cpan.org
by perrin (Chancellor) on Mar 18, 2009 at 16:37 UTC
    Check out cpan2dist as an alternative.
      Hi,

      thanks for all the suggestions. cpan2dist (which - for reference - comes with CPANPLUS) seemd to be the best choice as it saves me the hassle of creating all those indices...

      But unfortunately, I run into this error:

      # cpan2dist --format CPANPLUS::Dist::RPM --skiptest Net::Ping [MSG] No '/root/.cpanplus/custom-sources' dir, skipping custom sources [MSG] dry-run prepare with makemaker... Running [/usr/bin/perl /usr/bin/cpanp-run-perl /root/.cpanplus/5.8.8/b +uild/Net-Ping-2.35/Makefile.PL ]... Writing Makefile for Net::Ping [MSG] writing specfile for 'CPANPLUS::Dist::RPM=HASH(0x81b8330)->distn +ame'... [MSG] specfile for 'Net-Ping' written [MSG] dry-run build with makemaker... [MSG] Module 'Net::Ping' depends on 'Test', may need to build a 'CPANP +LUS::Dist::RPM' package for it as well [MSG] Building 'Net-Ping' from specfile /usr/src/redhat/perl-Net-Ping. +spec... Dist creation of 'Net::Ping' failed: 'Can't locate object method "spec +path" via package "CPANPLUS::Dist::RPM" at /usr/lib/perl5/site_perl/5.8.8/CPANPLUS/Dist/RPM.pm line 338. ' at /usr/bin/cpan2dist line 372.
      of which I do not know how to proceed. I did a full install of Bundle::CPANPLUS and of CPANPLUS::Dist::RPM.

      I have the strong feeling that it is already wrong where it says CPANPLUS::Dist::RPM=HASH(0x81b8330)->distname, but I am not skilled enough to know how to proceed from there...


      Regards,
      svenXY

        Got a similar result on my machine:

        > cpan2dist --format CPANPLUS::Dist::RPM --skiptest Net::Ping [MSG] No '/mnt/a/holger/.cpanplus/custom-sources' dir, skipping custom + sources [MSG] No '/mnt/a/holger/.cpanplus/custom-sources' dir, skipping custom + sources [MSG] No '/mnt/a/holger/.cpanplus/custom-sources' dir, skipping custom + sources [MSG] dry-run prepare with makemaker... Running [/usr/local/bin/perl /usr/local/bin/cpanp-run-perl /mnt/a/holg +er/.cpanplus/5.8.8/build/Net-Ping-2.35/Makefile.PL ]... Checking if your kit is complete... Looks good Writing Makefile for Net::Ping [MSG] writing specfile for 'CPANPLUS::Dist::RPM=HASH(0x50c0790)->distn +ame'... [MSG] specfile for 'Net-Ping' written [MSG] dry-run build with makemaker... [MSG] Module 'Net::Ping' depends on 'Test', may need to build a 'CPANP +LUS::Dist::RPM' package for it as well [MSG] Building 'Net-Ping' from specfile /mnt/a/holger/perl/perl-Net-Pi +ng.spec... [ERROR] Failed to create RPM package for 'Net-Ping': error: bad date i +n %changelog: Fr Mär 20 2009 %{packager} 2.35-0 [ERROR] Unable to create a new distribution object for 'Net::Ping' -- +cannot continue

        Contacting the author of CPANPLUS::Dist::RPM might be a good idea

Re: own search.cpan.org
by Anonymous Monk on Mar 18, 2009 at 14:59 UTC
Re: own search.cpan.org
by svenXY (Deacon) on Mar 23, 2009 at 13:13 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://751461]
Approved by kyle
Front-paged by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-03-28 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found