diff --git a/LICENSE b/LICENSE index 592368dc..906f5a69 100644 --- a/LICENSE +++ b/LICENSE @@ -55,6 +55,29 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. =============================================================================== +Json.NET is licensed under the MIT license + +Copyright (c) 2007 James Newton-King + +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. + +=============================================================================== + Bootstrap is licensed under the MIT license Copyright (c) 2011-2016 Twitter, Inc. diff --git a/lib/ntpa.rc b/lib/ntpa.rc index 1bc1a2fc..1d9ca0d9 100755 --- a/lib/ntpa.rc +++ b/lib/ntpa.rc @@ -1,4 +1,32 @@ #!/bin/sh +# +# $FreeBSD$ + +# +# Copyright (C) 1994-2016 The FreeBSD Project. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# + # # PROVIDE: ntpa # REQUIRE: networking @@ -8,7 +36,7 @@ # # ntpa_enable (bool): Set to NO by default. # Set it to YES to enable ntpa. -# ntpa_config (path): Set to /usr/local/etc/ntpa/ntpa.conf +# ntpa_config (path): Set to %%PREFIX%%/etc/ntpa/ntpa.conf # by default. # ntpa_tempdir (path): Set to /tmp by default. # ntpa_user (user): Set to ntpa by default. @@ -53,7 +81,7 @@ extra_commands="reload configtest" load_rc_config ${name} eval ": \${${name}_enable:=\"NO\"}" -eval ": \${${name}_config:=\"/usr/local/etc/ntpa/${name}.conf\"}" +eval ": \${${name}_config:=\"%%PREFIX%%/etc/ntpa/${name}.conf\"}" eval ": \${${name}_tempdir:=\"/tmp/\"}" eval ": \${${name}_user:=\"ntpa\"}" @@ -76,13 +104,13 @@ ntpa_start() return 1 else echo "Starting ${name}." - su -m ${ntpauser} -c "sh -c '/usr/local/sbin/ntpa --config ${config} --writepid ${pidfile} --temp ${tempdir} --daemon ${name} &'" + su -m ${ntpauser} -c "sh -c '%%PREFIX%%/sbin/ntpa --config ${config} --writepid ${pidfile} --temp ${tempdir} --daemon ${name} &'" fi } ntpa_configtest() { - su -m ${ntpauser} -c "sh -c '/usr/local/sbin/ntpav -v ${config}'" + su -m ${ntpauser} -c "sh -c '%%PREFIX%%/sbin/ntpav -v ${config}'" } ntpa_reload() @@ -91,7 +119,7 @@ ntpa_reload() _run_rc_notrunning return 1 else - echo "Reloading ${name}." + echo "Reloading ${name} configuration." rc_pid=`cat ${pidfile}` kill -USR1 $rc_pid fi