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