pkgng <bsd.pkgng.mk> and upgrade vars
Cassiano Peixoto
peixotocassiano at gmail.com
Mon Aug 18 13:37:08 UTC 2014
Hi,
I sent this message to freebsd-ports@ with no answer, maybe i have a better
luck here.
I was playing with pkgng and making some new ports when I found in
bsd.pkgng.mk some features like:
KGPREINSTALL?= ${PKGDIR}/pkg-pre-install
PKGPOSTINSTALL?= ${PKGDIR}/pkg-post-install
PKGPREDEINSTALL?= ${PKGDIR}/pkg-pre-deinstall
PKGPOSTDEINSTALL?= ${PKGDIR}/pkg-post-deinstall
PKGPREUPGRADE?= ${PKGDIR}/pkg-pre-upgrade
PKGPOSTUPGRADE?= ${PKGDIR}/pkg-post-upgrade
PKGUPGRADE?= ${PKGDIR}/pkg-upgrade
Anyone can tell me what can i do with this options? For instance, I can
suppose that PKGUPGRADE will only run if i'm upgrading an installed
package. Am i right?
Anyway, i tried to use that in my port with no success, here is the
important piece of my Makefile:
SUB_FILES= pkg-install pkg-upgrade
upgrade:
${SH} ${PKGUPGRADE} ${PKGNAME} UPGRADE
I created files/pkg-upgrade.in with some commands to be ran in an upgrade.
But when i upgrade my package on client side it didn't work.
Anyone is using that and can explain how it works?
Thanks
More information about the freebsd-pkg
mailing list