Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Jun 2014 10:57:42 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: Integrating with pkg
Message-ID:  <5392E216.4010500@FreeBSD.org>
In-Reply-To: <5392884A.5020602@spamcop.net>
References:  <5392884A.5020602@spamcop.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--SLleKLRnM0KE7v4n6in9VqmvpShfTM9bS
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 07/06/2014 04:34, Jim Trigg wrote:
> I'm looking to port a utility from Ubuntu, and need to know what hooks
> there are in pkg. I want to port etckeeper, a tool that automates
> version control for /etc (and in our case $PREFIX/etc). Its current
> implementation uses hooks in apt to automatically check in changes when=

> a package is installed/updated; I'm wondering what I can do to support
> that functionality (checking in changes when a package or the base
> system is installed/updated) in FreeBSD.

Hmmm.... well, at the moment pkg(8) has nothing to do with /etc -- as
that's part of the base system, it's outside pkg(8)'s ambit.  For now --
there are plans to package the base system, but they are as yet only as
a very early stage.

However, in the more general case, pkg(8) has a plugin capability which
sounds like it would fit the bill.  You should be able to set up some
sort of notification to etckeeper to trigger what ever action you
require on package installation / update.

The plugin system in pkg(8) has not been particularly widely used to
date, so undoubtedly there are nits to comb out.  If you raise any
problems on the freebsd-pkg@... list or via github:

   https://github.com/freebsd/pkg/issues?state=3Dopen

(Or even better: send pull requests) then we'll be happy to help.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



--SLleKLRnM0KE7v4n6in9VqmvpShfTM9bS
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ8BAEBCgBmBQJTkuIWXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATYrIQAIq1v6hlXZWMsXL5DHWg4eOi
qJU1mNVZPM1EYF/0LjQSgjRb0yxdf03tw2K5tSGQOH03gx9S+7zkOcpfcI1M6Aaq
ZLahgCbD9kSOU585XTSPjHfHDZWUvzbDc4eFSJZn7B1mKY0DL+aa1qUYG67Oh6D7
fGVqzyfwWzAMSvwDAxHNoir4cDpC9penHbZOArXZd1sAhcA1sBvb0tkT98Jg6vaE
YsasoeVWsmFSPUevQVnOUCZ5CXFfiJzH0l4U/m8ZgJt0v1yhsrPDWZCrRtnczm5N
xqPLDkq9vp3udY5VyH3iECqOL2/fF1K/iQgccKlOoCfAugJPOtQomuX8JSoc8Ulh
7upWm5ACwkSMa6tEvkez9NJZqcHhCEAMtv2zeCKcdtikZZvpgP8JpeXTxw56gbgQ
7h18X7QxUuiZB9jB88jGOPfgr+XW0iK07hHJNUkS5xuVBJ9C4YdywasOupF9D7Fm
VrVtnbV2gdWOQHvSk983E18Em6q4e7G1Pk227rc7q5r9EvGE55U7iLuN0tYZxqEr
uOJ+48C5RVPrdbR92kfM+ZZLWZO2IdGDoyBjyl0b+jd+0VzMARp3sXm8YWHaf6PN
B8qH8w9Nw2yEsOHOD35S0AO0RIA1VJx0GCUaM9/9h4iAA+VZpX2fuzhLNqeSavbt
n/OdEyVC6zaU5VGiWQKM
=pTmm
-----END PGP SIGNATURE-----

--SLleKLRnM0KE7v4n6in9VqmvpShfTM9bS--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5392E216.4010500>