blob: 6654dd5ddc9ad23b7d8a83a2d854edba16665d9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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 ~ppc ~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
}
|