Commit ea57b29b authored by squbs's avatar squbs

licensing clean-up

parent faa97d9d
......@@ -5,7 +5,7 @@ Copyright (c) 2013 Dr Kimoto Chan
Copyright (c) 2014 Doge Core Developers
Copyright (c) 2014-2015 Dash Core Developers
Copyright (c) 2014-2015 LIMX Core Developers
Copyright (c) 2017 STRAKS Core Developers
Copyright (c) 2017 STRAKS Developers
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......
# Copyright (c) 2013-2016 The STRAKS Core developers
# Copyright (c) 2017 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
#!/bin/sh
# Copyright (c) 2013-2016 The STRAKS Core developers
# Copyright (c) 2017 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
dnl Copyright (c) 2013-2015 The STRAKS Core developers
dnl Distributed under the MIT software license, see the accompanying
dnl file COPYING or http://www.opensource.org/licenses/mit-license.php.
AC_DEFUN([STRAKS_FIND_BDB48],[
AC_ARG_VAR(BDB_CFLAGS, [C compiler flags for BerkeleyDB, bypasses autodetection])
AC_ARG_VAR(BDB_LIBS, [Linker flags for BerkeleyDB, bypasses autodetection])
if test "x$BDB_CFLAGS" = "x"; then
AC_MSG_CHECKING([for Berkeley DB C++ headers])
BDB_CPPFLAGS=
bdbpath=X
bdb48path=X
bdbdirlist=
for _vn in 4.8 48 4 5 ''; do
for _pfx in b lib ''; do
bdbdirlist="$bdbdirlist ${_pfx}db${_vn}"
done
done
for searchpath in $bdbdirlist ''; do
test -n "${searchpath}" && searchpath="${searchpath}/"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <${searchpath}db_cxx.h>
]],[[
#if !((DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 8) || DB_VERSION_MAJOR > 4)
#error "failed to find bdb 4.8+"
#endif
]])],[
if test "x$bdbpath" = "xX"; then
bdbpath="${searchpath}"
fi
],[
continue
])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <${searchpath}db_cxx.h>
]],[[
#if !(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 8)
#error "failed to find bdb 4.8"
#endif
]])],[
bdb48path="${searchpath}"
break
],[])
done
if test "x$bdbpath" = "xX"; then
AC_MSG_RESULT([no])
AC_MSG_ERROR([libdb_cxx headers missing, ]AC_PACKAGE_NAME[ requires this library for wallet functionality (--disable-wallet to disable wallet functionality)])
elif test "x$bdb48path" = "xX"; then
STRAKS_SUBDIR_TO_INCLUDE(BDB_CPPFLAGS,[${bdbpath}],db_cxx)
AC_ARG_WITH([incompatible-bdb],[AS_HELP_STRING([--with-incompatible-bdb], [allow using a bdb version other than 4.8])],[
AC_MSG_WARN([Found Berkeley DB other than 4.8; wallets opened by this build will not be portable!])
],[
AC_MSG_ERROR([Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality)])
])
else
STRAKS_SUBDIR_TO_INCLUDE(BDB_CPPFLAGS,[${bdb48path}],db_cxx)
bdbpath="${bdb48path}"
fi
else
BDB_CPPFLAGS=${BDB_CFLAGS}
fi
AC_SUBST(BDB_CPPFLAGS)
if test "x$BDB_LIBS" = "x"; then
# TODO: Ideally this could find the library version and make sure it matches the headers being used
for searchlib in db_cxx-4.8 db_cxx; do
AC_CHECK_LIB([$searchlib],[main],[
BDB_LIBS="-l${searchlib}"
break
])
done
if test "x$BDB_LIBS" = "x"; then
AC_MSG_ERROR([libdb_cxx missing, ]AC_PACKAGE_NAME[ requires this library for wallet functionality (--disable-wallet to disable wallet functionality)])
fi
fi
AC_SUBST(BDB_LIBS)
])
This diff is collapsed.
dnl Copyright (c) 2013-2014 The STRAKS Core developers
dnl Distributed under the MIT software license, see the accompanying
dnl file COPYING or http://www.opensource.org/licenses/mit-license.php.
dnl STRAKS_SUBDIR_TO_INCLUDE([CPPFLAGS-VARIABLE-NAME],[SUBDIRECTORY-NAME],[HEADER-FILE])
dnl SUBDIRECTORY-NAME must end with a path separator
AC_DEFUN([STRAKS_SUBDIR_TO_INCLUDE],[
if test "x$2" = "x"; then
AC_MSG_RESULT([default])
else
echo "#include <$2$3.h>" >conftest.cpp
newinclpath=`${CXXCPP} ${CPPFLAGS} -M conftest.cpp 2>/dev/null | [ tr -d '\\n\\r\\\\' | sed -e 's/^.*[[:space:]:]\(\/[^[:space:]]*\)]$3[\.h[[:space:]].*$/\1/' -e t -e d`]
AC_MSG_RESULT([${newinclpath}])
if test "x${newinclpath}" != "x"; then
eval "$1=\"\$$1\"' -I${newinclpath}'"
fi
fi
])
#!/usr/bin/env python3
# Copyright (c) 2016 The Straks Core developers
# Copyright (c) 2017 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
......@@ -84,8 +84,11 @@ def compile_copyright_regex(copyright_style, year_style, name):
EXPECTED_HOLDER_NAMES = [
"Satoshi Nakamoto\n",
"The Straks Core developers\n",
"STRAKS developers\n",
"The Straks Core developers \n",
"STRAKS developers \n",
"Straks Core Developers\n",
"STRAKS Core Developers\n",
"the Straks Core developers\n",
"The Straks developers\n",
"The LevelDB Authors\. All rights reserved\.\n",
......@@ -340,7 +343,7 @@ def write_file_lines(filename, file_lines):
COPYRIGHT = 'Copyright \(c\)'
YEAR = "20[0-9][0-9]"
YEAR_RANGE = '(%s)(-%s)?' % (YEAR, YEAR)
HOLDER = 'The Straks Core developers'
HOLDER = 'STRAKS developers'
UPDATEABLE_LINE_COMPILED = re.compile(' '.join([COPYRIGHT, YEAR_RANGE, HOLDER]))
def get_updatable_copyright_line(file_lines):
......@@ -408,24 +411,24 @@ def exec_update_header_year(base_directory):
################################################################################
UPDATE_USAGE = """
Updates all the copyright headers of "The Straks Core developers" which were
Updates all the copyright headers of "STRAKS developers" which were
changed in a year more recent than is listed. For example:
// Copyright (c) <firstYear>-<lastYear> The Straks Core developers
// Copyright (c) <firstYear>-<lastYear> STRAKS developers
will be updated to:
// Copyright (c) <firstYear>-<lastModifiedYear> The Straks Core developers
// Copyright (c) <firstYear>-<lastModifiedYear> STRAKS developers
where <lastModifiedYear> is obtained from the 'git log' history.
This subcommand also handles copyright headers that have only a single year. In those cases:
// Copyright (c) <year> The Straks Core developers
// Copyright (c) <year> STRAKS developers
will be updated to:
// Copyright (c) <year>-<lastModifiedYear> The Straks Core developers
// Copyright (c) <year>-<lastModifiedYear> STRAKS developers
where the update is appropriate.
......@@ -458,7 +461,7 @@ def get_header_lines(header, start_year, end_year):
return [line + '\n' for line in lines]
CPP_HEADER = '''
// Copyright (c) %s The Straks Core developers
// Copyright (c) %s STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
......@@ -467,7 +470,7 @@ def get_cpp_header_lines_to_insert(start_year, end_year):
return reversed(get_header_lines(CPP_HEADER, start_year, end_year))
PYTHON_HEADER = '''
# Copyright (c) %s The Straks Core developers
# Copyright (c) %s STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
......@@ -521,7 +524,7 @@ def insert_cpp_header(filename, file_lines, start_year, end_year):
def exec_insert_header(filename, style):
file_lines = read_file_lines(filename)
if file_already_has_core_copyright(file_lines):
sys.exit('*** %s already has a copyright by The Straks Core developers'
sys.exit('*** %s already has a copyright by STRAKS developers'
% (filename))
start_year, end_year = get_git_change_year_range(filename)
if style == 'python':
......@@ -534,7 +537,7 @@ def exec_insert_header(filename, style):
################################################################################
INSERT_USAGE = """
Inserts a copyright header for "The Straks Core developers" at the top of the
Inserts a copyright header for "STRAKS developers" at the top of the
file in either Python or C++ style as determined by the file extension. If the
file is a Python file and it has a '#!' starting the first line, the header is
inserted in the line below it.
......@@ -548,7 +551,7 @@ where <year_introduced> is according to the 'git log' history. If
"<current_year>"
If the file already has a copyright for "The Straks Core developers", the
If the file already has a copyright for "STRAKS developers", the
script will exit.
Usage:
......@@ -580,7 +583,7 @@ def insert_cmd(argv):
################################################################################
USAGE = """
copyright_header.py - utilities for managing copyright headers of 'The Straks
copyright_header.py - utilities for managing copyright headers of 'The STRAKS
Core developers' in repository source files.
Usage:
......
# bash programmable completion for straks-cli(1)
# Copyright (c) 2012-2016 The Straks Core developers
# Copyright (c) 2017 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
# bash programmable completion for straksd(1) and straks-qt(1)
# Copyright (c) 2012-2016 The Straks Core developers
# Copyright (c) 2017 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
# Copyright (c) 2012-2016 The Straks Core developers
# Copyright (c) 2017 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
......
#!/usr/bin/env python
# Copyright (c) 2012-2016 The Straks Core developers
# Copyright (c) 2017 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
......
# Copyright (c) 2017 The Straks Core developers
# Copyright (c) 2017 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
# Copyright (c) 2013-2016 The Straks Core developers
# Copyright (c) 2013-2016 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
# Copyright (c) 2017 The Straks Core developers
# Copyright (c) 2017 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
# Copyright (c) 2017 The Straks Core developers
# Copyright (c) 2017 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
# Copyright (c) 2017 The Straks Core developers
# Copyright (c) 2017 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
# Copyright (c) 2017 The Straks Core developers
# Copyright (c) 2017 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
# Copyright (c) 2017 The Straks Core developers
# Copyright (c) 2017 STRAKS developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Straks developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef ACTIVEMASTERNODE_H
......
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2017 The Dash developers
// Copyright (c) 2017 The Straks developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2017 The Dash developers
// Copyright (c) 2017 The Straks developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2012 Pieter Wuille
// Copyright (c) 2012-2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2012 Pieter Wuille
// Copyright (c) 2012-2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Straks developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2013 The Straks developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2009-2013 The Straks developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2013 The Straks developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2017 The Dash developers
// Copyright (c) 2017 The Straks developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2017 The Dash developers
// Copyright (c) 2017 The Straks developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2017 The Dash developers
// Copyright (c) 2017 The Straks developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2017 The Dash developers
// Copyright (c) 2017 The Straks developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2014-2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2015-2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2015-2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2015-2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2015-2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2015 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2012-2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2011-2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......
// Copyright (c) 2016 The Straks Core developers
// Copyright (c) 2017 STRAKS developers
</