summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-09-19 20:01:53 +0200
committerConrad Kostecki <conikost@gentoo.org>2023-09-19 20:01:53 +0200
commit6f88450ff91fe82cbc44982b0127e1b2526591f6 (patch)
treea402050e6f96760855ecfe8134ab1fe963909f20
parentgames-util/basis_universal: fix RDEPEND typo (diff)
downloadgentoo-6f88450ff91fe82cbc44982b0127e1b2526591f6.tar.gz
gentoo-6f88450ff91fe82cbc44982b0127e1b2526591f6.tar.bz2
gentoo-6f88450ff91fe82cbc44982b0127e1b2526591f6.zip
net-dns/inadyn: add 2.12.0
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
-rw-r--r--net-dns/inadyn/Manifest1
-rw-r--r--net-dns/inadyn/inadyn-2.12.0.ebuild61
2 files changed, 62 insertions, 0 deletions
diff --git a/net-dns/inadyn/Manifest b/net-dns/inadyn/Manifest
index f3b8a617a043..fcba2e31c9cc 100644
--- a/net-dns/inadyn/Manifest
+++ b/net-dns/inadyn/Manifest
@@ -1 +1,2 @@
DIST inadyn-2.11.0.tar.gz 509655 BLAKE2B 7acb356f691717e282355ed9f0a152463f2364633b0e999838572b18b3330b4aa6cc1f02c58ed1f0fac4e6bac6220992f0c7b20449aea420eb28f55343caa954 SHA512 d0d73cbecbc4dca028dd39f4e125ed9f5e370cb8367086cc819eafbae825ce7bb6f2ad4a5134bfefefd7d6609352d6355b73b28149426a8f755b0e463aa8f008
+DIST inadyn-2.12.0.tar.gz 506723 BLAKE2B 35fc5f8f9298cfb5ff7bf4c569fbd0495c2591a1fd630919bae8dabff03a0e41c512d304d2519be688bff3c41427f13b0a66738b785e1d28e0ec4d3901f05488 SHA512 940e49cd2c434f57a56494e1946939f0d773deeb489939c957c0e1eac135177ab3c446e967daa01a56fde5490568761c1492646bae1bb2f63688e0e9121ef8fe
diff --git a/net-dns/inadyn/inadyn-2.12.0.ebuild b/net-dns/inadyn/inadyn-2.12.0.ebuild
new file mode 100644
index 000000000000..bef527dadd86
--- /dev/null
+++ b/net-dns/inadyn/inadyn-2.12.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd tmpfiles
+
+DESCRIPTION="Dynamic DNS client with multiple SSL/TLS library support"
+HOMEPAGE="https://github.com/troglobit/inadyn"
+SRC_URI="https://github.com/troglobit/inadyn/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="gnutls mbedtls openssl"
+REQUIRED_USE="?? ( gnutls mbedtls openssl )"
+
+DEPEND="
+ acct-group/inadyn
+ acct-user/inadyn
+ dev-libs/confuse:=
+ gnutls? (
+ dev-libs/nettle:=
+ net-libs/gnutls:0=
+ )
+ mbedtls? ( net-libs/mbedtls:0= )
+ openssl? ( dev-libs/openssl:0= )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+ local myeconfargs=( "--disable-ssl" )
+ if use gnutls || use mbedtls || use openssl; then
+ local myeconfargs=( "--enable-ssl" )
+ fi
+
+ use mbedtls && myeconfargs+=( "--enable-mbedtls" )
+ use openssl && myeconfargs+=( "--enable-openssl" )
+
+ myeconfargs+=( --with-systemd="$(systemd_get_systemunitdir)" )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ insinto /etc
+ insopts -m 0600 -o inadyn -g inadyn
+ doins examples/inadyn.conf
+
+ newinitd "${FILESDIR}"/inadyn.initd inadyn
+ newconfd "${FILESDIR}"/inadyn.confd inadyn
+
+ newtmpfiles "${FILESDIR}"/inadyn.tmpfilesd inadyn.conf
+}
+
+pkg_postinst() {
+ tmpfiles_process inadyn.conf
+}