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

Introduce SPDX License Identifiers #49

Merged
merged 1 commit into from
Nov 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#
# Copyright 2013,2016–2018 Alexander Dahl <post@lespocky.de>
#
# SPDX-License-Identifier: LGPL-2.1+
# License-Filename: LICENSES/LGPL-2.1.txt
#

cmake_minimum_required(VERSION 3.1)

Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2001 Bob Trower, Trantor Standard Systems Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3 changes: 3 additions & 0 deletions include/libcgi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#
# Copyright 2018 Alexander Dahl <post@lespocky.de>
#
# SPDX-License-Identifier: LGPL-2.1+
# License-Filename: LICENSES/LGPL-2.1.txt
#

configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/config.h.in"
Expand Down
25 changes: 7 additions & 18 deletions include/libcgi/cgi.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
/*
LibCGI - A library to make CGI programs using C
Copyright (C) 2001 Rafael Steil

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library 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
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* LibCGI - A library to make CGI programs using C
*
* Copyright 2001 Rafael Steil <rafael@insanecorp.com>
*
* SPDX-License-Identifier: LGPL-2.1+
* License-Filename: LICENSES/LGPL-2.1.txt
*/

You can contact the author by e-mail: rafael@insanecorp.com
*/
#ifndef _CGI_H
#define _CGI_H 1

Expand Down
7 changes: 7 additions & 0 deletions include/libcgi/error.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Copyright 2001 Rafael Steil <rafael@insanecorp.com>
*
* SPDX-License-Identifier: LGPL-2.1+
* License-Filename: LICENSES/LGPL-2.1.txt
*/

#ifndef _ERROR_H
#define _ERROR_H 1

Expand Down
26 changes: 7 additions & 19 deletions include/libcgi/session.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
/*
LibCGI - A library to make CGI programs using C
Copyright (C) 2001 Rafael Steil

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library 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
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

You can contact the author by e-mail: rafael@insanecorp.com
*/
* LibCGI - A library to make CGI programs using C
*
* Copyright 2001 Rafael Steil <rafael@insanecorp.com>
*
* SPDX-License-Identifier: LGPL-2.1+
* License-Filename: LICENSES/LGPL-2.1.txt
*/

#ifndef _SESSION_H
#define _SESSION_H 1
Expand Down
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#
# Copyright 2013,2016,2018 Alexander Dahl <post@lespocky.de>
#
# SPDX-License-Identifier: LGPL-2.1+
# License-Filename: LICENSES/LGPL-2.1.txt
#

