Fixed shortcomings of TDM ebuilds

Signed-off-by: ormorph <roma251078@mail.ru>
pull/275/head
ormorph 2 years ago
parent d810c2294a
commit 34d0378bc1

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>fatzer2@gmail.com</email>
<name>Alexander Golubev</name>
<maintainer type="project">
<email>team-gentoo@trinitydesktop.org</email>
<name>Trinity Gentoo ebuilds project</name>
</maintainer>
<use>
<flag name="xdmcp">Support for <pkg>x11-libs/libXdmcp</pkg></flag>

@ -7,7 +7,7 @@ EAPI="8"
TRINITY_MODULE_NAME="tdebase"
TRINITY_MODULE_TYPE="core"
TSM_EXTRACT_ALSO="translations/"
inherit trinity-meta-2
inherit linux-info trinity-meta-2
DESCRIPTION="Trinity login manager, similar to XDM and GDM"
if [[ ${PV} != *9999* ]] ; then
@ -52,7 +52,7 @@ src_configure() {
}
src_install() {
cmake_src_install
trinity-meta-2_src_install
# Customize the tdmrc configuration
sed -i -e "s:#SessionsDirs=:SessionsDirs=/usr/share/xsessions\n#SessionsDirs=:" \
@ -99,8 +99,8 @@ pkg_postinst() {
fi
fi
if [[ "$sak_ok" != yes ]]; then
sed -i -e 's:#\?\s*UseSAK=\(true\|false\)\?:UseSak=false:' \
"${D}${TDEDIR}/share/config/tdm/tdmrc" || die "sed tdmrc failed"
sed -i -e 's:#\?\s*UseSAK=\(true\|false\)\?:UseSAK=false:' \
"${TDEDIR}/share/config/tdm/tdmrc" || die "sed tdmrc failed"
ewarn "SAK feature is disabled. You can enable it yourself by setting UseSAK=true"
ewarn "in ${TDEDIR}/share/config/tdm/tdmrc "
else

@ -7,7 +7,7 @@ EAPI="8"
TRINITY_MODULE_NAME="tdebase"
TRINITY_MODULE_TYPE="core"
TSM_EXTRACT_ALSO="translations/"
inherit trinity-meta-2
inherit linux-info trinity-meta-2
DESCRIPTION="Trinity login manager, similar to XDM and GDM"
if [[ ${PV} != *9999* ]] ; then
@ -52,11 +52,11 @@ src_configure() {
}
src_install() {
cmake_src_install
trinity-meta-2_src_install
# Customize the tdmrc configuration
sed -i -e "s:#SessionsDirs=:SessionsDirs=/usr/share/xsessions\n#SessionsDirs=:" \
"${D}/${TDEDIR}/share/config/tdm/tdmrc" || die "sed tdmrc failed"
"${TDEDIR}/share/config/tdm/tdmrc" || die "sed tdmrc failed"
# Install XSession upstream script seems to be debian-cpecific
cp "${FILESDIR}/${PN}-14.0.8-xsession.script" "${D}/${TDEDIR}/share/config/tdm/Xsession" || die
@ -99,8 +99,8 @@ pkg_postinst() {
fi
fi
if [[ "$sak_ok" != yes ]]; then
sed -i -e 's:#\?\s*UseSAK=\(true\|false\)\?:UseSak=false:' \
"${D}${TDEDIR}/share/config/tdm/tdmrc" || die "sed tdmrc failed"
sed -i -e 's:#\?\s*UseSAK=\(true\|false\)\?:UseSAK=false:' \
"${TDEDIR}/share/config/tdm/tdmrc" || die "sed tdmrc failed"
ewarn "SAK feature is disabled. You can enable it yourself by setting UseSAK=true"
ewarn "in ${TDEDIR}/share/config/tdm/tdmrc "
else

@ -7,7 +7,7 @@ EAPI="8"
TRINITY_MODULE_NAME="tdebase"
TRINITY_MODULE_TYPE="core"
TSM_EXTRACT_ALSO="translations/"
inherit trinity-meta-2
inherit linux-info trinity-meta-2
DESCRIPTION="Trinity login manager, similar to XDM and GDM"
if [[ ${PV} != *9999* ]] ; then
@ -52,7 +52,7 @@ src_configure() {
}
src_install() {
cmake_src_install
trinity-meta-2_src_install
# Customize the tdmrc configuration
sed -i -e "s:#SessionsDirs=:SessionsDirs=/usr/share/xsessions\n#SessionsDirs=:" \
@ -99,8 +99,8 @@ pkg_postinst() {
fi
fi
if [[ "$sak_ok" != yes ]]; then
sed -i -e 's:#\?\s*UseSAK=\(true\|false\)\?:UseSak=false:' \
"${D}${TDEDIR}/share/config/tdm/tdmrc" || die "sed tdmrc failed"
sed -i -e 's:#\?\s*UseSAK=\(true\|false\)\?:UseSAK=false:' \
"${TDEDIR}/share/config/tdm/tdmrc" || die "sed tdmrc failed"
ewarn "SAK feature is disabled. You can enable it yourself by setting UseSAK=true"
ewarn "in ${TDEDIR}/share/config/tdm/tdmrc "
else

Loading…
Cancel
Save