public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matt Turner" <mattst88@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/modemmanager/
Date: Thu, 28 Apr 2022 18:42:30 +0000 (UTC)	[thread overview]
Message-ID: <1651171261.70b51935bcbe52b25c24ee757b4bdc1c988b8fd6.mattst88@gentoo> (raw)

commit:     70b51935bcbe52b25c24ee757b4bdc1c988b8fd6
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 28 18:41:01 2022 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Thu Apr 28 18:41:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70b51935

net-misc/modemmanager: Version bump to 1.18.8

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 net-misc/modemmanager/Manifest                   |   1 +
 net-misc/modemmanager/modemmanager-1.18.8.ebuild | 145 +++++++++++++++++++++++
 2 files changed, 146 insertions(+)

diff --git a/net-misc/modemmanager/Manifest b/net-misc/modemmanager/Manifest
index 105e0bed4af6..a3993df8a86b 100644
--- a/net-misc/modemmanager/Manifest
+++ b/net-misc/modemmanager/Manifest
@@ -1 +1,2 @@
 DIST ModemManager-1.18.6.tar.xz 2519572 BLAKE2B 022e461d43a10bfce8d97f39b855cd28e1d165d07ec65db15c4ec3e89d932829b8c88a1834d182bc966c22f0d848cb6bb06bae2cc2930f685c9fa43b277668d9 SHA512 3b154d459e1196494d7f99303f88088215992aadb57a8cc66f838b068e762fa3d25f19a597922c26a138f670e1da46d627de11cf41d83ce96b3197a086f8e91b
+DIST ModemManager-1.18.8.tar.xz 2533392 BLAKE2B 7e95aa2303b55524174475ace96e0b938d2ac9abee0867bb56c6405f3460e73fad0ab68e50361c148551401ff2450abe70733616534507251cbaaee41ee02028 SHA512 fd853ad5ecd018303850f506cd75025bc0cad90d7a003b082178f7495b8763e71675ac34428d09002bf5d06963030d2ee5b84a1c888c959b03f00cddb1cdaf4c

