From 9967860c0cd26c0940ee4b9ab6698e00e5b1260a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 28 Aug 2023 10:02:11 +0100 Subject: gentoo auto-resync : 28:08:2023 - 10:02:11 --- net-dns/smartdns/smartdns-43.ebuild | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 net-dns/smartdns/smartdns-43.ebuild (limited to 'net-dns/smartdns/smartdns-43.ebuild') diff --git a/net-dns/smartdns/smartdns-43.ebuild b/net-dns/smartdns/smartdns-43.ebuild new file mode 100644 index 000000000000..96243a40fbf5 --- /dev/null +++ b/net-dns/smartdns/smartdns-43.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 +} -- cgit v1.2.3