summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYixun Lan <dlan@gentoo.org>2024-06-27 00:25:07 +0000
committerYixun Lan <dlan@gentoo.org>2024-06-27 00:26:40 +0000
commit8c837d461e36d4131d48580df0c195d244e8538b (patch)
tree5c9c55a2ca66dfd60922842202b14ce01ed0b6e6 /net-dns
parentnet-dns/djbdns: Stabilize 1.05-r40 sparc, #932846 (diff)
downloadgentoo-8c837d461e36d4131d48580df0c195d244e8538b.tar.gz
gentoo-8c837d461e36d4131d48580df0c195d244e8538b.tar.bz2
gentoo-8c837d461e36d4131d48580df0c195d244e8538b.zip
net-dns/smartdns: add 46
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/smartdns/Manifest1
-rw-r--r--net-dns/smartdns/smartdns-46.ebuild31
2 files changed, 32 insertions, 0 deletions
diff --git a/net-dns/smartdns/Manifest b/net-dns/smartdns/Manifest
index 79a785e427d8..0da61c97a64f 100644
--- a/net-dns/smartdns/Manifest
+++ b/net-dns/smartdns/Manifest
@@ -1,2 +1,3 @@
DIST smartdns-43.tar.gz 572029 BLAKE2B 8f4ec3b1b1a804a6624107ed3d97e8015690db9c405fc52d1e34ac9bda280ef0785b7d9648dfd41809a1f729679b6241f36b3c7a4dc88a60e77b2d0ca463ca69 SHA512 ab4ce7ac5fe05173a660f8dce61e7cc0ec8375ff7d64d08e854f73e5cfd78fec702220f076b75efe9518334a384b9689898d5c2856cc506d294b5325733bb9c6
DIST smartdns-45.tar.gz 631756 BLAKE2B 3bc187b5513b4d02f546b285c5196cdcb3a6851ba679645a4e8bb24d3b338502a2cedc8d21c8397a5370a0330c3e083b7fc880dd972f5c5bc6c72501545d76d4 SHA512 351b2d9591a6c17349ffcd199cb7b387c8b7ec692a0ee16d163d6118dabfdbc4bf67cedc1695c73b2d20b2ee6b4b99fc81a9e26e1eda5e02c477208b140d7cb6
+DIST smartdns-46.tar.gz 633211 BLAKE2B 2cf550fb88da183a9899995a6b9e030d887c13d16b7cdc479678ac6f8bd411894413f00a4bba02a4ac2dbf6781b7f1c66b18b8fd20c4a522472b514f6777dbaf SHA512 4798b5d75412864f707a2de5bc72c38fdfdc278156dc00c7f5d0ab3af95d605544a86368b56cc41bc7465fa6c063bc742a0c0e797c266aa472bf9d21398313f7
diff --git a/net-dns/smartdns/smartdns-46.ebuild b/net-dns/smartdns/smartdns-46.ebuild
new file mode 100644
index 000000000000..27d07ff42dc1
--- /dev/null
+++ b/net-dns/smartdns/smartdns-46.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2022-2024 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"
+
+S="${WORKDIR}/${PN}-Release${PV}"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="dev-libs/openssl:0="
+RDEPEND="${DEPEND}"
+
+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
+}