diff --git a/net-misc/modemmanager/modemmanager-1.18.8.ebuild b/net-misc/modemmanager/modemmanager-1.18.8.ebuild
new file mode 100644
index 000000000000..a86bab79aa95
--- /dev/null
+++ b/net-misc/modemmanager/modemmanager-1.18.8.ebuild
@@ -0,0 +1,145 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{8..10} )
+inherit gnome2 python-any-r1 readme.gentoo-r1 systemd udev vala
+
+DESCRIPTION="Modem and mobile broadband management libraries"
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/ModemManager/"
+SRC_URI="https://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="0/1" # subslot = dbus interface version, i.e. N in org.freedesktop.ModemManager${N}
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+IUSE="elogind +introspection mbim policykit +qmi systemd test +udev vala"
+REQUIRED_USE="
+	?? ( elogind systemd )
+	vala? ( introspection )
+"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+	>=dev-libs/glib-2.56.0:2
+	udev? ( >=dev-libs/libgudev-232:= )
+	introspection? ( >=dev-libs/gobject-introspection-0.9.6:= )
+	mbim? ( >=net-libs/libmbim-1.26.0 )
+	policykit? ( >=sys-auth/polkit-0.106[introspection?] )
+	qmi? ( >=net-libs/libqmi-1.30.2:= )
+	elogind? ( sys-auth/elogind )
+	systemd? ( >=sys-apps/systemd-209 )
+"
+RDEPEND="${DEPEND}
+	policykit? ( acct-group/plugdev )
+"
+BDEPEND="
+	dev-util/gdbus-codegen
+	dev-util/glib-utils
+	>=dev-util/gtk-doc-am-1
+	>=sys-devel/gettext-0.19.8
+	virtual/pkgconfig
+	test? (
+		${PYTHON_DEPS}
+		$(python_gen_any_dep '
+			dev-python/dbus-python[${PYTHON_USEDEP}]
+			dev-python/pygobject:3[${PYTHON_USEDEP}]
+		')
+	)
+	vala? ( $(vala_depend) )
+"
+
+S="${WORKDIR}/ModemManager-${PV}"
+
+python_check_deps() {
+	has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
+	has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+	use test && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+	DOC_CONTENTS="
+		If your USB modem shows up only as a storage device when you plug it in,
+		then you should install sys-apps/usb_modeswitch, which will automatically
+		switch it over to USB modem mode whenever you plug it in.\n"
+
+	if use policykit; then
+		DOC_CONTENTS+="\nTo control your modem without needing to enter the root password,
+			add your user account to the 'plugdev' group."
+	fi
+
+	use vala && vala_src_prepare
+	gnome2_src_prepare
+}
+
+src_configure() {
+	local myconf=(
+		--disable-Werror
+		--disable-static
+		--with-dist-version=${PVR}
+		--with-udev-base-dir="$(get_udevdir)"
+		$(use_with udev)
+		$(use_enable introspection)
+		$(use_with mbim)
+		$(use_with policykit polkit)
+		$(use_with systemd systemd-journal)
+		$(use_with qmi)
+		--without-qrtr # libqrtr-glib not packaged
+		$(use_enable vala)
+	)
+	if use systemd || use elogind; then
+		myconf+=(--with-systemd-suspend-resume)
+	else
+		myconf+=(--without-systemd-suspend-resume)
+	fi
+	gnome2_src_configure "${myconf[@]}"
+}
+
+src_install() {
+	gnome2_src_install
+
+	# Allow users in plugdev group full control over their modem
+	if use policykit; then
+		insinto /usr/share/polkit-1/rules.d/
+		doins "${FILESDIR}"/01-org.freedesktop.ModemManager1.rules
+	fi
+
+	readme.gentoo_create_doc
+
+	newinitd "${FILESDIR}/modemmanager.initd" modemmanager
+}
+
+pkg_postinst() {
+	gnome2_pkg_postinst
+
+	# The polkit rules file moved to /usr/share
+	old_rules="${EROOT}/etc/polkit-1/rules.d/01-org.freedesktop.ModemManager.rules"
+	if [[ -f "${old_rules}" ]]; then
+		case "$(md5sum ${old_rules})" in
+		  c5ff02532cb1da2c7545c3069e5d0992* | 5c50f0dc603c0a56e2851a5ce9389335* )
+			# Automatically delete the old rules.d file if the user did not change it
+			elog
+			elog "Removing old ${old_rules} ..."
+			rm -f "${old_rules}" || eerror "Failed, please remove ${old_rules} manually"
+			;;
+		  * )
+			elog "The ${old_rules}"
+			elog "file moved to /usr/share/polkit-1/rules.d/ in >=modemmanager-0.5.2.0-r2"
+			elog "If you edited ${old_rules}"
+			elog "without changing its behavior, you may want to remove it."
+			;;
+		esac
+	fi
+
+	if ! use udev; then
+		ewarn "You have built ModemManager without udev support. You may have to teach it"
+		ewarn "about your modem port manually."
+	fi
+
+	systemd_reenable ModemManager.service
+
+	readme.gentoo_print_elog
+}


             reply	other threads:[~2022-04-28 18:42 UTC|newest]

