Skip to content
Permalink
cfce7a5f90
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
@wwwutz
Latest commit 865f2ec Sep 29, 2021 History
- fixed SRCURL
- tabs = 4 spaces
5 contributors

Users who have contributed to this file

@pmenzel @donald @wwwutz @thomas @david
executable file 99 lines (76 sloc) 2.76 KB
#!/usr/bin/env beesh
# BEE_VERSION lightdm-1.30.0-1
# SRCURL[0]="https://github.com/CanonicalLtd/lightdm/releases/download/${PKGVERSION}/lightdm-${PKGVERSION}.tar.xz"
SRCURL[0]="https://beehive.molgen.mpg.de/c566ea595f2b81e68684be9f8dbcbb42/lightdm-1.30.0.tar.xz"
# PATCHURL+=()
# build_in_sourcedir
# mee_extract() {
# bee_extract "${@}"
# }
# mee_patch() {
# bee_patch "${@}"
# }
mee_configure() {
DMUSER=gdm
ITSTOOL=/bin/true \
bee_configure \
--prefix=/usr \
--libexecdir=/usr/lib/lightdm \
--localstatedir=/var \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--docdir=/usr/share/doc/lightdm-${PKGVERSION} \
--disable-static \
--disable-tests \
--enable-liblightdm-qt=no \
--with-greeter-user=${DMUSER} \
--with-greeter-session=slick-greeter \
--disable-nls
}
# mee_build() {
# bee_build
# }
# mee_install() {
# bee_install
# }
## by default this may be 'make install DESTDIR="${D}"'
mee_install_post() {
cat > ${D}/usr/bin/lightdm-session <<'EOF'
#! /bin/bash
# First argument is full command, ´for backwards compatibility'.
exec $1
EOF
chmod 755 ${D}/usr/bin/lightdm-session
rm -rf ${D}/etc/init
install -v -dm755 -o gdm -g gdm ${D}/var/lib/lightdm
install -v -dm755 -o gdm -g gdm ${D}/var/lib/lightdm-data
install -v -dm755 -o gdm -g gdm ${D}/var/cache/lightdm
install -v -dm770 -o gdm -g gdm ${D}/var/log/lightdm
###############################################
# adjust settings in /etc/lightdm/lightdm.conf
sed -i -e '/^#greeter-hide-users=false/ c greeter-hide-users=true' \
-e '/^#sessions-directory/ c sessions-directory=/usr/share/xsessions' \
-e '/^#greeter-session/ c greeter-session=slick-greeter' \
${D}/etc/lightdm/lightdm.conf
sed -i -e '/^minimum-uid=/ c minimum-uid=100' \
-e '/^hidden-users=/ c hidden-users=nobody nobodyV' \
${D}/etc/lightdm/users.conf
######################
# create systemd unit
mkdir -p ${D}/etc/systemd/system
cat <<UNIT > ${D}/etc/systemd/system/lightdm.service
[Unit]
Description=LightDM
Wants=nvidia.service startup-tags.service
After=systemd-user-sessions.service nvidia.service startup-tags.service
ConditionPathExists=/node/tags/lightdm
[Service]
ExecStart=/usr/bin/lightdm
Restart=always
BusName=org.freedesktop.DisplayManager
UMask=007
[Install]
WantedBy=graphical.target
UNIT
chmod 644 ${D}/etc/systemd/system/lightdm.service
}