From owner-freebsd-pkg@FreeBSD.ORG Mon Aug 18 13:37:08 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8AB645F3 for ; Mon, 18 Aug 2014 13:37:08 +0000 (UTC) Received: from mail-vc0-x241.google.com (mail-vc0-x241.google.com [IPv6:2607:f8b0:400c:c03::241]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4AD99393B for ; Mon, 18 Aug 2014 13:37:08 +0000 (UTC) Received: by mail-vc0-f193.google.com with SMTP id ij19so1800533vcb.8 for ; Mon, 18 Aug 2014 06:37:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=WGmGlyR5Diilbqa5zmV0uGMt8BUxOWbqujRZQJ3zmDw=; b=U6MyKcXrRbt+k/efnQYYxQukLtok/yG6rspMab9YBfbydfwogsFNAtbsr+GpzkTulT ZZmKB9y1GqPEuheXNs2TfpfXCPU3Xp/QA0hD0XLunnSH4oFgNKC/k3FjoW623VVIpkd5 RqhuH4syCAg1IvYEmHeziV1B/j2oQ4VFaIGt1otC1Ta8UY5nBuRPSVYIUXY8l/P744UQ R3szrey4M/dTJQOZjS6fVerH/ud9I3l5GWtqDMPj/26798bG6GysSm6f6WTSDoyxOGxk x+RQG2aG9kYtDsGXDcgw/ONha1LpzTgKPrGj5nvHTVn391g29yTXdxzNnuQuts853Ptf rybA== MIME-Version: 1.0 X-Received: by 10.52.245.101 with SMTP id xn5mr7729982vdc.32.1408369027146; Mon, 18 Aug 2014 06:37:07 -0700 (PDT) Received: by 10.52.129.225 with HTTP; Mon, 18 Aug 2014 06:37:07 -0700 (PDT) Date: Mon, 18 Aug 2014 10:37:07 -0300 Message-ID: Subject: pkgng and upgrade vars From: Cassiano Peixoto To: freebsd-pkg@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2014 13:37:08 -0000 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