Added lightdm

This commit is contained in:
Berk Çakar
2021-04-26 18:37:08 +03:00
parent 0466214b3c
commit 06758491f7
16 changed files with 523 additions and 0 deletions
@@ -0,0 +1,30 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.system("NOCONFIGURE=1 ./autogen.sh")
autotools.configure(" --prefix=/usr \
--libexecdir=/usr/lib/lightdm \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--with-libxklavier \
--enable-kill-on-sigterm \
--disable-libido \
--disable-libindicator \
--disable-static \
--with-gtk3 \
--enable-nls")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
@@ -0,0 +1,54 @@
<PISI>
<Source>
<Name>lightdm-gtk-greeter</Name>
<Homepage>https://github.com/Xubuntu/lightdm-gtk-greeter</Homepage>
<Packager>
<Name>Berk Çakar</Name>
<Email>berk2238@hotmail.com</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:gui</IsA>
<Summary>Login screen using the LightDM framework.</Summary>
<Description>Login screen using the LightDM framework.</Description>
<Archive sha1sum="496eef33630a19451e39d879d5f6ad746e7b8a05" type="targz">https://github.com/Xubuntu/lightdm-gtk-greeter/archive/refs/tags/lightdm-gtk-greeter-2.0.8.tar.gz</Archive>
<BuildDependencies>
<Dependency>gtk3-devel</Dependency>
<Dependency>cairo-devel</Dependency>
<Dependency>gdk-pixbuf-devel</Dependency>
<Dependency>libxklavier-devel</Dependency>
<Dependency>exo-devel</Dependency>
<Dependency>xfce4-dev-tools</Dependency>
<Dependency>gobject-introspection-devel</Dependency>
<Dependency>lightdm-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>lightdm-gtk-greeter</Name>
<RuntimeDependencies>
<Dependency>lightdm</Dependency>
<Dependency>gtk3</Dependency>
<Dependency>cairo</Dependency>
<Dependency>glib2</Dependency>
<Dependency>libX11</Dependency>
<Dependency>gdk-pixbuf</Dependency>
<Dependency>libxklavier</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin/lightdm-gtk-greeter</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="config">/etc</Path>
<Path fileType="data">/usr/share</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2021-04-20</Date>
<Version>2.0.8</Version>
<Comment>First release</Comment>
<Name>Berk Çakar</Name>
<Email>berk2238@hotmail.com</Email>
</Update>
</History>
</PISI>
+30
View File
@@ -0,0 +1,30 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import get
from pisi.actionsapi import shelltools
def setup():
# shelltools.export("MOC5", "moc-qt5")
autotools.configure("--prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--libexecdir=/usr/libexec/ \
--disable-static \
--disable-tests \
--disable-liblightdm-qt5 \
--with-greeter-user=lightdm \
--with-greeter-session=lightdm-gtk-greeter")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
+47
View File
@@ -0,0 +1,47 @@
#!/usr/bin/python
import os, re
OUR_ID = 620
OUR_NAME = "lightdm"
OUR_DESC = "LightDM"
Cache = "/var/cache/lightdm"
Libdir = "/var/lib/lightdm-data"
Libdir1 = "/var/lib/lightdm"
Logdir = "/var/log/lightdm"
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
try:
os.system ("groupadd -g %d %s" % (OUR_ID, OUR_NAME))
os.system ("useradd -m -d /var/lib/lightdm -r -s /bin/false -u %d -g %d %s -c %s" % (OUR_ID, OUR_ID, OUR_NAME, OUR_DESC))
except:
pass
if not os.path.exists(Cache):
os.makedirs(Cache, mode=0755)
if not os.path.exists(Libdir):
os.makedirs(Libdir, mode=0770)
os.system("chown -R lightdm:lightdm /var/lib/lightdm-data")
if not os.path.exists(Libdir1):
os.makedirs(Libdir1, mode=0770)
os.system("chown -R lightdm:lightdm /var/lib/lightdm")
if not os.path.exists(Logdir):
os.makedirs(Logdir, mode=0711)
os.system("/bin/chgrp -R lightdm /var/log/lightdm")
os.system("chmod +t /var/{cache/lightdm,lib/lightdm{,-data}}")
def postRemove():
try:
os.system ("userdel %s" % OUR_NAME)
os.system ("groupdel %s" % OUR_NAME)
except:
pass
+32
View File
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
from comar.service import *
import os
serviceType="server"
serviceDesc=_({"en": "lightdm Server",
"tr": "lightdm Sunucusu"})
serviceDefault="on"
PIDFILE="/run/lightdm.pid"
DAEMON="/usr/bin/lightdm"
@synchronized
def start():
startService(command=DAEMON,
pidfile=PIDFILE,
detach=True,
donotify=True)
@synchronized
def stop():
stopService(pidfile=PIDFILE,
donotify=True)
try:
os.unlink(PIDFILE)
except OSError:
pass
def status():
return isServiceRunning(PIDFILE)
+13
View File
@@ -0,0 +1,13 @@
#%PAM-1.0
auth include system-auth
auth required pam_nologin.so
account include system-auth
password include system-auth
session include system-auth
session optional pam_console.so
session optional pam_polkit_console.so
@@ -0,0 +1,13 @@
#%PAM-1.0
auth required pam_env.so
auth required pam_tally.so file=/var/log/faillog onerr=succeed
auth required pam_shells.so
auth required pam_nologin.so
auth [success=1 default=ignore] pam_succeed_if.so user ingroup autologin
auth required pam_unix.so
auth required pam_permit.so
-auth optional pam_gnome_keyring.so
account include system-local-login
password include system-local-login
session include system-local-login
-session optional pam_gnome_keyring.so auto_start
@@ -0,0 +1,21 @@
--- lightdm-1.15.0.orig/data/lightdm.conf 2015-05-14 07:12:11.000000000 +0300
+++ lightdm-1.15.0/data/lightdm.conf 2016-09-07 06:27:09.913001757 +0300
@@ -106,7 +106,7 @@
#allow-user-switching=true
#allow-guest=true
#guest-session=
-#session-wrapper=lightdm-session
+session-wrapper=/usr/bin/wrapper
#greeter-wrapper=
#guest-wrapper=
#display-setup-script=
--- lightdm-1.15.0.orig/data/users.conf 2014-05-19 23:10:03.000000000 +0300
+++ lightdm-1.15.0/data/users.conf 2016-09-07 06:27:25.985001874 +0300
@@ -9,6 +9,6 @@
# hidden-shells = Shells that indicate a user cannot login
#
[UserList]
-minimum-uid=500
+minimum-uid=1000
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin
+15
View File
@@ -0,0 +1,15 @@
polkit.addRule(function(action, subject) {
if (subject.user == "lightdm") {
polkit.log("action=" + action);
polkit.log("subject=" + subject);
if (action.id.indexOf("org.freedesktop.login1.") == 0) {
return polkit.Result.YES;
}
if (action.id.indexOf("org.freedesktop.consolekit.system.") == 0) {
return polkit.Result.YES;
}
if (action.id.indexOf("org.freedesktop.upower.") == 0) {
return polkit.Result.YES;
}
}
});
@@ -0,0 +1 @@
d /run/lightdm 0711 lightdm lightdm
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
export PATH=/usr/local/sbin/:/usr/sbin/:/sbin/:/usr/local/bin/:/usr/bin/:/bin/ && exec $*
+100
View File
@@ -0,0 +1,100 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "github.com/igor0pav/pkg/pisi-spec.dtd">
<PISI>
<Source>
<Name>lightdm</Name>
<Homepage>https://github.com/CanonicalLtd/lightdm</Homepage>
<Packager>
<Name>Berk Çakar</Name>
<Email>berk2238@hotmail.com</Email>
</Packager>
<License>GPL2</License>
<IsA>app</IsA>
<Summary>LightDM Qt client library</Summary>
<Description>LightDM Qt client library</Description>
<Archive type="tarxz" sha1sum="d91966f79f173825ac8bb51973842f9fb6c9ef1b">https://github.com/CanonicalLtd/lightdm/releases/download/1.30.0/lightdm-1.30.0.tar.xz</Archive>
<BuildDependencies>
<Dependency>itstool</Dependency>
<Dependency>intltool</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>libxklavier-devel</Dependency>
<Dependency>gobject-introspection-devel</Dependency>
<Dependency>pam-devel</Dependency>
<Dependency>libgcrypt-devel</Dependency>
<Dependency>gtk3-devel</Dependency>
<Dependency>libxml2-devel</Dependency>
<Dependency>dbus-glib-devel</Dependency>
<Dependency>libxcb-devel</Dependency>
<Dependency>libXdmcp-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">lightdm-default-config.patch</Patch>
</Patches>
</Source>
<Package>
<Name>lightdm</Name>
<Conflicts>
<Package>lxdm</Package>
<Package>sddm</Package>
</Conflicts>
<RuntimeDependencies>
<Dependency>pam</Dependency>
<Dependency>glib2</Dependency>
<Dependency>libX11</Dependency>
<Dependency>libxcb</Dependency>
<Dependency>libXdmcp</Dependency>
<Dependency>libgcrypt</Dependency>
<Dependency>libxklavier</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="library">/usr/libexec</Path>
<Path fileType="data">/usr/share/accountsservice</Path>
<Path fileType="data">/usr/share/bash-completion</Path>
<Path fileType="data">/usr/share/dbus-1</Path>
<Path fileType="doc">/usr/share/gtk-doc</Path>
<Path fileType="man">/usr/share/help</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="data">/usr/share/polkit-1</Path>
<Path fileType="data">/usr/share/vala</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/lightdm.conf">lightdm.tmpfiles</AdditionalFile>
<AdditionalFile owner="root" permission="0644" target="/etc/pam.d/lightdm">lightdm</AdditionalFile>
<AdditionalFile owner="root" permission="0755" target="/usr/bin/wrapper">wrapper</AdditionalFile>
</AdditionalFiles>
<Provides>
<!--COMAR script="service.py">System.Service</COMAR-->
<COMAR script="package.py">System.Package</COMAR>
</Provides>
</Package>
<Package>
<Name>lightdm-devel</Name>
<Summary>LightDM is a cross-desktop display manager.</Summary>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/share/gir-1.0</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2021-04-24</Date>
<Version>1.30.0</Version>
<Comment>First Release</Comment>
<Name>Berk Çakar</Name>
<Email>berk2238@hotmail.com</Email>
</Update>
</History>
</PISI>
+7
View File
@@ -0,0 +1,7 @@
<PISI>
<Source>
<Name>lightdm</Name>
<Summary xml:lang="tr">LightDM Qt istemci kitaplığı.</Summary>
<Description xml:lang="tr">lightdm, LightDM Qt istemci kitaplıklarını içerir.</Description>
</Source>
</PISI>