2018-06-09 00:06:58 +02:00
|
|
|
|
# Tanım: Hafif bir giriş yönetici
|
|
|
|
|
# URL: https://launchpad.net/lightdm
|
|
|
|
|
# Paketçi: milisarge
|
2018-09-19 13:06:57 +02:00
|
|
|
|
# Gerekler: glib gobject-introspection intltool itstool libgcrypt xorg-libxi xorg-libx11 libxcb xorg-libxdmcp xorg-libxklavier pam polkit vala lightdm-gtk-greeter
|
2018-06-09 00:06:58 +02:00
|
|
|
|
# Grup: sistem
|
|
|
|
|
|
|
|
|
|
isim=lightdm
|
|
|
|
|
surum=1.26.0
|
|
|
|
|
devir=1
|
|
|
|
|
|
|
|
|
|
kaynak=(https://github.com/CanonicalLtd/lightdm/releases/download/${surum}/lightdm-${surum}.tar.xz
|
|
|
|
|
Xsession)
|
|
|
|
|
|
|
|
|
|
derle() {
|
|
|
|
|
cd $isim-$surum
|
|
|
|
|
./configure \
|
|
|
|
|
--prefix=/usr \
|
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
|
--libexecdir=/usr/lib/lightdm \
|
|
|
|
|
--localstatedir=/var \
|
|
|
|
|
--sbindir=/usr/bin \
|
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
|
--mandir=/usr/man \
|
|
|
|
|
--with-greeter-session=lightdm-gtk-greeter \
|
|
|
|
|
--with-greeter-user=lightdm \
|
|
|
|
|
--disable-static \
|
|
|
|
|
--disable-tests \
|
|
|
|
|
--disable-liblightdm-qt \
|
|
|
|
|
--disable-liblightdm-qt5
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
|
|
rm -rf $PKG/usr/man
|
|
|
|
|
rm -rf $PKG/usr/share/gtk-doc
|
|
|
|
|
rm -rf $PKG/usr/share/help
|
|
|
|
|
|
|
|
|
|
cat $SRC/Xsession > $PKG/etc/lightdm/Xsession
|
|
|
|
|
chmod 755 $PKG/etc/lightdm/Xsession
|
|
|
|
|
|
|
|
|
|
rm -rf $PKG/etc/apparmor.d
|
|
|
|
|
rm -rf $PKG/etc/init
|
|
|
|
|
|
|
|
|
|
#mv $PKG/etc/lightdm/lightdm.conf $PKG/etc/lightdm/lightdm.conf.new
|
|
|
|
|
#mv $PKG/etc/lightdm/users.conf $PKG/etc/lightdm/users.conf.new
|
|
|
|
|
#mv $PKG/etc/lightdm/keys.conf $PKG/etc/lightdm/keys.conf.new
|
|
|
|
|
|
|
|
|
|
#mv $PKG/etc/pam.d/lightdm $PKG/etc/pam.d/lightdm.new
|
|
|
|
|
#mv $PKG/etc/pam.d/lightdm-autologin $PKG/etc/pam.d/lightdm-autologin.new
|
|
|
|
|
#mv $PKG/etc/pam.d/lightdm-greeter $PKG/etc/pam.d/lightdm-greeter.new
|
|
|
|
|
|
|
|
|
|
# Remove systemd entries from pam files
|
|
|
|
|
sed -i 's@^.*pam_systemd.so.*$@@' $PKG/etc/pam.d/lightdm
|
|
|
|
|
sed -i 's@^.*pam_systemd.so.*$@@' $PKG/etc/pam.d/lightdm-autologin
|
|
|
|
|
sed -i 's@^.*pam_systemd.so.*$@@' $PKG/etc/pam.d/lightdm-greeter
|
|
|
|
|
|
|
|
|
|
# Fix session-wrapper in config
|
|
|
|
|
sed -i 's@^.*session-wrapper.*$@session-wrapper=/etc/lightdm/Xsession@' $PKG/etc/lightdm/lightdm.conf
|
2018-08-31 00:36:31 +02:00
|
|
|
|
|
|
|
|
|
if ! getent group lightdm 1>/dev/null 2>/dev/null ; then
|
|
|
|
|
groupadd -g 800 lightdm
|
|
|
|
|
elif ! getent passwd lightdm 1>/dev/null 2>/dev/null ; then
|
|
|
|
|
useradd -d /var/lib/lightdm -s /bin/false -u 800 -g 800 lightdm
|
|
|
|
|
fi
|
|
|
|
|
|
2018-06-09 00:06:58 +02:00
|
|
|
|
mkdir -p $PKG/var/lib/lightdm
|
2018-08-31 00:36:31 +02:00
|
|
|
|
chown lightdm:lightdm $PKG/var/lib/lightdm
|
2018-06-09 00:06:58 +02:00
|
|
|
|
mkdir -p $PKG/var/lib/lightdm-data
|
2018-08-31 00:36:31 +02:00
|
|
|
|
chown lightdm:lightdm $PKG/var/lib/lightdm-data
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
# servis kurulması
|
|
|
|
|
cd /sources/milis.git/ayarlar/servisler
|
|
|
|
|
make DESTDIR=$PKG kur-lightdm
|
|
|
|
|
}
|