1 |
commit: d29d372c5f0130c46c3f841038d2373e7f2878ec |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 3 11:03:07 2016 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 3 11:41:50 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d29d372c |
7 |
|
8 |
net-misc/modemmanager: Version bump |
9 |
|
10 |
Package-Manager: portage-2.3.0_rc1 |
11 |
|
12 |
net-misc/modemmanager/Manifest | 1 + |
13 |
net-misc/modemmanager/modemmanager-1.4.14.ebuild | 108 +++++++++++++++++++++++ |
14 |
2 files changed, 109 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/modemmanager/Manifest b/net-misc/modemmanager/Manifest |
17 |
index b0fc1f5..137e9cb 100644 |
18 |
--- a/net-misc/modemmanager/Manifest |
19 |
+++ b/net-misc/modemmanager/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST ModemManager-1.4.12.tar.xz 1407168 SHA256 7ef5035375a953b285a742591df0a65fd442f4641ce4d8f4392a41d6d6bc70b3 SHA512 f3d8bfdfc5df14c866a4fd2c0ef125c818fc5b2464d166dee2ad2b8df3d9ee22667f521313e664b2a6d8e7f72a965929cb815ad4f7a6a1ecbd17957bfde720ee WHIRLPOOL d8b2cbeb08fbdf5cdee6b7a44b49b415ee31c5e78651e7e6c12a5c8f0aa9d828ab4ce0db40bc4b87592944a221ed815bea9243debb8b6647a687a85e93362626 |
22 |
+DIST ModemManager-1.4.14.tar.xz 1417092 SHA256 abe6cdd515a774bcba3afdcdb1e504569801e79282ccdf26099f33cbb8731ba2 SHA512 2fb5517cd3fbd98cf4048cec326fabf18fb26d88b75e56208d1ed64d70d72d6e826ef30391c86fbcfe4d69661194bcfbb55d545db10ebe8baf8ef16a3c580446 WHIRLPOOL 30c9e1e388c91f8aab73044634e3d122636f526cb9b437a597dc2f35cfd85e61917a568cfa572404f734eb19eb90c2e21bc85e16d6cc9b53518f590981f6efa4 |
23 |
|
24 |
diff --git a/net-misc/modemmanager/modemmanager-1.4.14.ebuild b/net-misc/modemmanager/modemmanager-1.4.14.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..cc991b6 |
27 |
--- /dev/null |
28 |
+++ b/net-misc/modemmanager/modemmanager-1.4.14.ebuild |
29 |
@@ -0,0 +1,108 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=6 |
35 |
+GNOME2_LA_PUNT="yes" |
36 |
+VALA_USE_DEPEND="vapigen" |
37 |
+ |
38 |
+inherit gnome2 user readme.gentoo-r1 udev vala |
39 |
+ |
40 |
+DESCRIPTION="Modem and mobile broadband management libraries" |
41 |
+HOMEPAGE="https://cgit.freedesktop.org/ModemManager/ModemManager/" |
42 |
+SRC_URI="https://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz" |
43 |
+ |
44 |
+LICENSE="GPL-2+" |
45 |
+SLOT="0/1" # subslot = dbus interface version, i.e. N in org.freedesktop.ModemManager${N} |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
47 |
+ |
48 |
+IUSE="+introspection mbim policykit +qmi qmi-newest vala" |
49 |
+REQUIRED_USE=" |
50 |
+ qmi-newest? ( qmi ) |
51 |
+ vala? ( introspection ) |
52 |
+" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ >=dev-libs/glib-2.32:2 |
56 |
+ virtual/libgudev:= |
57 |
+ introspection? ( >=dev-libs/gobject-introspection-0.9.6:= ) |
58 |
+ mbim? ( >=net-libs/libmbim-1.10 ) |
59 |
+ policykit? ( >=sys-auth/polkit-0.106[introspection] ) |
60 |
+ qmi? ( >=net-libs/libqmi-1.12.4:= ) |
61 |
+" |
62 |
+DEPEND="${RDEPEND} |
63 |
+ dev-util/gdbus-codegen |
64 |
+ >=dev-util/intltool-0.40 |
65 |
+ sys-devel/gettext |
66 |
+ virtual/pkgconfig |
67 |
+ vala? ( $(vala_depend) ) |
68 |
+" |
69 |
+ |
70 |
+S="${WORKDIR}/ModemManager-${PV}" |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ DOC_CONTENTS="If your USB modem shows up as a Flash drive when you plug it in, |
74 |
+ You should install sys-apps/usb_modeswitch which will automatically |
75 |
+ switch it over to USB modem mode whenever you plug it in.\n" |
76 |
+ |
77 |
+ if use policykit; then |
78 |
+ DOC_CONTENTS+="\nTo control your modem without needing to enter the root password, |
79 |
+ add your user account to the 'plugdev' group." |
80 |
+ fi |
81 |
+ |
82 |
+ use vala && vala_src_prepare |
83 |
+ gnome2_src_prepare |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ gnome2_src_configure \ |
88 |
+ --disable-more-warnings \ |
89 |
+ --with-udev-base-dir="$(get_udevdir)" \ |
90 |
+ --disable-static \ |
91 |
+ --with-dist-version=${PVR} \ |
92 |
+ $(use_enable introspection) \ |
93 |
+ $(use_with mbim) \ |
94 |
+ $(use_with policykit polkit) \ |
95 |
+ $(use_with qmi) \ |
96 |
+ $(use_with qmi-newest newest-qmi-commands) \ |
97 |
+ $(use_enable vala) |
98 |
+} |
99 |
+ |
100 |
+src_install() { |
101 |
+ gnome2_src_install |
102 |
+ |
103 |
+ # Allow users in plugdev group full control over their modem |
104 |
+ if use policykit; then |
105 |
+ insinto /usr/share/polkit-1/rules.d/ |
106 |
+ doins "${FILESDIR}"/01-org.freedesktop.ModemManager1.rules |
107 |
+ fi |
108 |
+ |
109 |
+ readme.gentoo_create_doc |
110 |
+} |
111 |
+ |
112 |
+pkg_postinst() { |
113 |
+ gnome2_pkg_postinst |
114 |
+ |
115 |
+ use policykit && enewgroup plugdev |
116 |
+ |
117 |
+ # The polkit rules file moved to /usr/share |
118 |
+ old_rules="${EROOT}etc/polkit-1/rules.d/01-org.freedesktop.ModemManager.rules" |
119 |
+ if [[ -f "${old_rules}" ]]; then |
120 |
+ case "$(md5sum ${old_rules})" in |
121 |
+ c5ff02532cb1da2c7545c3069e5d0992* | 5c50f0dc603c0a56e2851a5ce9389335* ) |
122 |
+ # Automatically delete the old rules.d file if the user did not change it |
123 |
+ elog |
124 |
+ elog "Removing old ${old_rules} ..." |
125 |
+ rm -f "${old_rules}" || eerror "Failed, please remove ${old_rules} manually" |
126 |
+ ;; |
127 |
+ * ) |
128 |
+ elog "The ${old_rules}" |
129 |
+ elog "file moved to /usr/share/polkit-1/rules.d/ in >=modemmanager-0.5.2.0-r2" |
130 |
+ elog "If you edited ${old_rules}" |
131 |
+ elog "without changing its behavior, you may want to remove it." |
132 |
+ ;; |
133 |
+ esac |
134 |
+ fi |
135 |
+ |
136 |
+ readme.gentoo_print_elog |
137 |
+} |