commit:     64897376100bbf32cf4df37140440515b6bcd466
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Wed May 17 12:25:43 2023 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Wed May 17 12:27:09 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64897376

net-dns/smartdns: add 42

Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 net-dns/smartdns/Manifest           |  1 +
 net-dns/smartdns/smartdns-42.ebuild | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/net-dns/smartdns/Manifest b/net-dns/smartdns/Manifest
index 1ce0d8ebdb4c..4809f4425740 100644
--- a/net-dns/smartdns/Manifest
+++ b/net-dns/smartdns/Manifest
@@ -1,2 +1,3 @@
 DIST smartdns-40.tar.gz 542046 BLAKE2B 
33612f46168c4a562880a6ee4099a11f5259bbca1fa4055d3479577e6115934282ccc4d05a90af709da46171934a1ac999b8e3f3d92a1de8a1ce0b9b5b564742
 SHA512 
d792879b48d05edd016df5ee46eb105dcb21520b08a7d26e28ec1ad890c6a82e21468c717c3bc2fc13b38af12e8883e0007d93488a1549355941f190b175248b
 DIST smartdns-41.tar.gz 562057 BLAKE2B 
7e30fa02f4e743a9de42d69c7ce12d8d2ce39363507d56279d6843305b88decddc561bfa3cc16d83d937a881dc87e2cd0000ef2945eb3ca3e0b42832e363d810
 SHA512 
85d8523f62f80533bdbdcaf3fd50e4b36cfb4898f8af6221cd06cae69fe9509d0a6a6f8ef4effee86c36caa5090f97d11b4fed4dabed66ad5d9b665f71247315
+DIST smartdns-42.tar.gz 567079 BLAKE2B 
a42724f4aa540bf5f07ddebe46e75f16cd69098461b0f9a009a53a9570ff1bdc9ad605dfad79f94d5901ec21bdd3f91848dedce29cef3bf8a563ba94f4a76bb8
 SHA512 
7ad4ffbad056e84894dd23a18396afe6174a1137fa3edee4e12bf1487dd40d91158c89fd9e3c894603a51f639826acccdfdf1ddb8a25e77158dfe5bd54eb6f20

diff --git a/net-dns/smartdns/smartdns-42.ebuild 
b/net-dns/smartdns/smartdns-42.ebuild
new file mode 100644
index 000000000000..96243a40fbf5
--- /dev/null
+++ b/net-dns/smartdns/smartdns-42.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd
+DESCRIPTION="A local DNS server returns the fastest access results"
+HOMEPAGE="https://github.com/pymumu/smartdns";
+SRC_URI="https://github.com/pymumu/smartdns/archive/refs/tags/Release${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="dev-libs/openssl:0="
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+S="${WORKDIR}/${PN}-Release${PV}"
+
+src_prepare() {
+       default
+       sed -i -e "/install .*default /d" \
+               -e "/install .*init.d /d" Makefile || die
+}
+
+src_install() {
+       emake DESTDIR="${D}" \
+               SYSTEMDSYSTEMUNITDIR="$(systemd_get_systemunitdir)" install
+
+       newconfd "${FILESDIR}"/smartdns.confd smartdns
+       newinitd "${FILESDIR}"/smartdns.initd smartdns
+}

Reply via email to