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