Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sys-auth/elogind/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DIST elogind-246.9.1.tar.gz 1534991 SHA512 b409568630ac20c1e984d9389237533e67ce4ad0fe0e0d47ad3fd943e579971412bcbdb922f2929bc5e9f26198647d3436beadbde0bfed4ae730107611a69e48
DIST elogind-255.17-36917dd.tar.gz 2183919 BLAKE2B b7e16229844dba73d62388cd451b8f346348e71079e32bae699b9f73e71e40cc997ea0cbb99593ec401db48c54cd7b2ca84a813db60de2e4d0ae1e95062bd48a SHA512 ca897ed6cb779fdacb4d1bd81870353efc7762793c9fee9d5de3f18e81a1dd160d422f9199d1ea7acd345ff1459c4e948c04782b0ef40dfdab2908227c5c14d4
DIST elogind-255.22-96caf03.tar.gz 2139964 BLAKE2B 271a91efa24657a713ac370e5c11b59806fb6f87406888cfa8f21722103766294176d372adc15f5fe802ae59442047142ebf630dcf4c8b395907007475465812 SHA512 775a24511cc1a2170719e42c26beed8c49a59d62b2556178e92386cbfc7d0ec5e107f4382c8505d529cdfadc1933fc3cfa45992767f73a6563295eb3e80a3fc1
DIST elogind-257.14-e02aca5.tar.gz 2639824 BLAKE2B c768fd50fb61cdea9bc4d92d780e3a7b34db9c0b820b28d722de1dc6037afe98931736b9b6c800800caba0b7663a473c0ce98acfde4178e471e1661e07bc81ac SHA512 38cf5a88bd21ab0643facef026d3d3a13dafb9928fc09f77e29c38bc63d99625a351b14cf1b18e9889d7e395b683ca186a9840e4f4ca6ea60858949e6d7a002c
121 changes: 121 additions & 0 deletions sys-auth/elogind/elogind-257.14.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# Distributed under the terms of the GNU General Public License v2
# Autogen by MARK Devkit

EAPI=7
PYTHON_COMPAT=( python3+ )
inherit meson pam udev python-any-r1 xdg-utils

DESCRIPTION="The systemd project's "logind", extracted to a standalone package"
HOMEPAGE="https://github.com/elogind/elogind"
SRC_URI="https://api.github.com/repos/elogind/elogind/tarball/refs/tags/v257.14 -> elogind-257.14-e02aca5.tar.gz"
LICENSE="GPL-2.0"
SLOT="0"
KEYWORDS="*"
PATCHES=(
"${FILESDIR}/elogind-257.13-nodocs.patch"
)
IUSE="+acl audit cgroup-hybrid debug doc +pam +policykit"
BDEPEND="app-text/docbook-xml-dtd:4.2
app-text/docbook-xml-dtd:4.5
app-text/docbook-xsl-stylesheets
dev-util/gperf
dev-util/intltool
virtual/pkgconfig

"
RDEPEND="audit? ( sys-process/audit )
sys-apps/util-linux
sys-libs/libcap
virtual/libudev:=
acl? ( sys-apps/acl )
pam? ( sys-libs/pam )
!sys-apps/systemd

"
DEPEND="${RDEPEND}
"
PDEPEND="sys-apps/dbus
policykit? ( sys-auth/polkit )

"

post_src_unpack() {
mv elogind-elogind-* ${S}
}


src_prepare() {
default
xdg_environment_reset
sed -e "s/#RemoveIPC=yes/RemoveIPC=no/" \
-i src/login/logind.conf.in || die

}
src_configure() {
if use cgroup-hybrid; then
cgroupmode="hybrid"
else
cgroupmode="unified"
fi
python_setup
EMESON_BUILDTYPE="$(usex debug debug release)"
local emesonargs=(
-Ddocdir="${EPREFIX}/usr/share/doc/${PF}"
-Dhtmldir="${EPREFIX}/usr/share/doc/${PF}/html"
-Dudevrulesdir="${EPREFIX}$(get_udevdir)"/rules.d
--libexecdir="lib/elogind"
--localstatedir="${EPREFIX}"/var
-Dbashcompletiondir="${EPREFIX}/usr/share/bash-completion/completions"
-Dman=auto
-Dsmack=true
-Dcgroup-controller=openrc
-Ddefault-hierarchy=${cgroupmode}
-Ddefault-kill-user-processes=false
-Dacl=$(usex acl enabled disabled)
-Daudit=$(usex audit enabled disabled)
-Dhtml=$(usex doc auto disabled)
-Dpam=$(usex pam enabled disabled)
-Dpamlibdir="$(getpam_mod_dir)"
-Dselinux=disabled
-Dtests=false
-Dutmp=true
-Dmode=release
-Dhalt-path="${EPREFIX}/sbin/halt"
-Dkexec-path="${EPREFIX}/usr/sbin/kexec"
-Dnologin-path="${EPREFIX}/sbin/nologin"
-Dpoweroff-path="${EPREFIX}/sbin/poweroff"
-Dreboot-path="${EPREFIX}/sbin/reboot"
)
meson_src_configure
}
src_install() {
meson_src_install
keepdir /var/lib/elogind
newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
newconfd "${FILESDIR}"/${PN}.conf ${PN}
}
pkg_postinst() {
udev_reload
local file files
# find custom hooks excluding known (nvidia-drivers, sys-power/tlp)
if [[ -d "${EROOT}"/$(get_libdir)/elogind/system-sleep ]]; then
readarray -t files < <(find "${EROOT}"/$(get_libdir)/elogind/system-sleep/ \
-type f \( -not -iname ".keep_dir" -a \
-not -iname "nvidia" -a \
-not -iname "49-tlp-sleep" \) || die)
fi
if [[ ${#files[@]} -gt 0 ]]; then
ewarn "*** Custom hooks in obsolete path detected ***"
for file in "${files[@]}"; do
ewarn " ${file}"
done
ewarn "Move these custom hooks to ${EROOT}/etc/elogind/system-sleep/ instead."
fi
}
pkg_postrm() {
udev_reload
}



# vim: filetype=ebuild
18 changes: 18 additions & 0 deletions sys-auth/elogind/files/elogind-257.13-nodocs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- a/meson.build 2026-05-15 03:17:27.619574177 -0300
+++ b/meson.build 2026-05-15 03:18:38.977228952 -0300
@@ -3325,14 +3325,12 @@
#if 0 /// irrelevant for elogind
# 'docs/DISTRO_PORTING.md',
#endif // 0
- 'docs/ENVIRONMENT.md',
#if 0 /// irrelevant for elogind
# 'docs/HACKING.md',
# 'docs/TRANSIENT-SETTINGS.md',
# 'docs/TRANSLATORS.md',
#endif // 0
- 'docs/UIDS-GIDS.md',
- install_dir : docdir)
+ install_dir : docdir)

#if 0 /// irrelevant for elogind
# install_subdir('LICENSES',