diff options
-rw-r--r-- | sys-auth/elogind/Manifest | 5 | ||||
-rw-r--r-- | sys-auth/elogind/elogind-252.9.ebuild | 142 | ||||
-rw-r--r-- | sys-auth/elogind/files/elogind.init | 4 |
3 files changed, 148 insertions, 3 deletions
diff --git a/sys-auth/elogind/Manifest b/sys-auth/elogind/Manifest index 075e045..4a1bd60 100644 --- a/sys-auth/elogind/Manifest +++ b/sys-auth/elogind/Manifest @@ -3,11 +3,12 @@ AUX elogind-241.1-docs.patch 855 BLAKE2B 08fc89a264ab0408c13caa059649a004b775ec2 AUX elogind-243.6-docs.patch 985 BLAKE2B 93c9f6080ccd9816fadfa2642dcf2f0109be8888073c0d9d19b0a10ce54cdb63ab0eb40063ae433c6e6cf5266804307127c0b570aa50b5d51da66040f3004afe SHA512 7239841d018dcfeb8e87c01f20599a146be25da82f4f072bd98dd1e8d25fd472473ee31e4925310ff3667025eabfb7dad9a2305f51f971873216e7a72c97efe7 AUX elogind-252-docs.patch 907 BLAKE2B c21e75964594354544861597be56dfbf48b2689a8a3df949e4afac2121a620ee19d3466d141fd1785505eaeb4df1aa4bc36fc49e84a478d9d8e6869c9dd35762 SHA512 ffd6b480ab3e39b0a24d09b87326c89b673745b2dc7998d42ee691b5410f58ac07c8926e39cba6f1d3e0856ee35e4ae2105d6467c75f2f7387740a83a2650b8c AUX elogind.conf.in 218 BLAKE2B 7ee0a72c4a628a233fdbb2d3104487859aaa7e5c4f2624e5a4eafb37ed90fb8f64349b1a8acc92e69ec618496bb7f6263b7a5d0fe15a1afe1c03f5955743f079 SHA512 2c62ab28d7db9cd52489069f80363159000385a25dd7f2afe5a03598a0b7a1f61af7c18df71f6286e72f5966e55b62a4029e30cb786dd813bb201b9e20adccd7 -AUX elogind.init 697 BLAKE2B 1aca5c19b1946c88820112fb096f0bc7e0d7e87fc692d536d8bcb6baf5d001f40740a6701c49e747d7e269c3ab386a9ad7c1da71cce20437afa9bdcb7feb8d83 SHA512 40c999f0da7500f2f1512f63d10514b623128ee67645eb4f95be5ddc7bc2e9a4721ba5a1ef8f6087b785f074966cf19781af6923ecde9cb90e681d6dad65ea67 +AUX elogind.init 710 BLAKE2B e8ea4bd17525080cf34c122cdfc14318a136e2b15ffcb1066b0945d65c9854e9964d73215dfd405bd4b1a7e6cbd1aad317bf221832d4f17c5ee60c42e981c691 SHA512 ef0a89dbfbc8571c2fa04c0ee24cab1f4afaa4608e57a748242d82ee5ae3ab4fc3917c7a3a27bcf1b2f645e4bf7f75e58412746a2fe21c454e9f2d2fd7a309c7 +DIST elogind-252.9.tar.gz 1922777 BLAKE2B dd566125e407b3479a44b007890f97c9c87a325b3fed2d3505499d2163f113affd998e14b1c1fc50b9b86b0d155b51dae344dcc1cddafb6a48c631d0a0f00c9a SHA512 eed620cbc2f03bfeae6a80c9a421c21d3293fa40adffb96c7e4d86508c06712041f6623fb2bac15ecbb85faca4b5674ea6423b3067840809fb27d023fd9e5ffd EBUILD elogind-239.9999.ebuild 3425 BLAKE2B f7215d234109d726268febb35732885fbe94ffff00bf47c8e23d04557a055217083b9ae4fc057a376eb74bab0ffe83d9a375818ad90498434b21438c2841081a SHA512 7eaf1241585fc25d7d1ece37b3037ae47e8186924735d368dc1992ba5e924d8c80f5605175c47762680272deacc4433f9f404d435a3bdda2763a0c5460ad12f7 EBUILD elogind-241.9999.ebuild 3425 BLAKE2B a4a866d0c5450b74ab930ca887693d1d0c3f4c14c960ff76d663cb03d8428d4c40bd9ca1a56abeb8878e069732b31a4e187f269845e41b5a4ff35c68a7279a13 SHA512 8e964ff8540f21f62bd30cd7bbfcee18ff02e28cc642da2b162f32942dfaa132e3c975227ba42cf8985e6bd175825584f8f5da3aefd3c057eef6e8fd516c7837 EBUILD elogind-243.9999.ebuild 3460 BLAKE2B b6e80a4d066da7e474c3d17ae4c39a6b6e668d37cdcc9540440000e5dd5f7c9bf1483d62be0c7eb4d3f67dc2da80d3c3f83b4809057b44a187cf7d67816c6975 SHA512 b4780a401f7dff43d907827529cec99ba0ca59264a0d7c85fbe0bd2af79e489fa21f64de50d08edaf8bb29f47c1dfb7761efe80ffdab1f19ca8d33e0ce2282d7 EBUILD elogind-246.9999.ebuild 3460 BLAKE2B c3d2b66f154b20f506df1e35b0d735a1504a805dcb86ccee7f72866a6b4feecf610b373ee8c6704c66a7ac31acca079ca337429fd1cdda9764198f1a72f7f202 SHA512 68d73b64f44a08b0dbe7cde68ebbb3d4368bf0271627be943382ea80c7d2c6cce624b06df1f5a30a2512c0bb594c51e37e7e71cdfdec233f023016660a4fdb88 -EBUILD elogind-252.9.9999.ebuild 3166 BLAKE2B 354035fa041f5e00c691436776f3386c0a9d5c89ec8ed23aa212dbe490e6b850dd3fa1bfc8a444d9390e4a17d06d0db6474d5b542ac42f053f52854dadaa0c23 SHA512 463919b6fd5cc505f8567a8334d8657498367d3534548d4d9efb401e376a2e23a7663df513eb3544dd1ba72f7311d026025d2b8bcbee47e89e254ead2e1b53d4 +EBUILD elogind-252.9.ebuild 4001 BLAKE2B fa80e014d8d10d9340d831bb210f0e460a87275bdf0a878143fe47d0eb08e9189679871e6781b9aa05964f3653360b4121668fe9e077beab525184344f686a78 SHA512 3590455a0371f26505d6e5fcb29bb84728c66c881a1283adb462af621bcd805ca7ff13a198e70fb56d73591d60695172900c452a38fe0d7f4af7c4eeeeca0746 EBUILD elogind-252.9999.ebuild 3156 BLAKE2B 8f315eadda484f83f53b3eb7eb83c876db31138b3840f8e8d95134873e9a1f17b850cecf30c1fd7de9a6802fe720466fcacafd3b65515b0c7184e7e96e114b0e SHA512 fdb6d207d34c8a0bee6bd02dd1c05f172817c9595063f330e467a46a1b6c6e6345ee93e904d2d60b0223bd3324c3bafe21ca2caadca05a5a69f71e4149c694ab MISC metadata.xml 447 BLAKE2B b8fc20f4e04261ccbb05131677e3d106691cd1f9072b38b9797a117763a6d457a89903181ec72eb632bd71ef9119104ba595152cc7da9aac24ec88e870f33690 SHA512 cd30dbc3bfd38f06686b6b9645042617c91b331cf03a95e9c7dba428f21e163d771b10fcfa899f3dc2de4028a7589f8aa0160b7d7b7505186b87a4eda2380dc7 diff --git a/sys-auth/elogind/elogind-252.9.ebuild b/sys-auth/elogind/elogind-252.9.ebuild new file mode 100644 index 0000000..3ff5f38 --- /dev/null +++ b/sys-auth/elogind/elogind-252.9.ebuild @@ -0,0 +1,142 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} = *9999* ]]; then + EGIT_BRANCH="v252-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 ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" +fi + +inherit linux-info meson pam 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 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 +" +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=( + "${FILESDIR}/${PN}-252-docs.patch" +) + +pkg_setup() { + local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SIGNALFD ~TIMERFD" + + use kernel_linux && linux-info_pkg_setup +} + +src_prepare() { + default + xdg_environment_reset +} + +src_configure() { + # Removed -Ddefault-hierarchy=${cgroupmode} + # -> It is completely irrelevant with -Dcgroup-controller=openrc anyway. + local emesonargs=( + $(usex debug "-Ddebug-extra=elogind" "") + --buildtype $(usex debug debug release) + --libdir="${EPREFIX}"/usr/$(get_libdir) + -Dacl=$(usex acl true false) + -Daudit=$(usex audit true false) + -Dbashcompletiondir="${EPREFIX}/usr/share/bash-completion/completions" + -Dcgroup-controller=openrc + -Ddefault-kill-user-processes=false + -Ddocdir="${EPREFIX}/usr/share/doc/${PF}" + -Dhtml=$(usex doc auto false) + -Dhtmldir="${EPREFIX}/usr/share/doc/${PF}/html" + -Dinstall-sysconfdir=true + -Dman=auto + -Dmode=release + -Dpam=$(usex pam true false) + -Dpamlibdir=$(getpam_mod_dir) + -Drootlibdir="${EPREFIX}"/$(get_libdir) + -Drootlibexecdir="${EPREFIX}"/$(get_libdir)/elogind + -Drootprefix="${EPREFIX}/" + -Dselinux=$(usex selinux true false) + -Dsmack=true + -Dtests=$(usex test true false) + -Dudevrulesdir="${EPREFIX}$(get_udevdir)"/rules.d + -Dutmp=$(usex elibc_musl false true) + -Dzshcompletiondir="${EPREFIX}/usr/share/zsh/site-functions" + ) + + meson_src_configure +} + +src_install() { + meson_src_install + + newinitd "${FILESDIR}"/${PN}.init ${PN} + + sed -e "s|@libdir@|$(get_libdir)|" "${FILESDIR}"/${PN}.conf.in > ${PN}.conf || die + newconfd ${PN}.conf ${PN} +} + +pkg_postinst() { + 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 +} diff --git a/sys-auth/elogind/files/elogind.init b/sys-auth/elogind/files/elogind.init index 5ea0be5..dfadd21 100644 --- a/sys-auth/elogind/files/elogind.init +++ b/sys-auth/elogind/files/elogind.init @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 depend() { @@ -7,6 +7,8 @@ depend() { # Make sure elogind is up before xdm starts any dm before xdm + + use logger } start() { |