aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2015-12-04 16:52:19 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-12-21 12:16:06 -0600
commit000503fad72e4eb2ef956a24df358be84b2a9493 (patch)
tree0307f01ead5ba19185b69e5dcdb033054b63956b /sh
parent065f034059d7ca26bbb985158c5d361ff75df186 (diff)
Convert OpenRC to a centralized copyright/license structure
In the past, OpenRC was a hybrid of a centralized and file-scope license/copyright structure. I followed the instructions from the Software Freedom Law Center [1] to convert to a Centralized structure where possible, for easier future maintenance. [1] https://softwarefreedom.org/resources/2012/ManagingCopyrightInformation.html
Diffstat (limited to 'sh')
-rw-r--r--sh/binfmt.sh.in13
-rw-r--r--sh/cgroup-release-agent.sh.in11
-rw-r--r--sh/functions.sh.in13
-rw-r--r--sh/gendepends.sh.in11
-rw-r--r--sh/init-early.sh.Linux.in11
-rw-r--r--sh/init.sh.BSD.in11
-rw-r--r--sh/init.sh.GNU-kFreeBSD.in11
-rw-r--r--sh/init.sh.GNU.in12
-rw-r--r--sh/migrate-to-run.sh.in11
-rw-r--r--sh/openrc-run.sh.in11
-rw-r--r--sh/rc-cgroup.sh.in11
-rw-r--r--sh/rc-mount.sh11
-rwxr-xr-xsh/runtests.sh9
-rw-r--r--sh/s6.sh12
-rw-r--r--sh/start-stop-daemon.sh12
15 files changed, 139 insertions, 31 deletions
diff --git a/sh/binfmt.sh.in b/sh/binfmt.sh.in
index b636bac7..fd422f83 100644
--- a/sh/binfmt.sh.in
+++ b/sh/binfmt.sh.in
@@ -2,14 +2,19 @@
# This is a reimplementation of the systemd binfmt.d code to register
# misc binary formats with the kernel.
#
-# Copyright (c) 2015 William Hubbs <w.d.hubbs@gmail.com>
-# Released under the 2-clause BSD license.
-#
# See the binfmt.d manpage as well:
# http://0pointer.de/public/systemd-man/binfmt.d.html
# This script should match the manpage as of 2015/03/31
-#
+# Copyright (c) 2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
apply_file() {
[ $# -lt 1 ] && return 0
FILE="$1"
diff --git a/sh/cgroup-release-agent.sh.in b/sh/cgroup-release-agent.sh.in
index d6dd1e1e..394b7ec7 100644
--- a/sh/cgroup-release-agent.sh.in
+++ b/sh/cgroup-release-agent.sh.in
@@ -1,8 +1,17 @@
#!@SHELL@
-#
# This is run by the kernel after the last task is removed from a
# control group in the openrc hierarchy.
+# Copyright (c) 2007-2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
+
cgroup=/sys/fs/cgroup/openrc
PATH=/bin:/usr/bin:/sbin:/usr/sbin
if [ -d ${cgroup}/"$1" ]; then
diff --git a/sh/functions.sh.in b/sh/functions.sh.in
index e4e69eb7..9283ec03 100644
--- a/sh/functions.sh.in
+++ b/sh/functions.sh.in
@@ -1,9 +1,16 @@
-# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
-# Released under the 2-clause BSD license.
-
# Allow any sh script to work with einfo functions and friends
# We also provide a few helpful functions for other programs to use
+# Copyright (c) 2007-2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
+
RC_GOT_FUNCTIONS="yes"
eindent()
diff --git a/sh/gendepends.sh.in b/sh/gendepends.sh.in
index 79a4bfff..82088c51 100644
--- a/sh/gendepends.sh.in
+++ b/sh/gendepends.sh.in
@@ -1,8 +1,15 @@
#!@SHELL@
# Shell wrapper to list our dependencies
-# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
-# Released under the 2-clause BSD license.
+# Copyright (c) 2007-2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
. @LIBEXECDIR@/sh/functions.sh
. @LIBEXECDIR@/sh/rc-functions.sh
diff --git a/sh/init-early.sh.Linux.in b/sh/init-early.sh.Linux.in
index a4116fc8..1898c440 100644
--- a/sh/init-early.sh.Linux.in
+++ b/sh/init-early.sh.Linux.in
@@ -1,6 +1,13 @@
#!@SHELL@
-# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
-# Released under the 2-clause BSD license.
+# Copyright (c) 2007-2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
: ${CONSOLE:=/dev/console}
: ${RC_LIBEXECDIR:=@LIBEXECDIR@}
diff --git a/sh/init.sh.BSD.in b/sh/init.sh.BSD.in
index 5912a95a..6fe0bde6 100644
--- a/sh/init.sh.BSD.in
+++ b/sh/init.sh.BSD.in
@@ -1,6 +1,13 @@
#!@SHELL@
-# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
-# Released under the 2-clause BSD license.
+# Copyright (c) 2007-2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
# This basically mounts $svcdir as a ramdisk, but preserving its content
# which allows us to run depscan.sh
diff --git a/sh/init.sh.GNU-kFreeBSD.in b/sh/init.sh.GNU-kFreeBSD.in
index d1a04e15..db3eec3b 100644
--- a/sh/init.sh.GNU-kFreeBSD.in
+++ b/sh/init.sh.GNU-kFreeBSD.in
@@ -1,6 +1,13 @@
#!@SHELL@
-# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
-# Released under the 2-clause BSD license.
+# Copyright (c) 2007-2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
if [ ! -d /run ]; then
ebegin "Creating /run"
diff --git a/sh/init.sh.GNU.in b/sh/init.sh.GNU.in
index 5ba051d9..f08bac73 100644
--- a/sh/init.sh.GNU.in
+++ b/sh/init.sh.GNU.in
@@ -1,7 +1,13 @@
#!@SHELL@
-# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
-# Copyright (c) 2014 Svante Signell <svante.signell@gmail.com>
-# Released under the 2-clause BSD license.
+# Copyright (c) 2007-2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
if [ ! -d /run ]; then
ebegin "Creating /run"
diff --git a/sh/migrate-to-run.sh.in b/sh/migrate-to-run.sh.in
index 91f49fa9..2a31b6d6 100644
--- a/sh/migrate-to-run.sh.in
+++ b/sh/migrate-to-run.sh.in
@@ -1,6 +1,13 @@
#!@SHELL@
-# Copyright (c) 2012 William Hubbs <w.d.hubbs@gmail.com>
-# Released under the 2-clause BSD license.
+# Copyright (c) 2012-2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
. "@LIBEXECDIR@/sh/functions.sh"
diff --git a/sh/openrc-run.sh.in b/sh/openrc-run.sh.in
index 5018cee6..b393e943 100644
--- a/sh/openrc-run.sh.in
+++ b/sh/openrc-run.sh.in
@@ -1,8 +1,15 @@
#!@SHELL@
# Shell wrapper for openrc-run
-# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
-# Released under the 2-clause BSD license.
+# Copyright (c) 2007-2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
verify_boot()
{
diff --git a/sh/rc-cgroup.sh.in b/sh/rc-cgroup.sh.in
index b49c7115..20b2c6ec 100644
--- a/sh/rc-cgroup.sh.in
+++ b/sh/rc-cgroup.sh.in
@@ -1,6 +1,13 @@
#!@SHELL@
-# Copyright (c) 2012 Alexander Vershilov <qnikst@gentoo.org>
-# Released under the 2-clause BSD license.
+# Copyright (c) 2012-2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
extra_stopped_commands="${extra_stopped_commands} cgroup_cleanup"
description_cgroup_cleanup="Kill all processes in the cgroup"
diff --git a/sh/rc-mount.sh b/sh/rc-mount.sh
index cd5d0f78..f443d4c5 100644
--- a/sh/rc-mount.sh
+++ b/sh/rc-mount.sh
@@ -1,5 +1,12 @@
-# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
-# Released under the 2-clause BSD license.
+# Copyright (c) 2007-2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
# Declare this here so that no formatting doesn't affect the embedded newline
__IFS="
diff --git a/sh/runtests.sh b/sh/runtests.sh
index f083ff46..b42a3577 100755
--- a/sh/runtests.sh
+++ b/sh/runtests.sh
@@ -1,4 +1,13 @@
#!/bin/sh
+# Copyright (c) 2008-2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
: ${top_srcdir:=..}
. $top_srcdir/test/setup_env.sh
diff --git a/sh/s6.sh b/sh/s6.sh
index a45456a3..7f378d55 100644
--- a/sh/s6.sh
+++ b/sh/s6.sh
@@ -1,6 +1,14 @@
# Start / stop / status functions for s6 support
-# Copyright (c) 2015 William Hubbs <w.d.hubbs@gmail.com>
-# Released under the 2-clause BSD license.
+
+# Copyright (c) 2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
[ -z "${s6_service_path}" ] && s6_service_path="/var/svc.d/${RC_SVCNAME}"
diff --git a/sh/start-stop-daemon.sh b/sh/start-stop-daemon.sh
index ea992693..3e42137c 100644
--- a/sh/start-stop-daemon.sh
+++ b/sh/start-stop-daemon.sh
@@ -1,6 +1,14 @@
# start / stop / status functions for start-stop-daemon
-# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
-# Released under the 2-clause BSD license.
+
+# Copyright (c) 2007-2015 The OpenRC Authors.
+# See the Authors file at the top-level directory of this distribution and
+# https://github.com/OpenRC/openrc/blob/master/AUTHORS
+#
+# This file is part of OpenRC. It is subject to the license terms in
+# the LICENSE file found in the top-level directory of this
+# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
+# This file may not be copied, modified, propagated, or distributed
+# except according to the terms contained in the LICENSE file.
ssd_start()
{