First release for 2.2
This commit is contained in:
@@ -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/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import mesontools
|
||||
|
||||
def setup():
|
||||
mesontools.configure("-Drootlibdir=/usr/lib \
|
||||
--prefix=/usr \
|
||||
-Dpolkit=true \
|
||||
-Dsplit-bin=true \
|
||||
-Dsplit-usr=false \
|
||||
-Dhalt-path=/sbin/halt \
|
||||
-Dpamlibdir=/lib/security \
|
||||
-Dreboot-path=/sbin/reboot \
|
||||
-Dcgroup-controller=elogind \
|
||||
-Ddefault-hierarchy=unified \
|
||||
-Dpoweroff-path=/sbin/poweroff \
|
||||
-Ddocdir=/usr/share/doc/elogind \
|
||||
-Drootlibexecdir=/usr/lib/elogind \
|
||||
-Ddefault-kill-user-processes=false \
|
||||
-Ddbuspolicydir=/usr/share/dbus-1/system.d")
|
||||
|
||||
def build():
|
||||
mesontools.build()
|
||||
|
||||
def install():
|
||||
mesontools.install()
|
||||
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import os, re
|
||||
import shutil
|
||||
|
||||
OUR_ID = 95
|
||||
OUR_NAME = "elogind"
|
||||
OUR_DESC = "elogind"
|
||||
OUR_GRP ="wheel"
|
||||
|
||||
DATADIR = "/var/lib/elogind"
|
||||
DATADIRMODE = 0755
|
||||
|
||||
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
|
||||
|
||||
# On first install...
|
||||
if not os.path.exists(DATADIR):
|
||||
os.makedirs(DATADIR, DATADIRMODE)
|
||||
|
||||
try:
|
||||
os.system ("groupadd -g %d %s" % (OUR_ID, OUR_NAME))
|
||||
os.system ("useradd -m -d /var/lib/elogind -r -s /bin/false -u %d -g %d %s -c %s" % (OUR_ID, OUR_ID, OUR_NAME, OUR_DESC))
|
||||
os.system ("passwd -l elogind > /dev/null")
|
||||
os.system("/bin/chown -R elogind:elogind %s" % DATADIR)
|
||||
except:
|
||||
pass
|
||||
|
||||
def postRemove():
|
||||
try:
|
||||
os.system ("userdel %s" % OUR_NAME)
|
||||
os.system ("groupdel %s" % OUR_NAME)
|
||||
except:
|
||||
pass
|
||||
@@ -0,0 +1,31 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from comar.service import *
|
||||
import os
|
||||
|
||||
serviceType="server"
|
||||
serviceDesc=_({"en": "Session Manager",
|
||||
"tr": "Oturum Yöneticisi"})
|
||||
serviceDefault="on"
|
||||
PIDFILE="/run/elogind.pid"
|
||||
DAEMON="/usr/lib/elogind/elogind"
|
||||
|
||||
@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)
|
||||
@@ -0,0 +1,8 @@
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (action.id == "org.freedesktop.libelogind.system.stop" ||
|
||||
action.id == "org.freedesktop.libelogind.system.restart" ||
|
||||
action.id == "org.freedesktop.libelogind.system.hibernate" ||
|
||||
action.id == "org.freedesktop.libelogind.system.suspend") {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,13 @@
|
||||
# Begin /etc/pam.d/elogind-user
|
||||
|
||||
#%PAM-1.0
|
||||
auth required pam_unix.so
|
||||
auth required pam_nologin.so
|
||||
account required pam_unix.so
|
||||
password required pam_unix.so
|
||||
session required pam_unix.so
|
||||
session required pam_loginuid.so
|
||||
session required pam_elogind.so
|
||||
|
||||
|
||||
# End /etc/pam.d/elogind-user
|
||||
@@ -0,0 +1,16 @@
|
||||
# Begin /etc/pam.d/elogind-user
|
||||
|
||||
account required pam_access.so
|
||||
account include system-account
|
||||
|
||||
session required pam_env.so
|
||||
session required pam_limits.so
|
||||
session required pam_unix.so
|
||||
session required pam_loginuid.so
|
||||
session optional pam_keyinit.so force revoke
|
||||
session optional pam_elogind.so
|
||||
|
||||
auth required pam_deny.so
|
||||
password required pam_deny.so
|
||||
|
||||
# End /etc/pam.d/elogind-user
|
||||
@@ -0,0 +1,7 @@
|
||||
#%PAM-1.0
|
||||
|
||||
auth include system-login
|
||||
account include system-login
|
||||
session include system-login
|
||||
password include system-login
|
||||
session optional libelogind.so
|
||||
@@ -0,0 +1,6 @@
|
||||
# Begin elogind addition
|
||||
|
||||
session required pam_loginuid.so
|
||||
session optional pam_elogind.so
|
||||
|
||||
# End elogind addition
|
||||
@@ -0,0 +1 @@
|
||||
d /run/elogind 0755 elogind elogind
|
||||
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>elogind</Name>
|
||||
<Homepage>https://github.com/elogind</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2.1</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Elogind User, Seat and Session Manager</Summary>
|
||||
<Description>Elogind is the systemd project's "logind", extracted out to be a standalone daemon. It integrates with PAM to know the set of users that are logged in to a system and whether they are logged in graphically, on the console, or remotely.</Description>
|
||||
<Archive sha1sum="b23572a569a24a19102b8a108b502d33f9266436" type="targz">https://github.com/elogind/elogind/archive/v246.9.2.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>gperf</Dependency>
|
||||
<Dependency>meson</Dependency>
|
||||
<Dependency>ninja</Dependency>
|
||||
<Dependency>libxslt</Dependency>
|
||||
<Dependency>sysvinit</Dependency>
|
||||
<Dependency>kauth-devel</Dependency>
|
||||
<Dependency>kcoreaddons-devel</Dependency>
|
||||
<Dependency>acl-devel</Dependency>
|
||||
<Dependency>pam-devel</Dependency>
|
||||
<Dependency>dbus-devel</Dependency>
|
||||
<Dependency>audit-devel</Dependency>
|
||||
<Dependency>docbook-xsl</Dependency>
|
||||
<Dependency>eudev-devel</Dependency>
|
||||
<Dependency>glib2-devel</Dependency>
|
||||
<Dependency>libcap-devel</Dependency>
|
||||
<Dependency>polkit-devel</Dependency>
|
||||
<Dependency>cgmanager-devel</Dependency>
|
||||
<Dependency>libevdev</Dependency>
|
||||
<Dependency>p11-kit-devel</Dependency>
|
||||
<Dependency>kernel-headers</Dependency>
|
||||
<Dependency>libpcre2-devel</Dependency>
|
||||
<Dependency>bash-completion</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!--Patch>reverse_DISABLE_BUFFER_in_cg_attach.patch</Patch>
|
||||
<Patch>reverse_CLOSE_ON_EXEC_removal.patch</Patch-->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>elogind</Name>
|
||||
<Summary>Elogind User, Seat and Session Manager</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>acl</Dependency>
|
||||
<Dependency>pam</Dependency>
|
||||
<Dependency>audit</Dependency>
|
||||
<Dependency>kauth</Dependency>
|
||||
<Dependency>kcoreaddons</Dependency>
|
||||
<Dependency>eudev</Dependency>
|
||||
<Dependency>libevdev</Dependency>
|
||||
<Dependency>dbus</Dependency>
|
||||
<Dependency>polkit</Dependency>
|
||||
<Dependency>cgmanager</Dependency>
|
||||
<Dependency>libcap</Dependency>
|
||||
<Dependency>bash-completion</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="conf">/etc</Path>
|
||||
<Path fileType="library">/lib</Path>
|
||||
<Path fileType="executable">/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="data">/usr/share/zsh</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="data">/usr/share/dbus-1</Path>
|
||||
<Path fileType="data">/usr/share/factory</Path>
|
||||
<Path fileType="data">/usr/share/polkit-1</Path>
|
||||
<Path fileType="locale">/usr/share/locale</Path>
|
||||
<Path fileType="data">/usr/share/bash-completion</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<!--AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/elogind.conf">tmpfiles.conf</AdditionalFile-->
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/polkit-1/rules.d/75-elogind.rules">25-elogind.rules</AdditionalFile>
|
||||
<AdditionalFile permission="0644" target="/usr/share/polkit-1/rules.d/75-elogind.rules">25-elogind.rules</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/pam.d/elogind-user">elogind-user</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/pam.d/system-login">system-login</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0755" target="/etc/pam.d/elogind">elogind.pamd</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<Provides>
|
||||
<COMAR script="service.py">System.Service</COMAR>
|
||||
<COMAR script="package.py">System.Package</COMAR>
|
||||
</Provides>
|
||||
<Conflicts>
|
||||
<!-- Package>ConsoleKit</Package -->
|
||||
</Conflicts>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>elogind-devel</Name>
|
||||
<Summary>Development files for elogind</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">elogind</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="header">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="2">
|
||||
<Date>2021-01-31</Date>
|
||||
<Version>246.9.2</Version>
|
||||
<Comment>Version Bump.</Comment>
|
||||
<Name>Ali Cengiz Kurt</Name>
|
||||
<Email>alicengizkurt@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2020-02-28</Date>
|
||||
<Version>243.7</Version>
|
||||
<Comment>First Release.</Comment>
|
||||
<Name>Ayhan Yalçınsoy</Name>
|
||||
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>elogind</Name>
|
||||
<Summary xml:lang="tr">Elogind; kullanıcı, oturum ve seat Yöneticisi </Summary>
|
||||
<Description xml:lang="tr">Elogind kullanıcıların oturum açma kapama durumlarını denetlerken çoklu oturumlara da izin veren hizmettir.</Description>
|
||||
<Summary xml:lang="en">Elogind User, Seat and Session Manager</Summary>
|
||||
<Description xml:lang="en">Elogind is the systemd project's "logind", extracted out to be a standalone daemon. It integrates with PAM to know the set of users that are logged in to a system and whether they are logged in graphically, on the console, or remotely.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>elogind-devel</Name>
|
||||
<Summary xml:lang="tr">elogind için geliştirme dosyaları</Summary>
|
||||
<Description xml:lang="tr">elogind-devel, elogind için geliştirme dosyalarını içerir.</Description>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user