1 |
commit: 4faf9513f4d7b0ad6044696f9ba0a37d184adab9 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 7 15:44:31 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 7 15:44:54 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4faf9513 |
7 |
|
8 |
net-misc/modemmanager: bump to 1.8.2 |
9 |
|
10 |
Also tweak the usb_modeswitch message a bit |
11 |
|
12 |
Closes: https://bugs.gentoo.org/544434 |
13 |
Closes: https://bugs.gentoo.org/666538 |
14 |
Closes: https://bugs.gentoo.org/664144 |
15 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
16 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
17 |
|
18 |
net-misc/modemmanager/Manifest | 1 + |
19 |
net-misc/modemmanager/modemmanager-1.8.2.ebuild | 118 ++++++++++++++++++++++++ |
20 |
2 files changed, 119 insertions(+) |
21 |
|
22 |
diff --git a/net-misc/modemmanager/Manifest b/net-misc/modemmanager/Manifest |
23 |
index f2b09ab3182..76b6abd9187 100644 |
24 |
--- a/net-misc/modemmanager/Manifest |
25 |
+++ b/net-misc/modemmanager/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST ModemManager-1.6.12.tar.xz 1402364 BLAKE2B 11335c495cc428936c9b0dd319449a7bf4c58a95ccd53b7a5bb276d78030272a7f29e5f0fa96a96613c5e0cb6a62239d864a23de6260fb55f6ecab09a18e6454 SHA512 2ac72fb2d36530204528cc0cd4815d0b93a1a8c8539ac345101e5e15bbfffd3eda888bbdc54298d3547b9aeacb94c75be5c600e993099671da2f9f27e8ee93cd |
28 |
+DIST ModemManager-1.8.2.tar.xz 2088248 BLAKE2B e53ec3dacac2b1d57191de0eba130ea575a40047e5faa1c813543f1ca17164d71a18478ec6c0392adabea94d2455ee510ceceefc16798fec6f26ec834ebbf84c SHA512 fb00ce6f3dc9795468e81ba295ad82e9586add2d7118661ea5f287a99afca97dc3aea64488393792bb1198e7abf2605bbc5ded2517980d67f8819931effdeea5 |
29 |
|
30 |
diff --git a/net-misc/modemmanager/modemmanager-1.8.2.ebuild b/net-misc/modemmanager/modemmanager-1.8.2.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..fe9c099b360 |
33 |
--- /dev/null |
34 |
+++ b/net-misc/modemmanager/modemmanager-1.8.2.ebuild |
35 |
@@ -0,0 +1,118 @@ |
36 |
+# Copyright 1999-2018 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=6 |
40 |
+GNOME2_LA_PUNT="yes" |
41 |
+VALA_USE_DEPEND="vapigen" |
42 |
+ |
43 |
+inherit gnome2 user readme.gentoo-r1 systemd udev vala |
44 |
+ |
45 |
+DESCRIPTION="Modem and mobile broadband management libraries" |
46 |
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/ModemManager/" |
47 |
+SRC_URI="https://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz" |
48 |
+ |
49 |
+LICENSE="GPL-2+" |
50 |
+SLOT="0/1" # subslot = dbus interface version, i.e. N in org.freedesktop.ModemManager${N} |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
52 |
+ |
53 |
+IUSE="+introspection mbim policykit +qmi systemd +udev vala" |
54 |
+REQUIRED_USE=" |
55 |
+ vala? ( introspection ) |
56 |
+" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ >=dev-libs/glib-2.36.0:2 |
60 |
+ udev? ( >=virtual/libgudev-230:= ) |
61 |
+ introspection? ( >=dev-libs/gobject-introspection-0.9.6:= ) |
62 |
+ mbim? ( >=net-libs/libmbim-1.16.0 ) |
63 |
+ policykit? ( >=sys-auth/polkit-0.106[introspection] ) |
64 |
+ qmi? ( >=net-libs/libqmi-1.20.0:= ) |
65 |
+ systemd? ( >=sys-apps/systemd-209 ) |
66 |
+" |
67 |
+DEPEND="${RDEPEND} |
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 |
+ vala? ( $(vala_depend) ) |
74 |
+" |
75 |
+ |
76 |
+S="${WORKDIR}/ModemManager-${PV}" |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ DOC_CONTENTS=" |
80 |
+ If your USB modem shows up only as a storage device when you plug it in, |
81 |
+ then you should install sys-apps/usb_modeswitch, which will automatically |
82 |
+ switch it over to USB modem mode whenever you plug it in.\n" |
83 |
+ |
84 |
+ if use policykit; then |
85 |
+ DOC_CONTENTS+="\nTo control your modem without needing to enter the root password, |
86 |
+ add your user account to the 'plugdev' group." |
87 |
+ fi |
88 |
+ |
89 |
+ use vala && vala_src_prepare |
90 |
+ gnome2_src_prepare |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ gnome2_src_configure \ |
95 |
+ --disable-more-warnings \ |
96 |
+ --disable-static \ |
97 |
+ --with-dist-version=${PVR} \ |
98 |
+ --with-udev-base-dir="$(get_udevdir)" \ |
99 |
+ $(use_with udev) \ |
100 |
+ $(use_enable introspection) \ |
101 |
+ $(use_with mbim) \ |
102 |
+ $(use_with policykit polkit) \ |
103 |
+ $(use_with systemd systemd-suspend-resume) \ |
104 |
+ $(use_with systemd systemd-journal) \ |
105 |
+ $(use_with qmi) \ |
106 |
+ $(use_enable vala) |
107 |
+} |
108 |
+ |
109 |
+src_install() { |
110 |
+ gnome2_src_install |
111 |
+ |
112 |
+ # Allow users in plugdev group full control over their modem |
113 |
+ if use policykit; then |
114 |
+ insinto /usr/share/polkit-1/rules.d/ |
115 |
+ doins "${FILESDIR}"/01-org.freedesktop.ModemManager1.rules |
116 |
+ fi |
117 |
+ |
118 |
+ readme.gentoo_create_doc |
119 |
+} |
120 |
+ |
121 |
+pkg_postinst() { |
122 |
+ gnome2_pkg_postinst |
123 |
+ |
124 |
+ use policykit && enewgroup plugdev |
125 |
+ |
126 |
+ # The polkit rules file moved to /usr/share |
127 |
+ old_rules="${EROOT}etc/polkit-1/rules.d/01-org.freedesktop.ModemManager.rules" |
128 |
+ if [[ -f "${old_rules}" ]]; then |
129 |
+ case "$(md5sum ${old_rules})" in |
130 |
+ c5ff02532cb1da2c7545c3069e5d0992* | 5c50f0dc603c0a56e2851a5ce9389335* ) |
131 |
+ # Automatically delete the old rules.d file if the user did not change it |
132 |
+ elog |
133 |
+ elog "Removing old ${old_rules} ..." |
134 |
+ rm -f "${old_rules}" || eerror "Failed, please remove ${old_rules} manually" |
135 |
+ ;; |
136 |
+ * ) |
137 |
+ elog "The ${old_rules}" |
138 |
+ elog "file moved to /usr/share/polkit-1/rules.d/ in >=modemmanager-0.5.2.0-r2" |
139 |
+ elog "If you edited ${old_rules}" |
140 |
+ elog "without changing its behavior, you may want to remove it." |
141 |
+ ;; |
142 |
+ esac |
143 |
+ fi |
144 |
+ |
145 |
+ if ! use udev; then |
146 |
+ ewarn "You have built ModemManager without udev support. You may have to teach it" |
147 |
+ ewarn "about your modem port manually." |
148 |
+ fi |
149 |
+ |
150 |
+ systemd_reenable ModemManager.service |
151 |
+ |
152 |
+ readme.gentoo_print_elog |
153 |
+} |