gentoo-ebuilds/net-dns/smartdns/smartdns-47.ebuild
Yixun Lan 74a1cb4828
net-dns/smartdns: add 47
TODO: to support smartdns-ui plugin

Signed-off-by: Yixun Lan <dlan@gentoo.org>
2025-10-10 14:23:25 +00:00

31 lines
780 B
Bash

# Copyright 2022-2025 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
}