set(CGI_SRC
base64.c
Expand Down
36 changes: 8 additions & 28 deletions src/base64.c
Original file line number Diff line number Diff line change
@@ -1,32 +1,12 @@
/*
LibCGI base64 manipulation functions is extremely based on the work of Bob Tower,
from its projec http://base64.sourceforge.net. The functions were a bit modicated.
Above is the MIT license from b64.c original code:

LICENCE: Copyright (c) 2001 Bob Trower, Trantor Standard Systems Inc.

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the
Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall
be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
*/
* LibCGI base64 manipulation functions is extremely based on the work of Bob Tower,
* from its projec http://base64.sourceforge.net. The functions were a bit modicated.
*
* Copyright (c) 2001 Bob Trower, Trantor Standard Systems Inc.
*
* SPDX-License-Identifier: MIT
* License-Filename: LICENSES/MIT.txt
*/

#include <stdio.h>
#include <stdlib.h>
Expand Down
26 changes: 7 additions & 19 deletions src/cgi.c
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
/*
LibCGI - A library to make CGI programs using C
Copyright (C) 2001 Rafael Steil

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library 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
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

You can contact the author by e-mail: rafael@insanecorp.com
*/
* LibCGI - A library to make CGI programs using C
*
* Copyright 2001 Rafael Steil <rafael@insanecorp.com>
*
* SPDX-License-Identifier: LGPL-2.1+
* License-Filename: LICENSES/LGPL-2.1.txt
*/

#include <stddef.h>
#include <stdio.h>
Expand Down
26 changes: 7 additions & 19 deletions src/cookie.c
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
/*
LibCGI - A library to make CGI programs using C
Copyright (C) 2001 Rafael Steil

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library 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
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

You can contact the author by e-mail: rafael@insanecorp.com
*/
* LibCGI - A library to make CGI programs using C
*
* Copyright 2001 Rafael Steil <rafael@insanecorp.com>
*
* SPDX-License-Identifier: LGPL-2.1+
* License-Filename: LICENSES/LGPL-2.1.txt
*/

#include <stdio.h>
#include <stdlib.h>
Expand Down
9 changes: 9 additions & 0 deletions src/error.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* LibCGI - A library to make CGI programs using C
*
* Copyright 2001 Rafael Steil <rafael@insanecorp.com>
*
* SPDX-License-Identifier: LGPL-2.1+
* License-Filename: LICENSES/LGPL-2.1.txt
*/

#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
Expand Down
26 changes: 7 additions & 19 deletions src/general.c
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
/*
LibCGI - A library to make CGI programs using C
Copyright (C) 2001 Rafael Steil

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library 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
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

You can contact the author by e-mail: rafael@insanecorp.com
*/
* LibCGI - A library to make CGI programs using C
*
* Copyright 2001 Rafael Steil <rafael@insanecorp.com>
*
* SPDX-License-Identifier: LGPL-2.1+
* License-Filename: LICENSES/LGPL-2.1.txt
*/

#include <stdio.h>
#include <string.h>
Expand Down
28 changes: 8 additions & 20 deletions src/list.c
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
/*
LibCGI - A library to make CGI programs using C
Copyright (C) 2001 Rafael Steil
Copyright 2016 Alexander Dahl <post@lespocky.de>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library 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
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

You can contact the author by e-mail: rafael@insanecorp.com
*/
* LibCGI - A library to make CGI programs using C
*
* Copyright 2001 Rafael Steil <rafael@insanecorp.com>
* Copyright 2016 Alexander Dahl <post@lespocky.de>
*
* SPDX-License-Identifier: LGPL-2.1+
* License-Filename: LICENSES/LGPL-2.1.txt
*/

#include <stdio.h>
#include <stddef.h>
Expand Down
26 changes: 7 additions & 19 deletions src/session.c
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
/*
LibCGI - A library to make CGI programs using C
Copyright (C) 2001 Rafael Steil

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library 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
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

You can contact the author by e-mail: rafael@insanecorp.com
*/
* LibCGI - A library to make CGI programs using C
*
* Copyright 2001 Rafael Steil <rafael@insanecorp.com>
*
* SPDX-License-Identifier: LGPL-2.1+
* License-Filename: LICENSES/LGPL-2.1.txt
*/

/*****************************************************
* The variables/functions beginning with sess_ are
Expand Down
26 changes: 7 additions & 19 deletions src/string.c
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
/*
LibCGI - A library to make CGI programs using C
Copyright (C) 2001/2002 Rafael Steil

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library 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
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

You can contact the author by e-mail: rafael@insanecorp.com
*/
* LibCGI - A library to make CGI programs using C
*
* Copyright 2001,2002 Rafael Steil <rafael@insanecorp.com>
*
* SPDX-License-Identifier: LGPL-2.1+
* License-Filename: LICENSES/LGPL-2.1.txt
*/

#include <stdio.h>
#include <string.h>
Expand Down
3 changes: 3 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#
# Copyright 2016–2018 Alexander Dahl <post@lespocky.de>
#
# SPDX-License-Identifier: LGPL-2.1+
# License-Filename: LICENSES/LGPL-2.1.txt
#

# misc
add_executable(cgi-test
Expand Down
9 changes: 6 additions & 3 deletions test/cgi_test.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
/*******************************************************************//**
* @file cgi_test.c
* @file cgi_test.c
*
* Actual test routines checking stuff we want to check in unit tests.
*
* @author Alexander Dahl <post@lespocky.de>
* @author Alexander Dahl <post@lespocky.de>
*
* Copyright 2016 Alexander Dahl
* SPDX-License-Identifier: LGPL-2.1+
* License-Filename: LICENSES/LGPL-2.1.txt
*
* @copyright 2016 Alexander Dahl <post@lespocky.de>
**********************************************************************/

#include "cgi_test.h"
Expand Down
Loading