Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/accountsservice/, sys-apps/accountsservice/files/
Date: Sun, 30 Jan 2022 20:21:19
Message-Id: 1643574067.fdb1aa0a21049e3372f2af4cf56aa0c82fbd5beb.mattst88@gentoo
1 commit: fdb1aa0a21049e3372f2af4cf56aa0c82fbd5beb
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 30 19:55:09 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 30 20:21:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdb1aa0a
7
8 sys-apps/accountsservice: Version bump to 22.04.62
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 sys-apps/accountsservice/Manifest | 1 +
13 .../accountsservice-22.04.62.ebuild | 86 ++++++++++++++++++++++
14 ...ountsservice-22.04.62-gentoo-system-users.patch | 58 +++++++++++++++
15 3 files changed, 145 insertions(+)
16
17 diff --git a/sys-apps/accountsservice/Manifest b/sys-apps/accountsservice/Manifest
18 index d02ee74804b3..f27b260d69e7 100644
19 --- a/sys-apps/accountsservice/Manifest
20 +++ b/sys-apps/accountsservice/Manifest
21 @@ -1 +1,2 @@
22 DIST accountsservice-0.6.55.tar.xz 97972 BLAKE2B aba3adfeb53e64455ce8e672b9db754bae4af6b4de0823cc021d0311a381ec40af04371e78f7c84eab7fb72356b26e22db78aad0343d57f65ea71a7742b51fc7 SHA512 c12e6a8e80f9b087f97238da4734d2d3a14a7c5cbd870a32a04b00116f176c818c39fb886f6dc72c3e93c136b0c2074ddf8f77e20431fa3bd54f138bea9d262d
23 +DIST accountsservice-22.04.62.tar.xz 101740 BLAKE2B b0514e2160560816fa64688072c0534ad6375ef699459e24a083f738fe8388c2f13b2ea37acbb50c64b9823fc5391356deddfd964e22d9db722bfe6816009cb8 SHA512 4d37b09c1cb1b55dc474cb76c53cbf0a3172bb0e6a0782405c0c09b9680ee3ac02103dfd57777bf131649de2ad0ebc8063362fa7ca18edfd2cb6d2a38a886900
24
25 diff --git a/sys-apps/accountsservice/accountsservice-22.04.62.ebuild b/sys-apps/accountsservice/accountsservice-22.04.62.ebuild
26 new file mode 100644
27 index 000000000000..cc2ca7bb4783
28 --- /dev/null
29 +++ b/sys-apps/accountsservice/accountsservice-22.04.62.ebuild
30 @@ -0,0 +1,86 @@
31 +# Copyright 2011-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +inherit meson python-any-r1 systemd
37 +
38 +DESCRIPTION="D-Bus interfaces for querying and manipulating user account information"
39 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/AccountsService/"
40 +SRC_URI="https://www.freedesktop.org/software/${PN}/${P}.tar.xz"
41 +
42 +LICENSE="GPL-3+"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
45 +
46 +IUSE="doc elogind gtk-doc +introspection selinux systemd test"
47 +RESTRICT="!test? ( test )"
48 +REQUIRED_USE="^^ ( elogind systemd )"
49 +
50 +CDEPEND="
51 + >=dev-libs/glib-2.63.5:2
52 + sys-auth/polkit
53 + virtual/libcrypt:=
54 + elogind? ( >=sys-auth/elogind-229.4 )
55 + introspection? ( >=dev-libs/gobject-introspection-0.9.12:= )
56 + systemd? ( >=sys-apps/systemd-186:0= )
57 +"
58 +DEPEND="${CDEPEND}"
59 +BDEPEND="
60 + dev-libs/libxslt
61 + dev-util/gdbus-codegen
62 + sys-devel/gettext
63 + virtual/pkgconfig
64 + doc? (
65 + app-text/docbook-xml-dtd:4.1.2
66 + app-text/xmlto
67 + )
68 + gtk-doc? (
69 + dev-util/gtk-doc
70 + app-text/docbook-xml-dtd:4.3
71 + )
72 + test? (
73 + $(python_gen_any_dep '
74 + dev-python/python-dbusmock[${PYTHON_USEDEP}]
75 + ')
76 + )
77 +"
78 +RDEPEND="${CDEPEND}
79 + selinux? ( sec-policy/selinux-accountsd )
80 +"
81 +
82 +PATCHES=(
83 + "${FILESDIR}"/${PN}-22.04.62-gentoo-system-users.patch
84 +)
85 +
86 +python_check_deps() {
87 + if use test; then
88 + has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]"
89 + fi
90 +}
91 +
92 +src_configure() {
93 + local emesonargs=(
94 + --localstatedir="${EPREFIX}/var"
95 + -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
96 + -Dadmin_group="wheel"
97 + $(meson_use elogind)
98 + $(meson_use introspection)
99 + $(meson_use doc docbook)
100 + $(meson_use gtk-doc gtk_doc)
101 + -Dvapi=false
102 + )
103 + meson_src_configure
104 +}
105 +
106 +src_install() {
107 + meson_src_install
108 +
109 + # https://gitlab.freedesktop.org/accountsservice/accountsservice/-/issues/90
110 + if use doc; then
111 + mv "${ED}/usr/share/doc/${PN}" "${ED}/usr/share/doc/${PF}" || die
112 + fi
113 +
114 + # This directories are created at runtime when needed
115 + rm -r "${ED}"/var/lib || die
116 +}
117
118 diff --git a/sys-apps/accountsservice/files/accountsservice-22.04.62-gentoo-system-users.patch b/sys-apps/accountsservice/files/accountsservice-22.04.62-gentoo-system-users.patch
119 new file mode 100644
120 index 000000000000..d65fa2f89d8a
121 --- /dev/null
122 +++ b/sys-apps/accountsservice/files/accountsservice-22.04.62-gentoo-system-users.patch
123 @@ -0,0 +1,58 @@
124 +From 0db673b94a6031640ae5faa3b79c4a1fea078350 Mon Sep 17 00:00:00 2001
125 +From: Matt Turner <mattst88@×××××.com>
126 +Date: Sun, 30 Jan 2022 12:00:09 -0800
127 +Subject: [PATCH] Add more users
128 +
129 +---
130 + src/user-classify.c | 35 ++++++++++++++++++++++++++++++++++-
131 + 1 file changed, 34 insertions(+), 1 deletion(-)
132 +
133 +diff --git a/src/user-classify.c b/src/user-classify.c
134 +index 9224905..70f1877 100644
135 +--- a/src/user-classify.c
136 ++++ b/src/user-classify.c
137 +@@ -52,7 +52,40 @@ static const char *default_excludes[] = {
138 + "at",
139 + "gdm",
140 + "gnome-initial-setup",
141 +- "git"
142 ++ "git",
143 ++ /* Additional Gentoo system users with non-trivial login shell */
144 ++ "amanda",
145 ++ "backuppc",
146 ++ "drqueue",
147 ++ "firebird",
148 ++ "flexlm",
149 ++ "foldingathome",
150 ++ "geneweb",
151 ++ "gnump3d",
152 ++ "hacluster",
153 ++ "hg",
154 ++ "hsqldb",
155 ++ "infinote",
156 ++ "jffnms",
157 ++ "klive",
158 ++ "mailman",
159 ++ "mpd",
160 ++ "mythtv",
161 ++ "nagios",
162 ++ "nx",
163 ++ "oneadmin",
164 ++ "openvpn",
165 ++ "p2p",
166 ++ "phxd",
167 ++ "resin",
168 ++ "rplayd",
169 ++ "scponly",
170 ++ "secoff",
171 ++ "tinyproxy",
172 ++ "ttrssd",
173 ++ "vboxguest",
174 ++ "vdr",
175 ++ "vdradmin",
176 + };
177 +
178 + static gboolean
179 +--
180 +2.34.1
181 +