1 # Copyright 2005 MJ Ray and koha development team
3 # This file is part of Koha.
5 # Koha is free software; you can redistribute it and/or modify it under the
6 # terms of the GNU General Public License as published by the Free Software
7 # Foundation; either version 2 of the License, or (at your option) any later
10 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
11 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License along with
15 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
16 # Suite 330, Boston, MA 02111-1307 USA
18 # Current maintainer MJR slef at users.sourceforge.net
19 # See http://www.koha.org/wiki/?page=KohaInstaller
21 use ExtUtils::MakeMaker;
23 die "perl 5.6.1 or later required" unless ($] >= 5.006001);
34 'HTML::Template' => 1,
37 'Mail::Sendmail' => 1,
44 # Figure out options here?
45 return { macro => { 'export TEST' => '755' } }
48 PL_FILES => { # generator => target
49 'opac/getfromintranet.PL' => ['$(INST_LIBDIR)/opac/cgi-bin/detail.pl','$(INST_LIBDIR)/opac/cgi-bin/moredetail.pl','$(INST_LIBDIR)/opac/cgi-bin/search.pl','$(INST_LIBDIR)/opac/cgi-bin/subjectsearch.pl','$(INST_LIBDIR)/opac/cgi-bin/logout.pl'],
50 'misc/koha.conf.PL' => '$(INST_LIBDIR)/../etc/koha.conf',
51 'misc/apache-koha.conf.PL' => '$(INST_LIBDIR)/../etc/apache-koha.conf',
52 'misc/koha.sql.PL' => '$(INST_LIBDIR)/intranet/scripts/koha.sql',
53 'z3950/z3950-daemon-options.PL' => '$(INST_LIBDIR)/intranet/scripts/z3950daemon/z3950-daemon-options',
54 # fake target to check permissions
55 'misc/chmod.PL' => '$(INST_LIBDIR)/fake-target'
57 # need to set ownerships
58 # need to load koha.sql
59 # need to link koha-httpd.conf
60 # need to start z3950-daemon
64 my ($self,$path) = @_;
66 # set up the recursion
68 elsif ($path !~ /\//) { $path = ''; }
70 # reimplementation of buildrelease and Install::installfiles
71 # ban some shell specials too
72 elsif ($path =~ /(\/CVS\/|\.(bak|orig|PL)$|\/,|\/t\/|[^\$]\(| )/) { $path = ''; }
74 $path =~ s:\)/misc:\)/intranet/scripts: ||
75 $path =~ s:\)/updater:\)/intranet/scripts/updater: ||
76 $path =~ s:\)/z3950/(processz3950queue|.*sh):\)/intranet/scripts/z3950daemon/\1: ||
77 $path =~ s:\)/z3950:\)/intranet/cgi-bin/z3950: ||
78 $path =~ s:\)/koha-tmpl/intranet-tmpl:\)/intranet/htdocs/intranet-tmpl: ||
79 $path =~ s:\)/koha-tmpl/intranet.html:\)/intranet/htdocs/index.html: ||
80 $path =~ s:\)/koha-tmpl/opac-tmpl:\)/opac/htdocs/opac-tmpl: ||
81 $path =~ s:\)/koha-tmpl/opac.html:\)/opac/htdocs/index.html: ||
82 $path =~ s:\)/opac:\)/opac/cgi-bin:
84 elsif ($path !~ /\.p[lm]$/) { $path = ''; }
85 elsif ($path !~ /\)\/C4/) { $path =~ s!/!/intranet/cgi-bin/!; }
87 #print STDERR $path."\n";