On Sun, Jun 21, 2009 at 12:39 PM, Cem Kayali<[email protected]> wrote:
> Hello!
>
> I'm trying to create some customised packages, and noticed that many ports
> use exec/unexec. I did search through archives and found that, in 2007 Marc
> Espie says;
>
>
> http://www.techtalkz.com/openbsd/79003-post-install-script-execution-package.html
>>But using @exec/@unexec is more or less like an INSTALL since you
>>can execute commands on installation of the package, am I right ?
>
> yes, @exec and @unexec are *still* dangerous, and you *still* must think
> twice before using them.
>
>
> So, i checked through documentation, and couldn't find a way to execute
> these scripts with user permisions or a way to disable. By default, port
> installation run @exec while doing make install or pkg_add.
>
> Maybe i'm missing something, could someone please advise?
I believe:
$ man pkg_add
/-I
-I If scripts exist for a given package, do not execute them.
also, you said you were "trying to create some customised packages",
in which case you can remove the @exec/@unexec lines from PLIST if you
so desire.
--patrick