CPAN::Digger - To dig CPAN
This module is the the web application running at http://.... You can use the interface by browsing there.
For internal usage follow the SETUP section.
Download the tar.gz file. Open it and install all its dependencies.
Running perl script\cpan_digger.pl will create a local database using the module given in the directory given with the --dir option.
Running CPAN-Digger-WWW.pl will launch a stand-alone web server.
quick instruction for using CPAN::Mini
Proc::Daemon does not show the documentation http://cpandigger.org/dist/Proc-Daemon
Using unzipped releases: sudo mkdir /var/www/cpan-digger sudo mkdir /var/www/cpan-digger/logs sudo chmod a+w /var/www/cpan-digger/logs sudo mkdir /var/www/cpan-digger/digger sudo chown gabor.gabor /var/www/cpan-digger/digger cd /var/www/cpan-digger/ sudo tar xzf CPAN-Digger-0.02.tar.gz sudo mkdir CPAN-Digger-0.02/logs sudo chmod a+w CPAN-Digger-0.02/logs edit the environments/production.yml file and set the path to the database to /var/www/cpan-digger/digger/digger.db
authors/01mailrc.txt.gz by Parse::CPAN::Authors (we don't use this) (CPAN.pm uses) authors/00whois.xml by Parse::CPAN::Whois (superset of the above) modules/02packages.details.txt.gz by Parse::CPAN::Packages (CPAN.pm uses) also by CPAN::PackageDetails modules/03modlist.data.gz (CPAN.pm uses)
For each distribution split up the name and each part of the name becomes a word
For each module name probably the parts of the name might be words though the last part should be the most significants
META.yml might have some keywords stored
Names of the functions / methods
Gull text indexing of the POD for each module
Various sections might have different weight.
Later we will allow users of the site to add keywords to the modules/distributions
Store each keyword in lowercase only and map everything to lowercase for each word include where it could be found
word type_of_source the source cgi distro CGI-Simple cgi distro CGI-Application cgi module CGI::Simple cgi module CGI::Application
CPAN::Digger is (going to be) capable of processing non-CPAN projects as well. We are still trying to design how that should work. Let's start with one example:
Dreamwidth http://dreamwidth.org uses Mercurial to maintain their source code. To check out their main repository type:
hg clone http://hg.dwscoalition.org/dw-free/
projects file: Name: DW-Free will be used as the distribution Version: 1.0 some projects might want to index several versions, this field can be used to indicated that Author: DREAMWIDTH will be used instead of the PAUSEID (a leading underscore can ensure there is no conflict with real (even future) PAUSEIDs) Path: /path/to/source path to where the source code lives (CPAN::Digger will copy the files from there) Description: some text not used by the digger
Currently the Digger won't try to update the source directory using the VCS tools.
Gabor Szabo http://szabgab.com/
Copyright 2010 Gabor Szabo email@example.com
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.