Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Aug 2014 10:37:07 -0300
From:      Cassiano Peixoto <peixotocassiano@gmail.com>
To:        freebsd-pkg@freebsd.org
Subject:   pkgng <bsd.pkgng.mk> and upgrade vars
Message-ID:  <CAJajdNW-VWmfJ5db%2B75nHeh7x5_HdRnQ3-%2Bc94G9v7t9oLRqNA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJajdNW-VWmfJ5db%2B75nHeh7x5_HdRnQ3-%2Bc94G9v7t9oLRqNA>