Re: Post-install script execution in a package
- From: "Joachim Schipper" <jdNoOtSPAMschipper@xxxxxxxxxx>
- Date: 07 Aug 2007 21:01:39 GMT
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
.
- Follow-Ups:
- Re: Post-install script execution in a package
- From: drymizu
- Re: Post-install script execution in a package
- References:
- Post-install script execution in a package
- From: drymizu
- Post-install script execution in a package
- Prev by Date: Re: Creating a cheap wireless "server" with openbsd.
- Next by Date: Re: Post-install script execution in a package
- Previous by thread: Post-install script execution in a package
- Next by thread: Re: Post-install script execution in a package
- Index(es):
Relevant Pages
|