From 448bed6e3bce266f02e617c36e4b3a85f394edc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 19 Nov 2020 22:07:29 +0700 Subject: [PATCH] JAI: move to restricted The license requires us to defend and indemnify Sun and its licensors. --- srcpkgs/JAI/template | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/srcpkgs/JAI/template b/srcpkgs/JAI/template index ce50a8c183c901..2b7fcb61068324 100644 --- a/srcpkgs/JAI/template +++ b/srcpkgs/JAI/template @@ -1,12 +1,21 @@ # Template file for 'JAI' pkgname=JAI version=1.1.3 -revision=3 +revision=4 +archs="i686 x86_64" short_desc="Java Advanced Imaging Library - binary version" -maintainer="Carlo Dormeletti " -license="Apache-2.0" +maintainer="Carlo Dormeletti " +license="custom:Oracle Binary Code License" homepage="https://java.net/projects/jai-core" -archs="i686 x86_64" +repository=nonfree +# DISTRIBUTIONREADME-jai.txt +# (e) You agree to defend and indemnify Sun and its licensors from and against +# any damages, costs, liabilities, settlement amounts and/or expenses +# (including attorneys' fees) incurred in connection with any claim, lawsuit or +# action by any third party that arises or results from the use or distribution +# of any and all Programs and/or Redistributable. +restricted=yes +ignore_elf_dirs="/usr/share/java/lib" if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then _arch="amd64" @@ -32,5 +41,7 @@ do_install() { vcopy lib/libmlib_jai.so usr/share/java/lib/${_jarch} # put the license files in place vmkdir usr/share/licenses/${pkgname} - vcopy *-jai.txt usr/share/licenses/${pkgname} + for _license in *.txt; do + vlicense "$_license" + done }