Re: Post-install script execution in a package



drymizu@xxxxxxxxx wrote:
Hi all,

Sorry to bother you, but I'm stuck.

I have been trying to make a customized package with a post-install
script but I can't find out how to do it. ( Openbsd 3.8 ).

Upgrade. Really.

I am using an existing port where I customized the Makefile to change
some configuration options , then execute "make package".

Using the target post-install in the Makefile seems only to be
executed when I do the "make install" in the port directory.

Is there a way to make post-install scripts executed at the
installation of a package ?
I tried to untar existing packages with post-install in their port's
Makefile but can't find any trace of a post-install script.

It's usually a better idea to use pkg/MESSAGE, anyway. But if you
*really* want to do, it's probably best to look at a port that already
does it and copy that behaviour. Postfix is an obvious example.

Do note that you'll want to use @exec/@unexec in pkg/PLIST instead of
obsolote stuff that will break as soon as you upgrade your system to a
modern version (i.e. pkg/INSTALL, which will no longer work in 4.2, see
ports/mail/postfix/snapshots/Makefile r1.170). Postfix uses this in
-current; look at
http://www.openbsd.org/cgi-bin/cvsweb/ports/mail/postfix/snapshot/ for
details.

Joachim
.



Relevant Pages

  • Re: Post-install script execution in a package
    ... I have been trying to make a customized package with a post-install ... Makefile but can't find any trace of a post-install script. ... dealt with WITHOUT using install scripts. ...
    (comp.unix.bsd.openbsd.misc)
  • Post-install script execution in a package
    ... I have been trying to make a customized package with a post-install ... Makefile but can't find any trace of a post-install script. ...
    (comp.unix.bsd.openbsd.misc)
  • Re: sysinstall problem
    ... The package is found and downloaded before the error ... > occurrs for each package it tries to add. ... If you're running sysinstall as root, which is how you have to do it (it gives ... There may be a way to turn it on post-install, but I couldn't figure it out. ...
    (freebsd-questions)
  • Re: Using Python in ActiveX task - works when run as separate step
    ... I just used some simple script to test: ... I installed ActivePerl on my test machine, create a new DTS package, and a ... new ActiveX script task. ... |>>>You could execute the step in DTS package window. ...
    (microsoft.public.sqlserver.dts)
  • Re: ActiveX script works in DTS but not in job, why?
    ... When you execute the package, are you logged in as the same user under which ... and run the DTS package? ... Peter DeBetta, MVP - SQL Server ... The script works just great ...
    (microsoft.public.sqlserver.dts)