From 324f1053c8f90d747a58fe199ab6f8476b347994 Mon Sep 17 00:00:00 2001 From: Sasha Gerrand Date: Mon, 13 Aug 2018 10:21:26 +0100 Subject: [PATCH] Copy project license files into package The terms of use attached to the GLU C Library require this. --- .circleci/config.yml | 2 +- APKBUILD | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2fd8698..d895b3a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,7 +37,7 @@ jobs: command: docker run --env RSA_PRIVATE_KEY="$RSA_PRIVATE_KEY" --env RSA_PRIVATE_KEY_NAME="sgerrand.rsa" --volumes-from input --volumes-from output sgerrand/alpine-abuild:v7 - run: name: Test package installation - command: docker run --volumes-from output alpine:3.8 sh -c "cp /packages/sgerrand.rsa.pub /etc/apk/keys/ && apk -U add --no-progress --upgrade /packages/builder/x86_64/*.apk" + command: docker run --volumes-from output alpine:3.8 sh -c "cp /packages/sgerrand.rsa.pub /etc/apk/keys/ && apk -U add --no-progress --upgrade /packages/builder/x86_64/*.apk && test -f /usr/glibc-compat/share/licenses/COPYING && test -f /usr/glibc-compat/share/licenses/LICENSES" - run: name: Extract packages command: | diff --git a/APKBUILD b/APKBUILD index 3bc1dcf..894fc83 100644 --- a/APKBUILD +++ b/APKBUILD @@ -30,6 +30,11 @@ package() { ln -s /usr/glibc-compat/lib/ld-linux-x86-64.so.2 ${pkgdir}/lib/ld-linux-x86-64.so.2 ln -s /usr/glibc-compat/lib/ld-linux-x86-64.so.2 ${pkgdir}/lib64/ld-linux-x86-64.so.2 ln -s /usr/glibc-compat/etc/ld.so.cache ${pkgdir}/etc/ld.so.cache + + local file; for file in COPYING LICENSES; do + install -m 644 -D "$srcdir"/$FILE \ + "$pkgdir"/usr/glibc-compat/share/licenses/$pkgname/$file + done } bin() {