From fc4ad6e568738af8995c2e87896c671c39eb8c72 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 28 Jan 2025 22:42:59 +0000 Subject: gentoo auto-resync : 28:01:2025 - 22:42:58 --- sys-auth/elogind/Manifest | 2 +- sys-auth/elogind/elogind-255.5-r1.ebuild | 195 ----------------------------- sys-auth/elogind/elogind-255.5-r2.ebuild | 202 +++++++++++++++++++++++++++++++ 3 files changed, 203 insertions(+), 196 deletions(-) delete mode 100644 sys-auth/elogind/elogind-255.5-r1.ebuild create mode 100644 sys-auth/elogind/elogind-255.5-r2.ebuild (limited to 'sys-auth/elogind') diff --git a/sys-auth/elogind/Manifest b/sys-auth/elogind/Manifest index ee020d5070b1..e5637662fb0d 100644 --- a/sys-auth/elogind/Manifest +++ b/sys-auth/elogind/Manifest @@ -18,5 +18,5 @@ AUX elogind.init-r1 503 BLAKE2B 7e54688c91f78b46411edff04dd8544dea778864d34ec00a DIST elogind-252.9.tar.gz 1922777 BLAKE2B dd566125e407b3479a44b007890f97c9c87a325b3fed2d3505499d2163f113affd998e14b1c1fc50b9b86b0d155b51dae344dcc1cddafb6a48c631d0a0f00c9a SHA512 eed620cbc2f03bfeae6a80c9a421c21d3293fa40adffb96c7e4d86508c06712041f6623fb2bac15ecbb85faca4b5674ea6423b3067840809fb27d023fd9e5ffd DIST elogind-255.5.tar.gz 2127126 BLAKE2B 395352fc24bc815d1e39c2d5722eb09c2e3378873e2ea4173d8c209cd66c28a9b94ebe62ab3efbd5dccd822d99b86a6c1a871620adefb1215cb6d4ceee78a9f9 SHA512 dd9494062ef18c3c4cddbaf70b394bf90f6da3ce49f85312e99eabde54b2fcdb5cfdde1bcbaa661031afc72853e9b138dae336e1caed72e927bfd61c8cb22895 EBUILD elogind-252.9-r2.ebuild 5238 BLAKE2B 2531e7ea6a230dc615261f2f0b8741de33b6f89d6cff52b1c792564408dc0f2bbe17835a0a7f00bf8d21951b5e0f8ef82045d6f82652869c7ec62832f8e5ee43 SHA512 6a912423c866173f6c961b628eb08f3dd84201926724e15c0642371026b3ee9105d5e39b7ec445dd1a1225e08c01a6f81b55b7534e007f1786729b0548267a37 -EBUILD elogind-255.5-r1.ebuild 5579 BLAKE2B 3f81c75e98e1d3d4822c92308e353743d29cae4bc802133374307deb3dd43cce77e44b3f4ef481cb107428b2b05696c00070b96b4441bcf3583d5312ba87c336 SHA512 433e182232ff06225432a9a377a4c2ce019d653a0bb167373cf828c5bdfe6f15f7dd1d408e266e4b772520164abc57c09471f227163449ccba6f018397a87277 +EBUILD elogind-255.5-r2.ebuild 5858 BLAKE2B f00d2ee61ae47bda432941dd56f4a0a04006ce7c36caf4fcdaad45496a2e77f0712ca879a745298f1a2324031106fc7fe1cdbce528cb70b8cc30b4bf8937ef48 SHA512 c1a49a3003a96f0b080f2a53bd086f20848805025ed3e9ab4b4099edbbbb805f07a3b4fc6bef816af56f695b67d5c475bf7b83f3523a811f256f68948de931c9 MISC metadata.xml 416 BLAKE2B 5cce321b2ee1ee2893240ecc14b2e3578068e8ae7b94b4fcc641cef0298f7010492a66f4395d5811c62bf32d1b3b939e46bf8c9a7109f185f8bbb84d9ce9d607 SHA512 6f85a23ab09a92c489890397049fcff546be538b4484b5116cd4e5b0a4982a4cc0c587f47ca18c150bcbc5911ef879292fbd142ca1f381254d6ecea41358de6b diff --git a/sys-auth/elogind/elogind-255.5-r1.ebuild b/sys-auth/elogind/elogind-255.5-r1.ebuild deleted file mode 100644 index 0e69dbb71e5c..000000000000 --- a/sys-auth/elogind/elogind-255.5-r1.ebuild +++ /dev/null @@ -1,195 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..13} ) - -if [[ ${PV} = *9999* ]]; then - EGIT_BRANCH="v255-stable" - EGIT_REPO_URI="https://github.com/elogind/elogind.git" - inherit git-r3 -else - SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" -fi - -inherit linux-info meson pam python-any-r1 udev xdg-utils - -DESCRIPTION="The systemd project's logind, extracted to a standalone package" -HOMEPAGE="https://github.com/elogind/elogind" - -LICENSE="CC0-1.0 LGPL-2.1+ public-domain" -SLOT="0" -IUSE="+acl audit cgroup-hybrid debug doc +pam +policykit selinux test" -RESTRICT="!test? ( test )" - -BDEPEND=" - app-text/docbook-xml-dtd:4.2 - app-text/docbook-xml-dtd:4.5 - app-text/docbook-xsl-stylesheets - dev-util/gperf - virtual/pkgconfig - $(python_gen_any_dep 'dev-python/jinja2[${PYTHON_USEDEP}]') - $(python_gen_any_dep 'dev-python/lxml[${PYTHON_USEDEP}]') -" -DEPEND=" - audit? ( sys-process/audit ) - sys-apps/util-linux - sys-libs/libcap - virtual/libudev:= - acl? ( sys-apps/acl ) - pam? ( sys-libs/pam ) - selinux? ( sys-libs/libselinux ) -" -RDEPEND="${DEPEND} - !sys-apps/systemd -" -PDEPEND=" - sys-apps/dbus - policykit? ( sys-auth/polkit ) -" - -DOCS=( README.md ) - -PATCHES=( - # all downstream patches: - "${FILESDIR}/${PN}-252.9-nodocs.patch" - "${FILESDIR}/${P}-part-revert-header-cleanup.patch" # bug 939673 - # See also: - # https://github.com/elogind/elogind/issues/285 - "${FILESDIR}/${P}-revert-s2idle.patch" # bug 939042 - # See also: https://github.com/systemd/systemd/issues/10103 - "${FILESDIR}/${P}-no-fchmod_and_chown-tty.patch" # thx to Devuan -) - -python_check_deps() { - python_has_version "dev-python/jinja2[${PYTHON_USEDEP}]" && - python_has_version "dev-python/lxml[${PYTHON_USEDEP}]" -} - -pkg_setup() { - local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SIGNALFD ~TIMERFD" - - use kernel_linux && linux-info_pkg_setup -} - -src_prepare() { - default - xdg_environment_reset - - # don't cleanup /dev/shm/ on logout on logout - # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949698 - 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=$(usex selinux enabled disabled) - -Dtests=$(usex test true false) - -Dutmp=$(usex elibc_musl false true) - -Dmode=release - ) - - 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 - if ! use pam; then - ewarn "${PN} will not be managing user logins/seats without USE=\"pam\"!" - ewarn "In other words, it will be useless for most applications." - ewarn - fi - if ! use policykit; then - ewarn "loginctl will not be able to perform privileged operations without" - ewarn "USE=\"policykit\"! That means e.g. no suspend or hibernate." - ewarn - fi - if [[ "$(rc-config list boot | grep elogind)" != "" ]]; then - elog "elogind is currently started from boot runlevel." - elif [[ "$(rc-config list default | grep elogind)" != "" ]]; then - ewarn "elogind is currently started from default runlevel." - ewarn "Please remove elogind from the default runlevel and" - ewarn "add it to the boot runlevel by:" - ewarn "# rc-update del elogind default" - ewarn "# rc-update add elogind boot" - else - elog "elogind is currently not started from any runlevel." - elog "You may add it to the boot runlevel by:" - elog "# rc-update add elogind boot" - elog - elog "Alternatively, you can leave elogind out of any" - elog "runlevel. It will then be started automatically" - if use pam; then - elog "when the first service calls it via dbus, or" - elog "the first user logs into the system." - else - elog "when the first service calls it via dbus." - fi - fi - - for version in ${REPLACING_VERSIONS}; do - if ver_test "${version}" -lt 252.9; then - elog "Starting with release 252.9 the sleep configuration is now done" - elog "in the /etc/elogind/sleep.conf. Should you use non-default sleep" - elog "configuration remember to migrate those to new configuration file." - fi - done - - 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 -} diff --git a/sys-auth/elogind/elogind-255.5-r2.ebuild b/sys-auth/elogind/elogind-255.5-r2.ebuild new file mode 100644 index 000000000000..3b2e117604ce --- /dev/null +++ b/sys-auth/elogind/elogind-255.5-r2.ebuild @@ -0,0 +1,202 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) + +if [[ ${PV} = *9999* ]]; then + EGIT_BRANCH="v255-stable" + EGIT_REPO_URI="https://github.com/elogind/elogind.git" + inherit git-r3 +else + SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" +fi + +inherit linux-info meson pam python-any-r1 udev xdg-utils + +DESCRIPTION="The systemd project's logind, extracted to a standalone package" +HOMEPAGE="https://github.com/elogind/elogind" + +LICENSE="CC0-1.0 LGPL-2.1+ public-domain" +SLOT="0" +IUSE="+acl audit cgroup-hybrid debug doc +pam +policykit selinux test" +RESTRICT="!test? ( test )" + +BDEPEND=" + app-text/docbook-xml-dtd:4.2 + app-text/docbook-xml-dtd:4.5 + app-text/docbook-xsl-stylesheets + dev-util/gperf + virtual/pkgconfig + $(python_gen_any_dep 'dev-python/jinja2[${PYTHON_USEDEP}]') + $(python_gen_any_dep 'dev-python/lxml[${PYTHON_USEDEP}]') +" +DEPEND=" + audit? ( sys-process/audit ) + sys-apps/util-linux + sys-libs/libcap + virtual/libudev:= + acl? ( sys-apps/acl ) + pam? ( sys-libs/pam ) + selinux? ( sys-libs/libselinux ) +" +RDEPEND="${DEPEND} + !sys-apps/systemd +" +PDEPEND=" + sys-apps/dbus + policykit? ( sys-auth/polkit ) +" + +DOCS=( README.md ) + +PATCHES=( + # all downstream patches: + "${FILESDIR}/${PN}-252.9-nodocs.patch" + "${FILESDIR}/${P}-part-revert-header-cleanup.patch" # bug 939673 + # See also: + # https://github.com/elogind/elogind/issues/285 + "${FILESDIR}/${P}-revert-s2idle.patch" # bug 939042 + # See also: https://github.com/systemd/systemd/issues/10103 + "${FILESDIR}/${P}-no-fchmod_and_chown-tty.patch" # thx to Devuan +) + +python_check_deps() { + python_has_version "dev-python/jinja2[${PYTHON_USEDEP}]" && + python_has_version "dev-python/lxml[${PYTHON_USEDEP}]" +} + +pkg_setup() { + local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SIGNALFD ~TIMERFD" + + use kernel_linux && linux-info_pkg_setup +} + +src_prepare() { + default + xdg_environment_reset + + # don't cleanup /dev/shm/ on logout on logout + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949698 + 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=$(usex selinux enabled disabled) + -Dtests=$(usex test true false) + -Dutmp=$(usex elibc_musl false true) + -Dmode=release + + # Ensure consistency between merged-usr and split-usr (bug 945965) + -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 + if ! use pam; then + ewarn "${PN} will not be managing user logins/seats without USE=\"pam\"!" + ewarn "In other words, it will be useless for most applications." + ewarn + fi + if ! use policykit; then + ewarn "loginctl will not be able to perform privileged operations without" + ewarn "USE=\"policykit\"! That means e.g. no suspend or hibernate." + ewarn + fi + if [[ "$(rc-config list boot | grep elogind)" != "" ]]; then + elog "elogind is currently started from boot runlevel." + elif [[ "$(rc-config list default | grep elogind)" != "" ]]; then + ewarn "elogind is currently started from default runlevel." + ewarn "Please remove elogind from the default runlevel and" + ewarn "add it to the boot runlevel by:" + ewarn "# rc-update del elogind default" + ewarn "# rc-update add elogind boot" + else + elog "elogind is currently not started from any runlevel." + elog "You may add it to the boot runlevel by:" + elog "# rc-update add elogind boot" + elog + elog "Alternatively, you can leave elogind out of any" + elog "runlevel. It will then be started automatically" + if use pam; then + elog "when the first service calls it via dbus, or" + elog "the first user logs into the system." + else + elog "when the first service calls it via dbus." + fi + fi + + for version in ${REPLACING_VERSIONS}; do + if ver_test "${version}" -lt 252.9; then + elog "Starting with release 252.9 the sleep configuration is now done" + elog "in the /etc/elogind/sleep.conf. Should you use non-default sleep" + elog "configuration remember to migrate those to new configuration file." + fi + done + + 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 +} -- cgit v1.2.3