DiaColloDB-WWW

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

         }
      },
      "runtime" : {
         "requires" : {
            "CGI" : "0",
            "Cwd" : "0",
            "DiaColloDB" : "v0.12.4",
            "Encode" : "0",
            "File::Copy::Recursive" : "0",
            "File::ShareDir" : "0",
            "File::chmod::Recursive" : "0",
            "HTTP::Daemon" : "0",
            "HTTP::Message" : "0",
            "MIME::Types" : "0",
            "POSIX" : "0",
            "Socket" : "0",
            "Template" : "0",
            "Template::Plugin::JSON::Escape" : "0",
            "Time::HiRes" : "0",
            "URI" : "0",
            "URI::Escape" : "0"

META.yml  view on Meta::CPAN

  directory:
    - t
    - inc
requires:
  CGI: '0'
  Cwd: '0'
  DiaColloDB: v0.12.4
  Encode: '0'
  File::Copy::Recursive: '0'
  File::ShareDir: '0'
  File::chmod::Recursive: '0'
  HTTP::Daemon: '0'
  HTTP::Message: '0'
  MIME::Types: '0'
  POSIX: '0'
  Socket: '0'
  Template: '0'
  Template::Plugin::JSON::Escape: '0'
  Time::HiRes: '0'
  URI: '0'
  URI::Escape: '0'

Makefile.PL  view on Meta::CPAN


   PREREQ_PM    => {
		    'CGI' => 0,
		    #'CGI::Fast' => 0,
		    'Cwd' => 0,
		    'DiaColloDB' => '0.12.004', ##-- 0.08.003
		    'Encode' => 0,
		    'HTTP::Message' => 0, ##-- 6.06
		    'HTTP::Daemon'  => 0, ##-- 6.01
		    'File::Copy::Recursive' => 0, ##-- 0.38
		    'File::chmod::Recursive' => 0, ##-- 1.0.3
		    'File::ShareDir' => 0, ##-- 1.102
		    'MIME::Types' => 0, ##-- 2.09
		    'POSIX' => 0,
		    'Socket' => 0,
		    'Template' => 0,
		    'Template::Plugin::JSON::Escape' => 0, ##-- 0.02
		    'Time::HiRes' => 0,
		    'URI' => 0,
		    'URI::Escape' => 0,
		   },

README.rpod  view on Meta::CPAN

=over 4

=item DiaColloDB

=item File::Copy::Recursive

=item File::ShareDir

=item File::ShareDir::Install

=item File::chmod::Recursive

=item HTTP::Daemon

=item HTTP::Message

=item MIME::Types

=item Template

=item URI

README.txt  view on Meta::CPAN


REQUIREMENTS
  Perl Modules
    The following non-core perl modules are required, and should be
    available from CPAN <http://www.cpan.org>.

    DiaColloDB
    File::Copy::Recursive
    File::ShareDir
    File::ShareDir::Install
    File::chmod::Recursive
    HTTP::Daemon
    HTTP::Message
    MIME::Types
    Template
    URI
    URI::Escape

  Additional Requirements
    In order to make use of this module, you will also need an existing
    DiaCollo index to query. See dcdb-create.perl(1) from the DiaColloDB

dcdb-www-create.perl  view on Meta::CPAN


use lib qw(. lib blib/lib lib/lib lib/blib/lib);
use DiaColloDB::WWW;
use DiaColloDB::WWW::CGI;
use Getopt::Long qw(:config no_ignore_case);
use Cwd qw(abs_path);
use File::Basename qw(basename);
use File::ShareDir qw(:ALL);
use File::Copy qw(copy);
use File::Copy::Recursive qw(dircopy);
use File::chmod::Recursive;
use File::Path qw(make_path remove_tree);
use Pod::Usage;
use strict;

##----------------------------------------------------------------------
## Globals
##----------------------------------------------------------------------

##-- program vars
our $prog  = basename($0);

dcdb-www-create.perl  view on Meta::CPAN

##-- copy configuration files
$logger->info("copying configuration file(s)");
foreach (sort keys %rcfiles) {
  !$rcfiles{$_}
    or copy($rcfiles{$_},"$wwwdir/$_")
    or $logger->logdie("failed to copy $rcfiles{$_} to $wwwdir/$_: $!");
}

##-- set permissions
$logger->info("setting permissions on $wwwdir");
chmod_recursive('u+w',$wwwdir)
  or $logger->logdie("failed to update permissions on $wwwdir: $!");

if (-e $dburl) {
  ##-- dburl: file or dbdir: link to 'data'
  my $dbdir_abs = abs_path($dburl);
  $logger->info("linking $wwwdir/data to $dbdir_abs");
  !-e "$wwwdir/data"
    or unlink("$wwwdir/data")
    or $logger->logdie("failed to unlink stale $wwwdir/data: $!");
  symlink($dbdir_abs,"$wwwdir/data")



( run in 0.507 second using v1.01-cache-2.11-cpan-8d75d55dd25 )