diff options
author | Yixun Lan <dlan@gentoo.org> | 2023-01-04 08:56:19 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2023-01-04 09:05:09 +0800 |
commit | 5135ef00b26cbdb841c2d37b1f963b5c489ba5d6 (patch) | |
tree | ec6a9c5d6049f3d79e91d45027f0004c2bb3189a /net-dns | |
parent | dev-vcs/git-pw: drop 2.3.0 (diff) | |
download | gentoo-5135ef00b26cbdb841c2d37b1f963b5c489ba5d6.tar.gz gentoo-5135ef00b26cbdb841c2d37b1f963b5c489ba5d6.tar.bz2 gentoo-5135ef00b26cbdb841c2d37b1f963b5c489ba5d6.zip |
net-dns/smartdns: add 40
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/smartdns/Manifest | 1 | ||||
-rw-r--r-- | net-dns/smartdns/smartdns-40.ebuild | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/net-dns/smartdns/Manifest b/net-dns/smartdns/Manifest index 870243fa3df4..5129bfa387ac 100644 --- a/net-dns/smartdns/Manifest +++ b/net-dns/smartdns/Manifest @@ -1,2 +1,3 @@ DIST smartdns-38.1.tar.gz 522130 BLAKE2B d6e28ece8545d6dc948670ff2bf3e4e842ccec7cf82f2f7ff2a197d5dfd6c244dfdef98c9ee38ffc4016b36f1b54ddc2fc8239e5838269055ed58473712e7462 SHA512 345010a9d4e43403e2ad068a8c6a0b871de8d4c524856c062909db61ac36b20988ae17b15be2f330589f93a7b7d521e885384c93987b81715e42a49798dec598 DIST smartdns-38.tar.gz 520679 BLAKE2B bab92c56377ebef8f8ccab664a8b289844aebdeef55f8f183db62353ca4f2debf157bdf4098dd2bc3b2fa4ad97364b48bb2e410c9ba7dc2f08a040c5e13cb8ac SHA512 d3421a6b22a22a11316289cfb5102c224b81decf89fd802a6281d7686f72e7ee3fffb5de569d4e09a01b8e9d8f6a5114afc709b90965847fa24fd4579316a80b +DIST smartdns-40.tar.gz 542046 BLAKE2B 33612f46168c4a562880a6ee4099a11f5259bbca1fa4055d3479577e6115934282ccc4d05a90af709da46171934a1ac999b8e3f3d92a1de8a1ce0b9b5b564742 SHA512 d792879b48d05edd016df5ee46eb105dcb21520b08a7d26e28ec1ad890c6a82e21468c717c3bc2fc13b38af12e8883e0007d93488a1549355941f190b175248b diff --git a/net-dns/smartdns/smartdns-40.ebuild b/net-dns/smartdns/smartdns-40.ebuild new file mode 100644 index 000000000000..96243a40fbf5 --- /dev/null +++ b/net-dns/smartdns/smartdns-40.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 +} |