#!perl # # Install script for BioKbPlugin # # Copyright (C) 2004-2007 Foswiki Contributors. All Rights Reserved. # Foswiki Contributors are listed in the AUTHORS file in the root of # this distribution. NOTE: Please extend that file, not this notice. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. For # more details read LICENSE in the root of this distribution. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # As per the GPL, removal of this notice is prohibited. # # Author: Crawford Currie http://c-dot.co.uk # # NOTE TO THE DEVELOPER: THIS FILE IS GENERATED AUTOMATICALLY # BY THE BUILD PROCESS DO NOT EDIT IT - IT WILL BE OVERWRITTEN # use strict; use warnings; require 5.008; use File::Spec; use Cwd; =pod ---+ BioKbPlugin_installer This is the installer script. The basic function of this script is to locate an archive and unpack it. It will also check the dependencies listed in DEPENDENCIES and assist the user in installing any that are missing. The script also automatically maintains the revision histories of any files that are being installed by the package but already have ,v files on disc (indicating that they are revision controlled). The script also functions as an *uninstaller* by passing the parameter =uninstall= on the command-line. Note that uninstallation does *not* revert the history of any topic changed during the installation. The script allows the definition of PREINSTALL and POSTINSTALL scripts. These scripts can be used for example to modify the configuration during installation, using the functions described below. Refer to the documentation of =configure= =cut # This is all done in package Foswiki so that reading LocalSite.cfg and Foswiki.cfg # will put the config vars into the right namespace. package Foswiki; # The root of package URLs my $PACKAGES_URL = 'http://foswiki.org/pub/Extensions'; # Extract MANIFEST and DEPENDENCIES from the __DATA__ undef $/; my @DATA = split( /<<<< (.*?) >>>>\s*\n/, ); shift @DATA; # remove empty first element # Establish where we are my @path = ( 'tools', 'extender.pl' ); my $wd = Cwd::cwd(); $wd =~ /^(.*)$/; # untaint unshift( @path, $1 ) if $1; my $script = File::Spec->catfile(@path); unless ( my $return = do $script ) { my $message = <; close(F); $data =~ /^(.*)$/s; # untaint eval $1; if ($@) { $message .= "Error when trying to eval the file content: $@\n"; } else { print STDERR "'do $script failed, but install was able to proceed: $message"; undef $message; } } else { $message .= "Could not open file using open() either: $!\n"; } die $message if $message; } sub preuninstall { # # No PREUNINSTALL script; } sub postuninstall { # # No POSTUNINSTALL script; } sub preinstall { # # No PREINSTALL script; } sub postinstall { # # No POSTINSTALL script; } Foswiki::Extender::install( $PACKAGES_URL, 'BioKbPlugin', 'BioKbPlugin', @DATA ); 1; # MANIFEST and DEPENDENCIES are done this way # to make it easy to extract them from this script. __DATA__ <<<< MANIFEST >>>> data/System/BioKbPlugin.txt,0644,Documentation lib/Foswiki/Plugins/BioKbPlugin.pm,0644,Perl module data/_BioKbPlugin/About.txt,0644,Topic to introduce wiki data/_BioKbPlugin/Admin.txt,0644,Parent for admin topics data/_BioKbPlugin/AdminContentLimits.txt,0644,Define limits on auto-derived content data/_BioKbPlugin/AdminDatabaseURLs.txt,0644,Specify remote URLs data/_BioKbPlugin/AdminDictionary.txt,0644,Store a dictionary of terms related to topics data/_BioKbPlugin/AdminEditDatabaseURLs.txt,0644,Embedded function: form for editing remote URLs, and correcting throughout the system data/_BioKbPlugin/AdminFormFields.txt,0644,Specify structure of topics and forms used- can be expanded to new types by admin data/_BioKbPlugin/AdminSeed.txt,0644,Form functions for seeding the wiki data/_BioKbPlugin/BrowseSite.txt,0644,Summary page for wiki data/_BioKbPlugin/ContactUs.txt,0644,Contacts page data/_BioKbPlugin/CreateForm.txt,0644,Embedded function: create a topic of given type data/_BioKbPlugin/FrontImage.txt,0644,Put an image here to be displayed on the front page (WebHome) data/_BioKbPlugin/FrontPageHiddenTemplate.txt,0644,Template specifiying front page panel structure, hooked into the CSS data/_BioKbPlugin/GetHelp.txt,0644,Place to put some user docs data/_BioKbPlugin/MainLayoutHiddenTemplate.txt,0644,Main template specifiying content topic structure- data panel imported, etc data/_BioKbPlugin/QuickMenuBar.txt,0644,QuickMenuSkin Menu bar defined with BioKb functions data/_BioKbPlugin/SearchByType.txt,0644,More useful search functions here data/_BioKbPlugin/StatsMostViewed.txt,0644,Displays a list of recently added and viewed topics data/_BioKbPlugin/StatsRecentActivity.txt,0644,Show all recent additions and edits data/_BioKbPlugin/WebHome.txt,0644,Home page, importing front page template data/_BioKbPlugin/WebPreferences.txt,0644,Preferences topic, defining css locations, permissions etc data/_BioKbPlugin/WebTopBar.txt,0644,Custom top bar lib/Foswiki/Plugins/BioKbPlugin.pm,0644,Main plugin module lib/Foswiki/Plugins/BioKbPlugin/BioKb.pm,0644,common plugin functions lib/Foswiki/Plugins/BioKbPlugin/Disease.pm,0644,disease-specific (e.g. OMIM) functions lib/Foswiki/Plugins/BioKbPlugin/Literature.pm,0644,literature (e.g. pubmed)- specific functions lib/Foswiki/Plugins/BioKbPlugin/MolecularBiology.pm,0644,mol biol (e.g. kegg) specific functions pub/System/BioKbPlugin/_BioKb_accept2.png,0644,Icon to indicate topic present/ to be added pub/System/BioKbPlugin/_BioKb_not2.png,0644,Icon to indicate topic absent/ to be removed pub/System/BioKbPlugin/biokb.css,0644,all css definitions pub/System/BioKbPlugin/checkAllToggle.js,0644,simple toggle checkboxes function pub/System/BioKbPlugin/dynamicFormField.js,0644,add/remove fields in forms pub/System/BioKbPlugin/kegg_to_ncbi.txt,0644,kegg to NCBI gene mapping pub/System/BioKbPlugin/moocheck.js,0644,replace checkbox with image pub/System/BioKbPlugin/mootools.js,0644,mootools js library pub/System/BioKbPlugin/morbidmap,0644,morbidmap indicating gene/disease associations pub/System/BioKbPlugin/raaswiki.png,0644,image of RAASWiki summary page templates/attach.biokb.tmpl,0444, templates/attachagain.biokb.tmpl,0444, templates/attachnew.biokb.tmpl,0444, templates/attachtables.biokb.tmpl,0444, templates/css.biokb.tmpl,0444, templates/data.biokb.tmpl,0644, templates/edit.biokb.tmpl,0444, templates/foswiki.biokb.tmpl,0444, templates/frontpage.biokb.tmpl,0644, templates/login.biokb.tmpl,0444, templates/mainlayout.biokb.tmpl,0644, templates/moveattachment.biokb.tmpl,0444, templates/oops.biokb.tmpl,0444, templates/oopsgeneric.biokb.tmpl,0444, templates/oopsmore.biokb.tmpl,0644, templates/rename.biokb.tmpl,0444, templates/renamebase.biokb.tmpl,0444, templates/search.biokb.tmpl,0444, templates/settings.biokb.tmpl,0444, templates/view.biokb.tmpl,0444, <<<< DEPENDENCIES >>>> XML::Simple,2.18,1,cpan,Required XML::LibXML,>=1.69,1,cpan,Required LWP::Simple,>=5.810,1,cpan,Required Scalar::Util,>=1.19,1,cpan,Required Time::Local,>=1.18,1,cpan,Required Cwd,>=3.2501,1,cpan,Required Clone,>=0,1,cpan,Required SOAP::Lite,0.60,1,cpan,Required Foswiki::Plugins::VotePlugin,>=0,1,perl,Required Foswiki::Plugins::SpreadSheetPlugin,>=0,1,perl,Required Foswiki::QuickMenuSkin,>=0,1,perl,Required Foswiki::Contrib::RatingContrib,>=0,1,perl,Lines-of-stars rating module Foswiki::TwistyPlugin,>=0,1,perl,Required Foswiki::IfDefinedPlugin,>=0,1,perl,Required Foswiki::DateTimePlugin,>=0,1,perl,Required Foswiki::ImagePlugin,>=0,1,perl,Required Foswiki::SubscribePlugin,>=0,1,perl,Required Foswiki::SocialBookmarkingAddOn,>=0,1,perl,Required