Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/connman/
Date: Sun, 28 Aug 2022 20:41:54
Message-Id: 1661719305.e7f443ab9d94395389b54a91dc258679ad4e02c7.bkohler@gentoo
1 commit: e7f443ab9d94395389b54a91dc258679ad4e02c7
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 28 20:41:00 2022 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 28 20:41:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7f443ab
7
8 net-misc/connman: add 1.42_pre20220828
9
10 Bug: https://bugs.gentoo.org/865621
11
12 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
13
14 net-misc/connman/Manifest | 1 +
15 net-misc/connman/connman-1.42_pre20220828.ebuild | 106 +++++++++++++++++++++++
16 2 files changed, 107 insertions(+)
17
18 diff --git a/net-misc/connman/Manifest b/net-misc/connman/Manifest
19 index c3af10912025..ffdff76ce3e4 100644
20 --- a/net-misc/connman/Manifest
21 +++ b/net-misc/connman/Manifest
22 @@ -1 +1,2 @@
23 DIST connman-363e0ed955f605fb0dc919b7ee149b6071af73ee.tar.gz 738158 BLAKE2B 05315470fe055b6b42330d3aa6e4286c551f1ce43a63e6952f0f0969d3639275eab62da0d90ff6fd756fcfca37e11d16d4ed834f0cf02e1b8cf75be742cc6a75 SHA512 e5a66134f4ee99d03aa4c77082817a4886750434e676eecb394ba1aac0475034cadec66aba27704b173151dce74e92f9e77065bcdef9576c9ed3d3cfc13a1d68
24 +DIST connman-cb05780d86c39cfb5e6d9ac2b288bf3244a95d57.tar.gz 738675 BLAKE2B d2c8ee587bdf045e4438a5c4c48475a5ba8ae390032dbdee44ed884273d741e290fcaeb5cee1025a7dec1f7f7034cf01d3e074d08004024dc541bff1b729627c SHA512 3d49f7fad6044c080a5805cc35dbecbdf916d66a2ace0246631936fbf46d80fcfff960df79a8471069caa00975dd74f5fcc17812811ce9c93919e2947ef23f6d
25
26 diff --git a/net-misc/connman/connman-1.42_pre20220828.ebuild b/net-misc/connman/connman-1.42_pre20220828.ebuild
27 new file mode 100644
28 index 000000000000..b63e300c6add
29 --- /dev/null
30 +++ b/net-misc/connman/connman-1.42_pre20220828.ebuild
31 @@ -0,0 +1,106 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="7"
36 +inherit autotools systemd tmpfiles
37 +
38 +COMMIT=cb05780d86c39cfb5e6d9ac2b288bf3244a95d57
39 +
40 +if [[ ${PV} == *9999* ]]; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://git.kernel.org/pub/scm/network/connman/connman.git"
43 +else
44 + SRC_URI="https://git.kernel.org/pub/scm/network/connman/connman.git/snapshot/connman-${COMMIT}.tar.gz"
45 + KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv x86"
46 +fi
47 +
48 +DESCRIPTION="Provides a daemon for managing internet connections"
49 +HOMEPAGE="https://git.kernel.org/pub/scm/network/connman/connman.git/"
50 +
51 +LICENSE="GPL-2"
52 +SLOT="0"
53 +
54 +IUSE="bluetooth debug doc +ethernet examples iptables iwd l2tp networkmanager
55 ++nftables ofono openconnect openvpn policykit pptp tools vpnc +wifi wireguard
56 +wispr"
57 +
58 +REQUIRED_USE="^^ ( iptables nftables )"
59 +BDEPEND="virtual/pkgconfig"
60 +RDEPEND=">=dev-libs/glib-2.16
61 + >=sys-apps/dbus-1.2.24
62 + sys-libs/readline:0=
63 + bluetooth? ( net-wireless/bluez )
64 + iptables? ( >=net-firewall/iptables-1.4.8 )
65 + iwd? ( net-wireless/iwd )
66 + l2tp? ( net-dialup/xl2tpd )
67 + nftables? (
68 + >=net-libs/libnftnl-1.0.4:0=
69 + >=net-libs/libmnl-1.0.0:0= )
70 + ofono? ( net-misc/ofono )
71 + openconnect? ( net-vpn/openconnect )
72 + openvpn? ( net-vpn/openvpn )
73 + policykit? ( sys-auth/polkit )
74 + pptp? ( net-dialup/pptpclient )
75 + vpnc? ( net-vpn/vpnc )
76 + wifi? ( >=net-wireless/wpa_supplicant-2.0[dbus] )
77 + wireguard? ( >=net-libs/libmnl-1.0.0:0= )
78 + wispr? ( net-libs/gnutls )"
79 +
80 +DEPEND="${RDEPEND}
81 + >=sys-kernel/linux-headers-2.6.39"
82 +
83 +PATCHES=( "${FILESDIR}/libresolv-musl-fix.patch" )
84 +S=${WORKDIR}/${PN}-${COMMIT}
85 +
86 +src_prepare() {
87 + default
88 + eautoreconf
89 +}
90 +
91 +src_configure() {
92 + econf \
93 + --localstatedir=/var \
94 + --runstatedir=/run \
95 + --with-systemdunitdir=$(systemd_get_systemunitdir) \
96 + --with-tmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d \
97 + --enable-client \
98 + --enable-datafiles \
99 + --enable-loopback=builtin \
100 + $(use_enable bluetooth bluetooth builtin) \
101 + $(use_enable debug) \
102 + $(use_enable ethernet ethernet builtin) \
103 + $(use_enable examples test) \
104 + $(use_enable iwd) \
105 + $(use_enable l2tp l2tp builtin) \
106 + $(use_enable networkmanager nmcompat) \
107 + $(use_enable ofono ofono builtin) \
108 + $(use_enable openconnect openconnect builtin) \
109 + $(use_enable openvpn openvpn builtin) \
110 + $(use_enable policykit polkit builtin) \
111 + $(use_enable pptp pptp builtin) \
112 + $(use_enable tools) \
113 + $(use_enable vpnc vpnc builtin) \
114 + $(use_enable wifi wifi builtin) \
115 + $(use_enable wireguard) \
116 + $(use_enable wispr wispr builtin) \
117 + --with-firewall=$(usex iptables "iptables" "nftables" ) \
118 + --disable-iospm \
119 + --disable-hh2serial-gps
120 +}
121 +
122 +src_install() {
123 + default
124 + dobin client/connmanctl
125 +
126 + if use doc; then
127 + dodoc doc/*.txt
128 + fi
129 + keepdir /usr/lib/${PN}/scripts
130 + keepdir /var/lib/${PN}
131 + newinitd "${FILESDIR}"/${PN}.initd2 ${PN}
132 + newconfd "${FILESDIR}"/${PN}.confd ${PN}
133 +}
134 +
135 +pkg_postinst() {
136 + tmpfiles_process connman_resolvconf.conf
137 +}