Date: Mon, 26 May 2003 13:56:06 +0100 From: Ceri Davies <ceri@FreeBSD.org> To: Andrew Turner <zombie@i4free.co.nz> Cc: freebsd-ports@freebsd.org Subject: Re: License issues (e.g. mod_throttle, mod_watch) Message-ID: <20030526125606.GA80541@submonkey.net> In-Reply-To: <3ED152AF.1000404@i4free.co.nz> References: <baqrft$1uud$1@kemoauc.mips.inka.de> <3ED152AF.1000404@i4free.co.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030526125606.GA80541>