mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
x11-misc/sddm: add 0.21.0_p20250502
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
parent
fe366cc745
commit
4bc5af3261
@ -1,3 +1,4 @@
|
||||
DIST sddm-0.21.0-pam.tar.xz 676 BLAKE2B 06a79f74a5833eca9877df4be8639311382d13061b21aa3627e6c4b07725878ded62221fca943440bacc143f6be2a23b2e0a2124012ff2c9fac82e1eded11144 SHA512 6d91eef2434346f7707122454522cf19f104994ac95d562417f6060a92b4e6c9792bebcccabac8290479200b4ba02fc4d92c6098c435c7ceda796d619d8913c2
|
||||
DIST sddm-0.21.0_p20240723.tar.gz 3557578 BLAKE2B b92feb20a39eaf34822b077fcb8b89a100ff65814f9b523b2a1a0ffd3592edf2e86fa8fbdfcd8b592756a0b4baf0b085e8c7b4ad2aaa2f08b90e25e580df9925 SHA512 1ea2f758099f86086aebf05a77b176227475c1eb9c21c77bc99b9bb5a2882ce087e020ae6a11585b793fe09a3567e0ea4d0c1632a5823b7be83e33882964de48
|
||||
DIST sddm-0.21.0_p20250326.tar.gz 3558293 BLAKE2B d7113aa1bb1781d573f98b9399658d8c57250079798d6fd1efecd987f3a1457e75245a02d336c1d7ba37d3a1bc6cb4c5573a9b2b5e5e98d551778490af14d0ee SHA512 190d857fc9afe94f5beeea678b10462612667098cba0180c89400b9ecb84a3d978cb3d2a3a3d9b1c3e944deeb4e9377ab56ed1133ef2c5989a1e59f19d30e31d
|
||||
DIST sddm-0.21.0_p20250502-4fe234bd.tar.gz 3558357 BLAKE2B 6b013f0edfa1093f37663dcda6c8fe050b951f53a80771c44bcb39f4595e1a6194ceb18167716018b6ef7dee8bb4a486ba4158062ddd7eaa90ed09db98235be0 SHA512 434e081ba06e38b8a4368d90dcf166c5ed955fe142ab377d56232777dde7fcd972f46d99131270e71676160bb179f4245dbed9621dfb40a5dac7bbbd18e510f9
|
||||
|
||||
154
x11-misc/sddm/sddm-0.21.0_p20250502.ebuild
Normal file
154
x11-misc/sddm/sddm-0.21.0_p20250502.ebuild
Normal file
@ -0,0 +1,154 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PAM_TAR="${PN}-0.21.0-pam"
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
|
||||
else
|
||||
COMMIT=4fe234bd475ccb2a1e5aa194bec5c3aad08cebe6
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/${COMMIT}.tar.gz -> ${P}-${COMMIT:0:8}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
|
||||
fi
|
||||
|
||||
QTMIN=6.7.2
|
||||
inherit cmake linux-info optfeature pam systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Simple Desktop Display Manager"
|
||||
HOMEPAGE="https://github.com/sddm/sddm"
|
||||
SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PAM_TAR}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+ MIT CC-BY-3.0 CC-BY-SA-3.0 public-domain"
|
||||
SLOT="0"
|
||||
IUSE="+elogind systemd test +X"
|
||||
|
||||
REQUIRED_USE="^^ ( elogind systemd )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
acct-group/sddm
|
||||
acct-user/sddm
|
||||
>=dev-qt/qtbase-${QTMIN}:6[dbus,gui,network]
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:6
|
||||
sys-libs/pam
|
||||
x11-libs/libXau
|
||||
x11-libs/libxcb:=
|
||||
elogind? (
|
||||
sys-auth/elogind[pam]
|
||||
sys-power/upower
|
||||
)
|
||||
systemd? ( sys-apps/systemd:=[pam] )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
X? ( x11-base/xorg-server )
|
||||
!systemd? ( gui-libs/display-manager-init )
|
||||
"
|
||||
BDEPEND="
|
||||
dev-python/docutils
|
||||
>=dev-build/cmake-3.25.0
|
||||
>=dev-qt/qttools-${QTMIN}[linguist]
|
||||
kde-frameworks/extra-cmake-modules:0
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# Downstream patches
|
||||
"${FILESDIR}/${PN}-0.20.0-respect-user-flags.patch"
|
||||
"${FILESDIR}/${PN}-0.21.0_p20250310-Xsession-xinitrc.patch" # bug 611210
|
||||
"${FILESDIR}/${PN}-0.21.0_p20250310-set-XAUTHLOCALHOSTNAME.patch" # bug 913862, thx opensuse
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
local CONFIG_CHECK="~DRM"
|
||||
use kernel_linux && linux-info_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
[[ ${PV} == *9999* ]] && git-r3_src_unpack
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
touch 01gentoo.conf || die
|
||||
|
||||
cat <<-EOF >> 01gentoo.conf
|
||||
[General]
|
||||
# Remove qtvirtualkeyboard as InputMethod default
|
||||
InputMethod=
|
||||
EOF
|
||||
|
||||
cmake_src_prepare
|
||||
|
||||
if ! use test; then
|
||||
sed -e "/^find_package/s/ Test//" -i CMakeLists.txt || die
|
||||
cmake_comment_add_subdirectory test
|
||||
fi
|
||||
|
||||
if use systemd; then
|
||||
sed -e "/pam_elogind.so/s/elogind/systemd/" \
|
||||
-i "${WORKDIR}"/${PAM_TAR}/${PN}-greeter.pam || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_MAN_PAGES=ON
|
||||
-DBUILD_WITH_QT6=ON
|
||||
-DDBUS_CONFIG_FILENAME="org.freedesktop.sddm.conf"
|
||||
-DRUNTIME_DIR=/run/sddm
|
||||
-DSYSTEMD_TMPFILES_DIR="/usr/lib/tmpfiles.d"
|
||||
-DNO_SYSTEMD=$(usex !systemd)
|
||||
-DUSE_ELOGIND=$(usex elogind)
|
||||
# try to use VT7 first.
|
||||
# Keep the same as CHECKVT from display-manager
|
||||
-DSDDM_INITIAL_VT=7
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
insinto /etc/sddm.conf.d/
|
||||
doins "${S}"/01gentoo.conf
|
||||
|
||||
# with systemd logs are sent to journald, so no point to bother in that case
|
||||
if ! use systemd; then
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/sddm.logrotate" sddm
|
||||
fi
|
||||
|
||||
newpamd "${WORKDIR}"/${PAM_TAR}/${PN}.pam ${PN}
|
||||
newpamd "${WORKDIR}"/${PAM_TAR}/${PN}-autologin.pam ${PN}-autologin
|
||||
newpamd "${WORKDIR}"/${PAM_TAR}/${PN}-greeter.pam ${PN}-greeter
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process "${PN}.conf"
|
||||
|
||||
elog "NOTE: If SDDM startup appears to hang then entropy pool is too low."
|
||||
elog "This can be fixed by configuring one of the following:"
|
||||
elog " - Enable CONFIG_RANDOM_TRUST_CPU in linux kernel"
|
||||
elog " - # emerge sys-apps/haveged && rc-update add haveged boot"
|
||||
elog " - # emerge sys-apps/rng-tools && rc-update add rngd boot"
|
||||
elog
|
||||
elog "SDDM example config can be shown with:"
|
||||
elog " ${EROOT}/usr/bin/sddm --example-config"
|
||||
elog "Use ${EROOT}/etc/sddm.conf.d/ directory to override specific options."
|
||||
elog
|
||||
elog "For more information on how to configure SDDM, please visit the wiki:"
|
||||
elog " https://wiki.gentoo.org/wiki/SDDM"
|
||||
if has_version x11-drivers/nvidia-drivers; then
|
||||
elog
|
||||
elog " Nvidia GPU owners in particular should pay attention"
|
||||
elog " to the troubleshooting section."
|
||||
fi
|
||||
|
||||
optfeature "Weston DisplayServer support (EXPERIMENTAL)" "dev-libs/weston[kiosk]"
|
||||
optfeature "KWin DisplayServer support (EXPERIMENTAL)" "kde-plasma/kwin"
|
||||
|
||||
systemd_reenable sddm.service
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user