From owner-svn-ports-head@FreeBSD.ORG Wed Dec 11 00:23:15 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]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E3F0CCF9; Wed, 11 Dec 2013 00:23:15 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CDFEB1ED1; Wed, 11 Dec 2013 00:23:15 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBB0NFpu093902; Wed, 11 Dec 2013 00:23:15 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBB0NFGM093901; Wed, 11 Dec 2013 00:23:15 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201312110023.rBB0NFGM093901@svn.freebsd.org> From: Eitan Adler Date: Wed, 11 Dec 2013 00:23:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r336130 - 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.17 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: Wed, 11 Dec 2013 00:23:16 -0000 Author: eadler Date: Wed Dec 11 00:23:15 2013 New Revision: 336130 URL: http://svnweb.freebsd.org/changeset/ports/336130 Log: bsd.port.mk: add LEGAL_TEXT and LEGAL_PACKAGE variable The license system did not a method to give 'positive' permissions or other 'LEGAL' information without affecting the resulting package in some way (RESTRICTED, NO_PACKAGE, NO_CDROM, etc.). Provide a generic mechanism to provide this. Further, provide a special variable "LEGAL" which can be used to capture any of NO_PACKAGE, NO_CDROM, RESTRICTED, LEGAL_TEXT in reverse priority order. PR: ports/178096 Approved by: portmgr (bdrewery) Modified: head/Mk/bsd.port.mk Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Tue Dec 10 23:56:44 2013 (r336129) +++ head/Mk/bsd.port.mk Wed Dec 11 00:23:15 2013 (r336130) @@ -169,6 +169,8 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # but distfiles can be put on ftp sites and CDROMs. # FORBIDDEN - Package build should not be attempted because of # security vulnerabilities. +# LEGAL_TEXT - Port has legal issues (e.g., special permission to distribute, lacks a license). +# LEGAL_PACKAGE - Port has no legal issues but defines NO_PACKAGE # IGNORE - Package build should be skipped entirely (e.g. # because of serious unfixable problems in the build, # because it cannot be manually fetched, etc). Error @@ -3164,6 +3166,17 @@ IGNORE= is marked as broken on ${ARCH}: IGNORE= is forbidden: ${FORBIDDEN} .endif +# Define the text to be output to LEGAL +.if defined(LEGAL_TEXT) +LEGAL= ${LEGAL_TEXT} +.elif defined(RESTRICTED) +LEGAL= ${RESTRICTED} +.elif defined(NO_CDROM) +LEGAL= ${NO_CDROM} +.elif defined(NO_PACKAGE) && ! defined(LEGAL_PACKAGE) +LEGAL= ${NO_PACKAGE} +.endif + .if (defined(MANUAL_PACKAGE_BUILD) && defined(PACKAGE_BUILDING)) IGNORE= has to be built manually: ${MANUAL_PACKAGE_BUILD} clean: