Ignore:
Timestamp:
2010-06-30T10:24:48+12:00 (14 years ago)
Author:
sjm84
Message:

Several upgrades to the release kits have been made including: optional Apache and the ability to create installers with extensions

Location:
main/trunk/release-kits/shared/core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/shared/core/ant-scripts/create-installer.xml

    r22132 r22325  
    7878        <property name="component.size.imagemagick" value="${component.megabytesize.imagemagick} MB"/>
    7979
    80         <!-- calculate the size of: ghostscript -->
    81         <length property="component.bytesize.ghostscript" mode="all"><fileset file="${basedir}/components/ghostscript.comp"/></length>
    82         <math result="component.megabytesize.ghostscript" operand1="${component.bytesize.ghostscript}" operation="/" operand2="1048576" datatype="int"/>
    83         <property name="component.size.ghostscript" value="${component.megabytesize.ghostscript} MB"/>
    84 
     80        <!-- calculate the size of: apache httpd -->
     81        <length property="component.bytesize.httpd" mode="all"><fileset file="${basedir}/components/apachehttpd.comp"/></length>
     82        <math result="component.megabytesize.httpd" operand1="${component.bytesize.httpd}" operation="/" operand2="1048576" datatype="int"/>
     83        <property name="component.size.httpd" value="${component.megabytesize.httpd} MB"/>
     84       
    8585        <!-- calculate the size of: tomcat -->
    8686        <length property="component.bytesize.tomcat" mode="all"><fileset file="${basedir}/components/tomcat.comp"/></length>
     
    8888        <property name="component.size.tomcat" value="${component.megabytesize.tomcat} MB"/>
    8989
     90        <!-- EXT -->
     91        <!-- calculate the size of: amp (and put it into the components directory) -->
     92        <if><bool><and><equals arg1="${amp.enabled}" arg2="true"/><not><available file="${rk.home}/ext/amp.lzma"/></not></and></bool>
     93          <fail>amp.lzma file not found in the release kit ext directory</fail>
     94        </if>
     95
     96        <if><bool><and><equals arg1="${amp.enabled}" arg2="true"/></and></bool>
     97          <echo>Copying amp.lzma to compontents directory</echo>
     98          <copy file="${rk.home}/ext/amp.lzma" todir="${basedir}/components"/>
     99          <property name="component.size.amp" value="257 MB"/>
     100        </if>
     101        <!-- /EXT -->
     102
    90103        <!-- make the installer descriptors relevant to the current os -->
    91104        <dcff file="installer/antinstall-config.xml" startTag="&lt;!--\s*if\s*(?!.*${rk.os})[^ ]+\s*--&gt;" endTag="&lt;!--\s*/if\s*--&gt;" />
    92105        <dcff file="installer/build.xml" startTag="&lt;!--\s*if\s*(?!.*${rk.os})[^ ]+\s*--&gt;" endTag="&lt;!--\s*/if\s*--&gt;" />
     106
     107        <!-- EXT -->
     108        <if><bool><not><equals arg1="${amp.enabled}" arg2="true"/></not></bool>
     109         
     110          <dcff file="installer/antinstall-config.xml" startTag="&lt;!-- start amp --&gt;" endTag="&lt;!-- end amp --&gt;" />
     111          <dcff file="installer/build.xml" startTag="&lt;!-- start amp --&gt;" endTag="&lt;!-- end amp --&gt;" />
     112        </if>
     113        <!-- /EXT -->
    93114
    94115        <!-- put the concrete values of things in the config -->
     
    100121            <job pattern="@component.size.imagemagick@" replacement="${component.size.imagemagick}"/>
    101122            <job pattern="@component.size.ghostscript@" replacement="${component.size.ghostscript}"/>
     123            <job pattern="@component.size.httpd@" replacement="${component.size.httpd}"/>
    102124            <job pattern="@java.min.version@" replacement="${java.min.version}"/>
    103125            <job pattern="@java.extracted@" replacement="${java.extracted}"/>
    104126        </rsr>
     127
     128        <!-- EXT -->
     129        <if><bool><equals arg1="${amp.enabled}" arg2="true"/></bool>
     130          <rsr>
     131            <fileset dir="${basedir}/installer" includes="*.xml"/>
     132            <job pattern="@component.size.amp@" replacement="${component.size.amp}"/>
     133          </rsr>
     134        </if>
     135        <!-- /EXT -->
    105136
    106137        <!-- put the concrete values of things in the text -->
  • main/trunk/release-kits/shared/core/ant-scripts/shared.xml

    r22179 r22325  
    377377    <target name="create-component">
    378378      <mkdir dir="components"/>
    379       <if>
    380         <bool>
    381           <equals arg1="${version.major}" arg2="2"/>
    382         </bool>
    383        
    384         <if>
    385           <bool>
    386         <or>
    387           <equals arg1="${component}" arg2="imagemagick"/>
    388           <equals arg1="${component}" arg2="ghostscript"/>
    389         </or>
    390           </bool>
    391          
    392           <zip destfile="components/${component}.comp" compress="false">
    393         <zipfileset dir="compiled/bin/${os.shell}">
    394           <patternset refid="greenstone${version.major}.${component}.component"/>
    395         </zipfileset>
    396           </zip>
    397          
    398           <else>
    399         <zip destfile="components/${component}.comp" compress="false">
    400           <zipfileset dir="compiled">
    401             <patternset refid="greenstone${version.major}.${component}.component"/>
    402           </zipfileset>
    403         </zip>
    404           </else>
    405         </if>
    406        
    407         <else>
    408           <zip destfile="components/${component}.comp" compress="false">
    409         <zipfileset dir="compiled">
    410           <patternset refid="greenstone${version.major}.${component}.component"/>
    411         </zipfileset>
    412           </zip>
    413         </else>
    414       </if>
     379     
     380      <zip destfile="components/${component}.comp" compress="false">
     381        <zipfileset dir="compiled">
     382          <patternset refid="greenstone${version.major}.${component}.component"/>
     383        </zipfileset>
     384      </zip>
     385   
    415386      <!-- windows -->
    416387      <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
  • main/trunk/release-kits/shared/core/language-strings/LanguagePack.properties

    r20964 r22325  
    3333Looking_For_Previous_Installation.explanatoryText=If this is an over-install, load some properties of the existing installation to aid the installation process.
    3434
     35### EXT ###
     36Installing_AMP.displayText=Apache HTTPD (2.2.15), MySQL (5.1.47) and PHP (5.3.2)
     37Installing_AMP.explanatoryText=<html>This component will install the Apache HTTPD web server, complete with MySQL (a database system) and PHP (a scripting language used for server-side coding).</html>
     38### /EXT ###
     39
    3540Installing_Core_System.displayText=Core System
    3641Installing_Core_System.explanatoryText=<html>This is the core [email protected]@ system. It is a required component.</html>
     
    4853Installing_Ghostscript.explanatoryText=Greenstone uses GhostScript to process PDF and PostScript files.\n\n If you have Ghostscript on your computer already, or if you don't wish to\ninclude PDF of PostScript files in Greenstone collections, then you may choose\nnot to install Ghostscript.
    4954
     55Installing_Apache_Web_Server.displayText=Apache Web Server
     56Installing_Apache_Web_Server.explanatoryText=To serve Greenstone digital library content a web server is needed. \nThe open-source Apache web server is one such example, and as \npart of this installation process a pre-configured Apache web server \n-- ready to run out of the box -- is installed by selecting this option. \nIf you already have an existing web server installed then you can \nchoose to deselect this option to avoid having the pre-configured \nversion installed, however you will need to adjust the configuration settings of \nyour existing web server to link correctly to this Greenstone installation. \nIf you are unsure about this option it is recommended you leave it selected, \nas the configuration file it installs is a good starting place to learn \nwhat configuration options need to go into any existing web servers.
     57
    5058Installing_Start_Menu_Shortcuts.displayText=Start Menu Shortcuts
    5159Installing_Start_Menu_Shortcuts.explanatoryText=Create shortcuts to [email protected]@ on your Start Menu
     
    5967Installing_Documented_Examples.displayText=Documented Example Collections
    6068Installing_Documented_Examples.explanatoryText=A set of example collections, whose 'about' pages describe how they were created.\n\nEven if you don't install the Documented Examples now, you can get them from\nhttp://www.greenstone.org/ or from the greenstone CD-ROM.
    61 
    6269
    6370### Admin password page
Note: See TracChangeset for help on using the changeset viewer.