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