Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to Affero GPL #101

Merged
merged 4 commits into from Apr 28, 2022
Merged

Change to Affero GPL #101

merged 4 commits into from Apr 28, 2022

Conversation

yaxu
Copy link
Member

@yaxu yaxu commented Apr 27, 2022

After discussion, @felixroos and I would like to switch from GPL to the Affero GPL for it's coverage of web services. This will also match the license for Hydra. It's best to do this now before there are more substantial contributions from others.

Tagging people with merged/ongoing PRs: @puria @bwagner @ChiakiUehira @kindohm @charlieroberts @mindofmatthew @filippoguida

Please shout if you object to your changes being distributed under AGPL rather than GPL, thanks!

@yaxu yaxu mentioned this pull request Apr 27, 2022
@yaxu
Copy link
Member Author

yaxu commented Apr 28, 2022

I added the AGPL headers with this script.

Please take a look what you think (it'll be harder to make formatting tweaks etc later).

#!/usr/bin/perl -w

use strict;
use File::Basename;

my @fns = `find packages/ repl/ -regex '.*\.m?js'|grep -v node_modules`;

undef $/;
my $licence = <DATA>;

foreach my $fn (@fns) {
  chop($fn);
  my $base = basename($fn);
  open FILE, "<$fn";
  my $source = <FILE>;
  close(FILE);
  open FILE, ">$fn";
  my $tmp = $licence;
  $tmp =~ s/replaceme/$base/sg;
  print FILE $tmp;
  print FILE $source;
  close FILE;
  # unlink("$fn.tmp")
}

__DATA__
/*
replaceme - <short description TODO>
Copyright (C) 2022 <author(s) TODO> and contributors
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/>.
*/

@yaxu yaxu merged commit 4c29677 into main Apr 28, 2022
@yaxu yaxu deleted the agpl-license branch April 28, 2022 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant