relicense as lgpl

This commit is contained in:
ading2210 2025-01-23 14:58:44 -05:00
parent 5c3c591a41
commit 42e927b71b
7 changed files with 169 additions and 720 deletions

View file

@ -1,4 +1,4 @@
const copyright_notice = `libcurl.js is licensed under the GNU AGPL v3. You can find the license text and source code at the project's git repository: https://github.com/ading2210/libcurl.js
const copyright_notice = `libcurl.js is licensed under the GNU LGPL v3. You can find the license text and source code at the project's git repository: https://github.com/ading2210/libcurl.js
Several C libraries are used, and their licenses are listed below:
- libcurl: curl License (https://curl.se/docs/copyright.html)

View file

@ -1,19 +1,7 @@
/*
ading2210/libcurl.js - A port of libcurl to WASM for the browser.
Copyright (C) 2024 ading2210
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Licensed under the GNU LGPL v3. See https://github.com/ading2210/libcurl.js
*/
//everything is wrapped in a function to prevent emscripten from polluting the global scope

View file

@ -12,7 +12,7 @@
"url": "git+https://github.com/ading2210/libcurl.js.git"
},
"author": "ading2210",
"license": "AGPL-3.0-or-later",
"license": "LGPL-3.0-or-later",
"bugs": {
"url": "https://github.com/ading2210/libcurl.js/issues"
},

View file

@ -1,29 +0,0 @@
#!/bin/bash
#compile wolfssl for use with emscripten
set -x
set -e
CORE_COUNT=$(nproc --all)
PREFIX=$(realpath build/wolfssl-wasm)
rm -rf $PREFIX
mkdir -p $PREFIX
cd build
rm -rf wolfssl
git clone -b v5.7.2-stable --depth=1 https://github.com/wolfSSL/wolfssl wolfssl
cd wolfssl
autoreconf -fi
export CFLAGS="-Oz -DSP_WORD_SIZE=32 -DWOLFSSL_NO_ATOMICS -DWOLFSSL_MAX_ALT_NAMES=1024"
emconfigure ./configure --prefix=$PREFIX --enable-curl --enable-static --disable-shared --host=i686-linux --disable-examples --disable-asm --enable-sni --enable-alpn --enable-truncatedhmac --enable-tlsv12 --enable-all-crypto --disable-arc4 --disable-asyncthreads --disable-threadlocal --enable-tlsx --disable-nullcipher
emmake make -j$CORE_COUNT
make install
rm -rf $PREFIX/bin
rm -rf $PREFIX/share
rm -rf $PREFIX/lib/pkgconfig
rm -rf $PREFIX/lib/*.la
cd ../../

@ -1 +1 @@
Subproject commit 6aa58be0897501ac444b38e7e7c0008da24f79ba
Subproject commit 455b9186bfbd0915ed7082c9d356af2157ab014f