tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg_install patch to support sysutils/etckeeper

On Mon, 27 May 2013, Joerg Sonnenberger wrote:

> On Mon, May 27, 2013 at 08:53:43PM +1200, Steven Drake wrote:
> > The attached patch is my simple attempt at the needed hooks, does anyone
> > have any improvements or is this or to commit.
> I don't like this approach :) 

I did say "simple attempt" :)

> I think the correct way forward is to add directories like
> $PREFIX/libdata/pkg_install/{pre,post}-{install,deinstall}
> and execute the scripts in it (sorted by C locale strcmp). This should
> happen in the same place as the current +INSTALL/+DEINSTALL calls with
> consistent order relative to them.

While I like this idea (thow I'd prefer
$SYSCONFDIR/pkg_install/{pre,post}-{install,deinstall}) it won't work for

I originally tried running the commands just before the +INSTALL call and
after the +DEINSTALL call and etckeeper didn't work the way it's suppost to.


Home | Main Index | Thread Index | Old Index