commit:     fdffdd90b1facd0445d9262c2a346be9a4ec6e11
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  6 13:52:48 2023 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Tue Jun  6 13:53:04 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdffdd90

app-admin/openrc-settingsd: Version bump to 1.4.0

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

 app-admin/openrc-settingsd/Manifest                |  1 +
 .../openrc-settingsd/openrc-settingsd-1.4.0.ebuild | 62 ++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/app-admin/openrc-settingsd/Manifest 
b/app-admin/openrc-settingsd/Manifest
index b068d72b2622..f1e5b6291925 100644
--- a/app-admin/openrc-settingsd/Manifest
+++ b/app-admin/openrc-settingsd/Manifest
@@ -1,2 +1,3 @@
 DIST openrc-settingsd-v1.2.0.tar.bz2 41713 BLAKE2B 
e4630e934fc55549b3d81cc448adb35cb22cb99b898363a1113909a24acc0709d5693841a9c651b4ecf52044c3a45cc4b8207f9c9a3d0e1e8a4f85edefb23d65
 SHA512 
b1862e80454d3ca22d083f283f4ef3215dfad4da6d2aa495211fa31014c66fb6891ae87a3a1c6932944ed4c1e7100d247e80abc659f37868adcf5fce3b90385b
 DIST openrc-settingsd-v1.3.0.tar.bz2 41865 BLAKE2B 
48dbb75bfd33a0e2b6cc99ccbea4cd22db7a0dca13c665c59c73dac9eb4b65554741fc3b45028fbbe81cc014059e896a1dac8b18bf166a8fa15e4df375927a31
 SHA512 
5ef93acd1f78aa6aa6af4b0702096a30fe2fdb0ff5a20e17d680bf48c8d995a09db390fda7e16a3098e9cb3e3ce1ff13d76471cf1f0c3ccf67d3f3929a5567bb
+DIST openrc-settingsd-v1.4.0.tar.bz2 41420 BLAKE2B 
3890c65e22f1cc55aa8f067ae7d8a46de25618c7ab98acb8e01f38662da4d73f3d0d16583a0526ded3331c4fb4d80bf0b6852917ed875adfa0035d19e19219e6
 SHA512 
aa5bd4d2afb1b959c4c2d532b30d369ee0bd637010ea75adc8ca7444cdb13bf651ae4c6946141d326c8460f23ba4482c1a3f639a0b48190009a88298a17c22e3

diff --git a/app-admin/openrc-settingsd/openrc-settingsd-1.4.0.ebuild 
b/app-admin/openrc-settingsd/openrc-settingsd-1.4.0.ebuild
new file mode 100644
index 000000000000..f3ac7e0b4b11
--- /dev/null
+++ b/app-admin/openrc-settingsd/openrc-settingsd-1.4.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+DESCRIPTION="System settings D-Bus service for OpenRC"
+HOMEPAGE="https://gitlab.com/postmarketOS/openrc-settingsd/";
+SRC_URI="https://gitlab.com/postmarketOS/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2";
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="systemd"
+
+DEPEND="
+       >=dev-libs/glib-2.30:2
+       sys-apps/dbus
+       sys-auth/polkit
+       dev-libs/libdaemon:0=
+       sys-apps/openrc
+"
+RDEPEND="
+       ${DEPEND}
+       systemd? ( >=sys-apps/systemd-197 )
+       !systemd? ( sys-auth/nss-myhostname !sys-apps/systemd )
+"
+BDEPEND="
+       dev-util/gdbus-codegen
+       virtual/pkgconfig
+"
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_configure() {
+       local emesonargs=(
+               -Dopenrc=enabled
+               -Denv-update=/usr/bin/env-update
+               -Dhostname-style=gentoo
+               -Dlocale-style=gentoo
+       )
+       meson_src_configure
+}
+
+src_install() {
+       meson_src_install
+       if use systemd; then
+               # Avoid file collision with systemd
+               rm -vr "${ED}"/usr/share/{dbus-1,polkit-1} "${ED}"/etc/dbus-1 
|| die "rm failed"
+       fi
+}
+
+pkg_postinst() {
+       if use systemd; then
+               elog "You installed ${PN} with USE=systemd. In this mode,"
+               elog "${PN} will not start via simple dbus activation, so you"
+               elog "will have to manually enable it as an rc service:"
+               elog " # /etc/init.d/openrc-settingsd start"
+               elog " # rc-update add openrc-settingsd default"
+       fi
+}

Reply via email to