Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/openrc-settingsd/
Date: Sun, 10 Mar 2019 19:30:02
Message-Id: 1552246083.6d085b7f5b08996cb873ffe302728bbbf5c45269.pacho@gentoo
1 commit: 6d085b7f5b08996cb873ffe302728bbbf5c45269
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 10 19:28:03 2019 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 10 19:28:03 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d085b7f
7
8 app-admin/openrc-settingsd: Fix init.d header, use /run instead of /var/run
9
10 Closes: https://bugs.gentoo.org/670534
11 Package-Manager: Portage-2.3.62, Repoman-2.3.12
12 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
13
14 .../openrc-settingsd-1.0.1-r1.ebuild | 57 ++++++++++++++++++++++
15 1 file changed, 57 insertions(+)
16
17 diff --git a/app-admin/openrc-settingsd/openrc-settingsd-1.0.1-r1.ebuild b/app-admin/openrc-settingsd/openrc-settingsd-1.0.1-r1.ebuild
18 new file mode 100644
19 index 00000000000..ffe29605f1f
20 --- /dev/null
21 +++ b/app-admin/openrc-settingsd/openrc-settingsd-1.0.1-r1.ebuild
22 @@ -0,0 +1,57 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +DESCRIPTION="System settings D-Bus service for OpenRC"
29 +HOMEPAGE="https://gitweb.gentoo.org/proj/openrc-settingsd.git"
30 +SRC_URI="https://dev.gentoo.org/~tetromino/distfiles/${PN}/${P}.tar.xz"
31 +
32 +LICENSE="GPL-2+"
33 +SLOT="0"
34 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
35 +IUSE="systemd"
36 +
37 +COMMON_DEPEND="
38 + >=dev-libs/glib-2.30:2
39 + dev-libs/libdaemon:0=
40 + sys-apps/dbus
41 + sys-apps/openrc:=
42 + sys-auth/polkit
43 +"
44 +RDEPEND="${COMMON_DEPEND}
45 + systemd? ( >=sys-apps/systemd-197 )
46 + !systemd? ( sys-auth/nss-myhostname !sys-apps/systemd )
47 +"
48 +DEPEND="${COMMON_DEPEND}
49 + dev-util/gdbus-codegen
50 + virtual/pkgconfig
51 +"
52 +
53 +src_prepare() {
54 + default
55 + sed -i -e 's:/sbin/runscript:/sbin/openrc-run:g' data/init.d/openrc-settingsd.in || die
56 +}
57 +
58 +src_configure() {
59 + econf \
60 + --with-pidfile="${EPREFIX}"/run/openrc-settingsd.pid
61 +}
62 +
63 +src_install() {
64 + default
65 + if use systemd; then
66 + # Avoid file collision with systemd
67 + rm -vr "${ED}"/usr/share/{dbus-1,polkit-1} "${ED}"/etc/dbus-1 || die "rm failed"
68 + fi
69 +}
70 +
71 +pkg_postinst() {
72 + if use systemd; then
73 + elog "You installed ${PN} with USE=systemd. In this mode,"
74 + elog "${PN} will not start via simple dbus activation, so you"
75 + elog "will have to manually enable it as an rc service:"
76 + elog " # /etc/init.d/openrc-settingsd start"
77 + elog " # rc-update add openrc-settingsd default"
78 + fi
79 +}