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: Thu, 27 Jan 2022 12:44:29
Message-Id: 1643287459.cb0947ef5f77d8cb7e3e6599f9f1d791f70fef6f.bkohler@gentoo
1 commit: cb0947ef5f77d8cb7e3e6599f9f1d791f70fef6f
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 27 12:43:13 2022 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 27 12:44:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb0947ef
7
8 net-misc/connman: snapshot for security fixes
9
10 Bug: https://bugs.gentoo.org/832028
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
13
14 net-misc/connman/Manifest | 1 +
15 net-misc/connman/connman-1.40_p20220125.ebuild | 105 +++++++++++++++++++++++++
16 2 files changed, 106 insertions(+)
17
18 diff --git a/net-misc/connman/Manifest b/net-misc/connman/Manifest
19 index 1b9d3242e462..001e8ddd36a4 100644
20 --- a/net-misc/connman/Manifest
21 +++ b/net-misc/connman/Manifest
22 @@ -1 +1,2 @@
23 DIST connman-1.40.tar.xz 758516 BLAKE2B 66834032f82e80a6f950d7ff823dc5f1f45090f3444b5a0241cabd0346cf9749b8780b624ce6a8e505305cc1a75423e5a95a7b1f77a282d231845bc33389924a SHA512 33df90814b7499aeafcd51fca4f8ffbc07efacfa29dda46d3b9bcd3ff26264dc53c3991e7e53a8563ca403015c345e59c7ad29427c38ee3d88dd282479db7a0f
24 +DIST connman-6f1315d1960fc3f71bca9b3044f4f2b1560aea5f.tar.gz 733290 BLAKE2B 5dbac4e00668cd9b268906482a60214525872d5adfea2e424ca62cf37ee5079ba3c9f74fd604b4603614884494d691fd170a9b88eb5f0c4e7546aa6999691eef SHA512 060d7c9fe3c37f994db37118c59f4781a1a93e796d09354e3a2e9284b5f488f24a7d8066722b14c2b2ef953501f0fc0d69c027ca38797ab190191012a0f006b3
25
26 diff --git a/net-misc/connman/connman-1.40_p20220125.ebuild b/net-misc/connman/connman-1.40_p20220125.ebuild
27 new file mode 100644
28 index 000000000000..c798015285ac
29 --- /dev/null
30 +++ b/net-misc/connman/connman-1.40_p20220125.ebuild
31 @@ -0,0 +1,105 @@
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 +if [[ ${PV} == *9999* ]]; then
39 + inherit git-r3
40 + EGIT_REPO_URI="https://git.kernel.org/pub/scm/network/connman/connman.git"
41 +else
42 + #SRC_URI="https://www.kernel.org/pub/linux/network/${PN}/${P}.tar.xz"
43 + COMMIT="6f1315d1960fc3f71bca9b3044f4f2b1560aea5f"
44 + SRC_URI="https://git.kernel.org/pub/scm/network/${PN}/${PN}.git/snapshot/${PN}-${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 +S="${WORKDIR}/${PN}-${COMMIT}"
84 +
85 +src_prepare() {
86 + default
87 + eautoreconf
88 +}
89 +
90 +src_configure() {
91 + econf \
92 + --localstatedir=/var \
93 + --runstatedir=/run \
94 + --with-systemdunitdir=$(systemd_get_systemunitdir) \
95 + --with-tmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d \
96 + --enable-client \
97 + --enable-datafiles \
98 + --enable-loopback=builtin \
99 + $(use_enable bluetooth bluetooth builtin) \
100 + $(use_enable debug) \
101 + $(use_enable ethernet ethernet builtin) \
102 + $(use_enable examples test) \
103 + $(use_enable iwd) \
104 + $(use_enable l2tp l2tp builtin) \
105 + $(use_enable networkmanager nmcompat) \
106 + $(use_enable ofono ofono builtin) \
107 + $(use_enable openconnect openconnect builtin) \
108 + $(use_enable openvpn openvpn builtin) \
109 + $(use_enable policykit polkit builtin) \
110 + $(use_enable pptp pptp builtin) \
111 + $(use_enable tools) \
112 + $(use_enable vpnc vpnc builtin) \
113 + $(use_enable wifi wifi builtin) \
114 + $(use_enable wireguard) \
115 + $(use_enable wispr wispr builtin) \
116 + --with-firewall=$(usex iptables "iptables" "nftables" ) \
117 + --disable-iospm \
118 + --disable-hh2serial-gps
119 +}
120 +
121 +src_install() {
122 + default
123 + dobin client/connmanctl
124 +
125 + if use doc; then
126 + dodoc doc/*.txt
127 + fi
128 + keepdir /usr/lib/${PN}/scripts
129 + keepdir /var/lib/${PN}
130 + newinitd "${FILESDIR}"/${PN}.initd2 ${PN}
131 + newconfd "${FILESDIR}"/${PN}.confd ${PN}
132 +}
133 +
134 +pkg_postinst() {
135 + tmpfiles_process connman_resolvconf.conf
136 +}