diff options
| author | Christine Dodrill <me@christine.website> | 2019-04-01 10:05:03 -0700 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2019-04-01 10:05:28 -0700 |
| commit | f06f021f402270951f849dde7bee3f3340b8a1d5 (patch) | |
| tree | baee337aab524f162b349d254d21c2d8f2716d44 /tools | |
| parent | ba91a17859267201b1d1f0e71da465b1464d940f (diff) | |
| download | x-f06f021f402270951f849dde7bee3f3340b8a1d5.tar.xz x-f06f021f402270951f849dde7bee3f3340b8a1d5.zip | |
reorg
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/appsluggr/main.go | 153 | ||||
| -rw-r--r-- | tools/dnsd/dnsd.conf | 7 | ||||
| -rw-r--r-- | tools/dnsd/main.go | 128 | ||||
| -rw-r--r-- | tools/license/.gitignore | 3 | ||||
| -rw-r--r-- | tools/license/licenses/licenses.go | 978 | ||||
| -rw-r--r-- | tools/license/main.go | 125 | ||||
| -rw-r--r-- | tools/minipaas/main.go | 20 | ||||
| -rw-r--r-- | tools/priorworkgen/.gitignore | 1 | ||||
| -rw-r--r-- | tools/priorworkgen/main.go | 105 | ||||
| -rw-r--r-- | tools/quickserv/.gitignore | 1 | ||||
| -rw-r--r-- | tools/quickserv/main.go | 21 | ||||
| -rw-r--r-- | tools/relayd/main.go | 68 | ||||
| -rw-r--r-- | tools/thumber/in/XjScp8a.png | bin | 292689 -> 0 bytes | |||
| -rw-r--r-- | tools/thumber/in/lB4ICS3.png | bin | 369886 -> 0 bytes | |||
| -rw-r--r-- | tools/thumber/in/oaw79y9.jpg | bin | 67119 -> 0 bytes | |||
| -rw-r--r-- | tools/thumber/main.go | 57 |
16 files changed, 0 insertions, 1667 deletions
diff --git a/tools/appsluggr/main.go b/tools/appsluggr/main.go deleted file mode 100644 index b4701a1..0000000 --- a/tools/appsluggr/main.go +++ /dev/null @@ -1,153 +0,0 @@ -package main - -import ( - "archive/tar" - "compress/gzip" - "flag" - "fmt" - "io" - "io/ioutil" - "log" - "os" - "path/filepath" - "strings" - - "github.com/otiai10/copy" - "github.com/Xe/x/internal" -) - -var ( - web = flag.String("web", "", "path to binary for web process") - webScale = flag.Int("web-scale", 1, "default scale for web process if defined") - worker = flag.String("worker", "", "path to binary for worker process") - workerScale = flag.Int("worker-scale", 1, "default scale for worker process if defined") - fname = flag.String("fname", "slug.tar.gz", "slug name") -) - -func main() { - internal.HandleStartup() - - fout, err := os.Create(*fname) - if err != nil { - log.Fatal(err) - } - defer fout.Close() - - gzw := gzip.NewWriter(fout) - defer gzw.Close() - - tw := tar.NewWriter(gzw) - defer tw.Close() - - dir, err := ioutil.TempDir("", "appsluggr") - if err != nil { - log.Fatal(err) - } - - defer os.RemoveAll(dir) // clean up - - os.MkdirAll(filepath.Join(dir, "bin"), 0777) - var procfile, scalefile string - - copy.Copy("translations", filepath.Join(dir, "translations")) - if *web != "" { - procfile += "web: /app/bin/web\n" - scalefile += fmt.Sprintf("web=%d", *webScale) - Copy(*web, filepath.Join(dir, "bin", "web")) - - } - if *worker != "" { - procfile += "worker: /app/bin/worker\n" - scalefile += fmt.Sprintf("worker=%d", *workerScale) - Copy(*worker, filepath.Join(dir, "bin", "worker")) - } - - os.MkdirAll(filepath.Join(dir, ".config"), 0777) - - err = ioutil.WriteFile(filepath.Join(dir, ".buildpacks"), []byte("https://github.com/ryandotsmith/null-buildpack"), 0666) - if err != nil { - log.Fatal(err) - } - err = ioutil.WriteFile(filepath.Join(dir, "DOKKU_SCALE"), []byte(scalefile), 0666) - if err != nil { - log.Fatal(err) - } - err = ioutil.WriteFile(filepath.Join(dir, "Procfile"), []byte(procfile), 0666) - if err != nil { - log.Fatal(err) - } - - filepath.Walk(dir, func(file string, fi os.FileInfo, err error) error { - // return on any error - if err != nil { - log.Printf("got error on %s: %v", file, err) - return err - } - - if fi.IsDir() { - return nil // not a file. ignore. - } - - // create a new dir/file header - header, err := tar.FileInfoHeader(fi, fi.Name()) - if err != nil { - return err - } - - // update the name to correctly reflect the desired destination when untaring - header.Name = strings.TrimPrefix(strings.Replace(file, dir, "", -1), string(filepath.Separator)) - - // write the header - if err := tw.WriteHeader(header); err != nil { - return err - } - - // return on non-regular files (thanks to [kumo](https://medium.com/@komuw/just-like-you-did-fbdd7df829d3) for this suggested update) - if !fi.Mode().IsRegular() { - return nil - } - - // open files for taring - f, err := os.Open(file) - if err != nil { - return err - } - - // copy file data into tar writer - if _, err := io.Copy(tw, f); err != nil { - return err - } - - // manually close here after each file operation; defering would cause each file close - // to wait until all operations have completed. - f.Close() - - return nil - }) -} - -// Copy the src file to dst. Any existing file will be overwritten and will not -// copy file attributes. -func Copy(src, dst string) error { - in, err := os.Open(src) - if err != nil { - return err - } - defer in.Close() - st, err := in.Stat() - if err != nil { - return err - } - - out, err := os.OpenFile(dst, os.O_CREATE|os.O_WRONLY, st.Mode()) - if err != nil { - return err - } - defer out.Close() - - _, err = io.Copy(out, in) - if err != nil { - return err - } - return out.Close() -} diff --git a/tools/dnsd/dnsd.conf b/tools/dnsd/dnsd.conf deleted file mode 100644 index e490d13..0000000 --- a/tools/dnsd/dnsd.conf +++ /dev/null @@ -1,7 +0,0 @@ -port 5900 -forward-server 1.1.1.1:53 - -zone-url ( - https://xena.greedo.xeserv.us/files/akua.zone - https://xena.greedo.xeserv.us/files/adblock.zone -)
\ No newline at end of file diff --git a/tools/dnsd/main.go b/tools/dnsd/main.go deleted file mode 100644 index 314c86d..0000000 --- a/tools/dnsd/main.go +++ /dev/null @@ -1,128 +0,0 @@ -package main - -import ( - "bufio" - "flag" - "log" - "net/http" - - "os" - "os/signal" - "syscall" - - "github.com/Xe/x/internal" - "github.com/miekg/dns" - "github.com/mmikulicic/stringlist" -) - -var ( - port = flag.String("port", "53", "UDP port to listen on for DNS") - server = flag.String("forward-server", "1.1.1.1:53", "forward DNS server") - - zoneURLs = stringlist.Flag("zone-url", "DNS zonefiles to load") -) - -var ( - defaultZoneURLS = []string{ - "https://xena.greedo.xeserv.us/files/akua.zone", - "https://xena.greedo.xeserv.us/files/adblock.zone", - } -) - -func main() { - internal.HandleStartup() - - if len(*zoneURLs) == 0 { - *zoneURLs = defaultZoneURLS - } - - for _, zurl := range *zoneURLs { - log.Printf("conf: -zone-url=%s", zurl) - } - log.Printf("conf: -port=%s", *port) - log.Printf("conf: -forward-server=%s", *server) - - rrs := []dns.RR{} - - for _, zurl := range *zoneURLs { - resp, err := http.Get(zurl) - if err != nil { - panic(err) - } - - reader := bufio.NewReaderSize(resp.Body, 2048) - - var i int - zp := dns.NewZoneParser(reader, "", zurl) - for rr, ok := zp.Next(); ok; rr, ok = zp.Next() { - rrs = append(rrs, rr) - i++ - } - - if zp.Err() != nil { - panic(zp.Err()) - } - - resp.Body.Close() - - log.Printf("%s: %d records", zurl, i) - } - - dns.HandleFunc(".", func(w dns.ResponseWriter, r *dns.Msg) { - m := new(dns.Msg) - m.SetReply(r) - m.Authoritative = true - - for _, q := range r.Question { - answers := []dns.RR{} - for _, rr := range rrs { - rh := rr.Header() - - if rh.Rrtype == dns.TypeCNAME && q.Name == rh.Name { - answers = append(answers, rr) - - for _, a := range resolver("127.0.0.1:"+*port, rr.(*dns.CNAME).Target, q.Qtype) { - answers = append(answers, a) - } - } - - if q.Name == rh.Name && q.Qtype == rh.Rrtype && q.Qclass == rh.Class { - answers = append(answers, rr) - } - } - if len(answers) == 0 && *server != "" { - for _, a := range resolver(*server, q.Name, q.Qtype) { - answers = append(answers, a) - } - } - for _, a := range answers { - m.Answer = append(m.Answer, a) - } - } - w.WriteMsg(m) - }) - - go func() { - srv := &dns.Server{Addr: ":" + *port, Net: "udp"} - if err := srv.ListenAndServe(); err != nil { - log.Fatalf("Failed to set udp listener %s\n", err.Error()) - } - }() - - sig := make(chan os.Signal) - signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM) - s := <-sig - log.Fatalf("Signal (%v) received, stopping\n", s) -} - -func resolver(server, fqdn string, r_type uint16) []dns.RR { - m1 := new(dns.Msg) - m1.Id = dns.Id() - m1.SetQuestion(fqdn, r_type) - - in, err := dns.Exchange(m1, server) - if err == nil { - return in.Answer - } - return []dns.RR{} -} diff --git a/tools/license/.gitignore b/tools/license/.gitignore deleted file mode 100644 index 03a3b4e..0000000 --- a/tools/license/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -LICENSE -UNLICENSE -license diff --git a/tools/license/licenses/licenses.go b/tools/license/licenses/licenses.go deleted file mode 100644 index 297a8d6..0000000 --- a/tools/license/licenses/licenses.go +++ /dev/null @@ -1,978 +0,0 @@ -package licenses - -var List map[string]string - -func init() { - List = map[string]string{ - "zlib": ZlibLicense, - "unlicense": Unlicense, - "mit": MitLicense, - "apache": ApacheLicense, - "bsd-2": Bsd2Clause, - "bsd-3": Bsd3Clause, - "bzip2": BzipLicense, - "isc": ISCLicense, - "gpl-2": Gpl2License, - "gpl-3": Gpl3License, - "lgpl-2": LGPL2License, - "wtfpl": WTFPlLicense, - "afreeo": AfreeoLicense, - "hackmii": HackMiiLicense, - "artistic": ArtisticLicense, - "cc0": CC0License, - "allpermissive": AllPermissiveLicense, - "json": JsonLicense, - "lha": LhaLicense, - "allrightsreserved": AllRightsReserved, - "mmpl": MinecraftMod, - "nwhml": TumblrLicense, - "pftus": PftusLicense, - "bola": BOLALicense, - "downloadmii": DownloadMiiLicense, - "sqlite": SQLiteBlessing, - "fair": FairLicense, - "yolo": YoloLicense, - "icu996": ICU996License, - } -} - -var ICU996License = ` The 996ICU License (996ICU) - Version 0.1, March 2019 - -PACKAGE is distributed under LICENSE with the following restriction: - -The above license is only granted to entities that act in concordance -with local labor laws. In addition, the following requirements must be -observed: - -* The licensee must not, explicitly or implicitly, request or schedule - their employees to work more than 45 hours in any single week. -* The licensee must not, explicitly or implicitly, request or schedule - their employees to be at work consecutively for 10 hours.` - -var YoloLicense = ` YOLO LICENSE - Version 1, July 10 2015 - -THIS SOFTWARE LICENSE IS PROVIDED "ALL CAPS" SO THAT YOU KNOW IT IS SUPER -SERIOUS AND YOU DON'T MESS AROUND WITH COPYRIGHT LAW BECAUSE YOU WILL GET IN -TROUBLE HERE ARE SOME OTHER BUZZWORDS COMMONLY IN THESE THINGS WARRANTIES -LIABILITY CONTRACT TORT LIABLE CLAIMS RESTRICTION MERCHANTABILITY SUBJECT TO -THE FOLLOWING CONDITIONS: - -1. #yolo -2. #swag -3. #blazeit -` - -var FairLicense = `Copyright {{.Year}} {{.Name}} <{{.Email}}> - -Usage of the works is permitted provided that this instrument is retained -with the works, so that any entity that uses the works is notified of -this instrument. - -DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.` - -var SQLiteBlessing = `The author disclaims copyright to this source code. In place of -a legal notice, here is a blessing: - - May you do good and not evil. - May you find forgiveness for yourself and forgive others. - May you share freely, never taking more than you give.` - -var PftusLicense = `The P.F.T.U.S(Protected Free To Use Software) License -Copyright {{.Year}} {{.Name}} <{{.Email}}>, see the bottom of the document. -Version 1.1x - -Unless required by applicable law or agreed to in writing, software -distributed under this License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -You are not allowed to re-license this Software, Product, Binary, Source -Code at all; unless you are the copyright holder. - -Your use of this software indicates your acceptance of this license agreement -and warranty. We reserve rights to change this license or completely remove it -at ANY TIME without ANY notice. - - -Please notice that you are refereed to as "You", "Your" and "Mirrorer" and -"Re-distributor" - -# SOURCE CODE - 1. You do not have permissions to use this code to make a profit in ANY - POSSIBLE WAY, NOR are you allowed to use it for competing purposes[1]; - contributing to the source code is allowed provided you do it either - via forking or similar way AND you don't make any kind of profit from it - unless you were specifically hired to contribute. - 2. Mirroring is allowed as long as the mirrorer don't make any profit from - mirroring of the code. - -# BINARIES - 1. Binaries may not be re-distributed at all[2] - 2. Mirroring is allowed as long as the mirrorer don't make any profit - from mirroring the produced binaries. - -# DOCUMENTATION - 1. Redistribution of the included documentation is allowed as long as the - re-distributor comply the the following term(s): - a. You shall not make any more profit from it than what the upkeep of - the documentation costs. - b. You shall link back to the original documentation in the header of - the redistribution web-page. - 2. Re-writing new documentation is allowed as long as it comply to the - following term(s): - a. It's clearly stated in the documentation that it isn't official. - b. You are allowed to make a profit from it; as long as it is under - 10 000 USD annually. - -Please notice that you can request written permission from the owner of this -Source Code/Binary or Project for Redistribution, using this software -for competing purposes or/and bypass the whole license. - -[1] "competing purposes" means ANY software on ANY platform that is designed to -be used in similar fashion(eg serves the same or similar purposes as the -original software). - -[2] This doesn't apply to the following domains: - * github.com - * AND any domain with written permissions - -Copyright {{.Year}} {{.Name}} <{{.Email}}>, changing is not permitted, -redistribution is allowed. Some rights reserved.` - -var BOLALicense = `I don't like licenses, because I don't like having to worry about all this -legal stuff just for a simple piece of software I don't really mind anyone -using. But I also believe that it's important that people share and give back; -so I'm placing this work under the following license. - - -BOLA - Buena Onda License Agreement (v1.1) ------------------------------------------- - -This work is provided 'as-is', without any express or implied warranty. In no -event will the authors be held liable for any damages arising from the use of -this work. - -To all effects and purposes, this work is to be considered Public Domain. - - -However, if you want to be "buena onda", you should: - -1. Not take credit for it, and give proper recognition to the authors. -2. Share your modifications, so everybody benefits from them. -3. Do something nice for the authors. -4. Help someone who needs it: sign up for some volunteer work or help your - neighbour paint the house. -5. Don't waste. Anything, but specially energy that comes from natural - non-renewable resources. Extra points if you discover or invent something - to replace them. -6. Be tolerant. Everything that's good in nature comes from cooperation.` - -var DownloadMiiLicense = `DownloadMii License - Version 1.0x - -Copyright (c) {{.Year}} {{.Name}} <{{.Email}}> -All rights reserved. - -You do not have permissions to use this code to make a profit[1] in anyway, -nor to use it for competing purposes; contributing via forking and such is -allowed. - -Mirroring is allowed as long as the mirrorer don't make any profit from -mirroring of code and produced binaries. - -[1] If you however are developing software that is not competing with this -software you're allowed to make profit from it.` - -var TumblrLicense = `Copyright (c) {{.Year}} {{.Name}} <{{.Email}}> - -Non-White-Heterosexual-Male License - -If you are not a white heterosexual male you are permitted to copy, -sell and use this work in any manner you choose without need to -include any attribution you do not see fit. You are asked as a -courtesy to retain this license in any derivatives but you are not -required. If you are a white heterosexual male you are provided the -same permissions (reuse, modification, resale) but are required to -include this license in any documentation and any public facing -derivative. You are also required to include attribution to the -original author or to an author responsible for redistribution -of a derivative. - -For additional details see http://nonwhiteheterosexualmalelicense.org` - -var AllRightsReserved = `Copyright (c) {{.Year}} {{.Name}} <{{.Email}}> - -All rights reserved.` - -var LhaLicense = `Copyright (c) {{.Year}} {{.Name}} <{{.Email}}> - -Original Authors License Statement (from man/lha.man, translated by -Osamu Aoki <debian@aokiconsulting.com>): - - Permission is given for redistribution, copy, and modification provided - following conditions are met. - - 1. Do not remove copyright clause. - 2. Distribution shall conform: - a. The content of redistribution (i.e., source code, documentation, - and reference guide for programmers) shall include original contents. - If contents are modified, the document clearly indicating - the fact of modification must be included. - b. If LHa is redistributed with added values, you must put your best - effort to include them (Translator comment: If read literally, - original Japanese was unclear what "them" means here. But - undoubtedly this "them" means source code for the added value - portion and this is a typical Japanese sloppy writing style to - abbreviate as such) Also the document clearly indicating that - added value was added must be included. - c. Binary only distribution is not allowed (including added value - ones.) - 3. You need to put effort to distribute the latest version (This is not - your duty). - - NB: Distribution on Internet is free. Please notify me by e-mail or - other means prior to the distribution if distribution is done through - non-Internet media (Magazine, CDROM etc.) If not, make sure to Email - me later. - - 4. Any damage caused by the existence and use of this program will not - be compensated. - - 5. Author will not be responsible to correct errors even if program is - defective. - - 6. This program, either as a part of this or as a whole of this, may be - included into other programs. In this case, that program is not LHa - and can not call itself LHa. - - 7. For commercial use, in addition to above conditions, following - condition needs to be met. - - a. The program whose content is mainly this program can not be used - commercially. - b. If the recipient of commercial use deems inappropriate as a - program user, you must not distribute. - c. If used as a method for the installation, you must not force - others to use this program. In this case, commercial user will - perform its work while taking full responsibility of its outcome. - d. If added value is done under the commercial use by using this - program, commercial user shall provide its support. - - -(Osamu Aoki also comments: - Here "commercial" may be interpreted as "for-fee". "Added value" seems - to mean "feature enhancement". ) - -Translated License Statement by Tsugio Okamoto (translated by -GOTO Masanori <gotom@debian.org>): - - It's free to distribute on the network, but if you distribute for - the people who cannot access the network (by magazine or CD-ROM), - please send E-Mail (Inter-Net address) to the author before the - distribution. That's well where this software is appeard. - If you cannot do, you must send me the E-Mail later.` - -var JsonLicense = `Copyright (c) {{.Year}} {{.Name}} <{{.Email}}> - -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 shall be used for Good, not Evil. - -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.` - -var AllPermissiveLicense = `Copyright (c) {{.Year}} {{.Name}} <{{.Email}}> - -Copying and distribution of this file, with or without modification, -are permitted in any medium without royalty provided the copyright -notice and this notice are preserved. This file is offered as-is, -without any warranty.` - -var ZlibLicense = `Copyright (c) {{.Year}} {{.Name}} <{{.Email}}> - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any damages -arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgement in the product documentation would be - appreciated but is not required. - -2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - -3. This notice may not be removed or altered from any source distribution.` - -var Unlicense = `This is free and unencumbered software released into the public domain. - -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. - -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. - -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 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. - -For more information, please refer to <http://unlicense.org/>` - -var MitLicense = `Copyright (c) {{.Year}} {{.Name}} <{{.Email}}> - -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.` - -var ApacheLicense = `Copyright {{.Year}} {{.Name}} <{{.Email}}> - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License.` - -var Bsd2Clause = `Copyright (c) {{.Year}} {{.Name}} <{{.Email}}> -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* 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 THE COPYRIGHT HOLDERS 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 THE COPYRIGHT HOLDER 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.` - -var Gpl2License = `Copyright (C) {{.Year}} {{.Name}} <{{.Email}}> - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along -with this program; if not, write to the Free Software Foundation, Inc., -51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.` - -var Gpl3License = `Copyright (C) {{.Year}} {{.Name}} <{{.Email}}> - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>.` - -var WTFPlLicense = `DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - Version 2, December 2004 - -Copyright (C) {{.Year}} {{.Name}} <{{.Email}}> - -Everyone is permitted to copy and distribute verbatim or modified -copies of this license document, and changing it is allowed as long -as the name is changed. - - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. You just DO WHAT THE FUCK YOU WANT TO.` - -var AfreeoLicense = `Copyright (C) {{.Year}} {{.Name}} <{{.Email}}> - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU Affero General Public License as published -by the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Affero General Public License for more details. - -You should have received a copy of the GNU Affero General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>.` - -var HackMiiLicense = `Copyright (C) {{.Year}} {{.Name}} <{{.Email}}> - -you are not allowed to in anyway use this material (including but is not -limited to: source code, images, binaries, documents) for use in -competeting purpuse in ANY WAY. You are also not allowed to redistribute -NOR mirror the code & binarys in any way, link to us instead!` - -var ArtisticLicense = ` The Artistic License 2.0 - - Copyright (c) {{.Year}} {{.Name}} <{{.Email}}> - - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -Preamble - -This license establishes the terms under which a given free software -Package may be copied, modified, distributed, and/or redistributed. -The intent is that the Copyright Holder maintains some artistic -control over the development of that Package while still keeping the -Package available as open source and free software. - -You are always permitted to make arrangements wholly outside of this -license directly with the Copyright Holder of a given Package. If the -terms of this license do not permit the full use that you propose to -make of the Package, you should contact the Copyright Holder and seek -a different licensing arrangement. - -Definitions - - "Copyright Holder" means the individual(s) or organization(s) - named in the copyright notice for the entire Package. - - "Contributor" means any party that has contributed code or other - material to the Package, in accordance with the Copyright Holder's - procedures. - - "You" and "your" means any person who would like to copy, - distribute, or modify the Package. - - "Package" means the collection of files distributed by the - Copyright Holder, and derivatives of that collection and/or of - those files. A given Package may consist of either the Standard - Version, or a Modified Version. - - "Distribute" means providing a copy of the Package or making it - accessible to anyone else, or in the case of a company or - organization, to others outside of your company or organization. - - "Distributor Fee" means any fee that you charge for Distributing - this Package or providing support for this Package to another - party. It does not mean licensing fees. - - "Standard Version" refers to the Package if it has not been - modified, or has been modified only in ways explicitly requested - by the Copyright Holder. - - "Modified Version" means the Package, if it has been changed, and - such changes were not explicitly requested by the Copyright - Holder. - - "Original License" means this Artistic License as Distributed with - the Standard Version of the Package, in its current version or as - it may be modified by The Perl Foundation in the future. - - "Source" form means the source code, documentation source, and - configuration files for the Package. - - "Compiled" form means the compiled bytecode, object code, binary, - or any other form resulting from mechanical transformation or - translation of the Source form. - - -Permission for Use and Modification Without Distribution - -(1) You are permitted to use the Standard Version and create and use -Modified Versions for any purpose without restriction, provided that -you do not Distribute the Modified Version. - - -Permissions for Redistribution of the Standard Version - -(2) You may Distribute verbatim copies of the Source form of the -Standard Version of this Package in any medium without restriction, -either gratis or for a Distributor Fee, provided that you duplicate -all of the original copyright notices and associated disclaimers. At -your discretion, such verbatim copies may or may not include a -Compiled form of the Package. - -(3) You may apply any bug fixes, portability changes, and other -modifications made available from the Copyright Holder. The resulting -Package will still be considered the Standard Version, and as such -will be subject to the Original License. - - -Distribution of Modified Versions of the Package as Source - -(4) You may Distribute your Modified Version as Source (either gratis -or for a Distributor Fee, and with or without a Compiled form of the -Modified Version) provided that you clearly document how it differs -from the Standard Version, including, but not limited to, documenting -any non-standard features, executables, or modules, and provided that -you do at least ONE of the following: - - (a) make the Modified Version available to the Copyright Holder - of the Standard Version, under the Original License, so that the - Copyright Holder may include your modifications in the Standard - Version. - - (b) ensure that installation of your Modified Version does not - prevent the user installing or running the Standard Version. In - addition, the Modified Version must bear a name that is different - f |
