Skip to content

Commit 954e272

Browse files
committed
Add licensing headers and set rights
1 parent aa7f276 commit 954e272

File tree

16 files changed

+329
-2
lines changed

16 files changed

+329
-2
lines changed

Makefile.am

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
#
2+
# Color Bandwidth Meter (CBM) - display in real time the network traffic speed
3+
#
4+
# Copyright 2005-2006 Aaron Isotton <aaron@isotton.com>
5+
# Copyright 2019 Joao Eriberto Mota Filho <eriberto@debian.org>
6+
#
7+
# This program is free software; you can redistribute it and/or
8+
# modify it under the terms of the GNU General Public License
9+
# as published by the Free Software Foundation; version 2
10+
# of the License.
11+
#
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program; if not, write to the Free Software
19+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20+
#
21+
122
SUBDIRS=doc src
223
EXTRA_DIST=COPYING debian/*
324

configure.ac

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
#
2+
# Color Bandwidth Meter (CBM) - display in real time the network traffic speed
3+
#
4+
# Copyright 2005-2006 Aaron Isotton <aaron@isotton.com>
5+
# Copyright 2019 Joao Eriberto Mota Filho <eriberto@debian.org>
6+
#
7+
# This program is free software; you can redistribute it and/or
8+
# modify it under the terms of the GNU General Public License
9+
# as published by the Free Software Foundation; version 2
10+
# of the License.
11+
#
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program; if not, write to the Free Software
19+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20+
#
21+
122
AC_PREREQ(2.59)
223
AC_INIT([cbm],[0.1],[aaron@isotton.com])
324
AM_INIT_AUTOMAKE(foreign)

doc/Makefile.am

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
#
2+
# Color Bandwidth Meter (CBM) - display in real time the network traffic speed
3+
#
4+
# Copyright 2005-2006 Aaron Isotton <aaron@isotton.com>
5+
#
6+
# This program is free software; you can redistribute it and/or
7+
# modify it under the terms of the GNU General Public License
8+
# as published by the Free Software Foundation; version 2
9+
# of the License.
10+
#
11+
# This program is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
# GNU General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU General Public License
17+
# along with this program; if not, write to the Free Software
18+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19+
#
20+
121
man1_MANS = cbm.1
222
EXTRA_DIST = cbm.xml
323
MOSTLYCLEANFILES = cbm.1

src/ErrnoError.hpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Color Bandwidth Meter (CBM) - display in real time the network traffic speed
3+
4+
Copyright 2005-2006 Aaron Isotton <aaron@isotton.com>
5+
6+
This program is free software; you can redistribute it and/or
7+
modify it under the terms of the GNU General Public License
8+
as published by the Free Software Foundation; version 2
9+
of the License.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program; if not, write to the Free Software
18+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19+
*/
20+
121
#ifndef CBM_ERRNOERROR_HPP
222
#define CBM_ERRNOERROR_HPP
323

src/Makefile.am

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
#
2+
# Color Bandwidth Meter (CBM) - display in real time the network traffic speed
3+
#
4+
# Copyright 2005-2006 Aaron Isotton <aaron@isotton.com>
5+
# Copyright 2019 Joao Eriberto Mota Filho <eriberto@debian.org>
6+
#
7+
# This program is free software; you can redistribute it and/or
8+
# modify it under the terms of the GNU General Public License
9+
# as published by the Free Software Foundation; version 2
10+
# of the License.
11+
#
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program; if not, write to the Free Software
19+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20+
#
21+
122
SUBDIRS = widgets
223
bin_PROGRAMS = cbm
324
cbm_SOURCES = cbm.cpp \

src/cbm.cpp

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
Color Bandwidth Meter (CBM) - display in real time the network traffic speed
3+
4+
Copyright 2005-2006 Aaron Isotton <aaron@isotton.com>
5+
Copyright 2006 Paul Martin <pm@debian.org>
6+
Copyright 2012 Cyril Brulebois <kibi@debian.org>
7+
8+
This program is free software; you can redistribute it and/or
9+
modify it under the terms of the GNU General Public License
10+
as published by the Free Software Foundation; version 2
11+
of the License.
12+
13+
This program is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with this program; if not, write to the Free Software
20+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21+
*/
22+
123
#include "config.h"
224
#include "ErrnoError.hpp"
325
#include "statistics.hpp"
@@ -24,7 +46,7 @@
2446
extern int optind, opterr, optopt;
2547

2648
namespace {
27-
49+
2850
// Globals
2951
struct option longopts[] =
3052
{

src/statistics.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Color Bandwidth Meter (CBM) - display in real time the network traffic speed
3+
4+
Copyright 2005-2006 Aaron Isotton <aaron@isotton.com>
5+
6+
This program is free software; you can redistribute it and/or
7+
modify it under the terms of the GNU General Public License
8+
as published by the Free Software Foundation; version 2
9+
of the License.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program; if not, write to the Free Software
18+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19+
*/
20+
121
#include "config.h"
222
#include "statistics.hpp"
323
#include "ErrnoError.hpp"

src/statistics.hpp

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/*
2+
Color Bandwidth Meter (CBM) - display in real time the network traffic speed
3+
4+
Copyright 2005-2006 Aaron Isotton <aaron@isotton.com>
5+
Copyright 2007 brian m. carlson <sandals@crustytoothpaste.ath.cx>
6+
7+
This program is free software; you can redistribute it and/or
8+
modify it under the terms of the GNU General Public License
9+
as published by the Free Software Foundation; version 2
10+
of the License.
11+
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
GNU General Public License for more details.
16+
17+
You should have received a copy of the GNU General Public License
18+
along with this program; if not, write to the Free Software
19+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20+
*/
21+
122
#ifndef CBM_STATISTICS_H
223
#define CBM_STATISTICS_H
324

@@ -6,7 +27,7 @@
627
#include <sys/time.h>
728

829
namespace statistics {
9-
30+
1031
struct Statistics {
1132
struct timeval timestamp;
1233
unsigned long long rx_bytes, rx_packets, rx_errs, rx_drop, rx_fifo,

src/widgets/Bar.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Color Bandwidth Meter (CBM) - display in real time the network traffic speed
3+
4+
Copyright 2005-2006 Aaron Isotton <aaron@isotton.com>
5+
6+
This program is free software; you can redistribute it and/or
7+
modify it under the terms of the GNU General Public License
8+
as published by the Free Software Foundation; version 2
9+
of the License.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program; if not, write to the Free Software
18+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19+
*/
20+
121
#include "Bar.hpp"
222

323
Bar::Bar(Screen& screen) : Window(screen), style_(0), background_(' ') {}

src/widgets/Bar.hpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Color Bandwidth Meter (CBM) - display in real time the network traffic speed
3+
4+
Copyright 2005-2006 Aaron Isotton <aaron@isotton.com>
5+
6+
This program is free software; you can redistribute it and/or
7+
modify it under the terms of the GNU General Public License
8+
as published by the Free Software Foundation; version 2
9+
of the License.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program; if not, write to the Free Software
18+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19+
*/
20+
121
#ifndef CBM_WIDGETS_BAR_HPP
222
#define CBM_WIDGETS_BAR_HPP
323

0 commit comments

Comments
 (0)