Subject: Re: running work/.INSTALL from pkgsrc Makefile's do-install target
To: None <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 05/05/2004 13:43:35
On Wed, 5 May 2004, Todd Vierling wrote:

> This is run for you before pre-install and after post-install; the actual
> flow is:
>     pre-install-script ["work/.INSTALL PRE-INSTALL" is run here]
>     pre-install
>     do-install
>     post-install
>     [create PLIST]
>     post-install-script ["work/.INSTALL POST-INSTALL" is run here]
> This way it basically follows the flow that will be used by a pkg_add;
> PRE-INSTALL happens before files are installed, and POST-INSTALL afterwards.
> Do you have an actual need to run the script outside of the normal flow
> logic?

Thanks for the overview.

A few minutes ago I saw my INSTALL (INSTALL_EXTRA_TMPL segment) was ran.

For some reason, I thought it was not run, because I thought I saw some
packages that have duplicated tasks in an INSTALL script and also in the
Makefile. But now it seems I was probably seeing things incorrectly.

(By the way, I now have a working INSTALL segment for a glibc package so
when using LOCALBASE as /usr it creates symlinks for /lib/ and
/sbin/sln and /sbin/ldconfig files.)

 Jeremy C. Reed

 	  	 	 open source, Unix, *BSD, Linux training