Subject: Re: ACCEPTABLE_LICENSES=all ?
To: David Brownlee <abs@formula1.com>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 01/02/2002 23:50:37
On Wed, Jan 02, 2002 at 10:34:16AM +0000, David Brownlee wrote:
> Does anyone have any objections to disallowing
> ACCEPTABLE_LICENSES=all ?
>
> btw - can anyone find a better way to make the test than the _ALL
> sludge below?
>
>
> diff -u -B -r1.886 bsd.pkg.mk
> --- bsd.pkg.mk 2001/12/23 19:32:15 1.886
> +++ bsd.pkg.mk 2002/01/02 10:33:06
> @@ -1029,8 +1029,9 @@
>
> . if defined(LICENSE)
> . ifdef ACCEPTABLE_LICENSES
> +_ALL=all
> . for _lic in ${ACCEPTABLE_LICENSES}
> -. if ${LICENSE} == "${_lic}"
> +. if (${LICENSE} == "${_lic}") || (${_ALL} == "${_lic}")
> _ACCEPTABLE= yes
> . endif # LICENSE == _lic
> . endfor # _lic
>
> --
> David/absolute abs@formula1.com
This isn't quite what I had in mind when the licence stuff was added, but...
[22:45:18] agc@dmz0 ...pkgsrc/comms/kermit 170 > grep kermit /etc/mk.conf
#ACCEPTABLE_LICENSES+=kermit-license
[22:45:42] agc@dmz0 ...pkgsrc/comms/kermit 171 > make
===> all [kermit-8.0] ===> kermit-8.0 has an unacceptable license: kermit-license.
===> all [kermit-8.0] ===> To build this package, add this line to your /etc/mk.conf:
===> all [kermit-8.0] ===> ACCEPTABLE_LICENSES+=kermit-license
[22:45:46] agc@dmz0 ...pkgsrc/comms/kermit 172 > make _ACCEPTABLE=yes
=> cku200.tar.gz doesn't seem to exist on this system.
=> Attempting to fetch cku200.tar.gz from ftp://kermit.columbia.edu/kermit/test/tar/.
Connected to ftp.kermit.columbia.edu.
220 ftp.kermit.columbia.edu FTP server ready.
331 Anonymous login ok, send your complete email address as your password.
230-Welcome to Columbia University Academic Information Systems
public file transfer access point. You may cd from here to any
of the following areas:
...
Regards,
Alistair