From owner-freebsd-ports-bugs@FreeBSD.ORG Sat May 12 15:30:10 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51A601065672 for ; Sat, 12 May 2012 15:30:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2BFB08FC0C for ; Sat, 12 May 2012 15:30:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4CFUAQX043725 for ; Sat, 12 May 2012 15:30:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4CFUAUf043723; Sat, 12 May 2012 15:30:10 GMT (envelope-from gnats) Resent-Date: Sat, 12 May 2012 15:30:10 GMT Resent-Message-Id: <201205121530.q4CFUAUf043723@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kris Moore Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C210A1065670 for ; Sat, 12 May 2012 15:20:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 94E938FC08 for ; Sat, 12 May 2012 15:20:07 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q4CFK72L048788 for ; Sat, 12 May 2012 15:20:07 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q4CFK7e5048787; Sat, 12 May 2012 15:20:07 GMT (envelope-from nobody) Message-Id: <201205121520.q4CFK7e5048787@red.freebsd.org> Date: Sat, 12 May 2012 15:20:07 GMT From: Kris Moore To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/167825: ports: Mk/bsd.pbi.mk inclusion X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 May 2012 15:30:10 -0000 >Number: 167825 >Category: ports >Synopsis: ports: Mk/bsd.pbi.mk inclusion >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 12 15:30:09 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Kris Moore >Release: 9.0-Release >Organization: iXsystems >Environment: >Description: The included patch adds a "make pbi" and "make clean-pbi" target to the ports build system. Requesting portmgr to review and commit if OK. >How-To-Repeat: >Fix: Add bsd.pbi.mk to /usr/ports/Mk and add the following to bsd.port.mk: .include "${PORTSDIR}/Mk/bsd.pbi.mk" Patch attached with submission follows: # $Id$ # # Creates a PBI file from a port with just 'make pbi' # # _PBIMAKEPORT= pbi_makeport _PBICREATE= pbi_create _PBIDIR= pbi _PBICONF= ${_PBIDIR}/pbi.conf _PBIBUILDDIR= /usr/local/pbi/${PORTNAME}-${ARCH} PBIPWD= `pwd` _PBIPORT= `pwd | cut -d '/' -f4-` .PHONY: check-pbimanager pbi pbi-makeport pbi-generate pbi-create \ clean-pbi clean-pbibuild _PBIMANAGER_PKG!=which pbi_info || ${TRUE} check-pbimanager: .if empty(_PBIMANAGER_PKG) @(cd ${PORTSDIR}/ports-mgmt/pbi-manager && ${MAKE} install clean) .endif pbi: pbi-generate pbi-generate: check-pbimanager @if [ ! -d ${PWD}/pbi ]; then \ ${ECHO_MSG} "===> Generating meta-data for ${PORTNAME}"; \ ${MKDIR} ${_PBIDIR}; \ ${MKDIR} ${_PBIDIR}/resources ${_PBIDIR}/scripts \ ${_PBIDIR}/xdg-desktop ${_PBIDIR}/xdg-menu \ ${_PBIDIR}/xgd-mime; \ ${ECHO_CMD} "PBI_PROGNAME=\"${PORTNAME}\"" > ${_PBICONF};\ ${ECHO_CMD} "PBI_MAKEPORT=\"${_PBIPORT}\"" >> ${_PBICONF};\ PROGWEB=`cat ${DESCR} | awk '/^WWW:/ { print $$2; }'`; \ ${ECHO_CMD} "PBI_PROGWEB=\"$${PROGWEB}\"" >> ${_PBICONF};\ ${ECHO_CMD} "PBI_PROGAUTHOR=\"The ${PORTNAME} team\"" \ >> ${_PBICONF}; \ ${ECHO_CMD} "PBI_UPDATEURL=\"http://update.pbidir.com\""\ >> ${_PBICONF}; \ ${ECHO_CMD} "export PBI_PROGNAME PBI_MAKEPORT " \ "PBI_PROGWEB " \ "PBI_PROGAUTHOR PBI_UPDATEURL " \ "PBI_MKPORTBEFORE PBI_MKPORTAFTER PBI_MAKEOPTS" \ >> ${_PBICONF}; \ fi @${ECHO_MSG} "==> Generating PBI file" @${_PBIMAKEPORT} -c ${PBIPWD}/pbi -o ${PBIPWD} ${_PBIPORT} clean-pbi: @${ECHO_MSG} "===> Cleaning PBI for ${PORTNAME}" @${RM} -rf ${_PBIDIR} >Release-Note: >Audit-Trail: >Unformatted: