From owner-svn-ports-head@FreeBSD.ORG Thu Mar 28 07:01:00 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 04E2B317; Thu, 28 Mar 2013 07:01:00 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id EB387CF; Thu, 28 Mar 2013 07:00:59 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2S70x7I037472; Thu, 28 Mar 2013 07:00:59 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2S70xCZ037471; Thu, 28 Mar 2013 07:00:59 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201303280700.r2S70xCZ037471@svn.freebsd.org> From: Baptiste Daroussin Date: Thu, 28 Mar 2013 07:00:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r315444 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Mar 2013 07:01:00 -0000 Author: bapt Date: Thu Mar 28 07:00:59 2013 New Revision: 315444 URL: http://svnweb.freebsd.org/changeset/ports/315444 Log: Add new _FORCE_POST_PATTERNS which is a pkgng only macro containing a list of command that if found in a @(un)exec pkgng will force to push them in post_deinstallation script. This allows not to hardcode anymore those in the pkgng binary. Modified: head/Mk/bsd.pkgng.mk Modified: head/Mk/bsd.pkgng.mk ============================================================================== --- head/Mk/bsd.pkgng.mk Thu Mar 28 06:54:46 2013 (r315443) +++ head/Mk/bsd.pkgng.mk Thu Mar 28 07:00:59 2013 (r315444) @@ -17,6 +17,11 @@ PKGPOSTDEINSTALL?= ${PKGDIR}/pkg-post-de PKGPREUPGRADE?= ${PKGDIR}/pkg-pre-upgrade PKGPOSTUPGRADE?= ${PKGDIR}/pkg-post-upgrade PKGUPGRADE?= ${PKGDIR}/pkg-upgrade +_FORCE_POST_PATTERNS= rmdir kldxref mkfontscale mkfontdir fc-cache \ + fonts.dir fonst.scale gtk-update-icon-cache \ + gio-querymodules \ + update-desktop-database update-mime-database + PLIST_REINPLACE:= ${PLIST_REINPLACE:Ndirrmtry} PLIST_REINPLACE:= ${PLIST_REINPLACE:Nstopdaemon} @@ -139,9 +144,9 @@ fake-pkg: @[ -f ${MTREE_FILE} ] && ${CP} ${MTREE_FILE} ${METADIR}/+MTREE_DIRS || return 0 .endif .if defined(INSTALLS_DEPENDS) - @${PKG_CMD} -d -l -m ${METADIR} -f ${TMPPLIST} + @${SETENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_CMD} -d -l -m ${METADIR} -f ${TMPPLIST} .else - @${PKG_CMD} -l -m ${METADIR} -f ${TMPPLIST} + @${SETENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_CMD} -l -m ${METADIR} -f ${TMPPLIST} .endif @${RM} -rf ${METADIR} .else