diff options
author | eadler <eadler@FreeBSD.org> | 2013-12-11 08:23:15 +0800 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-12-11 08:23:15 +0800 |
commit | 21e1fe10ddb5acd35d1d9fe46b4e92eb68597a16 (patch) | |
tree | f412ff0fc088a00d60872b0827df3b6b0c84f19a | |
parent | d6c85cc8f361374b76c2d44d21bb104cfcb3e931 (diff) | |
download | freebsd-ports-gnome-21e1fe10ddb5acd35d1d9fe46b4e92eb68597a16.tar.gz freebsd-ports-gnome-21e1fe10ddb5acd35d1d9fe46b4e92eb68597a16.tar.zst freebsd-ports-gnome-21e1fe10ddb5acd35d1d9fe46b4e92eb68597a16.zip |
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)
-rw-r--r-- | Mk/bsd.port.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 15564d77184c..00f989cee6c7 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -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}: ${BROKEN_${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: |