delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/02/10:52:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 2 Dec 2002 10:53:13 -0500
From: Christopher Faylor <cgf-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: defaults
Message-ID: <20021202155313.GE19575@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CCD084B0E779D411A70300508B66222605A32BDA AT exchukahis02 DOT experian DOT co DOT uk>
Mime-Version: 1.0
In-Reply-To: <CCD084B0E779D411A70300508B66222605A32BDA@exchukahis02.experian.co.uk>
User-Agent: Mutt/1.5.1i

On Mon, Dec 02, 2002 at 12:56:03PM -0000, Morrison, John wrote:
>The first is that this script, although best as a postinstall,
>would have be executed _after every install_.
>
>The other would be to get people to use it ;)
>
>Well, that's my mental thoughts on paper(?!).  Any comments?
>would it be worth doing?

Here's how _update-info-dir does it:

  sdesc: "Generate info/dir file automatically"
  category: _PostInstallLast
  requires: texinfo ash
  autodep: usr/info/.*
  incver_ifdep: yes

You'd probably want something like:

  sdesc: "Conditionally move default files to proper location"
  category: _PostInstallLast
  requires: ash
  autodep: etc/defaults/.*
  incver_ifdep: yes

This would run automatically whenever packages are downloaded and
installed in one shot.  It wouldn't run if someone downloads everything
and then installs piecemeal, though.

The script to move the files would be the only thing in the package and
it would be a post-install script.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019