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: Tue, 28 Jan 2020 14:03:45
Message-Id: 1580220210.3d86ac5e4d1f975e9c51e28a8243ed2a346b7084.bkohler@gentoo
1 commit: 3d86ac5e4d1f975e9c51e28a8243ed2a346b7084
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 28 14:00:04 2020 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 28 14:03:30 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d86ac5e
7
8 net-misc/connman: new live ebuild with several changes
9
10 1) Switch firewall default from iptables to nftables
11 2) Sort IUSE & configure args
12 3) EAPI=7 conversion
13 4) Add WireGuard support
14
15 Package-Manager: Portage-2.3.86, Repoman-2.3.20
16 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
17
18 net-misc/connman/connman-9999.ebuild | 100 +++++++++++++++++++++++++++++++++++
19 net-misc/connman/metadata.xml | 1 +
20 2 files changed, 101 insertions(+)
21
22 diff --git a/net-misc/connman/connman-9999.ebuild b/net-misc/connman/connman-9999.ebuild
23 new file mode 100644
24 index 00000000000..937b54ecf83
25 --- /dev/null
26 +++ b/net-misc/connman/connman-9999.ebuild
27 @@ -0,0 +1,100 @@
28 +# Copyright 1999-2020 Gentoo Authors
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI="7"
32 +inherit autotools systemd tmpfiles
33 +
34 +if [[ ${PV} == *9999* ]]; then
35 + inherit git-r3
36 + EGIT_REPO_URI="https://git.kernel.org/pub/scm/network/connman/connman.git"
37 +else
38 + SRC_URI="https://www.kernel.org/pub/linux/network/${PN}/${P}.tar.xz"
39 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
40 +fi
41 +
42 +DESCRIPTION="Provides a daemon for managing internet connections"
43 +HOMEPAGE="https://01.org/connman"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +
48 +IUSE="bluetooth debug doc +ethernet examples iptables iwd l2tp networkmanager
49 ++nftables ofono openconnect openvpn policykit pptp tools vpnc +wifi wireguard
50 +wispr"
51 +
52 +REQUIRED_USE="^^ ( iptables nftables )"
53 +BDEPEND="virtual/pkgconfig"
54 +RDEPEND=">=dev-libs/glib-2.16
55 + >=sys-apps/dbus-1.2.24
56 + sys-libs/readline:0=
57 + bluetooth? ( net-wireless/bluez )
58 + iptables? ( >=net-firewall/iptables-1.4.8 )
59 + iwd? ( net-wireless/iwd )
60 + l2tp? ( net-dialup/xl2tpd )
61 + nftables? (
62 + >=net-libs/libnftnl-1.0.4:0=
63 + >=net-libs/libmnl-1.0.0:0= )
64 + ofono? ( net-misc/ofono )
65 + openconnect? ( net-vpn/openconnect )
66 + openvpn? ( net-vpn/openvpn )
67 + policykit? ( sys-auth/polkit )
68 + pptp? ( net-dialup/pptpclient )
69 + vpnc? ( net-vpn/vpnc )
70 + wifi? ( >=net-wireless/wpa_supplicant-2.0[dbus] )
71 + wireguard? ( >=net-libs/libmnl-1.0.0:0= )
72 + wispr? ( net-libs/gnutls )"
73 +
74 +DEPEND="${RDEPEND}
75 + >=sys-kernel/linux-headers-2.6.39"
76 +
77 +src_prepare() {
78 + default
79 + eautoreconf
80 +}
81 +
82 +src_configure() {
83 + econf \
84 + --localstatedir=/var \
85 + --with-systemdunitdir=$(systemd_get_systemunitdir) \
86 + --with-tmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d \
87 + --enable-client \
88 + --enable-datafiles \
89 + --enable-loopback=builtin \
90 + $(use_enable bluetooth bluetooth builtin) \
91 + $(use_enable debug) \
92 + $(use_enable ethernet ethernet builtin) \
93 + $(use_enable examples test) \
94 + $(use_enable iwd) \
95 + $(use_enable l2tp l2tp builtin) \
96 + $(use_enable networkmanager nmcompat) \
97 + $(use_enable ofono ofono builtin) \
98 + $(use_enable openconnect openconnect builtin) \
99 + $(use_enable openvpn openvpn builtin) \
100 + $(use_enable policykit polkit builtin) \
101 + $(use_enable pptp pptp builtin) \
102 + $(use_enable tools) \
103 + $(use_enable vpnc vpnc builtin) \
104 + $(use_enable wifi wifi builtin) \
105 + $(use_enable wireguard) \
106 + $(use_enable wispr wispr builtin) \
107 + --with-firewall=$(usex iptables "iptables" "nftables" ) \
108 + --disable-iospm \
109 + --disable-hh2serial-gps
110 +}
111 +
112 +src_install() {
113 + default
114 + dobin client/connmanctl
115 +
116 + if use doc; then
117 + dodoc doc/*.txt
118 + fi
119 + keepdir /usr/lib/${PN}/scripts
120 + keepdir /var/lib/${PN}
121 + newinitd "${FILESDIR}"/${PN}.initd2 ${PN}
122 + newconfd "${FILESDIR}"/${PN}.confd ${PN}
123 +}
124 +
125 +pkg_postinst() {
126 + tmpfiles_process /usr/lib/tmpfiles.d/connman_resolvconf.conf
127 +}
128
129 diff --git a/net-misc/connman/metadata.xml b/net-misc/connman/metadata.xml
130 index b6bed9600f0..a8e17b602a0 100644
131 --- a/net-misc/connman/metadata.xml
132 +++ b/net-misc/connman/metadata.xml
133 @@ -18,5 +18,6 @@
134 <flag name="tools">Enable testing tools.</flag>
135 <flag name="vpnc">Use <pkg>net-vpn/vpnc</pkg> for cisco VPN support.</flag>
136 <flag name="wispr">Enable support for WISPr hotspot logins.</flag>
137 + <flag name="wireguard">Enable WireGuard VPN support.</flag>
138 </use>
139 </pkgmetadata>