License issues (e.g. mod_throttle, mod_watch)
Ceri Davies
ceri at FreeBSD.org
Mon May 26 05:56:18 PDT 2003
On Mon, May 26, 2003 at 11:33:03AM +1200, Andrew Turner wrote:
> Hello,
>
> Would adding LICENSE= to port Makefiles help?
>
> If I wanted to find the license of a port without downloading the
> tarball it would be easy.
>
> This could be extended by having a check, if I don't accept the license
> then it won't install the port.
Concept patch, adapted from NetBSD:
Index: bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.450
diff -u -r1.450 bsd.port.mk
--- bsd.port.mk 23 May 2003 04:14:18 -0000 1.450
+++ bsd.port.mk 26 May 2003 12:55:06 -0000
@@ -2360,6 +2360,21 @@
IGNORE= "is forbidden: ${FORBIDDEN}"
.endif
+.if defined(LICENSE)
+.ifdef ACCEPTABLE_LICENSES
+.for _lic in ${ACCEPTABLE_LICENSES}
+.if ${LICENSE} == "${_lic}"
+_ACCEPTABLE= yes
+.endif # LICENSE == _lic
+.endfor # _lic
+.endif # ACCEPTABLE_LICENSES
+.ifndef _ACCEPTABLE
+IGNORE+= "has an unacceptable license: ${LICENSE}." \
+ " To build this package, add this line to /etc/make.conf:" \
+ " ACCEPTABLE_LICENSES+=${LICENSE}"
+.endif # _ACCEPTABLE
+.endif # LICENSE
+
.if (defined(MANUAL_PACKAGE_BUILD) && defined(PACKAGE_BUILDING) && !defined(PARALLEL_PACKAGE_BUILD))
IGNORE= "has to be built manually: ${MANUAL_PACKAGE_BUILD}"
clean:
Ceri
--
User: DO YOU ACCEPT JESUS CHRIST AS YOUR PERSONAL LORD AND SAVIOR?
Iniaes: Sure, I can accept all forms of payment.
-- www.chatterboxchallenge.com
More information about the freebsd-ports
mailing list