mirror of
https://github.com/MetaCubeX/meta-rules-dat.git
synced 2024-11-14 05:15:35 +08:00
Avoid license issue
due to 4beadd53d7
To achieve this goal, use geoip.dat from repo Loyalsoldier/geoip directly without modification (remix, transform and build).
This commit is contained in:
parent
a14c3c75f7
commit
ccc66630b4
25
.github/workflows/run.yml
vendored
25
.github/workflows/run.yml
vendored
@ -42,12 +42,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: hidden
|
ref: hidden
|
||||||
|
|
||||||
- name: Checkout Loyalsoldier/geoip
|
|
||||||
uses: actions/checkout@v2.3.4
|
|
||||||
with:
|
|
||||||
repository: Loyalsoldier/geoip
|
|
||||||
path: geoip
|
|
||||||
|
|
||||||
- name: Checkout Loyalsoldier/domain-list-custom
|
- name: Checkout Loyalsoldier/domain-list-custom
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
@ -60,19 +54,10 @@ jobs:
|
|||||||
repository: v2fly/domain-list-community
|
repository: v2fly/domain-list-community
|
||||||
path: community
|
path: community
|
||||||
|
|
||||||
- name: Get GeoLite2 zip file
|
- name: Get geoip.dat relative files
|
||||||
env:
|
|
||||||
LICENSE_KEY: ${{ secrets.MAXMIND_GEOLITE2_LICENSE }}
|
|
||||||
run: |
|
run: |
|
||||||
curl -L -o GeoLite2-Country-CSV.zip "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=${LICENSE_KEY}&suffix=zip"
|
wget https://github.com/Loyalsoldier/geoip/raw/release/geoip.dat
|
||||||
unzip GeoLite2-Country-CSV.zip
|
wget https://github.com/Loyalsoldier/geoip/raw/release/geoip.dat.sha256sum
|
||||||
rm -f GeoLite2-Country-CSV.zip
|
|
||||||
mv GeoLite2* geolite2
|
|
||||||
|
|
||||||
- name: Generate geoip.dat file
|
|
||||||
run: |
|
|
||||||
cd geoip || exit 1
|
|
||||||
go run ./ --country=../geolite2/GeoLite2-Country-Locations-en.csv --ipv4=../geolite2/GeoLite2-Country-Blocks-IPv4.csv --ipv6=../geolite2/GeoLite2-Country-Blocks-IPv6.csv --ipv4CN=https://raw.githubusercontent.com/pexcn/daily/gh-pages/chnroute/chnroute.txt
|
|
||||||
|
|
||||||
- name: Get and add direct domains into temp-direct.txt file
|
- name: Get and add direct domains into temp-direct.txt file
|
||||||
run: |
|
run: |
|
||||||
@ -173,14 +158,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Move and zip files and generate sha256 hash
|
- name: Move and zip files and generate sha256 hash
|
||||||
run: |
|
run: |
|
||||||
install -Dp ./geoip/geoip.dat ./publish/geoip.dat
|
install -Dp ./geoip.dat ./publish/geoip.dat
|
||||||
|
install -Dp ./geoip.dat.sha256sum ./publish/geoip.dat.sha256sum
|
||||||
install -Dp ./custom/publish/dlc.dat ./publish/geosite.dat
|
install -Dp ./custom/publish/dlc.dat ./publish/geosite.dat
|
||||||
install -p {proxy,direct,reject}-tld-list.txt ./publish/
|
install -p {proxy,direct,reject}-tld-list.txt ./publish/
|
||||||
install -p {proxy,direct,reject}-list.txt ./publish/
|
install -p {proxy,direct,reject}-list.txt ./publish/
|
||||||
install -p {apple-cn,google-cn,gfw,greatfire}.txt ./publish/
|
install -p {apple-cn,google-cn,gfw,greatfire}.txt ./publish/
|
||||||
cd ./publish || exit 1
|
cd ./publish || exit 1
|
||||||
zip rules.zip {proxy,direct,reject}-list.txt geoip.dat geosite.dat
|
zip rules.zip {proxy,direct,reject}-list.txt geoip.dat geosite.dat
|
||||||
sha256sum geoip.dat > geoip.dat.sha256sum
|
|
||||||
sha256sum geosite.dat > geosite.dat.sha256sum
|
sha256sum geosite.dat > geosite.dat.sha256sum
|
||||||
sha256sum rules.zip > rules.zip.sha256sum
|
sha256sum rules.zip > rules.zip.sha256sum
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
### geoip.dat
|
### geoip.dat
|
||||||
|
|
||||||
- 通过仓库 [@Loyalsoldier/geoip](https://github.com/Loyalsoldier/geoip) 生成
|
- 通过仓库 [@Loyalsoldier/geoip](https://github.com/Loyalsoldier/geoip) 生成
|
||||||
- 其中全球 IP 地址(IPv4 和 IPv6)来源于 [MaxMind GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/),`CN`(中国大陆)类别下的 IPv4 地址来源于 [@pexcn/chnroute.txt](https://github.com/pexcn/daily/blob/gh-pages/chnroute/chnroute.txt)(融合了 [ipip.net](https://github.com/17mon/china_ip_list) 和 [APNIC](https://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest) 的中国大陆 IPv4 地址)
|
- 其中全球 IP 地址(IPv4 和 IPv6)来源于 [MaxMind GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/),`CN`(中国大陆)类别下的 IPv4 地址来源于 [ipip.net](https://github.com/17mon/china_ip_list)
|
||||||
|
|
||||||
### geosite.dat
|
### geosite.dat
|
||||||
|
|
||||||
@ -448,9 +448,6 @@ scoop install v2ray-rules-dat
|
|||||||
|
|
||||||
## 致谢
|
## 致谢
|
||||||
|
|
||||||
> This product includes GeoLite2 data created by MaxMind, available from [Maxmind](https://www.maxmind.com).
|
|
||||||
|
|
||||||
- [MaxMind GeoLite2 Free IP Database](https://dev.maxmind.com/geoip/geoip2/geolite2/)
|
|
||||||
- [@v2fly/geoip](https://github.com/v2fly/geoip)
|
- [@v2fly/geoip](https://github.com/v2fly/geoip)
|
||||||
- [@Loyalsoldier/geoip](https://github.com/Loyalsoldier/geoip)
|
- [@Loyalsoldier/geoip](https://github.com/Loyalsoldier/geoip)
|
||||||
- [@v2fly/domain-list-community](https://github.com/v2fly/domain-list-community)
|
- [@v2fly/domain-list-community](https://github.com/v2fly/domain-list-community)
|
||||||
@ -462,7 +459,6 @@ scoop install v2ray-rules-dat
|
|||||||
- [@Loyalsoldier/cn-blocked-domain](https://github.com/Loyalsoldier/cn-blocked-domain)
|
- [@Loyalsoldier/cn-blocked-domain](https://github.com/Loyalsoldier/cn-blocked-domain)
|
||||||
- [@GeQ1an/Rules](https://github.com/GeQ1an/Rules/tree/master/QuantumultX)
|
- [@GeQ1an/Rules](https://github.com/GeQ1an/Rules/tree/master/QuantumultX)
|
||||||
- [@lhie1/Rules](https://github.com/lhie1/Rules/tree/master)
|
- [@lhie1/Rules](https://github.com/lhie1/Rules/tree/master)
|
||||||
- [@pexcn/daily/chnroute.txt](https://github.com/pexcn/daily/blob/gh-pages/chnroute/chnroute.txt)
|
|
||||||
- [@AdblockPlus/EasylistChina+Easylist.txt](https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt)
|
- [@AdblockPlus/EasylistChina+Easylist.txt](https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt)
|
||||||
- [@AdGuard/DNS-filter](https://kb.adguard.com/en/general/adguard-ad-filters#dns-filter)
|
- [@AdGuard/DNS-filter](https://kb.adguard.com/en/general/adguard-ad-filters#dns-filter)
|
||||||
- [@PeterLowe/adservers](https://pgl.yoyo.org/adservers)
|
- [@PeterLowe/adservers](https://pgl.yoyo.org/adservers)
|
||||||
|
Loading…
Reference in New Issue
Block a user