code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>pisilinux-gtk</Name>
        <Homepage>http://www.pisilinux.org</Homepage>
        <Packager>
            <Name>Ergün Salman</Name>
            <Email>poyraz76@pisilinux.org</Email>
        </Packager>
        <License>custom</License>
        <IsA>library</IsA>
        <Summary>pisilinux-gtk</Summary>
        <Description>Gtk uygulamaları için tema ve yapılandırma</Description>
        <Archive sha1sum="bf961bbd740e75f8d7e4c8fb5c054983b3ffb57c" type="targz">https://sourceforge.net/projects/pisi-source/files/pisilinux-gtk-0.1.tar.gz</Archive>
    </Source>

    <Package>
        <Name>pisilinux-gtk</Name>
        <Files>
            <Path fileType="data">/usr/share/themes/*</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-04-06</Date>
            <Version>0.1</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-09-10</Date>
            <Version>0.1</Version>
            <Comment>New Package</Comment>
            <Name>Ergün Salman</Name>
            <Email>poyraz76@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
#!/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 kde5
from pisi.actionsapi import pisitools

def setup():
    kde5.configure()

def build():
    kde5.make()

def install():
    kde5.install()

    pisitools.dodoc("README*")

repo_name: ayhanyalcinsoy/main


code:
<PISI>
    <Source>
        <Name>pisilinux-theme-damadamas</Name>
        <Homepage>http://www.pisilinux.org/</Homepage>
        <Packager>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:gui</IsA>
        PisiLinux için görsel çalışmaları.
        <Description>PisiLinux için simge seti, şifre ekranı, açılış ekranı ve kilit ekranı.</Description>
        <Archive sha1sum="02582ef2c8abce29063f0b85ddcdb50d8ab948ee" type="targz">https://github.com/alihanozturk/pisilinux-theme-damadamas/archive/0.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>extra-cmake-modules</Dependency>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>plasma-framework-devel</Dependency>
        </BuildDependencies>
    </Source>
    <Package>
        <Name>pisilinux-theme-damadamas</Name>
        PisiLinux için görsel çalışmaları.
        <Files>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="data">/usr/share/color-schemes</Path>
            <Path fileType="data">/usr/share/icons</Path>
            <Path fileType="data">/usr/share/kservices5</Path>
            <Path fileType="data">/usr/share/plasma</Path>
            <Path fileType="data">/usr/share/sddm</Path>
            <Path fileType="data">/usr/share/wallpapers</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>
    <History>
        <Update release="1">
            <Date>2017-03-11</Date>
            <Version>0.1</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<PISI>
    <Source>
        <Name>pisilinux-theme-maia</Name>
        <Homepage>http://www.pisilinux.org/</Homepage>
        <Packager>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:gui</IsA>
        PisiLinux için görsel çalışmaları.
        <Description>PisiLinux için simge seti, şifre ekranı, açılış ekranı ve kilit ekranı.</Description>
        <BuildDependencies>
            <Dependency>extra-cmake-modules</Dependency>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>plasma-framework-devel</Dependency>
        </BuildDependencies>
        <Archive sha1sum="c156875ad7e914d26ef120ae1fd348b3c5e558fe" type="targz">https://github.com/alihanozturk/pisilinux-theme-maia/archive/0.3.tar.gz</Archive>
    </Source>
    <Package>
        <Name>pisilinux-theme-maia</Name>
        PisiLinux için görsel çalışmaları.
        <Files>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="data">/usr/share/color-schemes</Path>
            <Path fileType="data">/usr/share/icons</Path>
            <Path fileType="data">/usr/share/kservices5</Path>
            <Path fileType="data">/usr/share/plasma</Path>
            <Path fileType="data">/usr/share/sddm</Path>
            <Path fileType="data">/usr/share/wallpapers</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>
    <History>
        <Update release="5">
            <Date>2017-03-05</Date>
            <Version>0.3</Version>
            <Comment>Rebuild.</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2016-08-21</Date>
            <Version>0.3</Version>
            <Comment>Version Bump</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>0.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-19</Date>
            <Version>0.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-20</Date>
            <Version>0.1</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    autotools.configure("--disable-static \
                         --libexecdir=/usr/libexec/at-spi2")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("AUTHORS", "COPYING", "README", "NEWS")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>at-spi2-atk</Name>
        <Homepage>http://www.linuxfoundation.org/collaborate/workgroups/accessibility</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2+</License>
        <IsA>service</IsA>
        Protocol definitions and daemons for D-Bus at-spi
        <Description>at-spi allows assistive technologies to access GTK-based applications. Essentially it exposes the internals of applications over D-Bus for automation.</Description>
        <Archive sha1sum="577f4e67bcda8fecd71ed4893c9b675670519bf5" type="tarxz">mirrors://gnome/at-spi2-atk/2.26/at-spi2-atk-2.26.1.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>at-spi2-core-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>atk-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>dbus-devel</Dependency>
            <Dependency>libXtst-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>at-spi2-atk</Name>
        <RuntimeDependencies>
            <Dependency>atk</Dependency>
            <Dependency>dbus</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>at-spi2-core</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>at-spi2-atk-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for at-spi2-atk
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>at-spi2-core-32bit</Dependency>
            <Dependency>atk-32bit</Dependency>
            <Dependency>dbus-32bit</Dependency>
            <Dependency>glib2-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency>atk-32bit</Dependency>
            <Dependency>dbus-32bit</Dependency>
            <Dependency>glib2-32bit</Dependency>
            <Dependency>at-spi2-core-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <Package>
        <Name>at-spi2-atk-devel</Name>
        at-spi2-atk için geliştirme dosyaları
        <RuntimeDependencies>
            <Dependency release="current">at-spi2-atk</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>at-spi2-core-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32/pkgconfig</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="5">
            <Date>2018-01-17</Date>
            <Version>2.26.1</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2017-02-28</Date>
            <Version>2.22.0</Version>
            <Comment>Rebuild for new Toolchain.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>2.18.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-25</Date>
            <Version>2.18.1</Version>
            <Comment>Release bump.</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-26</Date>
            <Version>2.18.1</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>at-spi2-core</Name>
        D-Bus at-spi için protokol tanımları ve hizmetleri
        <Description xml:lang="tr">at-spi2-atk, erişilebilirlik teknolojilerinin uygulamalara D-Bus üzerinden erişerek onları otomatik olarak denetlemesini sağlar.</Description>
    </Source>

    <Package>
        <Name>at-spi2-atk-32bit</Name>
        32-bit shared libraries for at-spi2-atk
    </Package>

    <Package>
        <Name>at-spi2-atk-devel</Name>
        at-spi2-atk için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/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 get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools

if get.buildTYPE() == "emul32":
    libexec = "/tmp"
    sysconf = "--sysconfdir=/tmp"
else:
    libexec = "/usr/libexec/at-spi2"
    sysconf = ""

def setup():
    autotools.autoreconf("-vif")
    autotools.configure("--disable-static \
                         --disable-silent-rules \
                         --disable-xevie \
                         --libexecdir=%s\
                         --with-dbus-daemondir=/usr/bin \
                         %s \
                        " % (libexec, sysconf))

    #pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
    pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
    pisitools.dosed("libtool", "( -shared )", " -Wl,--as-needed\\1")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    #pisitools.removeDir("/etc")
    if get.buildTYPE() == "emul32":
        pisitools.dosed("%s/usr/share/dbus-1/services" % get.installDIR(), "^(Exec=)\/tmp", r"\1/usr/libexec/at-spi2")
        pisitools.removeDir("/tmp")
        return

    pisitools.dodoc("AUTHORS", "COPYING", "README", "NEWS")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>at-spi2-core</Name>
        <Homepage>http://www.linuxfoundation.org/collaborate/workgroups/accessibility</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2+</License>
        <IsA>service</IsA>
        Protocol definitions and daemons for D-Bus at-spi
        <Description>at-spi allows assistive technologies to access GTK-based applications. Essentially it exposes the internals of applications over D-Bus for automation.</Description>
        <Archive sha1sum="1c39d66c1ca02005abff884fdab0ab510311d018" type="tarxz">mirrors://gnome/at-spi2-core/2.26/at-spi2-core-2.26.2.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>libXtst-devel</Dependency>
            <Dependency>libXi-devel</Dependency>
            <Dependency>gettext-devel</Dependency>
            <Dependency>dbus-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>intltool</Dependency>
            <Dependency>gtk-doc</Dependency>
            <Dependency>python-six</Dependency>
            <Dependency>gobject-introspection-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>at-spi2-core</Name>
        <RuntimeDependencies>
            <Dependency>libXtst</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>dbus</Dependency>
            <Dependency>glib2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/dbus-1</Path>
            <Path fileType="data">/usr/share/defaults/at-spi2</Path>

            <Path fileType="executable">/usr/libexec</Path>
            <Path fileType="data">/usr/share/gir-1.0</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
        </Files>
    </Package>

    <Package>
        <Name>at-spi2-core-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for at-spi2-core
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>dbus-32bit</Dependency>
            <Dependency>glib2-32bit</Dependency>
            <Dependency>libXi-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
            <Dependency>libXtst-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency>dbus-32bit</Dependency>
            <Dependency>glib2-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>
    <Package>
        <Name>at-spi2-core-docs</Name>
        <IsA>data:doc</IsA>
        at-spi2-core reference documents
        <RuntimeDependencies>
            <Dependency>at-spi2-core</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
        </Files>
    </Package>
    <Package>
        <Name>at-spi2-core-devel</Name>
        at-spi2-core için geliştirme dosyaları
        <RuntimeDependencies>
            <Dependency release="current">at-spi2-core</Dependency>
            <Dependency>dbus-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="library">/usr/lib32/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="5">
            <Date>2018-01-17</Date>
            <Version>2.26.2</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2017-02-13</Date>
            <Version>2.20.2</Version>
            <Comment>Version Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>2.18.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-25</Date>
            <Version>2.18.3</Version>
            <Comment>Release Bump.</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-26</Date>
            <Version>2.18.3</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>at-spi2-core</Name>
        D-Bus at-spi için protokol tanımları ve hizmetleri
        <Description xml:lang="tr">at-spi2-core, erişilebilirlik teknolojilerinin uygulamalara D-Bus üzerinden erişerek onları otomatik olarak denetlemesini sağlar.</Description>
    </Source>

    <Package>
        <Name>at-spi2-core-32bit</Name>
        32-bit shared libraries for at-spi2-core
    </Package>

    <Package>
        <Name>at-spi2-core-devel</Name>
        at-spi2-core için geliştirme dosyaları
    </Package>
</PISI>


code:
<PISI>
    <Name>desktop.misc</Name>
</PISI>


code:
#!/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 shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    shelltools.export("EMACS", "no")
    autotools.configure("--disable-static")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README")


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-

import piksemel
import os

def updateData(filepath):
    parse = piksemel.parse(filepath)

    for icon in parse.tags("File"):
        path = icon.getTagData("Path")
        if path.startswith("usr/share/applications"):
            os.system("/usr/bin/update-desktop-database -q")
            return

def setupPackage(metapath, filepath):
    updateData(filepath)

def cleanupPackage(metapath, filepath):
    pass

def postCleanupPackage(metapath, filepath):
    updateData(filepath)


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>desktop-file-utils</Name>
        <Homepage>http://www.freedesktop.org/software/desktop-file-utils/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <Summary>Command line utilities to work with desktop menu entries</Summary>
        <Description>desktop files are used to describe an application for inclusion in GNOME or KDE menus. This package contains desktop-file-validate which checks whether a .desktop file complies with the specification and desktop-file-install which installs a desktop file to the standard directory, optionally fixing it up in the process.</Description>
        <Archive sha1sum="10e9df65fdf2b896ce4d5f16616ea0df7c01d8f8" type="tarxz">http://freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-0.23.tar.xz</Archive>
        <BuildDependencies>
             <Dependency>glib2-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>desktop-file-utils</Name>
        <RuntimeDependencies>
             <Dependency>glib2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man/man1/</Path>
        </Files>
        <Provides>
            <COMAR script="pakhandler.py">System.PackageHandler</COMAR>
        </Provides>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-13</Date>
            <Version>0.23</Version>
            <Comment>version Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.21</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2013-09-07</Date>
            <Version>0.21</Version>
            <Comment>First release</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>desktop-file-utils</Name>
        <Summary xml:lang="tr">Masaüstü menü girdilerini yönetmek için komut satırı araçları</Summary>
    </Source>
</PISI>


code:
#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    autotools.configure("--prefix=/usr     \
                         --sysconfdir=/etc \
                         --with-pam        \
                         --enable-gtk3 \
                         --with-systemdsystemunitdir=no")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    #install Pisi Linux default theme
  # pisitools.insinto("/usr/share/lxdm/themes", "lxdm-pisilinux-theme")
    #pisitools.remove("/usr/share/lxdm/themes/lxdm-pisilinux-theme/login.png")
    pisitools.dodoc("COPYING", "AUTHORS", "TODO", "README", "ChangeLog", "NEWS")


code:
# -*- coding: utf-8 -*-
from comar.service import *
import os

serviceType="server"
serviceDesc=_({"en": "lxdm Server",
               "tr": "lxdm Sunucusu"})
serviceDefault="on"
PIDFILE="/run/lxdm.pid"
DAEMON="/usr/sbin/lxdm"

@synchronized
def start():
    if status():
        return

    reply = startService(command=DAEMON,
                 pidfile=PIDFILE,
                 donotify=True)

    if reply == 0:
        run("/usr/sbin/lxdm")

@synchronized
def stop():
    stopService(pidfile=PIDFILE,
                donotify=True)

    try:
        os.unlink(PIDFILE)
    except OSError:
        pass

def status():
    return isServiceRunning(PIDFILE)


code:
diff -Nuar lxdm-0.5.0.orig/data/lxdm.conf.in lxdm-0.5.0/data/lxdm.conf.in
--- lxdm-0.5.0.orig/data/lxdm.conf.in	2012-02-27 13:28:25.000000000 +0200
+++ lxdm-0.5.0/data/lxdm.conf.in	2014-08-18 14:01:59.955134485 +0300
@@ -34,7 +34,7 @@
 gtk_theme=Clearlooks

 ## background of the greeter
-bg=/usr/share/backgrounds/default.png
+#bg=/usr/share/backgrounds/default.png

 ## if show bottom pane
 bottom_pane=1
@@ -46,7 +46,7 @@
 keyboard=0

 ## the theme of greeter
-theme=Industrial
+theme=Industrial

 [input]

@@ -58,5 +58,5 @@
 white=

 ## blacklist user
-black=
+black=ftp


code:
diff -Nuar lxdm-0.5.3.orig/data/lxdm.conf.in lxdm-0.5.3/data/lxdm.conf.in
--- lxdm-0.5.3.orig/data/lxdm.conf.in	2017-11-19 17:40:33.970019559 +0300
+++ lxdm-0.5.3/data/lxdm.conf.in	2017-11-19 17:41:50.406021375 +0300
@@ -7,7 +7,7 @@
 # timeout=10

 ## default session or desktop used when no systemwide config
-# session=/usr/bin/startlxde
+session=/usr/bin/startkde

 ## uncomment and set to set numlock on your keyboard
 # numlock=0


code:
[Desktop Entry]
Exec=/usr/sbin/lxdm
Type=Application
X-Pardus-PlymouthTransition=true
X-Pardus-XCursorTheme=Oxygen_White

Name=LXDM
GenericName=Lxqt Login Manager
GenericName[tr]=Lxqt Giriş Yöneticisi


code:
# Preferred display manager
DISPLAY_MANAGER="lxdm"

# Cursor theme
#XCURSOR_THEME=""

path: desktop/misc/lxdm/files/xdm


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>lxdm</Name>
        <Homepage>http://lxde.org</Homepage>
        <Packager>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>LGPLv2</License>
        <IsA>app:gui</IsA>
        <Summary>LXDE Display Manager</Summary>
        <Description>LXDM is the future display manager of LXDE.</Description>
        <Archive sha1sum="8c4f7439fa7b56a97e8b19dc62af02a88ae12b45" type="tarxz">mirrors://sourceforge/lxdm/lxdm-0.5.3.tar.xz</Archive>

        <!--Archive sha1sum="1934b7f22adc50445a935db817febe4b6ec1a5f2" target="lxdm-0.5.0" type="tarxz">http://source.pisilinux.org/1.0/lxdm-pisilinux-theme.tar.xz</Archive-->
        <BuildDependencies>
            <Dependency>intltool</Dependency>
            <Dependency>iso-codes</Dependency>
            <Dependency>gtk3-devel</Dependency>
<!--             <Dependency>gtk2-devel</Dependency> -->
            <Dependency>cairo-devel</Dependency>
            <Dependency>pango-devel</Dependency>
            <Dependency>dbus-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libxcb-devel</Dependency>
            <Dependency>ConsoleKit-devel</Dependency>
            <Dependency>pam-devel</Dependency>
            <Dependency>gdk-pixbuf-devel</Dependency>
            <Dependency>at-spi2-atk-devel</Dependency>
            <Dependency>at-spi2-core-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">default_config.patch</Patch>
            <Patch level="1">default_session.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>lxdm</Name>
        <Conflicts>
            <Package>lightdm</Package>
            <Package>sddm</Package>
            <Package>mdm</Package>
            <Package>gdm</Package>
            <Package>slim</Package>
        </Conflicts>
        <RuntimeDependencies>
            <Dependency>pam</Dependency>
            <Dependency>iso-codes</Dependency>
            <Dependency>gtk3</Dependency>
<!--             <Dependency>gtk2</Dependency> -->
            <Dependency>cairo</Dependency>
            <Dependency>pango</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
            <Dependency>at-spi2-atk</Dependency>
            <Dependency>at-spi2-core</Dependency>
            <Dependency>dbus</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libxcb</Dependency>
            <Dependency>ConsoleKit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/libexec</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="data">/etc/conf.d/xdm</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/display-managers/lxdm.desktop">lxdm.desktop</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/lxdm/themes/Industrial/wave.svg">wave.svg</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/lxdm/themes/Industrial/login.png">login.png</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-11-19</Date>
            <Version>0.5.3</Version>
            <Comment>set default session KDE5</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@gmail.com</Email>
       </Update>
        <Update release="4">
            <Date>2017-09-23</Date>
            <Version>0.5.3</Version>
            <Comment>set background and icon</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@gmail.com</Email>
       </Update>
        <Update release="3">
            <Date>2017-05-06</Date>
            <Version>0.5.3</Version>
            <Comment>Fix service start on virtual machine</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
       </Update>
       <Update release="2">
            <Date>2016-09-29</Date>
            <Version>0.5.1</Version>
            <Comment>Fix service start on virtual machine</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
       </Update>
       <Update release="1">
            <Date>2016-08-23</Date>
            <Version>0.5.1</Version>
            <Comment>First Release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
       </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>lxdm</Name>
        <Summary xml:lang="tr">LXDE Ekran Yöneticisi</Summary>
        <Description xml:lang="tr">LXDM, LXDE için bir ekran yöneticisidir.</Description>
    </Source>
</PISI>


code:
#!/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 cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")

    cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
                          -DCMAKE_BUILD_TYPE=Release \
                          -DCMAKE_BUILD_TYPE=RelWithDebInfo \
                          -DUSE_QT5=ON \
                          -DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
                          -DUSE_WAYLAND=ON \
                          -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib/sddm \
                          -DBUILD_MAN_PAGES=ON", sourceDir=".." )

def build():
    shelltools.makedirs("build")
    shelltools.cd("build")

    cmaketools.make()

def install():
    shelltools.makedirs("build")
    shelltools.cd("build")

    cmaketools.install()

    pisitools.dodoc("../LICENSE")


code:
#!/usr/bin/python

import os, re
import shutil

OUR_ID = 65
OUR_NAME = "sddm"
OUR_DESC = "sddm"

DATADIR = "/var/lib/sddm"
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/sddm -r -s /bin/false -u %d -g %d %s -c %s" % (OUR_ID, OUR_ID, OUR_NAME, OUR_DESC))
        os.system ("passwd -l sddm > /dev/null")
        os.system("/bin/chown -R sddm:sddm %s" % DATADIR)
    except:
        pass

# os.system ("groupadd --system %s" % (OUR_NAME))
# os.system ("useradd -c 'sddm' --system -d /var/lib/sddm -s /sbin/nologin -g %s %s" % (OUR_NAME, OUR_DESC))

    # os.system("/bin/chown -R sddm:sddm /var/log/sddm.log")

def postRemove():
    try:
        os.system ("userdel %s" % OUR_NAME)
        os.system ("groupdel %s" % OUR_NAME)
    except:
        pass


code:
# -*- coding: utf-8 -*-
from comar.service import *
import os

serviceType="server"
serviceDesc=_({"en": "sddm Server",
               "tr": "sddm Sunucusu"})
serviceDefault="on"
PIDFILE="/run/sddm/sddm.pid"
DAEMON="/usr/bin/sddm"

@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)


code:
polkit.addRule(function(action, subject) {

        if (action.id.indexOf("org.kde.powerdevil.backlighthelper.") == 0 &&

        subject.isInGroup("users")) {

                return polkit.Result.YES;

        }

});


code:
From ecb903e48822bd90650bdd64fe80754e3e9664cb Mon Sep 17 00:00:00 2001
From: Bastian Beischer <bastian.beischer@gmail.com>
Date: Fri, 2 Sep 2016 13:05:18 +0200
Subject: [PATCH] Fix display of user avatars. (#684)

QFile::exists("...") does not understand file:// URLs, at least in Qt
5.7.0 and Qt 4.8.7.
---
 src/greeter/UserModel.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/greeter/UserModel.cpp b/src/greeter/UserModel.cpp
index 41a9f10..94c492d 100644
--- a/src/greeter/UserModel.cpp
+++ b/src/greeter/UserModel.cpp
@@ -107,13 +107,13 @@ namespace SDDM {
                 d->lastIndex = i;

             if (avatarsEnabled) {
-                const QString userFace = QStringLiteral("file://%1/.face.icon").arg(user->homeDir);
-                const QString systemFace = QStringLiteral("file://%1/%2.face.icon").arg(facesDir).arg(user->name);
+                const QString userFace = QStringLiteral("%1/.face.icon").arg(user->homeDir);
+                const QString systemFace = QStringLiteral("%1/%2.face.icon").arg(facesDir).arg(user->name);

                 if (QFile::exists(userFace))
-                    user->icon = userFace;
+                    user->icon = QStringLiteral("file://%1").arg(userFace);
                 else if (QFile::exists(systemFace))
-                    user->icon = systemFace;
+                    user->icon = QStringLiteral("file://%1").arg(systemFace);
             }
         }
     }


code:
#%PAM-1.0

auth		include		system-auth
account		include		system-auth
password	include		system-auth
session		include		system-auth

path: desktop/misc/sddm/files/sddm


code:
diff -u -r sddm-0.9.0.orig/src/daemon/PowerManager.cpp sddm-0.9.0/src/daemon/PowerManager.cpp
--- sddm-0.9.0.orig/src/daemon/PowerManager.cpp	2014-10-01 18:40:37.402683578 +0200
+++ sddm-0.9.0/src/daemon/PowerManager.cpp	2014-10-01 18:40:43.502618164 +0200
@@ -197,7 +197,7 @@
             m_backends << new Login1Backend();

         // check if upower interface exists
-        if (interface->isServiceRegistered(UPOWER_SERVICE))
+//        if (interface->isServiceRegistered(UPOWER_SERVICE))
             m_backends << new UPowerBackend();
     }


code:
diff --git a/data/scripts/Xsession b/data/scripts/Xsession
index a5d270d..4b48524 100755
--- a/data/scripts/Xsession
+++ b/data/scripts/Xsession
@@ -74,7 +74,7 @@ case $session in
     exec xterm -geometry 80x24-0-0
     ;;
   *)
-    eval exec "$session"
+    eval exec ck-launch-session "$session"
     ;;
 esac
 exec xmessage -center -buttons OK:0 -default OK "Sorry, cannot execute $session. Check $DESKTOP_SESSION.desktop."


code:
From 4ab6ab1b78617c51a6d9db4d03be2b3d75e7acc5 Mon Sep 17 00:00:00 2001
From: Harald Sitter <sitter@kde.org>
Date: Tue, 14 Apr 2015 10:50:00 +0200
Subject: [PATCH] allow changing the dbus config file name

on some distributions the generic name of the dbus config might be provided
by more than one display manager, so always installing with the generic
name would require distributions to hard-patch the cmake code.
allowing to change it through a cmake cache variable enables distributions
to simply parameterize in their cmake call.

this for example affects Ubuntu where the config would be provided by both
SDDM and LightDM.
---
 CMakeLists.txt      | 1 +
 data/CMakeLists.txt | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7ceed6e..cf21dc9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -141,6 +141,7 @@ set(SESSION_COMMAND             "${DATA_INSTALL_DIR}/scripts/Xsession"

 set(CONFIG_FILE                 "${CMAKE_INSTALL_FULL_SYSCONFDIR}/sddm.conf"        CACHE PATH      "Path of the sddm config file")
 set(LOG_FILE                    "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/log/sddm.log"  CACHE PATH      "Path of the sddm log file")
+set(DBUS_CONFIG_FILENAME        "org.freedesktop.DisplayManager.conf"               CACHE STRING    "Name of the sddm config file")
 set(COMPONENTS_TRANSLATION_DIR  "${DATA_INSTALL_DIR}/translations"                  CACHE PATH      "Components translations directory")

 # Add subdirectories
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 918892f..335f4e7 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -1,7 +1,7 @@
 install(DIRECTORY   "faces"                             DESTINATION "${DATA_INSTALL_DIR}")
 install(DIRECTORY   "flags"                             DESTINATION "${DATA_INSTALL_DIR}")

-install(FILES "org.freedesktop.DisplayManager.conf"       DESTINATION "${DBUS_CONFIG_DIR}")
+install(FILES "org.freedesktop.DisplayManager.conf"     DESTINATION "${DBUS_CONFIG_DIR}" RENAME ${DBUS_CONFIG_FILENAME})

 install(FILES "scripts/Xsession" "scripts/Xsetup" "scripts/Xstop" DESTINATION "${DATA_INSTALL_DIR}/scripts"
         PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
--
2.3.6


code:
--- a/data/scripts/Xsession	2016-08-28 14:52:04.910181422 +0200
+++ b/data/scripts/Xsession	2016-08-28 14:53:07.157184480 +0200
@@ -91,5 +91,5 @@
 if [ -z "$@" ]; then
     exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session."
 else
-    exec $@
+    exec ck-launch-session $@
 fi


code:
#%PAM-1.0
auth            requisite       pam_nologin.so
auth            required        pam_env.so

auth            required        pam_permit.so

auth            sufficient      pam_succeed_if.so uid >= 1000 quiet
auth            required        pam_deny.so

account         required        pam_access.so
account         required        pam_time.so

password        required        pam_deny.so

session         required        pam_limits.so
session         required        pam_loginuid.so
session         optional        pam_keyinit.so revoke
session         required        pam_limits.so

path: desktop/misc/sddm/files/sddm-autologin


code:
#%PAM-1.0

# Load environment from /etc/environment and ~/.pam_environment
auth		required pam_env.so

# Always let the greeter start without authentication
auth		required pam_permit.so

# No action required for account management
account		required pam_permit.so

# Can't change password
password	required pam_deny.so

# Setup session
session		required pam_unix.so
-session		optional pam_systemd.so

path: desktop/misc/sddm/files/sddm-greeter


code:
diff -u CMakeLists.txt CMakeLists.txt
--- CMakeLists.txt      2015-09-05 22:40:50.000000000 +0200
+++ CMakeLists.txt      2015-09-07 12:15:33.419530808 +0200
@@ -35,22 +35,6 @@
 # Definitions
 add_definitions(-Wall -std=c++11 -DQT_NO_CAST_FROM_ASCII)

-# Default build type
-if(NOT CMAKE_BUILD_TYPE)
-    set(CMAKE_BUILD_TYPE Release)
-endif()
-
-# Handle build type
-if(CMAKE_BUILD_TYPE MATCHES [Dd]ebug)
-    message(STATUS "Debug build")
-    add_definitions(-DDEBUG)
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")
-else()
-    message(STATUS "Release build")
-    add_definitions(-DNDEBUG)
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
-endif()
-
 # Default absolute paths
 if(NOT DEFINED CMAKE_INSTALL_SYSCONFDIR)
     set(CMAKE_INSTALL_SYSCONFDIR "/etc")


code:
[Autologin]
# Autologin again on session exit
Relogin=false

# Autologin session
Session=plasma.desktop

# Autologin user
User=

[General]
# Halt command
HaltCommand=/sbin/shutdown -h -P now

# Initial NumLock state
# Valid values: on|off|none
# If property is set to none, numlock won't be changed
Numlock=none

# Reboot command
RebootCommand=/sbin/shutdown -r now

[Theme]
# Current theme name
Current=maia

# Cursor theme
CursorTheme=breeze

# Face icon directory
# The files should be in username.face.icon format
FacesDir=/usr/share/sddm/faces

# Theme directory path
ThemeDir=/usr/share/sddm/themes

[Users]
# Default $PATH
DefaultPath=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin

# Hidden shells
# Users with these shells as their default won't be listed
HideShells=

# Hidden users
HideUsers=git,sddm

# Maximum user id for displayed users
MaximumUid=65000

# Minimum user id for displayed users
MinimumUid=1000

# Remember the session of the last successfully logged in user
RememberLastSession=true

# Remember the last successfully logged in user
RememberLastUser=true

[XDisplay]
# Xsetup script path
# A script to execute when starting the display server
DisplayCommand=/usr/share/sddm/scripts/Xsetup

# Minimum VT
# The lowest virtual terminal number that will be used.
MinimumVT=7

# X server path
ServerPath=/usr/bin/X

# Xsession script path
# A script to execute when starting the desktop session
SessionCommand=/usr/share/sddm/scripts/Xsession

# Session description directory
SessionDir=/usr/share/xsessions

# Xauth path
XauthPath=/usr/bin/xauth


code:
diff -Nuar sddm-0.11.0/ChangeLog sddm-master/ChangeLog
--- sddm-0.11.0/ChangeLog	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/ChangeLog	2015-03-08 18:18:48.000000000 +0200
@@ -4,6 +4,10 @@
     - Bug fixes
     * Others

+## 0.12.0 - XXXX-XX-XX
+----------------------
+    * Add Arabic translation by Safa Alfulaij.
+
 ## 0.11.0 - 2014-11-20
 ----------------------
     + Reload the configuration every time we start a new session
@@ -15,7 +19,6 @@

 ## 0.10.0 - 2014-10-16
 ----------------------
-
     + Set default icon theme from greeter theme configuration.
     + Set cursor theme according to greeter theme configuration.
     - Never permit a login as the sddm user (CVE-2014-7271)
diff -Nuar sddm-0.11.0/CMakeLists.txt sddm-master/CMakeLists.txt
--- sddm-0.11.0/CMakeLists.txt	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/CMakeLists.txt	2015-03-08 18:18:48.000000000 +0200
@@ -77,7 +77,9 @@

 # find qt5 imports dir
 get_target_property(QMAKE_EXECUTABLE Qt5::qmake LOCATION)
-exec_program(${QMAKE_EXECUTABLE} ARGS "-query QT_INSTALL_QML" RETURN_VALUE return_code OUTPUT_VARIABLE QT_IMPORTS_DIR)
+if(NOT QT_IMPORTS_DIR)
+    exec_program(${QMAKE_EXECUTABLE} ARGS "-query QT_INSTALL_QML" RETURN_VALUE return_code OUTPUT_VARIABLE QT_IMPORTS_DIR)
+endif()

 # Set components version
 set(COMPONENTS_VERSION 2.0)
@@ -98,7 +100,12 @@
     add_definitions(-DHAVE_SYSTEMD)
     set(CMAKE_AUTOMOC_MOC_OPTIONS -DHAVE_SYSTEMD)

-    pkg_check_modules(JOURNALD "libsystemd-journal")
+    # libsystemd-journal was merged into libsystemd in 209
+    if(${SYSTEMD_VERSION} VERSION_LESS 209)
+        pkg_check_modules(JOURNALD "libsystemd-journal")
+    else()
+        pkg_check_modules(JOURNALD "libsystemd")
+    endif()

     if(ENABLE_JOURNALD)
         if(JOURNALD_FOUND)
@@ -109,8 +116,11 @@
         endif()
     endif()

-    execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=systemdsystemunitdir systemd OUTPUT_VARIABLE SYSTEMD_SYSTEM_UNIT_DIR)
-    string(REGEX REPLACE "[ \t\n]+" "" SYSTEMD_SYSTEM_UNIT_DIR ${SYSTEMD_SYSTEM_UNIT_DIR})
+    if (NOT DEFINED SYSTEMD_SYSTEM_UNIT_DIR)
+        execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=systemdsystemunitdir systemd OUTPUT_VARIABLE SYSTEMD_SYSTEM_UNIT_DIR)
+        string(REGEX REPLACE "[ \t\n]+" "" SYSTEMD_SYSTEM_UNIT_DIR ${SYSTEMD_SYSTEM_UNIT_DIR})
+    endif()
+
     set(MINIMUM_VT 1)
     set(HALT_COMMAND "/usr/bin/systemctl poweroff")
     set(REBOOT_COMMAND "/usr/bin/systemctl reboot")
diff -Nuar sddm-0.11.0/CONTRIBUTORS sddm-master/CONTRIBUTORS
--- sddm-0.11.0/CONTRIBUTORS	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/CONTRIBUTORS	2015-03-08 18:18:48.000000000 +0200
@@ -43,3 +43,4 @@
 a.k.a. Harvey <teknocratdefunct@riseup.net>
 raffarti <raffarti@zoho.com>
 w41l <walecha99@gmail.com>
+Sérgio Marques <smarquespt@gmail.com>
diff -Nuar sddm-0.11.0/data/man/sddm.conf.rst.in sddm-master/data/man/sddm.conf.rst.in
--- sddm-0.11.0/data/man/sddm.conf.rst.in	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/data/man/sddm.conf.rst.in	2015-03-08 18:18:48.000000000 +0200
@@ -65,6 +65,10 @@
 	Path of the X server.
 	Default value is "/usr/bin/X".

+`XephyrPath=`
+	Path of the Xephyr.
+	Default value is "/usr/bin/Xephyr".
+
 `XauthPath=`
 	Path of the Xauth.
 	Default value is "/usr/bin/xauth".
@@ -104,11 +108,11 @@
 	Default value is 65000.

 `HideUsers=`
-	Users that shouldn't show up in the user list.
+	Comma-separated list of Users that shouldn't show up in the user list.
 	Default value is empty.

 `HideShells=`
-	Shells of users that shouldn't show up in the user list.
+	Comma-separated list of Shells of users that shouldn't show up in the user list.
 	Default value is empty.

 `RememberLastUser=`
diff -Nuar sddm-0.11.0/data/man/sddm.rst.in sddm-master/data/man/sddm.rst.in
--- sddm-0.11.0/data/man/sddm.rst.in	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/data/man/sddm.rst.in	2015-03-08 18:18:48.000000000 +0200
@@ -25,9 +25,9 @@
 easily create pleasant, modern looking interfaces for sddm.

 sddm runs the greeter as a system user named **sddm**
-whose home directory need to be set to **/var/lib/sddm**.
+whose home directory needs to be set to **/var/lib/sddm**.

