Hi,

Thanks for your reply.

    -I       If scripts exist for a given package, do not execute them.


This does not work... I will re-check, but "pkg_add -vvvI" shows that scripts are executed.


Well, one of my client would like to run any 3rd party script only as regular user.


Regards,
Cem




patrick keshishian, 06/21/09 22:54:
On Sun, Jun 21, 2009 at 12:39 PM, Cem Kayali<cemkay...@eticaret.com.tr> 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

Reply via email to