summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/inadyn/Manifest1
-rw-r--r--net-dns/inadyn/inadyn-2.12.0-r1.ebuild72
2 files changed, 73 insertions, 0 deletions
diff --git a/net-dns/inadyn/Manifest b/net-dns/inadyn/Manifest
index 8727cef7dcdf..4ae2f68a5003 100644
--- a/net-dns/inadyn/Manifest
+++ b/net-dns/inadyn/Manifest
@@ -1 +1,2 @@
DIST inadyn-2.12.0.tar.gz 506723 BLAKE2B 35fc5f8f9298cfb5ff7bf4c569fbd0495c2591a1fd630919bae8dabff03a0e41c512d304d2519be688bff3c41427f13b0a66738b785e1d28e0ec4d3901f05488 SHA512 940e49cd2c434f57a56494e1946939f0d773deeb489939c957c0e1eac135177ab3c446e967daa01a56fde5490568761c1492646bae1bb2f63688e0e9121ef8fe
+DIST inadyn-2.12.0.tar.xz 341904 BLAKE2B 2bb1e8f16784c41cb2810c3ed2a52ef12823277082b33a9436a330caad4b4f76034ab3e7f9fefb4dffc0fbf5968f4fb60967f784ce3682f165666c8c0744fcc9 SHA512 309ad6deca4831cbbfb4f4c0b4fcc1ba69fd46a47dc329b20b5e74acdcaf32e7bef435abdc89d2924b576d166095b61bdb7a74cc698a805659c47e7d6a4fe907
diff --git a/net-dns/inadyn/inadyn-2.12.0-r1.ebuild b/net-dns/inadyn/inadyn-2.12.0-r1.ebuild
new file mode 100644
index 000000000000..d95e11c356fd
--- /dev/null
+++ b/net-dns/inadyn/inadyn-2.12.0-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2024 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.xz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~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:=
+ )
+ mbedtls? ( net-libs/mbedtls:= )
+ openssl? ( dev-libs/openssl:= )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+ # Tests would need a custom config file in homedir per configure help?
+ local myeconfargs=(
+ --disable-ssl
+ --with-systemd="$(systemd_get_systemunitdir)"
+ )
+
+ if use gnutls || use mbedtls || use openssl; then
+ myeconfargs=( --enable-ssl )
+ fi
+
+ if use mbedtls; then
+ myeconfargs+=( --enable-mbedtls )
+
+ # MbedTLS has no support for pkg-config
+ # TODO: Revisit a while after bug #922123 is fixed
+ myeconfargs+=( MbedTLS_CFLAGS="-I${ESYSROOT}/usr/include/mbedtls" )
+ myeconfargs+=( MbedTLS_LIBS="-lmbedtls" )
+ fi
+
+ use openssl && myeconfargs+=( --enable-openssl )
+
+ 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
+}