From: Branden Archer Date: Wed, 25 Oct 2017 03:17:19 +0000 (-0400) Subject: Add known licenses data to json metadata X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=dad43783a03bb262dc88283f815dd3b7be4ed216;p=stevenblack-hosts.git Add known licenses data to json metadata --- diff --git a/data/Badd-Boyz-Hosts/update.json b/data/Badd-Boyz-Hosts/update.json index 6bfa4a165..f14fabea0 100644 --- a/data/Badd-Boyz-Hosts/update.json +++ b/data/Badd-Boyz-Hosts/update.json @@ -4,5 +4,6 @@ "homeurl": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts", "frequency": "weekly", "issues": "https://github.com/mitchellkrogza/Badd-Boyz-Hosts/issues", - "url": "https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts" + "url": "https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts", + "license": "'non-commercial with attribution'" } diff --git a/data/KADhosts/update.json b/data/KADhosts/update.json index 43c754838..439488f0d 100644 --- a/data/KADhosts/update.json +++ b/data/KADhosts/update.json @@ -4,5 +4,6 @@ "homeurl": "https://github.com/azet12/KADhosts", "frequency": "frequently", "issues": "https://github.com/azet12/KADhosts/issues", - "url": "https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt" -} \ No newline at end of file + "url": "https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt", + "license": "GPLv3" +} diff --git a/data/SpotifyAds/update.json b/data/SpotifyAds/update.json index 9693a0b2a..bbb03eb6a 100644 --- a/data/SpotifyAds/update.json +++ b/data/SpotifyAds/update.json @@ -4,5 +4,6 @@ "homeurl": "https://github.com/FadeMind/hosts.extras", "frequency": "occasionally", "issues": "https://github.com/FadeMind/hosts.extras/issues", - "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/SpotifyAds/hosts" + "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/SpotifyAds/hosts", + "license": "MIT" } diff --git a/data/UncheckyAds/update.json b/data/UncheckyAds/update.json index 142b34d36..b8805e040 100644 --- a/data/UncheckyAds/update.json +++ b/data/UncheckyAds/update.json @@ -4,5 +4,6 @@ "homeurl": "https://github.com/FadeMind/hosts.extras", "frequency": "occasionally", "issues": "https://github.com/FadeMind/hosts.extras/issues", - "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts" + "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts", + "license": "MIT" } diff --git a/data/adaway.org/update.json b/data/adaway.org/update.json index a59e42605..f2847747e 100644 --- a/data/adaway.org/update.json +++ b/data/adaway.org/update.json @@ -4,5 +4,6 @@ "homeurl": "https://adaway.org/", "frequency": "occasionally", "issues": "https://github.com/AdAway/AdAway/issues", - "url": "https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt" + "url": "https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt", + "license": "CC BY 3.0" } diff --git a/data/add.2o7Net/update.json b/data/add.2o7Net/update.json index cde1e3c74..e2dfa1e9c 100644 --- a/data/add.2o7Net/update.json +++ b/data/add.2o7Net/update.json @@ -4,5 +4,6 @@ "homeurl": "https://github.com/FadeMind/hosts.extras", "frequency": "occasionally", "issues": "https://github.com/FadeMind/hosts.extras/issues", - "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts" + "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts", + "license": "MIT" } diff --git a/data/add.Dead/update.json b/data/add.Dead/update.json index 61e043ccf..48a2e9f8c 100644 --- a/data/add.Dead/update.json +++ b/data/add.Dead/update.json @@ -4,5 +4,6 @@ "homeurl": "https://github.com/FadeMind/hosts.extras", "frequency": "occasionally", "issues": "https://github.com/FadeMind/hosts.extras/issues", - "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts" + "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts", + "license": "MIT" } diff --git a/data/add.Risk/update.json b/data/add.Risk/update.json index 6803b15f7..698c84074 100644 --- a/data/add.Risk/update.json +++ b/data/add.Risk/update.json @@ -4,5 +4,6 @@ "homeurl": "https://github.com/FadeMind/hosts.extras", "frequency": "occasionally", "issues": "https://github.com/FadeMind/hosts.extras/issues", - "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts" + "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts", + "license": "MIT" } diff --git a/data/add.Spam/update.json b/data/add.Spam/update.json index 8117ee3bf..8cbd7a89f 100644 --- a/data/add.Spam/update.json +++ b/data/add.Spam/update.json @@ -4,5 +4,6 @@ "homeurl": "https://github.com/FadeMind/hosts.extras", "frequency": "occasionally", "issues": "https://github.com/FadeMind/hosts.extras/issues", - "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts" + "url": "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts", + "license": "MIT" } diff --git a/data/malwaredomainlist.com/update.json b/data/malwaredomainlist.com/update.json index 13b9b80d2..c267e1ede 100644 --- a/data/malwaredomainlist.com/update.json +++ b/data/malwaredomainlist.com/update.json @@ -4,5 +4,6 @@ "homeurl": "http://www.malwaredomainlist.com/", "frequency": "weekly", "issues": "http://www.malwaredomainlist.com/contact.php", - "url": "https://www.malwaredomainlist.com/hostslist/hosts.txt" + "url": "https://www.malwaredomainlist.com/hostslist/hosts.txt", + "license": "'can be used for free by anyone'" } diff --git a/data/mvps.org/update.json b/data/mvps.org/update.json index 8ed734e4c..0aaf91891 100644 --- a/data/mvps.org/update.json +++ b/data/mvps.org/update.json @@ -4,5 +4,6 @@ "homeurl": "http://winhelp2002.mvps.org/", "frequency": "monthly", "issues": "mailto:winhelp2002@gmail.com", - "url": "http://winhelp2002.mvps.org/hosts.txt" + "url": "http://winhelp2002.mvps.org/hosts.txt", + "license": "CC BY-NC-SA 4.0" } diff --git a/data/someonewhocares.org/update.json b/data/someonewhocares.org/update.json index 939e098ab..f77405327 100644 --- a/data/someonewhocares.org/update.json +++ b/data/someonewhocares.org/update.json @@ -4,5 +4,6 @@ "homeurl": "http://someonewhocares.org/hosts/", "frequency": "frequently", "issues": "hosts@someonewhocares.org", - "url": "http://someonewhocares.org/hosts/zero/hosts" + "url": "http://someonewhocares.org/hosts/zero/hosts", + "license": "non-commercial with attribution" } diff --git a/extensions/fakenews/update.json b/extensions/fakenews/update.json index aee133f7c..66861f7b7 100644 --- a/extensions/fakenews/update.json +++ b/extensions/fakenews/update.json @@ -4,5 +4,6 @@ "homeurl": "https://github.com/marktron/fakenews", "frequency": "occasional", "issues": "https://github.com/marktron/fakenews/issues", - "url": "https://raw.githubusercontent.com/marktron/fakenews/master/fakenews" + "url": "https://raw.githubusercontent.com/marktron/fakenews/master/fakenews", + "license": "MIT" } diff --git a/extensions/gambling/update.json b/extensions/gambling/update.json index e3ca03466..d43e44635 100644 --- a/extensions/gambling/update.json +++ b/extensions/gambling/update.json @@ -4,5 +4,6 @@ "homeurl": "https://github.com/Sinfonietta/hostfiles", "frequency": "occasional", "issues": "https://github.com/Sinfonietta/hostfiles/issues", - "url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts" + "url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts", + "license": "MIT" } diff --git a/extensions/porn/sinfonietta-snuff/update.json b/extensions/porn/sinfonietta-snuff/update.json index f12ca07f0..9421b1139 100644 --- a/extensions/porn/sinfonietta-snuff/update.json +++ b/extensions/porn/sinfonietta-snuff/update.json @@ -4,5 +4,6 @@ "homeurl": "https://github.com/Sinfonietta/hostfiles", "frequency": "occasional", "issues": "https://github.com/Sinfonietta/hostfiles/issues", - "url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts" + "url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts", + "license": "MIT" } diff --git a/extensions/porn/sinfonietta/update.json b/extensions/porn/sinfonietta/update.json index b3d48db91..872e17cd1 100644 --- a/extensions/porn/sinfonietta/update.json +++ b/extensions/porn/sinfonietta/update.json @@ -4,5 +4,6 @@ "homeurl": "https://github.com/Sinfonietta/hostfiles", "frequency": "occasional", "issues": "https://github.com/Sinfonietta/hostfiles/issues", - "url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts" + "url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts", + "license": "MIT" } diff --git a/extensions/social/update.json b/extensions/social/update.json index 7bc42267a..e71832d5b 100644 --- a/extensions/social/update.json +++ b/extensions/social/update.json @@ -4,5 +4,6 @@ "homeurl": "https://github.com/Sinfonietta/hostfiles", "frequency": "occasional", "issues": "https://github.com/Sinfonietta/hostfiles/issues", - "url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts" + "url": "https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts", + "license": "MIT" } diff --git a/readme_template.md b/readme_template.md index 40c3db672..04cb4d032 100644 --- a/readme_template.md +++ b/readme_template.md @@ -19,22 +19,22 @@ Host file recipe | Readme | Raw hosts | Unique domains | Non Github mirror ---------------- |:------:|:---------:|:--------------:|:-------------: @TOCROWS@ -**Expectation**: These unified hosts files should serve all devices, regardless +**Expectation**: These unified hosts files should serve all devices, regardless of OS. ## Sources of hosts data unified in this variant -Updated `hosts` files from the following locations are always unified and +Updated `hosts` files from the following locations are always unified and included: -Host file source | Description | Home page | Raw hosts | Update frequency ------------------|-------------|:---------:|:---------:|:-------: +Host file source | Description | Home page | Raw hosts | Update frequency | License +-----------------|-------------|:---------:|:---------:|:-------:|:-------: @SOURCEROWS@ ## Extensions -The unified hosts file is extensible. You manage extensions by curating the -`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension +The unified hosts file is extensible. You manage extensions by curating the +`extensions/` folder tree. See the `fakenews`, `social`, `gambling`, and `porn` extension folders. ## Generate your own unified hosts file @@ -70,34 +70,34 @@ source's folder). Otherwise, it will use the `hosts` file that's already there. `--auto`, or `-a`: run the script without prompting. When `--auto` is invoked, * Hosts data sources, including extensions, are updated. -* No extensions are included by default. Use the `--extensions` or `-e` flag +* No extensions are included by default. Use the `--extensions` or `-e` flag to include any you want. -* Your active hosts file is *not* replaced unless you include the `--replace` +* Your active hosts file is *not* replaced unless you include the `--replace` flag. -`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate +`--backup`, or `-b`: Make a backup of existing hosts file(s) as you generate over them. -`--extensions `, or `-e `: the names -of subfolders below the `extensions` folder containing additional -category-specific hosts files to include in the amalgamation. Example: +`--extensions `, or `-e `: the names +of subfolders below the `extensions` folder containing additional +category-specific hosts files to include in the amalgamation. Example: `--extensions porn` or `-e social porn`. `--flush-dns-cache`, or `-f`: skip the prompt for flushing the DNS cache. Only active when `--replace` is also active. -`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the +`--ip nnn.nnn.nnn.nnn`, or `-i nnn.nnn.nnn.nnn`: the IP address to use as the target. Default is `0.0.0.0`. -`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments +`--keepdomaincomments`, or `-k`: `false` (default) or `true`, keep the comments that appear on the same line as domains. The default is `false` since some router-based implementations can't handle comments in-line with hosts. -`--skipstatichosts`, or `-s`: `false` (default) or `true`, +`--skipstatichosts`, or `-s`: `false` (default) or `true`, `--noupdate`, or `-n`: skip fetching updates from hosts data sources. -`--output `, or `-o `: place the generated source file +`--output `, or `-o `: place the generated source file in a subfolder. If the subfolder does not exist, it will be created. `--replace`, or `-r`: trigger replacing your active hosts diff --git a/updateReadme.py b/updateReadme.py index 730e29c9c..d18fcf7f5 100644 --- a/updateReadme.py +++ b/updateReadme.py @@ -58,10 +58,11 @@ def main(): "homeurl": "", "frequency": "", "issues": "", - "url": ""} + "url": "", + "license: ""} t = Template('${name} | ${description} |[link](${homeurl})' - ' | [raw](${url}) | ${frequency} ') + ' | [raw](${url}) | ${frequency} | ${license} ') for key in keys: extensions = key.replace("-", ", ")