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, Thomas Klausner wrote:

> The infrastructure already supports the same idea, but for the INSTALL
> and DEINSTALL scripts that you can add to packages. See
> files/add/perform.c:run_install_script() which is called in pkg_do()
> before and after extract_files().

I am aware of that :)
 
> I guess this is not exactly the right place for what we need for
> etckeeper?

Correct, what basically need to be automated is

$ etckeeper pre-install
$ pkg_add a-package another-package ...
$ etckeeper post-install

Whats important is that the pre-install command is run before any package
is installed and the post-install command run after all packages have been 
installed.  Using a shell script wrapper around pkg_add would work fine.
 
> And a minor thing: When you bump the version in version.h:
[...]
> the version in the Makefile automatically increases.

I also know that.

> > Index: pkg_install/Makefile
> > ===================================================================
> > --- pkg_install.orig/Makefile
> > +++ pkg_install/Makefile
> > @@ -7,7 +7,6 @@
> >  # change in the pkg_* tools that pkgsrc relies on for proper operation.
> >  
> >  DISTNAME=          pkg_install-${VERSION}
> > -PKGREVISION=               1
> >  CATEGORIES=                pkgtools
> >  MASTER_SITES=              # empty
> >  DISTFILES=         # empty

But note that I didn't change the version but removed the PKGREVISION.

-- 
Steven



Home | Main Index | Thread Index | Old Index