-If pam and systemd are available, the greeter will go through logind
+If pam and systemd are available, the greeter will go through logind,
 which will give it access to drm devices.

 Distributions without pam and systemd will need to put the **sddm** user
diff -Nuar sddm-0.11.0/data/scripts/Xsession sddm-master/data/scripts/Xsession
--- sddm-0.11.0/data/scripts/Xsession	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/data/scripts/Xsession	2015-03-08 18:18:48.000000000 +0200
@@ -20,9 +20,8 @@
       . $HOME/.profile
     fi
     ;;
-  */zsh)
+*/zsh)
     [ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@"
-    emulate -R sh
     [ -d /etc/zsh ] && zdir=/etc/zsh || zdir=/etc
     zhome=${ZDOTDIR:-$HOME}
     # zshenv is always sourced automatically.
@@ -30,6 +29,7 @@
     [ -f $zhome/.zprofile ] && . $zhome/.zprofile
     [ -f $zdir/zlogin ] && . $zdir/zlogin
     [ -f $zhome/.zlogin ] && . $zhome/.zlogin
+    emulate -R sh
     ;;
   */csh|*/tcsh)
     # [t]cshrc is always sourced automatically.
diff -Nuar sddm-0.11.0/data/translations/ar.ts sddm-master/data/translations/ar.ts
--- sddm-0.11.0/data/translations/ar.ts	1970-01-01 02:00:00.000000000 +0200
+++ sddm-master/data/translations/ar.ts	2015-03-08 18:18:48.000000000 +0200
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="ar">
+<context>
+    <name>TextConstants</name>
+    <message>
+        <source>Welcome to %1</source>
+        <translation>مرحبًا في %1</translation>
+    </message>
+    <message>
+        <source>Warning, Caps Lock is ON!</source>
+        <translation>تحذير، مفتاح Caps Lock ممكّن!</translation>
+    </message>
+    <message>
+        <source>Layout</source>
+        <translation>التّخطيط</translation>
+    </message>
+    <message>
+        <source>Login</source>
+        <translation>لِج</translation>
+    </message>
+    <message>
+        <source>Login failed</source>
+        <translation>فشل الولوج</translation>
+    </message>
+    <message>
+        <source>Login succeeded</source>
+        <translation>نجح الولوج</translation>
+    </message>
+    <message>
+        <source>Password</source>
+        <translation>كلمة المرور</translation>
+    </message>
+    <message>
+        <source>Enter your username and password</source>
+        <translation>أدخِل اسم المستخدم وكلمة مروره</translation>
+    </message>
+    <message>
+        <source>Reboot</source>
+        <translation>أعد الإقلاع</translation>
+    </message>
+    <message>
+        <source>Session</source>
+        <translation>الجلسة</translation>
+    </message>
+    <message>
+        <source>Shutdown</source>
+        <translation>أطفئ</translation>
+    </message>
+    <message>
+        <source>User name</source>
+        <translation>اسم المستخدم</translation>
+    </message>
+    <message>
+        <source>Select your user and enter password</source>
+        <translation>اختر مستخدمًا وأدخِل كلمة مروره</translation>
+    </message>
+</context>
+</TS>
diff -Nuar sddm-0.11.0/data/translations/CMakeLists.txt sddm-master/data/translations/CMakeLists.txt
--- sddm-0.11.0/data/translations/CMakeLists.txt	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/data/translations/CMakeLists.txt	2015-03-08 18:18:48.000000000 +0200
@@ -1,9 +1,11 @@
 set(TRANSLATION_FILES
+    ar.ts
     cs.ts
     de.ts
     et.ts
     fi.ts
     fr.ts
+    hu.ts
     it.ts
     ja.ts
     pl.ts
diff -Nuar sddm-0.11.0/data/translations/hu.ts sddm-master/data/translations/hu.ts
--- sddm-0.11.0/data/translations/hu.ts	1970-01-01 02:00:00.000000000 +0200
+++ sddm-master/data/translations/hu.ts	2015-03-08 18:18:48.000000000 +0200
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="hu">
+<context>
+    <name>TextConstants</name>
+    <message>
+        <source>Welcome to %1</source>
+        <translation>Üdvözöljük - %1</translation>
+    </message>
+    <message>
+        <source>Warning, Caps Lock is ON!</source>
+        <translation>Figyelem: a Caps Lock BE van kapcsolva!</translation>
+    </message>
+    <message>
+        <source>Layout</source>
+        <translation>Nézet</translation>
+    </message>
+    <message>
+        <source>Login</source>
+        <translation>Bejelentkezés</translation>
+    </message>
+    <message>
+        <source>Login failed</source>
+        <translation>Bejelentkezés sikertelen</translation>
+    </message>
+    <message>
+        <source>Login succeeded</source>
+        <translation>Sikeres bejelentkezés</translation>
+    </message>
+    <message>
+        <source>Password</source>
+        <translation>Jelszó</translation>
+    </message>
+    <message>
+        <source>Enter your username and password</source>
+        <translation>Írja be a felhasználónevét és a jelszavát</translation>
+    </message>
+    <message>
+        <source>Reboot</source>
+        <translation>Újraindítás</translation>
+    </message>
+    <message>
+        <source>Session</source>
+        <translation>Munkamenet</translation>
+    </message>
+    <message>
+        <source>Shutdown</source>
+        <translation>Leállítás</translation>
+    </message>
+    <message>
+        <source>User name</source>
+        <translation>Felhasználónév</translation>
+    </message>
+    <message>
+        <source>Select your user and enter password</source>
+        <translation>Válassza ki a felhasználónevét és írja be a jelszavát</translation>
+    </message>
+</context>
+</TS>
diff -Nuar sddm-0.11.0/data/translations/it.ts sddm-master/data/translations/it.ts
--- sddm-0.11.0/data/translations/it.ts	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/data/translations/it.ts	2015-03-08 18:18:48.000000000 +0200
@@ -21,7 +21,7 @@
     </message>
     <message>
         <source>Login failed</source>
-        <translation>Accesso fallito</translation>
+        <translation>Accesso non riuscito</translation>
     </message>
     <message>
         <source>Login succeeded</source>
diff -Nuar sddm-0.11.0/data/translations/pt_PT.ts sddm-master/data/translations/pt_PT.ts
--- sddm-0.11.0/data/translations/pt_PT.ts	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/data/translations/pt_PT.ts	2015-03-08 18:18:48.000000000 +0200
@@ -5,11 +5,11 @@
     <name>TextConstants</name>
     <message>
         <source>Welcome to %1</source>
-        <translation>Bem-vindo a %1</translation>
+        <translation>Bem-vindo ao %1</translation>
     </message>
     <message>
         <source>Warning, Caps Lock is ON!</source>
-        <translation>Atenção, Caps Lock está ligada!</translation>
+        <translation>Atenção, Caps Lock está ativo!</translation>
     </message>
     <message>
         <source>Layout</source>
@@ -17,15 +17,15 @@
     </message>
     <message>
         <source>Login</source>
-        <translation>Sessão</translation>
+        <translation>Autenticação</translation>
     </message>
     <message>
         <source>Login failed</source>
-        <translation>A autenticação falhou</translation>
+        <translation>Falha de autenticação</translation>
     </message>
     <message>
         <source>Login succeeded</source>
-        <translation>Autentificação com sucesso</translation>
+        <translation>Autenticação efetuada</translation>
     </message>
     <message>
         <source>Password</source>
@@ -33,7 +33,7 @@
     </message>
     <message>
         <source>Enter your username and password</source>
-        <translation>Escreva o seu nome de utilizador e senha</translation>
+        <translation>Escreva o seu nome de utilizador e a senha</translation>
     </message>
     <message>
         <source>Reboot</source>
diff -Nuar sddm-0.11.0/data/translations/tr.ts sddm-master/data/translations/tr.ts
--- sddm-0.11.0/data/translations/tr.ts	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/data/translations/tr.ts	2015-03-08 18:18:48.000000000 +0200
@@ -5,7 +5,7 @@
     <name>TextConstants</name>
     <message>
         <source>Welcome to %1</source>
-        <translation>Hoşgeldiniz (%1)</translation>
+        <translation>Hoş Geldiniz (%1)</translation>
     </message>
     <message>
         <source>Warning, Caps Lock is ON!</source>
@@ -29,11 +29,11 @@
     </message>
     <message>
         <source>Password</source>
-        <translation>Şifre</translation>
+        <translation>Parola</translation>
     </message>
     <message>
         <source>Enter your username and password</source>
-        <translation>Kullanıcı adınızı ve şifrenizi giriniz</translation>
+        <translation>Kullanıcı adınızı ve parolanızı giriniz</translation>
     </message>
     <message>
         <source>Reboot</source>
@@ -53,7 +53,7 @@
     </message>
     <message>
         <source>Select your user and enter password</source>
-        <translation>Kullanıcınızı seçiniz ve şifrenizi giriniz</translation>
+        <translation>Kullanıcınızı seçiniz ve parolanızı giriniz</translation>
     </message>
 </context>
 </TS>
diff -Nuar sddm-0.11.0/README.md sddm-master/README.md
--- sddm-0.11.0/README.md	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/README.md	2015-03-08 18:18:48.000000000 +0200
@@ -2,7 +2,7 @@

 [![Build Status](https://travis-ci.org/sddm/sddm.svg?branch=master)](https://travis-ci.org/sddm/sddm)

-SDDM is a modern display manager for X11 aiming to be fast, simple and beatiful. It uses modern technologies like QtQuick, which in turn gives the designer the ability to create smooth, animated user interfaces.
+SDDM is a modern display manager for X11 aiming to be fast, simple and beautiful. It uses modern technologies like QtQuick, which in turn gives the designer the ability to create smooth, animated user interfaces.

 SDDM is extremely themeable. We put no restrictions on the user interface design, it is completely up to the designer. We simply provide a few callbacks to the user interface which can be used for authentication, suspend etc. To further ease theme creation we provide some premade components like a textbox, a combox etc.

diff -Nuar sddm-0.11.0/src/common/Configuration.h sddm-master/src/common/Configuration.h
--- sddm-0.11.0/src/common/Configuration.h	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/src/common/Configuration.h	2015-03-08 18:18:48.000000000 +0200
@@ -54,6 +54,7 @@
         // TODO: Not absolutely sure if everything belongs here. Xsessions, VT and probably some more seem universal
         Section(XDisplay,
             Entry(ServerPath,          QString,     _S("/usr/bin/X"),                           _S("X server path"));
+            Entry(XephyrPath,          QString,     _S("/usr/bin/Xephyr"),                      _S("Xephyr path"));
             Entry(XauthPath,           QString,     _S("/usr/bin/xauth"),                       _S("Xauth path"));
             Entry(SessionDir,          QString,     _S("/usr/share/xsessions"),                 _S("Session description directory"));
             Entry(SessionCommand,      QString,     _S(SESSION_COMMAND),                        _S("Xsession script path\n"
diff -Nuar sddm-0.11.0/src/daemon/Display.cpp sddm-master/src/daemon/Display.cpp
--- sddm-0.11.0/src/daemon/Display.cpp	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/src/daemon/Display.cpp	2015-03-08 18:18:48.000000000 +0200
@@ -40,8 +40,8 @@
 #include <unistd.h>

 namespace SDDM {
-    Display::Display(const int displayId, const int terminalId, Seat *parent) : QObject(parent),
-        m_displayId(displayId), m_terminalId(terminalId),
+    Display::Display(const int terminalId, Seat *parent) : QObject(parent),
+        m_terminalId(terminalId),
         m_auth(new Auth(this)),
         m_displayServer(new XorgDisplayServer(this)),
         m_seat(parent),
@@ -73,8 +73,8 @@
         stop();
     }

-    const int Display::displayId() const {
-        return m_displayId;
+    QString Display::displayId() const {
+        return m_displayServer->display();
     }

     const int Display::terminalId() const {
diff -Nuar sddm-0.11.0/src/daemon/Display.h sddm-master/src/daemon/Display.h
--- sddm-0.11.0/src/daemon/Display.h	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/src/daemon/Display.h	2015-03-08 18:18:48.000000000 +0200
@@ -39,10 +39,10 @@
         Q_OBJECT
         Q_DISABLE_COPY(Display)
     public:
-        explicit Display(const int displayId, const int terminalId, Seat *parent);
+        explicit Display(int terminalId, Seat *parent);
         ~Display();

-        const int displayId() const;
+        QString displayId() const;
         const int terminalId() const;

         const QString &name() const;
@@ -71,7 +71,6 @@
         bool m_relogin { true };
         bool m_started { false };

-        int m_displayId { 0 };
         int m_terminalId { 7 };

         QString m_passPhrase;
diff -Nuar sddm-0.11.0/src/daemon/Seat.cpp sddm-master/src/daemon/Seat.cpp
--- sddm-0.11.0/src/daemon/Seat.cpp	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/src/daemon/Seat.cpp	2015-03-08 18:18:48.000000000 +0200
@@ -51,36 +51,25 @@
         return m_name;
     }

-    void Seat::createDisplay(int displayId, int terminalId) {
+    void Seat::createDisplay(int terminalId) {
         //reload config if needed
         mainConfig.load();

-        if (displayId == -1) {
-            // find unused display
-            displayId = findUnused(0, [&](const int number) {
-                bool alreadyExists = m_displayIds.contains(number);
-                if (!alreadyExists)
-                    alreadyExists = XorgDisplayServer::displayExists(number);
-                return alreadyExists;
-            });
-
-            // find unused terminal
+        if (terminalId == -1) {
+                // find unused terminal
             terminalId = findUnused(mainConfig.XDisplay.MinimumVT.get(), [&](const int number) {
                 return m_terminalIds.contains(number);
             });
         }

-        // mark display as used
-        m_displayIds << displayId;
-
         // mark terminal as used
         m_terminalIds << terminalId;

         // log message
-        qDebug() << "Adding new display" << displayId << "on vt" << terminalId << "...";
+        qDebug() << "Adding new display" << "on vt" << terminalId << "...";

         // create a new display
-        Display *display = new Display(displayId, terminalId, this);
+        Display *display = new Display(terminalId, this);

         // restart display on stop
         connect(display, SIGNAL(stopped()), this, SLOT(displayStopped()));
@@ -92,26 +81,14 @@
         display->start();
     }

-    void Seat::removeDisplay(int displayId) {
-        qDebug() << "Removing display" << displayId << "...";
-
-        // display object
-        Display *display = nullptr;
+    void Seat::removeDisplay(Display* display) {
+        qDebug() << "Removing display" << display->displayId() << "...";

-        // find display
-        for (Display *d: m_displays)
-            if (d->displayId() == displayId)
-                display = d;
-
-        // check if found
-        if (display == nullptr)
-            return;

         // remove display from list
         m_displays.removeAll(display);

         // mark display and terminal ids as unused
-        m_displayIds.removeAll(display->displayId());
         m_terminalIds.removeAll(display->terminalId());

         // stop the display
@@ -127,7 +104,7 @@
         Display *display = qobject_cast<Display *>(sender());

         // remove display
-        removeDisplay(display->displayId());
+        removeDisplay(display);

         // restart otherwise
         if (m_displays.isEmpty())
diff -Nuar sddm-0.11.0/src/daemon/Seat.h sddm-master/src/daemon/Seat.h
--- sddm-0.11.0/src/daemon/Seat.h	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/src/daemon/Seat.h	2015-03-08 18:18:48.000000000 +0200
@@ -34,8 +34,8 @@
         const QString &name() const;

     public slots:
-        void createDisplay(int displayId = -1, int terminalId = -1);
-        void removeDisplay(int displayId);
+        void createDisplay(int terminalId = -1);
+        void removeDisplay(SDDM::Display* display);

     private slots:
         void displayStopped();
@@ -45,7 +45,6 @@

         QList<Display *> m_displays;
         QList<int> m_terminalIds;
-        QList<int> m_displayIds;
     };
 }

diff -Nuar sddm-0.11.0/src/daemon/Utils.h sddm-master/src/daemon/Utils.h
--- sddm-0.11.0/src/daemon/Utils.h	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/src/daemon/Utils.h	2015-03-08 18:18:48.000000000 +0200
@@ -21,6 +21,8 @@
 #ifndef SDDM_UTILS_H
 #define SDDM_UTILS_H

+#include <random>
+
 namespace SDDM {

 inline QString generateName(int length) {
diff -Nuar sddm-0.11.0/src/daemon/XorgDisplayServer.cpp sddm-master/src/daemon/XorgDisplayServer.cpp
--- sddm-0.11.0/src/daemon/XorgDisplayServer.cpp	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/src/daemon/XorgDisplayServer.cpp	2015-03-08 18:18:48.000000000 +0200
@@ -28,6 +28,9 @@
 #include <QDebug>
 #include <QFile>
 #include <QProcess>
+#include <QUuid>
+
+#include <random>

 #include <xcb/xcb.h>

@@ -36,9 +39,6 @@

 namespace SDDM {
     XorgDisplayServer::XorgDisplayServer(Display *parent) : DisplayServer(parent) {
-        // figure out the X11 display
-        m_display = QString(":%1").arg(displayPtr()->displayId());
-
         // get auth directory
         QString authDir = RUNTIME_DIR;

@@ -50,7 +50,7 @@
         QDir().mkpath(authDir);

         // set auth path
-        m_authPath = QString("%1/%2").arg(authDir).arg(m_display);
+        m_authPath = QString("%1/%2").arg(authDir).arg(QUuid::createUuid().toString());

         // generate cookie
         std::random_device rd;
@@ -70,10 +70,6 @@
         stop();
     }

-    bool XorgDisplayServer::displayExists(int number) {
-        return QFile(QString("/tmp/.X%1-lock").arg(number)).exists();
-    }
-
     const QString &XorgDisplayServer::display() const {
         return m_display;
     }
@@ -136,44 +132,72 @@
         if (daemonApp->testing()) {
             QStringList args;
             args << m_display << "-ac" << "-br" << "-noreset" << "-screen" << "800x600";
-            process->start("/usr/bin/Xephyr", args);
+            process->start(mainConfig.XDisplay.XephyrPath.get(), args);
+
+
+            // wait for display server to start
+            if (!process->waitForStarted()) {
+                // log message
+                qCritical() << "Failed to start display server process.";
+
+                // return fail
+                return false;
+            }
+            emit started();
         } else {
             // set process environment
             QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
-            env.insert("DISPLAY", m_display);
-            env.insert("XAUTHORITY", m_authPath);
             env.insert("XCURSOR_THEME", mainConfig.Theme.CursorTheme.get());
             process->setProcessEnvironment(env);

-            // tell the display server to notify us when we can connect
-            SignalHandler::ignoreSigusr1();
+            //create pipe for communicating with X server
+            //0 == read from X, 1== write to from X
+            int pipeFds[2];
+            if (pipe(pipeFds) != 0) {
+                qCritical("Could not create pipe to start X server");
+            }

             // start display server
             QStringList args;
-            args << m_display
-                 << "-auth" << m_authPath
+            args << "-auth" << m_authPath
                  << "-nolisten" << "tcp"
                  << "-background" << "none"
                  << "-noreset"
+                 << "-displayfd" << QString::number(pipeFds[1])
                  << QString("vt%1").arg(displayPtr()->terminalId());
             qDebug() << "Running:"
                      << qPrintable(mainConfig.XDisplay.ServerPath.get())
                      << qPrintable(args.join(" "));
             process->start(mainConfig.XDisplay.ServerPath.get(), args);
-            SignalHandler::initializeSigusr1();
-            connect(DaemonApp::instance()->signalHandler(), SIGNAL(sigusr1Received()), this, SIGNAL(started()));
-        }

-        // wait for display server to start
-        if (!process->waitForStarted()) {
-            // log message
-            qCritical() << "Failed to start display server process.";
+            // wait for display server to start
+            if (!process->waitForStarted()) {
+                // log message
+                qCritical() << "Failed to start display server process.";
+
+                // return fail
+                close(pipeFds[0]);
+                return false;
+            }
+
+            QFile readPipe;
+
+            if (!readPipe.open(pipeFds[0], QIODevice::ReadOnly)) {
+                qCritical("Failed to open pipe to start X Server ");
+
+                close(pipeFds[0]);
+                return false;
+            }
+            QByteArray displayNumber = readPipe.readLine();
+            displayNumber.prepend(QByteArray(":"));
+            displayNumber.remove(displayNumber.size() -1, 1); //trim trailing whitespace
+            m_display= displayNumber;
+
+            // close our pipe
+            close(pipeFds[0]);

-            // return fail
-            return false;
-        }
-        if (daemonApp->testing())
             emit started();
+        }

         // set flag
         m_started = true;
diff -Nuar sddm-0.11.0/src/daemon/XorgDisplayServer.h sddm-master/src/daemon/XorgDisplayServer.h
--- sddm-0.11.0/src/daemon/XorgDisplayServer.h	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/src/daemon/XorgDisplayServer.h	2015-03-08 18:18:48.000000000 +0200
@@ -33,8 +33,6 @@
         explicit XorgDisplayServer(Display *parent);
         ~XorgDisplayServer();

-        static bool displayExists(int number);
-
         const QString &display() const;
         const QString &authPath() const;

diff -Nuar sddm-0.11.0/src/greeter/SessionModel.cpp sddm-master/src/greeter/SessionModel.cpp
--- sddm-0.11.0/src/greeter/SessionModel.cpp	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/src/greeter/SessionModel.cpp	2015-03-08 18:18:48.000000000 +0200
@@ -57,6 +57,7 @@
                 continue;
             SessionPtr si { new Session { session, "", "", "" } };
             QTextStream in(&inputFile);
+            bool execAllowed = true;
             while (!in.atEnd()) {
                 QString line = in.readLine();
                 if (line.startsWith("Name="))
@@ -65,9 +66,15 @@
                     si->exec = line.mid(5);
                 if (line.startsWith("Comment="))
                     si->comment = line.mid(8);
+                if (line.startsWith("TryExec=")) {
+                    QFileInfo fi(line.mid(8));
+                    if (!fi.exists() || !fi.isExecutable())
+                        execAllowed = false;
+                }
             }
             // add to sessions list
-            d->sessions.push_back(si);
+            if (execAllowed)
+                d->sessions.push_back(si);
             // close file
             inputFile.close();
         }
diff -Nuar sddm-0.11.0/src/helper/backend/PamBackend.cpp sddm-master/src/helper/backend/PamBackend.cpp
--- sddm-0.11.0/src/helper/backend/PamBackend.cpp	2014-11-20 17:47:24.000000000 +0200
+++ sddm-master/src/helper/backend/PamBackend.cpp	2015-03-08 18:18:48.000000000 +0200
@@ -251,7 +251,9 @@
         QProcessEnvironment sessionEnv = m_app->session()->processEnvironment();
         QString display = sessionEnv.value("DISPLAY");
         if (!display.isEmpty()) {
+#ifdef PAM_XDISPLAY
             m_pam->setItem(PAM_XDISPLAY, qPrintable(display));
+#endif
             m_pam->setItem(PAM_TTY, qPrintable(display));
         }
         if (!m_pam->putEnv(sessionEnv)) {


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>sddm</Name>
        <Homepage>https://github.com/sddm/sddm</Homepage>
        <Packager>
            <Name>Pisi Linux Admins</Name>
            <Email>admin@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        <Summary>QML based X11 display manager</Summary>
        <Description>KDE Power Management module. Provides kded daemon DBus helper and KCM for configuring Power settings</Description>
        <Archive sha1sum="ee92a2b27602c13d6ac5cfd34399192a31ca033c" type="tarxz">https://github.com/sddm/sddm/releases/download/v0.14.0/sddm-0.14.0.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>qt5-linguist</Dependency>
            <Dependency>qt5-declarative-devel</Dependency>
            <Dependency>libxcb-devel</Dependency>
            <Dependency>libxkbfile-devel</Dependency>
            <Dependency>pam-devel</Dependency>
            <Dependency>extra-cmake-modules</Dependency>
            <Dependency>docutils</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch>sddm-respect-user-flags.patch</Patch>
            <Patch>ecb903e4.patch</Patch>
            <Patch>sddm-0.14.0-consolekit.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>sddm</Name>
        <Conflicts>
            <Package>lightdm</Package>
            <Package>lxdm</Package>
            <Package>mdm</Package>
            <Package>gdm</Package>
            <Package>slim</Package>
        </Conflicts>
        <RuntimeDependencies>
            <Dependency>qt5-base</Dependency>
            <Dependency>qt5-declarative</Dependency>
            <Dependency>pam</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libxcb</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib/qt5</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/sddm.conf">sddm.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/pam.d/sddm">sddm</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/pam.d/sddm-autologin">sddm-autologin</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/polkit-1/rules.d/10-backlight.rules">10-backlight.rules</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <History>
        <Update release="7">
            <Date>2017-06-19</Date>
            <Version>0.14.0</Version>
            <Comment>Rebuild.</Comment>
            <Name>Ali Algul</Name>
            <Email>aligulle3801@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2017-03-05</Date>
            <Version>0.14.0</Version>
            <Comment>Rebuild.</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="5">
            <Date>2016-10-06</Date>
            <Version>0.14.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2016-09-07</Date>
            <Version>0.13.0</Version>
            <Comment>Add conflict list</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-08-14</Date>
            <Version>0.13.0</Version>
            <Comment>Rebuild</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-07-15</Date>
            <Version>0.13.0</Version>
            <Comment>Fix session authorization issue and add rules</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-11-18</Date>
            <Version>0.13.0</Version>
            <Comment>First release</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>sddm</Name>
        QML based X11 display manager
        QML tabanlı X11 görüntü yöneticisi.
        <Description xml:lang="en">KDE Power Management module. Provides kded daemon DBus helper and KCM for configuring Power settings</Description>
    </Source>
</PISI>


code:
#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

def setup():
    # https://bugs.freedesktop.org/show_bug.cgi?id=70366
    shelltools.export("ac_cv_func_fdatasync", "no")

    autotools.configure("--disable-update-mimedb")

def build():
    autotools.make('-j1')

def check():
    autotools.make("check")

def install():
    autotools.install()

    pisitools.dodoc("ChangeLog", "NEWS", "README")


code:
#!/usr/bin/python

import os

# Update global mime databases, mime database format may change (0.70)
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
    os.system("/usr/bin/update-mime-database /usr/share/mime")


code:
#!/usr/bin/python

import piksemel
import os

def updateMimeTypes(filepath):
    parse = piksemel.parse(filepath)
    paths = set()
    for icon in parse.tags("File"):
        path = icon.getTagData("Path")
        if "/share/mime/packages/" in path and path.endswith(".xml"):
            paths.add("/%s" % path.partition("packages/")[0])

    for p in paths:
        os.system("/usr/bin/update-mime-database %s" % p)

def setupPackage(metapath, filepath):
    updateMimeTypes(filepath)

def cleanupPackage(metapath, filepath):
    pass

def postCleanupPackage(metapath, filepath):
    updateMimeTypes(filepath)


code:
[Added Associations]
application/xhtml+xml=mozillafirefox.desktop;ooo-web.desktop;
text/html=mozillafirefox.desktop;ooo-web.desktop;
inode/directory=org.kde.dolphin.desktop;

[Default Applications]
inode/directory=org.kde.dolphin.desktop;


code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Notes: This is a fix to set .iso files to let media-burner,media-player and/or archiver
take priority over pattern that is found inside those files that somehow matches the text/plain
mimetype -->
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-cd-image">
<comment>raw CD image</comment>
<comment xml:lang="ar">صورة CD خامة</comment>
<comment xml:lang="be@latin">suvoraja vyjava CD</comment>
<comment xml:lang="bg">Изображение — raw CD</comment>
<comment xml:lang="ca">imatge de CD en cru</comment>
<comment xml:lang="cs">Surový obraz CD</comment>
<comment xml:lang="da">rå cd-aftryk</comment>
<comment xml:lang="de">CD-Roh-Abbild</comment>
<comment xml:lang="el">εικόνα περιεχομένου ψηφιακού δίσκου</comment>
<comment xml:lang="en_GB">raw CD image</comment>
<comment xml:lang="eo">kruda lumdiskbildo</comment>
<comment xml:lang="es">imagen de CD en bruto</comment>
<comment xml:lang="eu">CD gordinaren irudia </comment>
<comment xml:lang="fi">raaka CD-vedos</comment>
<comment xml:lang="fo">rá CD mynd</comment>
<comment xml:lang="fr">image CD brute</comment>
<comment xml:lang="ga">amhíomhá dhlúthdhiosca</comment>
<comment xml:lang="gl">imaxe de CD en bruto</comment>
<comment xml:lang="he">תמונת דיסק גולמית</comment>
<comment xml:lang="hu">nyers CD-lemezkép</comment>
<comment xml:lang="id">citra CD mentah</comment>
<comment xml:lang="it">Immagine raw CD</comment>
<comment xml:lang="ja">生 CD イメージ</comment>
<comment xml:lang="kk">өңделмеген CD бейнесі</comment>
<comment xml:lang="ko">CD 이미지</comment>
<comment xml:lang="lt">raw CD atvaizdis</comment>
<comment xml:lang="lv">CD jēlattēls</comment>
<comment xml:lang="ms">Imej CD mentah</comment>
<comment xml:lang="nb">rått CD-bilde</comment>
<comment xml:lang="nl">ruw CD-beeldbestand</comment>
<comment xml:lang="nn">rått CD-bilete</comment>
<comment xml:lang="pl">Surowy obraz CD</comment>
<comment xml:lang="pt">imagem em bruto de CD</comment>
<comment xml:lang="pt_BR">Imagem bruta de CD</comment>
<comment xml:lang="ro">imagine de CD brută</comment>
<comment xml:lang="ru">образ компакт-диска</comment>
<comment xml:lang="sk">Surový obraz CD</comment>
<comment xml:lang="sl">surovi CD odtis</comment>
<comment xml:lang="sq">Imazh raw CD</comment>
<comment xml:lang="sr">сирови отисак ЦД-а</comment>
<comment xml:lang="sv">rå cd-avbild</comment>
<comment xml:lang="uk">образ raw CD</comment>
<comment xml:lang="vi">ảnh đĩa CD thô</comment>
<comment xml:lang="zh_CN">原始 CD 映像</comment>
<comment xml:lang="zh_TW">原生 CD 映像</comment>
<sub-class-of type="application/x-raw-disk-image"/>
<alias type="application/x-iso9660-image"/>
<glob weight="60" pattern="*.iso"/>
<glob weight="60" pattern="*.iso9660"/>
</mime-type>
</mime-info>


code:
--- shared-mime-info-0.60/freedesktop.org.xml.in.orig	2009-04-17 11:46:23.000000000 -0300
+++ shared-mime-info-0.60/freedesktop.org.xml.in	2009-04-17 11:49:36.000000000 -0300
@@ -1990,6 +1990,19 @@
     <glob pattern="*.tar.lzma"/>
     <glob pattern="*.tlz"/>
   </mime-type>
+  <mime-type type="application/x-xz">
+    <_comment>XZ archive</_comment>
+    <acronym>XZ</acronym>
+    <expanded-acronym>XZ Algorithm</expanded-acronym>
+    <generic-icon name="package-x-generic"/>
+    <glob pattern="*.xz"/>
+  </mime-type>
+  <mime-type type="application/x-xz-compressed-tar">
+    <_comment>Tar archive (XZ-compressed)</_comment>
+    <generic-icon name="package-x-generic"/>
+    <glob pattern="*.tar.xz"/>
+    <glob pattern="*.txz"/>
+  </mime-type>
   <mime-type type="application/x-lzop">
     <_comment>LZO archive</_comment>
     <generic-icon name="package-x-generic"/>
--- shared-mime-info-0.60/freedesktop.org.xml	2009-02-21 11:08:16.000000000 -0300
+++ shared-mime-info-0.60/freedesktop.org.xml.orig	2009-04-17 11:51:46.000000000 -0300
@@ -7314,6 +7314,55 @@
     <glob pattern="*.tar.lzma"/>
     <glob pattern="*.tlz"/>
   </mime-type>
+  <mime-type type="application/x-xz">
+    <comment>xz archive</comment>
+    <comment xml:lang="be@latin">Archiŭ xz</comment>
+    <comment xml:lang="ca">arxiu xz</comment>
+    <comment xml:lang="cs">Archiv xz</comment>
+    <comment xml:lang="es">archivador xz</comment>
+    <comment xml:lang="fi">xz-arkisto</comment>
+    <comment xml:lang="fr">archive xz</comment>
+    <comment xml:lang="ga">cartlann xz</comment>
+    <comment xml:lang="hu">xz-archívum</comment>
+    <comment xml:lang="id">Arsip xz</comment>
+    <comment xml:lang="it">Archivio xz</comment>
+    <comment xml:lang="ko">xz 압축파일</comment>
+    <comment xml:lang="lt">xz archyvas</comment>
+    <comment xml:lang="nb">xz-arkiv</comment>
+    <comment xml:lang="nl">xz-archief</comment>
+    <comment xml:lang="pt_BR">Pacote xz</comment>
+    <comment xml:lang="ru">архив xz</comment>
+    <comment xml:lang="sv">xz-arkiv</comment>
+    <comment xml:lang="vi">Kho nén xz</comment>
+    <acronym>xz</acronym>
+    <expanded-acronym>XZ Algorithm</expanded-acronym>
+    <generic-icon name="package-x-generic"/>
+    <glob pattern="*.xz"/>
+  </mime-type>
+  <mime-type type="application/x-xz-compressed-tar">
+    <comment>Tar archive (xz-compressed)</comment>
+    <comment xml:lang="be@latin">Archiŭ tar (xz-skampresavany)</comment>
+    <comment xml:lang="ca">arxiu tar (comprimit amb xz)</comment>
+    <comment xml:lang="cs">Archiv tar (komprimovaný pomocí xz)</comment>
+    <comment xml:lang="es">archivador Tar (comprimido con xz)</comment>
+    <comment xml:lang="fi">Tar-arkisto (xz-pakattu)</comment>
+    <comment xml:lang="fr">archive tar (compression xz)</comment>
+    <comment xml:lang="ga">cartlann Tar (comhbhrúite le xz)</comment>
+    <comment xml:lang="hu">Tar archívum (xz-val tömörítve)</comment>
+    <comment xml:lang="id">Arsip Tar (terkompresi xz)</comment>
+    <comment xml:lang="it">Archivio tar (compresso con xz)</comment>
+    <comment xml:lang="ko">(xz로 압축한) tar 묶음파일</comment>
+    <comment xml:lang="lt">Tar archyvas (suglaudintas su xz)</comment>
+    <comment xml:lang="nb">Tar-arkiv (xz-komprimert)</comment>
+    <comment xml:lang="nl">Tar-archief (ingepakt met xz)</comment>
+    <comment xml:lang="pt_BR">Pacote tar (compactado com LZO)</comment>
+    <comment xml:lang="ru">архив tar (сжатый xz)</comment>
+    <comment xml:lang="sv">Tar-arkiv (xz-komprimerat)</comment>
+    <comment xml:lang="vi">Kho nén tar (đã nén xz)</comment>
+    <generic-icon name="package-x-generic"/>
+    <glob pattern="*.tar.xz"/>
+    <glob pattern="*.txz"/>
+  </mime-type>
   <mime-type type="application/x-lzop">
     <comment>LZO archive</comment>
     <comment xml:lang="be@latin">Archiŭ LZO</comment>
@@ -20437,4 +20486,4 @@
     </treemagic>
   </mime-type>

-</mime-info>
\ Falta o caracter nova linha no final do arquivo
+</mime-info>


code:
image/jpeg=shotwell-viewer.desktop;
image/png=shotwell-viewer.desktop;
image/x-canon-cr2=shotwell-viewer.desktop;
image/x-canon-crw=shotwell-viewer.desktop;
image/x-fuji-raf=shotwell-viewer.desktop;
image/x-adobe-dng=shotwell-viewer.desktop;
image/x-panasonic-raw=shotwell-viewer.desktop;
image/x-minolta-mrw=shotwell-viewer.desktop;
image/x-nikon-nef=shotwell-viewer.desktop;
image/x-olympus-orf=shotwell-viewer.desktop;
image/x-pentax-pef=shotwell-viewer.desktop;
image/x-sony-arw=shotwell-viewer.desktop;
image/x-sony-srf=shotwell-viewer.desktop;
image/x-sony-sr2=shotwell-viewer.desktop;
image/x-sigma-x3f=shotwell-viewer.desktop;
image/x-dcraw=shotwell-viewer.desktop;
image/x-3fr=shotwell-viewer.desktop;
image/x-arw=shotwell-viewer.desktop;
image/x-srf=shotwell-viewer.desktop;
image/x-sr2=shotwell-viewer.desktop;
image/x-bay=shotwell-viewer.desktop;
image/x-crw=shotwell-viewer.desktop;
image/x-cr2=shotwell-viewer.desktop;
image/x-cap=shotwell-viewer.desktop;
image/x-iiq=shotwell-viewer.desktop;
image/x-eip=shotwell-viewer.desktop;
image/x-dcs=shotwell-viewer.desktop;
image/x-dcr=shotwell-viewer.desktop;
image/x-drf=shotwell-viewer.desktop;
image/x-k25=shotwell-viewer.desktop;
image/x-kdc=shotwell-viewer.desktop;
image/x-dng=shotwell-viewer.desktop;
image/x-erf=shotwell-viewer.desktop;
image/x-fff=shotwell-viewer.desktop;
image/x-mef=shotwell-viewer.desktop;
image/x-mos=shotwell-viewer.desktop;
image/x-mrw=shotwell-viewer.desktop;
image/x-nef=shotwell-viewer.desktop;
image/x-nrw=shotwell-viewer.desktop;
image/x-orf=shotwell-viewer.desktop;
image/x-ptx=shotwell-viewer.desktop;
image/x-pef=shotwell-viewer.desktop;
image/x-pxn=shotwell-viewer.desktop;
image/x-r3d=shotwell-viewer.desktop;
image/x-raf=shotwell-viewer.desktop;
image/x-raw=shotwell-viewer.desktop;
image/x-rw2=shotwell-viewer.desktop;
image/x-raw=shotwell-viewer.desktop;
image/x-rwl=shotwell-viewer.desktop;
image/x-rwz=shotwell-viewer.desktop;
image/x-x3f=shotwell-viewer.desktop;
image/tiff=shotwell-viewer.desktop;


code:
application/mxf=totem.desktop;
application/ogg=rhythmbox.desktop;totem.desktop;
application/ram=totem.desktop;
application/sdp=totem.desktop;
application/smil=totem.desktop;
application/smil+xml=totem.desktop;
application/vnd.apple.mpegurl=totem.desktop;
application/vnd.ms-wpl=totem.desktop;
application/x-extension-m4a=totem.desktop;
application/x-extension-mp4=totem.desktop;
application/x-flac=totem.desktop;
application/x-flash-video=totem.desktop;
application/x-matroska=totem.desktop;
application/x-netshow-channel=totem.desktop;
application/x-ogg=rhythmbox.desktop;totem.desktop;
application/x-quicktime-media-link=totem.desktop;
application/x-quicktimeplayer=totem.desktop;
application/x-shorten=totem.desktop;
application/x-smil=totem.desktop;
application/xspf+xml=totem.desktop;
audio/3gpp=totem.desktop;
audio/ac3=totem.desktop;
audio/AMR=totem.desktop;
audio/AMR-WB=totem.desktop;
audio/basic=totem.desktop;
audio/midi=totem.desktop;
audio/mp2=totem.desktop;
audio/mp4=totem.desktop;
audio/mpeg=rhythmbox.desktop;totem.desktop;
audio/mpegurl=totem.desktop;
audio/ogg=totem.desktop;
audio/prs.sid=totem.desktop;
audio/x-aiff=totem.desktop;
audio/x-ape=totem.desktop;
audio/x-flac=rhythmbox.desktop;totem.desktop;
audio/x-gsm=totem.desktop;
audio/x-it=totem.desktop;
audio/x-m4a=totem.desktop;
audio/x-matroska=totem.desktop;
audio/x-mod=totem.desktop;
audio/x-mp3=rhythmbox.desktop;totem.desktop;
audio/x-mpeg=rhythmbox.desktop;totem.desktop;
audio/x-mpegurl=rhythmbox.desktop;totem.desktop;
audio/x-ms-asf=totem.desktop;
audio/x-ms-asx=totem.desktop;
audio/x-ms-wax=totem.desktop;
audio/x-ms-wma=totem.desktop;
audio/x-musepack=totem.desktop;
audio/x-pn-aiff=totem.desktop;
audio/x-pn-au=totem.desktop;
audio/x-pn-wav=totem.desktop;
audio/x-pn-windows-acm=totem.desktop;
audio/x-s3m=totem.desktop;
audio/x-sbc=totem.desktop;
audio/x-scpls=rhythmbox.desktop;totem.desktop;
audio/x-speex=totem.desktop;
audio/x-stm=totem.desktop;
audio/x-tta=totem.desktop;
audio/x-wav=totem.desktop;
audio/x-wavpack=totem.desktop;
audio/x-vorbis=totem.desktop;
audio/x-vorbis+ogg=rhythmbox.desktop;totem.desktop;
audio/x-xm=totem.desktop;
image/x-pict=totem.desktop;
misc/ultravox=totem.desktop;
text/google-video-pointer=totem.desktop;
text/x-google-video-pointer=totem.desktop;
video/3gp=totem.desktop;
video/3gpp=totem.desktop;
video/dv=totem.desktop;
video/divx=totem.desktop;
video/fli=totem.desktop;
video/flv=totem.desktop;
video/mp2t=totem.desktop;
video/mp4=totem.desktop;
video/mp4v-es=totem.desktop;
video/mpeg=totem.desktop;
video/msvideo=totem.desktop;
video/ogg=totem.desktop;
video/quicktime=totem.desktop;
video/vivo=totem.desktop;
video/vnd.divx=totem.desktop;
video/vnd.mpegurl=totem.desktop;
video/vnd.vivo=totem.desktop;
video/webm=totem.desktop;
video/x-anim=totem.desktop;
video/x-avi=totem.desktop;
video/x-flc=totem.desktop;
video/x-fli=totem.desktop;
video/x-flic=totem.desktop;
video/x-flv=totem.desktop;
video/x-m4v=totem.desktop;
video/x-matroska=totem.desktop;
video/x-mpeg=totem.desktop;
video/x-mpeg2=totem.desktop;
video/x-ms-asf=totem.desktop;
video/x-ms-asx=totem.desktop;
video/x-msvideo=totem.desktop;
video/x-ms-wm=totem.desktop;
video/x-ms-wmv=totem.desktop;
video/x-ms-wmx=totem.desktop;
video/x-ms-wvx=totem.desktop;
video/x-nsv=totem.desktop;
video/x-ogm+ogg=totem.desktop;
video/x-theora+ogg=totem.desktop;
video/x-totem-stream=totem.desktop;
x-content/video-dvd=totem.desktop;
x-content/video-vcd=totem.desktop;
x-content/video-svcd=totem.desktop;
x-scheme-handler/pnm=totem.desktop;
x-scheme-handler/mms=totem.desktop;
x-scheme-handler/net=totem.desktop;
x-scheme-handler/rtp=totem.desktop;
x-scheme-handler/rtsp=totem.desktop;
x-scheme-handler/mmsh=totem.desktop;
x-scheme-handler/uvox=totem.desktop;
x-scheme-handler/icy=totem.desktop;
x-scheme-handler/icyx=totem.desktop;


code:
if [ -x /usr/bin/update-mime-database ]; then
    MIME_DIR=${XDG_DATA_HOME-$HOME/.local/share}/mime
    [ -d "$MIME_DIR" ] && /usr/bin/update-mime-database $MIME_DIR
fi


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>shared-mime-info</Name>
        <Homepage>http://freedesktop.org/wiki/Software/shared-mime-info</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <IsA>data</IsA>
        <Summary>The shared MIME info database</Summary>
        <Description>shared-mime-info is a package containing a large number of common MIME types, created by converting the existing KDE and GNOME databases to the new format and merging them together, and software for updating the database based on the share-mime-info specification.</Description>
        <Archive sha1sum="aae41d8a93c665d25bae704f732fdb1c1551cb5c" type="tarxz">http://freedesktop.org/~hadess/shared-mime-info-1.9.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>intltool</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">shared-mime-info-xz.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>shared-mime-info</Name>
        <RuntimeDependencies>
            <Dependency>libxml2</Dependency>
            <Dependency>glib2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/etc/X11/xinit</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share/applications</Path>
            <Path fileType="data">/usr/share/mime</Path>
            <Path fileType="data">/usr/share/pkgconfig</Path>
            <Path fileType="localedata">/usr/share/locale/</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0755" target="/etc/X11/xinit/xinitrc.d/30-update-mime-database.sh">update-mime-database.sh</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/applications/defaults.list">defaults.list</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/applications/mimeapps.list">mimeapps.list</AdditionalFile>
            <!--AdditionalFile owner="root" permission="0644" target="/usr/share/applications/file-roller-defaults.list">file-roller-defaults.list</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/applications/shotwell-viewer-defaults.list">shotwell-viewer-defaults.list</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/applications/totem-defaults.list">totem-defaults.list</AdditionalFile-->
            <AdditionalFile owner="root" permission="0644" target="/usr/share/mime/packages/mimetypefixes.xml">mimetypefixes.xml</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="pakhandler.py">System.PackageHandler</COMAR>
            <COMAR script='package.py'>System.Package</COMAR>
        </Provides>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-17</Date>
            <Version>1.9</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2017-03-19</Date>
            <Version>1.8</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.5</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-11-05</Date>
            <Version>1.5</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>shared-mime-info</Name>
        <Summary xml:lang="tr">Paylaşımlı MIME veritabanı tanımlamaları</Summary>
        <Description xml:lang="tr">Bu pakette büyük miktarda dosya türü bilgisi bulunur. Bu bilgiler mevcut KDE ve GNOME veritabanlarının yeni biçime dönüştürülerek birleştirilmesinden oluşmuştur. Ayrıca, pakette bu veritabanını güncelleyen bir uygulama da bulunmaktadır.</Description>
        <Description xml:lang="fr">shared-mim-info est un paquet contenant un grand nombre de types MIME communs, créés en fusionnant les bases de données KDE et GNOME existantes et en les convertissant au nouveau format, ainsi qu'un logiciel pour mettre à jour cette base en fonction des spécifications de share-mime-info.</Description>
    </Source>
</PISI>


code:
#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

def setup():
    shelltools.system('sed -i -e "/AC_PATH_XTRA/d" configure.in')
    autotools.autoreconf("-fi")
    autotools.configure("--disable-static")

    # Put flags in front of the libs. Needed for --as-needed.
    replace = (r"(\\\$deplibs) (\\\$compiler_flags)", r"\2 \1")
    pisitools.dosed("libtool", *replace)

def build():
    autotools.make()

def install():
    autotools.install()

    pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "doc/startup-notification.txt")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>startup-notification</Name>
        <Homepage>http://www.freedesktop.org/software/startup-notification/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        Application startup notification and feedback library
        <Description>startup-notification is a sample implementation of startup notification (telling the desktop environment when an app is done starting up).</Description>
        <Archive sha1sum="4198bce2808d03160454a2940d989f3a5dc96dbb" type="targz">http://www.freedesktop.org/software/startup-notification/releases/startup-notification-0.12.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libxcb-devel</Dependency>
            <Dependency>xcb-util-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>startup-notification</Name>
        <RuntimeDependencies>
            <Dependency>libX11</Dependency>
            <Dependency>libxcb</Dependency>
            <Dependency>xcb-util</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>startup-notification-devel</Name>
        Development files for startup-notification
        <RuntimeDependencies>
            <Dependency release="current">startup-notification</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="doc">/usr/share/doc/*/*.txt</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-01</Date>
            <Version>0.12</Version>
            <Comment>Rebuild for new toolchain.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.12</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-18</Date>
            <Version>0.12</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>