Changeset 25
- Timestamp:
- 11/23/10 16:22:22 (13 years ago)
- Location:
- server/trunk/web
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/Makefile.PL
r24 r25 9 9 name 'Sophie'; 10 10 all_from 'lib/Sophie.pm'; 11 12 requires 'DBD::Pg'; 13 requires 'DBIx::Class'; 11 14 12 15 requires 'Catalyst::Runtime' => '5.80025'; … … 22 25 requires 'Catalyst::Plugin::Prototype' => '0'; 23 26 requires 'Catalyst::View::TT' => '0'; 24 requires 'DBD::Pg'; 27 requires 'Catalyst::Plugin::Compress::Zlib'; 28 requires 'Catalyst::Plugin::Server'; 29 requires 'Catalyst::Plugin::Server::XMLRPC'; 25 30 requires 'Config::General'; # This should reflect the config file format you've chosen 26 31 # See Catalyst::Plugin::ConfigLoader for supported formats … … 37 42 38 43 package MY; 44 45 sub install { 46 my ($self) = @_; 47 my $section = $self->SUPER::install(); 48 49 $section =~ s/(^install ::.*)/$1 install_config/m; 50 51 $section .= qq[ 52 install_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 } 39 61 40 62 sub postamble { -
server/trunk/web/Sophie.spec.in
r24 r25 25 25 BuildRequires: perl(Catalyst::Plugin::Prototype) 26 26 BuildRequires: perl(Catalyst::View::TT) 27 BuildRequires: perl(DBIx::Class) 28 BuildRequires: perl(Catalyst::Plugin::Compress::Zlib) 29 BuildRequires: perl-Catalyst-Plugin-Server 27 30 28 31 Requires: perl(Catalyst) … … 36 39 Requires: perl(Catalyst::Plugin::Prototype) 37 40 Requires: perl(Catalyst::View::TT) 41 Requires: perl(Catalyst::Plugin::Compress::Zlib) 42 Requires: perl-Catalyst-Plugin-Server 38 43 # Requires: apache-mod_fastcgi 39 44 # Requires: perl(FCGI) … … 60 65 %defattr(-,root,root) 61 66 %doc Changes README 67 %dir %_sysconfdir/sophie 68 %config(noreplace) %_sysconfdir/sophie/* 62 69 %_bindir/* 63 70 %{_mandir}/man3/* -
server/trunk/web/lib/Sophie/Base.pm
r24 r25 20 20 require Config::General; 21 21 my $config; 22 foreach my $file ('sophie.conf', "$Bin/../sophie.conf") { 22 foreach my $file ('sophie.conf', "$Bin/../sophie.conf", 23 '/etc/sophie/sophie.conf') { 23 24 -f $file or next; 24 25 my $cg = Config::General->new($file);
Note: See TracChangeset
for help on using the changeset viewer.