Ignore:
Timestamp:
11/23/10 16:22:22 (14 years ago)
Author:
nanardon
Message:
  • add default config file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/Makefile.PL

    r24 r25  
    99name 'Sophie'; 
    1010all_from 'lib/Sophie.pm'; 
     11 
     12requires 'DBD::Pg'; 
     13requires 'DBIx::Class'; 
    1114 
    1215requires 'Catalyst::Runtime' => '5.80025'; 
     
    2225requires 'Catalyst::Plugin::Prototype' => '0'; 
    2326requires 'Catalyst::View::TT' => '0'; 
    24 requires 'DBD::Pg'; 
     27requires 'Catalyst::Plugin::Compress::Zlib'; 
     28requires 'Catalyst::Plugin::Server'; 
     29requires 'Catalyst::Plugin::Server::XMLRPC'; 
    2530requires 'Config::General'; # This should reflect the config file format you've chosen 
    2631                 # See Catalyst::Plugin::ConfigLoader for supported formats 
     
    3742 
    3843package MY; 
     44 
     45sub install { 
     46    my ($self) = @_; 
     47    my $section = $self->SUPER::install(); 
     48 
     49    $section =~ s/(^install ::.*)/$1 install_config/m; 
     50 
     51    $section .= qq[ 
     52install_config: sophie.conf.in 
     53\tinstall -d \$(DESTDIR)/etc 
     54\tinstall -d \$(DESTDIR)/etc/sophie 
     55\tinstall sophie.conf.in \$(DESTDIR)/etc/sophie/sophie.conf 
     56 
     57    ]; 
     58 
     59    $section 
     60} 
    3961 
    4062sub postamble { 
Note: See TracChangeset for help on using the changeset viewer.