1 |
commit: 08acced7bdf5d415019feec8114b417624670771 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 10 21:19:24 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 10 21:22:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08acced7 |
7 |
|
8 |
net-misc/modemmanager: Version bump to 1.18.12 |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
net-misc/modemmanager/Manifest | 1 + |
13 |
net-misc/modemmanager/modemmanager-1.18.12.ebuild | 153 ++++++++++++++++++++++ |
14 |
2 files changed, 154 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/modemmanager/Manifest b/net-misc/modemmanager/Manifest |
17 |
index 30f18bf4d564..d73b5bc3a3ed 100644 |
18 |
--- a/net-misc/modemmanager/Manifest |
19 |
+++ b/net-misc/modemmanager/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST ModemManager-1.18.10.tar.xz 2611480 BLAKE2B ca6c690f2365917b5c879c1bd80ec2752880fb4ffe779c0dae7e2b0852d5f77bb403b5cc1f529e254818fd3e6df2698cd77493d801f5c55d5fe60c817df1e713 SHA512 4615ddb852b750ba0ca62224b669145a408a22b841937d42271638a73bf59dff5fb8b73553388afee8e7d2b2126c61f51af3f8fcb4475a2e2ea313d438443f9b |
22 |
+DIST ModemManager-1.18.12.tar.xz 2589020 BLAKE2B e82db0a62d29753e22b9f9c09e60d8f5dca070cbac27b6df54ff8cd166cbb837dca3b162ac06afea0e75abdc8d407253a28cee58dacd739d4b485fa9f5485acb SHA512 7ee3b091ca2350a1d52f1ff0c0657c9f279594ffbff5ea57be59ca024331cafbac34901ca9ed4ef2b71e8c51b594526f921d3aeee6e8748cd0532a16218c5d6c |
23 |
|
24 |
diff --git a/net-misc/modemmanager/modemmanager-1.18.12.ebuild b/net-misc/modemmanager/modemmanager-1.18.12.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..4fa1d85c102e |
27 |
--- /dev/null |
28 |
+++ b/net-misc/modemmanager/modemmanager-1.18.12.ebuild |
29 |
@@ -0,0 +1,153 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+PYTHON_COMPAT=( python3_{8..11} ) |
35 |
+inherit gnome2 python-any-r1 readme.gentoo-r1 systemd udev vala |
36 |
+ |
37 |
+DESCRIPTION="Modem and mobile broadband management libraries" |
38 |
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/ModemManager/" |
39 |
+SRC_URI="https://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz" |
40 |
+ |
41 |
+LICENSE="GPL-2+" |
42 |
+SLOT="0/1" # subslot = dbus interface version, i.e. N in org.freedesktop.ModemManager${N} |
43 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
44 |
+ |
45 |
+IUSE="elogind +introspection mbim policykit +qmi +qrtr systemd test +udev vala" |
46 |
+REQUIRED_USE=" |
47 |
+ ?? ( elogind systemd ) |
48 |
+ qrtr? ( qmi ) |
49 |
+ vala? ( introspection ) |
50 |
+" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+DEPEND=" |
54 |
+ >=dev-libs/glib-2.56.0:2 |
55 |
+ udev? ( >=dev-libs/libgudev-232:= ) |
56 |
+ introspection? ( >=dev-libs/gobject-introspection-0.9.6:= ) |
57 |
+ mbim? ( >=net-libs/libmbim-1.26.0 ) |
58 |
+ policykit? ( >=sys-auth/polkit-0.106[introspection?] ) |
59 |
+ qmi? ( >=net-libs/libqmi-1.30.8:=[qrtr?] ) |
60 |
+ qrtr? ( >=net-libs/libqrtr-glib-1.0.0:= ) |
61 |
+ elogind? ( sys-auth/elogind ) |
62 |
+ systemd? ( >=sys-apps/systemd-209 ) |
63 |
+" |
64 |
+RDEPEND="${DEPEND} |
65 |
+ policykit? ( acct-group/plugdev ) |
66 |
+" |
67 |
+BDEPEND=" |
68 |
+ dev-util/gdbus-codegen |
69 |
+ dev-util/glib-utils |
70 |
+ >=dev-util/gtk-doc-am-1 |
71 |
+ >=sys-devel/gettext-0.19.8 |
72 |
+ virtual/pkgconfig |
73 |
+ test? ( |
74 |
+ ${PYTHON_DEPS} |
75 |
+ $(python_gen_any_dep ' |
76 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
77 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
78 |
+ ') |
79 |
+ ) |
80 |
+ vala? ( $(vala_depend) ) |
81 |
+" |
82 |
+ |
83 |
+S="${WORKDIR}/ModemManager-${PV}" |
84 |
+ |
85 |
+python_check_deps() { |
86 |
+ python_has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" && |
87 |
+ python_has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" |
88 |
+} |
89 |
+ |
90 |
+pkg_setup() { |
91 |
+ use test && python-any-r1_pkg_setup |
92 |
+} |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ DOC_CONTENTS=" |
96 |
+ If your USB modem shows up only as a storage device when you plug it in, |
97 |
+ then you should install sys-apps/usb_modeswitch, which will automatically |
98 |
+ switch it over to USB modem mode whenever you plug it in.\n" |
99 |
+ |
100 |
+ if use policykit; then |
101 |
+ DOC_CONTENTS+="\nTo control your modem without needing to enter the root password, |
102 |
+ add your user account to the 'plugdev' group." |
103 |
+ fi |
104 |
+ |
105 |
+ use vala && vala_setup |
106 |
+ gnome2_src_prepare |
107 |
+} |
108 |
+ |
109 |
+src_configure() { |
110 |
+ local myconf=( |
111 |
+ --disable-Werror |
112 |
+ --disable-static |
113 |
+ --with-dist-version=${PVR} |
114 |
+ --with-udev-base-dir="$(get_udevdir)" |
115 |
+ $(use_with udev) |
116 |
+ $(use_enable introspection) |
117 |
+ $(use_with mbim) |
118 |
+ $(use_with policykit polkit) |
119 |
+ $(use_with systemd systemd-journal) |
120 |
+ $(use_with qmi) |
121 |
+ $(use_with qrtr) |
122 |
+ $(use_enable vala) |
123 |
+ ) |
124 |
+ if use systemd || use elogind; then |
125 |
+ myconf+=(--with-systemd-suspend-resume) |
126 |
+ else |
127 |
+ myconf+=(--without-systemd-suspend-resume) |
128 |
+ fi |
129 |
+ gnome2_src_configure "${myconf[@]}" |
130 |
+} |
131 |
+ |
132 |
+src_install() { |
133 |
+ gnome2_src_install |
134 |
+ |
135 |
+ # Allow users in plugdev group full control over their modem |
136 |
+ if use policykit; then |
137 |
+ insinto /usr/share/polkit-1/rules.d/ |
138 |
+ doins "${FILESDIR}"/01-org.freedesktop.ModemManager1.rules |
139 |
+ fi |
140 |
+ |
141 |
+ readme.gentoo_create_doc |
142 |
+ |
143 |
+ newinitd "${FILESDIR}/modemmanager.initd" modemmanager |
144 |
+} |
145 |
+ |
146 |
+pkg_postinst() { |
147 |
+ gnome2_pkg_postinst |
148 |
+ |
149 |
+ # The polkit rules file moved to /usr/share |
150 |
+ old_rules="${EROOT}/etc/polkit-1/rules.d/01-org.freedesktop.ModemManager.rules" |
151 |
+ if [[ -f "${old_rules}" ]]; then |
152 |
+ case "$(md5sum ${old_rules})" in |
153 |
+ c5ff02532cb1da2c7545c3069e5d0992* | 5c50f0dc603c0a56e2851a5ce9389335* ) |
154 |
+ # Automatically delete the old rules.d file if the user did not change it |
155 |
+ elog |
156 |
+ elog "Removing old ${old_rules} ..." |
157 |
+ rm -f "${old_rules}" || eerror "Failed, please remove ${old_rules} manually" |
158 |
+ ;; |
159 |
+ * ) |
160 |
+ elog "The ${old_rules}" |
161 |
+ elog "file moved to /usr/share/polkit-1/rules.d/ in >=modemmanager-0.5.2.0-r2" |
162 |
+ elog "If you edited ${old_rules}" |
163 |
+ elog "without changing its behavior, you may want to remove it." |
164 |
+ ;; |
165 |
+ esac |
166 |
+ fi |
167 |
+ |
168 |
+ if ! use udev; then |
169 |
+ ewarn "You have built ModemManager without udev support. You may have to teach it" |
170 |
+ ewarn "about your modem port manually." |
171 |
+ fi |
172 |
+ |
173 |
+ use udev && udev_reload |
174 |
+ |
175 |
+ systemd_reenable ModemManager.service |
176 |
+ |
177 |
+ readme.gentoo_print_elog |
178 |
+} |
179 |
+ |
180 |
+pkg_postrm() { |
181 |
+ use udev && udev_reload |
182 |
+} |