1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION
="A DNS forwarder"
7 HOMEPAGE
="https://github.com/IrineSistiana/mosdns-cn"
8 SRC_URI
="https://github.com/IrineSistiana/mosdns-cn/releases/download/v${PV}/mosdns-cn-linux-amd64.zip -> ${P}.zip"
15 dev-libs/v2ray-domain-list-community-bin
16 dev-libs/v2ray-geoip-bin
19 BDEPEND
="app-arch/unzip"
27 ln -s /usr
/share
/v2ray
/geoip.dat geoip.dat
28 ln -s /usr
/share
/v2ray
/geosite.dat geosite.dat
29 doins geoip.dat geosite.dat
30 newins config-template.yaml config.yaml
32 newinitd
"${FILESDIR}/${_PN}.initd" ${_PN}
33 newconfd "${FILESDIR}/${_PN}.confd" ${_PN}