Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2014 21:11:44 -0300
From:      Cassiano Peixoto <peixotocassiano@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   pkgng <bsd.pkgng.mk> and upgrade vars
Message-ID:  <CAJajdNURxKUNp0MPoN1Azho3HroXvFMvUDhkpq7R27KC=1cO1w@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJajdNURxKUNp0MPoN1Azho3HroXvFMvUDhkpq7R27KC=1cO1w>