Thread overview: 125+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-28 18:42 Matt Turner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-29 18:43 [gentoo-commits] repo/gentoo:master commit in: net-misc/modemmanager/ Sam James
2024-05-28 18:19 Arthur Zamarin
2024-05-28 17:08 Sam James
2023-07-29 20:25 Mike Gilbert
2023-07-29 20:25 Mike Gilbert
2023-07-29 11:51 Pacho Ramos
2023-07-09 12:29 Matt Turner
2023-06-28  7:19 Sam James
2022-12-04  2:41 Matt Turner
2022-11-05  9:58 Arthur Zamarin
2022-11-05  9:44 Arthur Zamarin
2022-10-31 17:58 Matt Turner
2022-10-15 15:01 Sam James
2022-09-10 21:23 Matt Turner
2022-08-15 19:13 Arthur Zamarin
2022-08-15 19:12 Arthur Zamarin
2022-08-15 17:43 Arthur Zamarin
2022-07-29  2:59 Sam James
2022-06-26 16:08 Matt Turner
2022-06-26  7:59 Sam James
2022-05-31 18:24 Matt Turner
2022-05-31  9:24 Jakov Smolić
2022-05-28  5:05 Sam James
2022-05-26  9:44 Pacho Ramos
2022-05-24 11:14 WANG Xuerui
2022-03-18 19:24 Matt Turner
2022-03-09 15:39 Sam James
2022-03-09 12:49 Sam James
2022-03-08 12:32 Sam James
2022-02-11 20:56 Matt Turner
2022-01-24 22:43 Matt Turner
2022-01-24 14:49 Sam James
2022-01-24 14:46 Sam James
2022-01-24  3:39 Sam James
2022-01-20 10:02 Jakov Smolić
2022-01-20  9:42 Arthur Zamarin
2022-01-13  6:58 Matt Turner
2021-12-19  2:00 Matt Turner
2021-11-06  3:58 Sam James
2021-10-04  1:24 Sam James
2021-09-15 20:27 Matt Turner
2021-08-20 23:51 Sam James
2021-08-20 23:51 Sam James
2021-08-20  1:50 Sam James
2021-08-19  2:10 Sam James
2021-08-08 19:46 Marek Szuba
2021-07-26  5:59 Matt Turner
2021-07-26  5:59 Matt Turner
2021-07-24 17:08 Sam James
2021-07-24 15:22 Sam James
2021-07-11 20:48 Sam James
2021-07-11  2:31 Sam James
2021-07-10 15:40 Sam James
2021-06-06 21:49 Matt Turner
2021-05-31  2:00 Matt Turner
2021-05-29 15:27 Sam James
2021-05-28 19:20 Sam James
2021-05-28 19:11 Sam James
2021-04-27 22:17 Matt Turner
2021-04-18 22:51 Matt Turner
2021-04-15 15:36 Matt Turner
2021-04-15  5:25 Sam James
2021-04-15  1:33 Sam James
2021-04-15  0:13 Sam James
2021-04-14 22:07 Sam James
2021-04-14 22:07 Sam James
2021-04-14 18:51 Mikle Kolyada
2021-04-13 16:20 Matt Turner
2021-04-12 22:12 Sam James
2021-04-12 22:12 Sam James
2021-03-12 15:28 Sam James
2021-03-12  8:04 Mikle Kolyada
2021-03-11  2:35 Sam James
2021-01-08  2:34 Matt Turner
2020-12-14 16:47 Mike Gilbert
2020-04-14 17:05 Mart Raudsepp
2020-02-11 10:52 Agostino Sarubbo
2020-01-28  7:41 Agostino Sarubbo
2020-01-27 14:28 Agostino Sarubbo
2020-01-27  9:45 Mikle Kolyada
2020-01-26 22:39 Thomas Deutschmann
2019-09-13 12:58 Michał Górny
2019-07-28 17:41 Mart Raudsepp
2019-05-21  3:17 Aaron Bauman
2019-04-14 15:21 Mikle Kolyada
2019-04-07 21:34 Sergei Trofimovich
2019-04-07 21:16 Sergei Trofimovich
2019-04-05 11:26 Mart Raudsepp
2019-04-01 19:42 Pacho Ramos
2019-03-23 11:01 Mart Raudsepp
2018-12-05 14:07 Mart Raudsepp
2018-12-05  7:34 Mikle Kolyada
2018-12-05  7:07 Mikle Kolyada
2018-12-04 16:27 Mikle Kolyada
2018-12-02 14:29 Mikle Kolyada
2018-12-02 10:12 Mikle Kolyada
2018-10-07 15:45 Mart Raudsepp
2018-07-25 22:08 Mart Raudsepp
2018-05-29 12:29 Mikle Kolyada
2018-05-04 20:46 Markus Meier
2018-04-26 17:15 Thomas Deutschmann
2018-01-19  7:52 Gilles Dartiguelongue
2017-10-30 22:26 Mart Raudsepp
2017-09-03  1:46 Mike Gilbert
2017-06-26  8:37 Alexis Ballier
2017-02-24 21:29 Michael Weber
2017-02-24 14:07 Agostino Sarubbo
2017-01-26 10:56 Mart Raudsepp
2016-12-06 20:45 Markus Meier
2016-12-05 13:52 Pacho Ramos
2016-12-05 13:52 Pacho Ramos
2016-09-17 14:55 Gilles Dartiguelongue
2016-09-17 13:51 Pacho Ramos
2016-07-03 11:42 Pacho Ramos
2016-07-03 11:42 Pacho Ramos
2015-11-19 10:04 Agostino Sarubbo
2015-11-13  9:12 Agostino Sarubbo
2015-11-12 11:07 Agostino Sarubbo
2015-11-11  8:20 Agostino Sarubbo
2015-11-10 17:02 Agostino Sarubbo
2015-11-07 12:27 Pacho Ramos
2015-11-07 12:27 Pacho Ramos
2015-09-28  4:44 Jeroen Roovers
2015-09-07 21:55 Mikle Kolyada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1651171261.70b51935bcbe52b25c24ee757b4bdc1c988b8fd6.mattst88@gentoo \
    --to=mattst88@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox