Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT cygwin DOT com Date: 16 Dec 2001 21:18:02 -0500 Message-ID: <20011217021802.28339.qmail@lizard.curl.com> From: Jonathan Kamens To: robert DOT collins AT itdomain DOT com DOT au CC: cygwin-apps AT cygwin DOT com In-reply-to: <003101c18697$26431a00$0200a8c0@lifelesswks> (robert DOT collins AT itdomain DOT com DOT au) Subject: Re: Made many changes to setup.html References: <100801c18601$5e5ee090$0200a8c0 AT lifelesswks> <20011216180228 DOT 26370 DOT qmail AT lizard DOT curl DOT com> <003101c18697$26431a00$0200a8c0 AT lifelesswks> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Sun_Dec_16_21:18:02_2001" Content-Transfer-Encoding: 7bit --Multipart_Sun_Dec_16_21:18:02_2001 Content-Type: text/plain; charset=US-ASCII Here's a new patch. --Multipart_Sun_Dec_16_21:18:02_2001 Content-Type: text/plain; name=setup-html-diff; charset=US-ASCII Content-Transfer-Encoding: 7bit Index: setup.html =================================================================== RCS file: /cvs/cygwin/htdocs/setup.html,v retrieving revision 1.65 diff -u -r1.65 setup.html --- setup.html 2001/12/17 01:15:25 1.65 +++ setup.html 2001/12/17 02:17:04 @@ -28,10 +28,11 @@
  • setup.hint

  • setup.ini

  • making packages

  • +
  • Creating a package postinstall script

  • Submitting a package

  • -

    Package file naming

    +

    Package file naming

    Package naming scheme: use the vendor's version plus a suffix for ports of existing packages (i.e. bash 2.04 becomes 2.04-1, 2.04-2, etc, until bash 2.05 is ported, which would be 2.05-1, etc). Some packages @@ -61,7 +62,7 @@

    The setup.hint file is discussed below. -

    Automatic setup.ini generation on sources.redhat.com

    +

    Automatic setup.ini generation on sources.redhat.com

    A script runs on sources.redhat.com which collects information from (currently) the latest and contrib directories in the @@ -122,7 +123,7 @@ gzip for file compression is deprecated, however. New package submissions must be bzip2'ed.

    -

    setup.hint

    +

    setup.hint

    Each package must be submitted with a file called setup.hint. This file is used for information that cannot be inferred just from the @@ -332,7 +333,7 @@ test, or @ options. Instead, we relied on the automatic setup.ini generator to do as much as possible for us.

    -

    setup.ini

    +

    setup.ini

    Note that setup.ini is automatically generated. This section is for completeness, not instruction. @@ -439,7 +440,7 @@ -

    Making Packages

    +

    Making Packages

    The files paths within both the -src and the binary package files are quite important. Since setup.exe extracts into a predetermined directory, you must structure your package contents accordingly.

    @@ -474,7 +475,31 @@
  • Ensure that your package handles binary only systems, textmode only systems, and hybrid systems correctly.

  • -

    Submitting a package

    +

    Creating a package postinstall script

    + +

    If your package requires certain commands to be executed after the +files in the package are installed, include them in a file in the +package called /etc/postinstall/package.sh or +/etc/postinstall/package.bat.

    + +

    If the file's name ends in ".sh", it is executed with the Cygwin +shell; if it ends in ".bat", it is executed with the DOS command +interpreter. If it doesn't end with either of these suffixes, it is +ignored.

    + +

    After the script has been run it is renamed by appending the suffix +".done" to its previous name, to prevent it from being run again the +next time the user runs the setup program.

    + +

    Note that the setup program runs all the postinstall scripts after +all desired packages have been installed, that is, it does not run +each package's postinstall script immediately after installing that +package. Note, furthermore, that the order in which the scripts are +run is not guaranteed. Therefore, if your package depends on others +which have their own postinstall scripts, you cannot assume in your +script that the other packages' scripts have already been run.

    + +

    Submitting a package

    So you've got a package you want to submit. Follow the following checklist before emailing cygwin-apps AT cygwin DOT com and you'll almost certainly save time.

    1. Propose on cygwin-apps AT cygwin DOT com that you are interested in becoming a package maintainer for package foo. Some packages cannot be distributed via cygwin's setup due to vendor licence limitations. Other packages may not be appropriate for cygwin. This step will save time if, for some reason we cannot accept the package.

    2. --Multipart_Sun_Dec_16_21:18:02_2001--