Changes between Version 16 and Version 17 of PackagingInstructions
- Timestamp:
- Aug 4, 2009, 10:13:00 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PackagingInstructions
v16 v17 1 1 This page describes techniques used for preparing OSGeo4W packages. 2 2 [[TOC]] 3 3 = General = 4 4 5 5 OSGeo4W packages are each bzip2 compressed .tar files intended to be unpacked in the OSGeo4W root directory. They come with setup.hint files designed to describe dependencies and a package description. 6 6 7 = Package Directory Layout=7 == Package Directory Layout == 8 8 9 9 The installed OSGeo4W directory tree is described in DirectoryLayout. … … 21 21 Sometimes a single project is packaged as several packages. In this case component packages are normally created as subdirectories of the primary directory. So, for instance the Oracle 10g driver for GDAL is kept in the release/gdal/gdal-oracle10g directory and packaged as gdal-oracle10g-1.5.0-1.tar.bz2. 22 22 23 = Web Application Package Guidelines = 23 ''Note:'' Don't use 7zip, setup.exe can't understand the archives it creates. There is mixed success with gnuwin32 bzip2 and cygwin bzip2. Linux tar/bzip2 has no reported problems. (see ticket:101) 24 25 == Web Application Package Guidelines == 24 26 25 27 Here are some important guidelines: … … 54 56 <blockquote><p><a href="/foobar/">Foobar demo</a></p></pre> 55 57 }}} 56 = setup.hint=58 == setup.hint == 57 59 58 60 Each package directory has a setup.hint file which normally contains the short and long description for the package, and the list of other packages on which it depends. Note that there is normally only one setup.hint file for a package even if several versions of the package exist. A normal setup.hint file might look like:: … … 66 68 This indicates the short and long description for the package, the list of categories it will appear in for the installer user interface, and the package it requires. 67 69 68 = Post-Install Actions = 70 71 == Post-Install Actions == 69 72 70 73 Packages may take post-install actions by including a .bat file in the /etc/postinstall directory as part of the package. The filename should be named etc/postinstall/<package>.bat. The bat file will be run with the environment variables OSGEO4W_STARTMENU, OSGEO4W_HOME and OSGEO4W_HOME_MSYS defined, and with OSGEO4W_HOME/bin already in the path. … … 72 75 One very common thing to do in postinstall actions is to insert/update configuration files to include the installed path to the OSGeo4W tree. This is normally done with a postinstall file, and here are 2 examples:: 73 76 74 == !TextReplace Example !#1==77 === !TextReplace Example !#1 === 75 78 76 79 * hardcoded paths exist in the /httpd.d/httpd_gmap.conf file of the gmap package: … … 99 102 }}} 100 103 101 == !TextReplace Example !#2==104 === !TextReplace Example !#2 === 102 105 103 106 {{{ … … 112 115 This applies the "standard" conversions to file bin/gdal-config.tmpl and puts the results in bin/gdal-config 113 116 114 = Creating Shortcuts=117 == Creating Shortcuts == 115 118 116 119 Another postinstall task that packages might do is to create shortcuts that will be available to launch a certain command. As its is the case for the textreplace executable, there is an utility binary xxmklink.exe that is available in the installer (part of the msvcrt package). By typing xxmklink, you can see all the options supported by this utility. Here are some examples on how it can be used in a post install file: … … 152 155 }}} 153 156 154 = Setup.ini=157 == Setup.ini == 155 158 156 159 The Cygwin Setup.exe actually downloads the [http://download.osgeo.org/osgeo4w/setup.ini setup.ini] file with a list of all packages each time it is run. This file should be recreated on the server by running the script invoking `osgeo4w-regen.sh` on the web each time packages are uploaded. This produces a test version of the file (http://download.osgeo.org/osgeo4w/setup_test.ini), which can be used with the setup program by passing the -t commandline option. Once this has been tested, using the link `osgeo4w-promote.sh` to copy this file to setup.ini, making it live for regular users. … … 161 164 * Promote test setup to live: `http://upload.osgeo.org/cgi-bin/osgeo4w-promote.sh` 162 165 163 = Documenting=166 == Documenting == 164 167 165 168 Please ensure that you prepare a wiki page linked off [wiki:PackageListing] with info on your package. It should include a pointer back to the upstream project, the name of the packager (a link to a page with contact info on the packager), and special notes on where things are placed within OSGeo4W.