wiki:GSoc2013Tests

Version 10 (modified by steve, 11 years ago) ( diff )

Change to testing_license directory

1. Adding license in Server

Add a file with License Terms

Each package directory has many files like setup.hint file (which normally contains the short and long description for the package and other important things), the package tar file. First in order to add a license file for an especific package, you need to create a .txt license file in its directory package on http://download.osgeo.org/osgeo4w/testing_license server, for example:

    svn someuser@download.osgeo.org   # log in into server 

    # if gdal-ecw package has non-open source license go there.

    cd osgeo/download/osgeo4w/testing_license/release/gdal/gdal-ecw

    touch gdal-ecw-1.9.1-0.txt        # you need to create a .txt license file.

    echo "some terms of the restrictive package" > gdal-ecw-1.9.1-0.txt
 

Generate the Setup.ini file

The OSGeo4w Setup.exe downloads the setup.ini file with a list of all packages each time when it is run. This file should be recreated on the server by running the script invoking regen.sh on the web each time packages are uploaded. You need to recreate the setup.ini in order to update it with all entries for each non-open source packages, thus:

   # go to main directory of osgeo4w, there is a script called rengen.sh
   ./rengen.sh   # it will run perl script genini
  
   # Now you can see the setup.ini file with license entry for each restrictive package   

2. Steps for Testing extend Features of OSGeo4W

  • Before you follow this steps you should do all configurations and build the setup.exe at http://trac.osgeo.org/osgeo4w/wiki/SetupDevelopment
  • Choose the next option with new feature: Advance Install > Install from internet > Root Directory > Local package directory > Direct connection
  • Choose a restrictive package for example 'gdal-mrsid' or 'gdal-ecw' or both(remember if you want to see its license, you must have create it in step one) and choose another normal package for example: 'gdal-java'.
  • Setup will download the license file from remote server into your local directory "Local Package Directory" , you can see it if you want.
  • Next step setup.exe will load the file license into a window dialog, with its terms, and If you agree you can continue.
Note: See TracWiki for help on using the wiki.