| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 2.13.0 | 8 | ~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools 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 ~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:0= )
openssl? ( dev-libs/openssl:= )
"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
# Needed for musl patch
eautoreconf
}
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
}
acct-group/inadyn acct-user/inadyn dev-libs/confuse:= gnutls? ( dev-libs/nettle:= net-libs/gnutls:= ) mbedtls? ( net-libs/mbedtls:0= ) openssl? ( dev-libs/openssl:= )
acct-group/inadyn acct-user/inadyn dev-libs/confuse:= gnutls? ( dev-libs/nettle:= net-libs/gnutls:= ) mbedtls? ( net-libs/mbedtls:0= ) openssl? ( dev-libs/openssl:= )
virtual/pkgconfig
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | inadyn-2.13.0.tar.xz | 346752 bytes | https://github.com/troglobit/inadyn/releases/download/v2.13.0/inadyn-2.13.0.tar.xz |