automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pre and post install targets


From: Jose-Marcio
Subject: Re: pre and post install targets
Date: Mon, 21 Jul 2008 16:46:29 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080716 Fedora/1.1.11-1.fc9 SeaMonkey/1.1.11


Hi,

Ralf Wildenhues wrote:
Hello,


usefully.  What you can do instead is

  upgrade:
        $(MAKE) $(AM_MAKEFLAGS) preinstall
        $(MAKE) $(AM_MAKEFLAGS) install
        $(MAKE) $(AM_MAKEFLAGS) postinstall

Thanks. Good ! I'll do this way.

...


I'm not sure whether we should introduce such pre hooks.

All this ideas solve my problem.

Only to let you know. Maybe other people have the same needs than me. There are two reasons I'm doing this.

* My package uses a database library (BerkeleyDB). From time to time,
  data format changes. So, to install the new release, I need to dump
  the database using the **old version**, install the new version and
  recreate databases with the **new version**.

* My software is a mail filter. This filter can be running on a busy
  server (handling, says, 10 or 20 messages per second). Downtime shall
  be minimized. The sequence of operations are : stop the MTA, stop the
  filter, make upgrade, restarts the filter and restarts the MTA. It's
  pratical and less error prone to have a single command to launch
  instead of typing all them. Either way, all this can be done with a
  small shell script.

Regards,

Jose-Marcio





reply via email to

[Prev in Thread] Current Thread [Next in Thread]