Date: Wed, 11 Dec 2013 00:23:15 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r336130 - head/Mk Message-ID: <201312110023.rBB0NFGM093901@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312110023.rBB0NFGM093901>