* [gentoo-commits] proj/kde:master commit in: sys-auth/elogind/, sys-auth/elogind/files/
@ 2016-01-05 14:25 Alexey Shvetsov
0 siblings, 0 replies; 4+ messages in thread
From: Alexey Shvetsov @ 2016-01-05 14:25 UTC (permalink / raw
To: gentoo-commits
commit: e9100e49a23903ccc259479bc89579f7d190eca3
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 5 14:24:32 2016 +0000
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Tue Jan 5 14:24:54 2016 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=e9100e49
sys-auth/elogind: initial ebuild
Quick and dirty ebuild for elogind. Should work with plasma on wayland
Package-Manager: portage-2.2.26
sys-auth/elogind/elogind-219.12.ebuild | 32 ++++++++++++++++++++++++++++++++
sys-auth/elogind/files/elogind-lrt.patch | 10 ++++++++++
sys-auth/elogind/metadata.xml | 5 +++++
3 files changed, 47 insertions(+)
diff --git a/sys-auth/elogind/elogind-219.12.ebuild b/sys-auth/elogind/elogind-219.12.ebuild
new file mode 100644
index 0000000..df20270
--- /dev/null
+++ b/sys-auth/elogind/elogind-219.12.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools pam
+
+DESCRIPTION="The systemd project's logind, extracted to a standalone package"
+HOMEPAGE="https://github.com/andywingo/elogind"
+SRC_URI="https://github.com/andywingo/elogind/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="pam policykit"
+
+DEPEND="
+ sys-libs/libcap
+ sys-apps/util-linux
+ sys-apps/dbus
+ pam? ( sys-libs/pam )
+ policykit? ( sys-auth/polkit )
+ "
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-lrt.patch" )
+
+src_prepare() {
+ epatch ${PATCHES[@]}
+ eautoreconf
+}
diff --git a/sys-auth/elogind/files/elogind-lrt.patch b/sys-auth/elogind/files/elogind-lrt.patch
new file mode 100644
index 0000000..e4a4225
--- /dev/null
+++ b/sys-auth/elogind/files/elogind-lrt.patch
@@ -0,0 +1,10 @@
+--- Makefile.am 2015-09-01 14:19:31.000000000 +0300
++++ Makefile.am 2016-01-05 17:18:44.834511975 +0300
+@@ -778,6 +778,7 @@
+
+ libelogind_core_la_LIBADD = \
+ $(UDEV_LIBS) \
++ -lrt \
+ libelogind-internal.la
+
+ if HAVE_ACL
diff --git a/sys-auth/elogind/metadata.xml b/sys-auth/elogind/metadata.xml
new file mode 100644
index 0000000..a23f444
--- /dev/null
+++ b/sys-auth/elogind/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>kde</herd>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] proj/kde:master commit in: sys-auth/elogind/, sys-auth/elogind/files/
@ 2016-01-05 18:27 Michael Palimaka
0 siblings, 0 replies; 4+ messages in thread
From: Michael Palimaka @ 2016-01-05 18:27 UTC (permalink / raw
To: gentoo-commits
commit: 8a04db225ddc10a5a6c6daf6bd37a11c922a6ef1
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 5 18:27:17 2016 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Tue Jan 5 18:27:17 2016 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=8a04db22
sys-auth/elogind: port to EAPI 6
Package-Manager: portage-2.2.26
sys-auth/elogind/elogind-219.12.ebuild | 16 +++++++---------
sys-auth/elogind/files/elogind-docs.patch | 19 +++++++++++++++++++
sys-auth/elogind/files/elogind-lrt.patch | 4 ++--
3 files changed, 28 insertions(+), 11 deletions(-)
diff --git a/sys-auth/elogind/elogind-219.12.ebuild b/sys-auth/elogind/elogind-219.12.ebuild
index 2ad7fbb..2ec5e67 100644
--- a/sys-auth/elogind/elogind-219.12.ebuild
+++ b/sys-auth/elogind/elogind-219.12.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI=6
inherit autotools pam
@@ -30,10 +30,14 @@ RDEPEND="${DEPEND}
policykit? ( sys-auth/polkit )
"
-PATCHES=( "${FILESDIR}/${PN}-lrt.patch" )
+DOCS=( NEWS README TODO )
+PATCHES=(
+ "${FILESDIR}/${PN}-docs.patch"
+ "${FILESDIR}/${PN}-lrt.patch"
+)
src_prepare() {
- epatch ${PATCHES[@]}
+ default
eautoreconf
}
@@ -46,9 +50,3 @@ src_configure() {
$(use_enable seccomp) \
$(use_enable selinux)
}
-
-src_install() {
- default
-
- rm -r "${D}"/usr/share/doc/elogind/ || die
-}
diff --git a/sys-auth/elogind/files/elogind-docs.patch b/sys-auth/elogind/files/elogind-docs.patch
new file mode 100644
index 0000000..4763be2
--- /dev/null
+++ b/sys-auth/elogind/files/elogind-docs.patch
@@ -0,0 +1,19 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -253,16 +253,6 @@
+ dist_bashcompletion_DATA =
+ dist_zshcompletion_DATA =
+
+-dist_doc_DATA = \
+- README \
+- NEWS \
+- LICENSE.LGPL2.1 \
+- LICENSE.GPL2 \
+- LICENSE.MIT \
+- src/libelogind/sd-bus/PORTING-DBUS1 \
+- src/libelogind/sd-bus/DIFFERENCES \
+- src/libelogind/sd-bus/GVARIANT-SERIALIZATION
+-
+ @INTLTOOL_POLICY_RULE@
+
+ # ------------------------------------------------------------------------------
diff --git a/sys-auth/elogind/files/elogind-lrt.patch b/sys-auth/elogind/files/elogind-lrt.patch
index e4a4225..19055fa 100644
--- a/sys-auth/elogind/files/elogind-lrt.patch
+++ b/sys-auth/elogind/files/elogind-lrt.patch
@@ -1,5 +1,5 @@
---- Makefile.am 2015-09-01 14:19:31.000000000 +0300
-+++ Makefile.am 2016-01-05 17:18:44.834511975 +0300
+--- a/Makefile.am
++++ b/Makefile.am
@@ -778,6 +778,7 @@
libelogind_core_la_LIBADD = \
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] proj/kde:master commit in: sys-auth/elogind/, sys-auth/elogind/files/
@ 2016-06-16 12:01 Michael Palimaka
0 siblings, 0 replies; 4+ messages in thread
From: Michael Palimaka @ 2016-06-16 12:01 UTC (permalink / raw
To: gentoo-commits
commit: f0f302d5e88ff226747a84b927cf67ab59929f5f
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 16 11:55:05 2016 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Jun 16 12:01:28 2016 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=f0f302d5
sys-auth/elogind: backport patch from upstream to solve an issue with sessions not being saved
Package-Manager: portage-2.3.0_rc1
...d-219.12-r1.ebuild => elogind-219.12-r2.ebuild} | 1 +
.../elogind/files/elogind-219.12-session.patch | 45 ++++++++++++++++++++++
2 files changed, 46 insertions(+)
diff --git a/sys-auth/elogind/elogind-219.12-r1.ebuild b/sys-auth/elogind/elogind-219.12-r2.ebuild
similarity index 97%
rename from sys-auth/elogind/elogind-219.12-r1.ebuild
rename to sys-auth/elogind/elogind-219.12-r2.ebuild
index b880f9f..d613a2b 100644
--- a/sys-auth/elogind/elogind-219.12-r1.ebuild
+++ b/sys-auth/elogind/elogind-219.12-r2.ebuild
@@ -41,6 +41,7 @@ DOCS=( NEWS README TODO )
PATCHES=(
"${FILESDIR}/${PN}-docs.patch"
"${FILESDIR}/${PN}-lrt.patch"
+ "${FILESDIR}/${P}-session.patch"
)
src_prepare() {
diff --git a/sys-auth/elogind/files/elogind-219.12-session.patch b/sys-auth/elogind/files/elogind-219.12-session.patch
new file mode 100644
index 0000000..82cbebd
--- /dev/null
+++ b/sys-auth/elogind/files/elogind-219.12-session.patch
@@ -0,0 +1,45 @@
+From b5c5dd2ad43a3bf4fa0fb21139f8d16959b5d14e Mon Sep 17 00:00:00 2001
+From: Andy Wingo <wingo@pobox.com>
+Date: Sun, 6 Mar 2016 16:56:33 +0100
+Subject: [PATCH] Fixes to user and session saving
+
+* src/login/logind-dbus.c (method_create_session): No need to save
+ session here, as session_send_create_reply will do it.
+* src/login/logind-session-dbus.c (session_send_create_reply): On the
+ other hand we do need to save the user here, so the file marks them as
+ being active.
+---
+ src/login/logind-dbus.c | 2 --
+ src/login/logind-session-dbus.c | 5 +++--
+ 2 files changed, 3 insertions(+), 4 deletions(-)
+
+diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
+index 5e6952d..6f7e569 100644
+--- a/src/login/logind-dbus.c
++++ b/src/login/logind-dbus.c
+@@ -801,8 +801,6 @@ static int method_create_session(sd_bus *bus, sd_bus_message *message, void *use
+ if (r < 0)
+ goto fail;
+
+- session_save(session);
+-
+ return 1;
+
+ fail:
+diff --git a/src/login/logind-session-dbus.c b/src/login/logind-session-dbus.c
+index f71798b..337bbbb 100644
+--- a/src/login/logind-session-dbus.c
++++ b/src/login/logind-session-dbus.c
+@@ -721,9 +721,10 @@ int session_send_create_reply(Session *s, sd_bus_error *error) {
+ if (fifo_fd < 0)
+ return fifo_fd;
+
+- /* Update the session state file before we notify the client
+- * about the result. */
++ /* Update the session and user state files before we notify
++ * the client about the result. */
+ session_save(s);
++ user_save(s->user);
+
+ p = session_bus_path(s);
+ if (!p)
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] proj/kde:master commit in: sys-auth/elogind/, sys-auth/elogind/files/
@ 2017-05-27 7:30 Andreas Sturmlechner
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2017-05-27 7:30 UTC (permalink / raw
To: gentoo-commits
commit: 7a1466bb0e3986a3a8f9f8251787f9243b94c3c9
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat May 27 07:29:07 2017 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat May 27 07:29:07 2017 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=7a1466bb
sys-auth/elogind: Switch to v229-stable branch
Package-Manager: Portage-2.3.5, Repoman-2.3.1
.../elogind/{elogind-225.9999.ebuild => elogind-229.9999.ebuild} | 6 ++----
.../{elogind-225.9999-docs.patch => elogind-229.9999-docs.patch} | 0
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/sys-auth/elogind/elogind-225.9999.ebuild b/sys-auth/elogind/elogind-229.9999.ebuild
similarity index 96%
rename from sys-auth/elogind/elogind-225.9999.ebuild
rename to sys-auth/elogind/elogind-229.9999.ebuild
index b0ac9a87d2..06af60d1e8 100644
--- a/sys-auth/elogind/elogind-225.9999.ebuild
+++ b/sys-auth/elogind/elogind-229.9999.ebuild
@@ -8,7 +8,7 @@ inherit autotools git-r3 linux-info pam udev
DESCRIPTION="The systemd project's logind, extracted to a standalone package"
HOMEPAGE="https://github.com/elogind/elogind"
EGIT_REPO_URI="https://github.com/elogind/elogind.git"
-EGIT_BRANCH="dev_v226-r1"
+EGIT_BRANCH="v229-stable"
LICENSE="CC0-1.0 LGPL-2.1+ public-domain"
SLOT="0"
@@ -38,9 +38,7 @@ DEPEND="${COMMON_DEPEND}
"
PDEPEND="policykit? ( sys-auth/polkit )"
-PATCHES=(
- "${FILESDIR}/${P}-docs.patch"
-)
+PATCHES=( "${FILESDIR}/${P}-docs.patch" )
pkg_setup() {
local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SECURITY_SMACK
diff --git a/sys-auth/elogind/files/elogind-225.9999-docs.patch b/sys-auth/elogind/files/elogind-229.9999-docs.patch
similarity index 100%
rename from sys-auth/elogind/files/elogind-225.9999-docs.patch
rename to sys-auth/elogind/files/elogind-229.9999-docs.patch
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-05-27 7:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-05 14:25 [gentoo-commits] proj/kde:master commit in: sys-auth/elogind/, sys-auth/elogind/files/ Alexey Shvetsov
-- strict thread matches above, loose matches on Subject: below --
2016-01-05 18:27 Michael Palimaka
2016-06-16 12:01 Michael Palimaka
2017-05-27 7:30 Andreas Sturmlechner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox