Skip to content

Commit

Permalink
Adjust all license header to the new format (#1421)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraemii committed May 25, 2023
1 parent 61562b0 commit 9e50b96
Show file tree
Hide file tree
Showing 300 changed files with 736 additions and 2,738 deletions.
16 changes: 1 addition & 15 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
# Copyright (C) 2011-2022 Greenbone Networks GmbH
# SPDX-FileCopyrightText: 2023 Greenbone AG
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

cmake_minimum_required (VERSION 3.0)

Expand Down
16 changes: 1 addition & 15 deletions cmake/GetGit.cmake
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
# Copyright (C) 2018-2022 Greenbone Networks GmbH
# SPDX-FileCopyrightText: 2023 Greenbone AG
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

# This script attempts to determine the Git commit ID and writes or updates
# a "gitrevision.h" file if successful.
Expand Down
16 changes: 1 addition & 15 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
# Copyright (C) 2011-2022 Greenbone Networks GmbH
# SPDX-FileCopyrightText: 2023 Greenbone AG
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

## build

Expand Down
5 changes: 3 additions & 2 deletions doc/coverage.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash


# SPDX-FileCopyrightText: 2023 Greenbone AG
#
# SPDX-License-Identifier: GPL-2.0-or-later

make_toc_entry() {
name=${file##*/}
Expand Down
3 changes: 3 additions & 0 deletions doc/html.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2023 Greenbone AG
#
# SPDX-License-Identifier: GPL-2.0-or-later

print_progress() {
# echo -ne "\033[2K"
Expand Down
3 changes: 3 additions & 0 deletions doc/man.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2023 Greenbone AG
#
# SPDX-License-Identifier: GPL-2.0-or-later

version=0.1
date=$(date +"%B %Y")
Expand Down
5 changes: 5 additions & 0 deletions doc/templates/script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* SPDX-FileCopyrightText: 2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/

$(function () {
var title = document.title.split(" - ")[1];

Expand Down
5 changes: 5 additions & 0 deletions doc/templates/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* SPDX-FileCopyrightText: 2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/

nav {
height: 100%;
width: 20%;
Expand Down
5 changes: 5 additions & 0 deletions doc/templates/template.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<!DOCTYPE html>
<!--
SPDX-FileCopyrightText: 2023 Greenbone AG
SPDX-License-Identifier: GPL-2.0-or-later
-->

<html>

Expand Down
3 changes: 3 additions & 0 deletions doc/toc.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2023 Greenbone AG
#
# SPDX-License-Identifier: GPL-2.0-or-later

make_toc_entry() {
name=${file##*/}
Expand Down
16 changes: 1 addition & 15 deletions misc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
# Copyright (C) 2010-2022 Greenbone Networks GmbH
# SPDX-FileCopyrightText: 2023 Greenbone AG
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

## Dependency checks
##
Expand Down
23 changes: 2 additions & 21 deletions misc/bpf_share.c
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
/* Portions Copyright (C) 2009-2022 Greenbone Networks GmbH
* Copyright (C) 2003 Renaud Deraison
/* SPDX-FileCopyrightText: 2023 Greenbone AG
* SPDX-FileCopyrightText: 2003 Renaud Deraison
*
* SPDX-License-Identifier: GPL-2.0-only
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/

/** @todo There once was a BPF sharing feature with the same API
* as the methods below, but trying to share BPF among the daemon
* processes. What remains is a thin abstraction of the pcap API.
* Eventually it needs to be analysed whether this makes sense
* or can further be simplified. */

#include "bpf_share.h"

#include "../nasl/nasl_debug.h" /* for nasl_*_filename */
Expand Down
18 changes: 2 additions & 16 deletions misc/bpf_share.h
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
/* Portions Copyright (C) 2009-2022 Greenbone Networks GmbH
* Based on work Copyright (C) 1998 - 2007 Tenable Network Security, Inc.
/* SPDX-FileCopyrightText: 2023 Greenbone AG
* SPDX-FileCopyrightText: 1998-2007 Tenable Network Security, Inc.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/

/**
Expand Down
18 changes: 2 additions & 16 deletions misc/ftp_funcs.c
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
/* Portions Copyright (C) 2009-2022 Greenbone Networks GmbH
* Based on work Copyright (C) 1998 Renaud Deraison
/* SPDX-FileCopyrightText: 2023 Greenbone AG
* SPDX-FileCopyrightText: 1998 Renaud Deraison
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "ftp_funcs.h"
Expand Down
18 changes: 2 additions & 16 deletions misc/ftp_funcs.h
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
/* Portions Copyright (C) 2009-2022 Greenbone Networks GmbH
* Based on work Copyright (C) 1998 Renaud Deraison
/* SPDX-FileCopyrightText: 2023 Greenbone AG
* SPDX-FileCopyrightText: 1998 Renaud Deraison
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/

/**
Expand Down
16 changes: 1 addition & 15 deletions misc/heartbeat.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/* Copyright (C) 2023 Greenbone Networks GmbH
/* SPDX-FileCopyrightText: 2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/

/**
Expand Down
16 changes: 1 addition & 15 deletions misc/heartbeat.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/* Copyright (C) 2023 Greenbone Networks GmbH
/* SPDX-FileCopyrightText: 2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/

/**
Expand Down
5 changes: 5 additions & 0 deletions misc/ipc.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* SPDX-FileCopyrightText: 2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/

#include "ipc.h"

#include "ipc_pipe.h"
Expand Down
5 changes: 5 additions & 0 deletions misc/ipc.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* SPDX-FileCopyrightText: 2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/

#ifndef MISC_IPC_H
#define MISC_IPC_H

Expand Down
20 changes: 3 additions & 17 deletions misc/ipc_openvas.c
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
/* Portions Copyright (C) 2009-2022 Greenbone Networks GmbH
* Portions Copyright (C) 2006 Software in the Public Interest, Inc.
* Based on work Copyright (C) 1998 - 2006 Tenable Network Security, Inc.
/* SPDX-FileCopyrightText: 2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-only
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: GPL-2.0-or-later
*/

#include "ipc_openvas.h"

#include <json-glib/json-glib.h>
Expand Down
5 changes: 5 additions & 0 deletions misc/ipc_openvas.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* SPDX-FileCopyrightText: 2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/

#ifndef MISC_IPC_OPENVAS_H
#define MISC_IPC_OPENVAS_H

Expand Down
16 changes: 1 addition & 15 deletions misc/ipc_openvas_tests.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/* Copyright (C) 2019-2022 Greenbone Networks GmbH
/* SPDX-FileCopyrightText: 2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "ipc_openvas.c"
Expand Down
20 changes: 3 additions & 17 deletions misc/ipc_pipe.c
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
/* Portions Copyright (C) 2009-2022 Greenbone Networks GmbH
* Portions Copyright (C) 2006 Software in the Public Interest, Inc.
* Based on work Copyright (C) 1998 - 2006 Tenable Network Security, Inc.
/* SPDX-FileCopyrightText: 2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-only
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: GPL-2.0-or-later
*/

#include "ipc_pipe.h"

#include <errno.h>
Expand Down
Loading

0 comments on commit 9e50b96

Please sign in to comment.