Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame] | 1 | // Copyright © 2015 Steve Francia <spf@spf13.com>. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | // |
| 8 | // Unless required by applicable law or agreed to in writing, software |
| 9 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | // See the License for the specific language governing permissions and |
| 12 | // limitations under the License. |
| 13 | |
| 14 | // Parts inspired by https://github.com/ryanuber/go-license |
| 15 | |
| 16 | package cmd |
| 17 | |
| 18 | func initBsdClause2() { |
| 19 | Licenses["freebsd"] = License{ |
| 20 | Name: "Simplified BSD License", |
| 21 | PossibleMatches: []string{"freebsd", "simpbsd", "simple bsd", "2-clause bsd", |
| 22 | "2 clause bsd", "simplified bsd license"}, |
| 23 | Header: `All rights reserved. |
| 24 | |
| 25 | Redistribution and use in source and binary forms, with or without |
| 26 | modification, are permitted provided that the following conditions are met: |
| 27 | |
| 28 | 1. Redistributions of source code must retain the above copyright notice, |
| 29 | this list of conditions and the following disclaimer. |
| 30 | |
| 31 | 2. Redistributions in binary form must reproduce the above copyright notice, |
| 32 | this list of conditions and the following disclaimer in the documentation |
| 33 | and/or other materials provided with the distribution. |
| 34 | |
| 35 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 36 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 37 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 38 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| 39 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 40 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 41 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 42 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 43 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 44 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 45 | POSSIBILITY OF SUCH DAMAGE.`, |
| 46 | Text: `{{ .copyright }} |
| 47 | All rights reserved. |
| 48 | |
| 49 | Redistribution and use in source and binary forms, with or without |
| 50 | modification, are permitted provided that the following conditions are met: |
| 51 | |
| 52 | 1. Redistributions of source code must retain the above copyright notice, |
| 53 | this list of conditions and the following disclaimer. |
| 54 | |
| 55 | 2. Redistributions in binary form must reproduce the above copyright notice, |
| 56 | this list of conditions and the following disclaimer in the documentation |
| 57 | and/or other materials provided with the distribution. |
| 58 | |
| 59 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 60 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 61 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 62 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| 63 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 64 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 65 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 66 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 67 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 68 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 69 | `, |
| 70 | } |
| 71 | } |