code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>xmoto</Name>
        <Homepage>http://xmoto.tuxfamily.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <Icon>xmoto</Icon>
        <IsA>app:gui</IsA>
        <Summary>Motorcross game</Summary>
        <Description>A motocross game with fancy effects like ghost replay. Requires a 3D accelerated video card.</Description>
        <Archive sha1sum="a795616fb359e60be343e339f7acf5e95e0f1ce2" type="targz">http://download.tuxfamily.org/xmoto/xmoto/0.5.11/xmoto-0.5.11-src.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>curl-devel</Dependency>
            <Dependency>libsdl-devel</Dependency>
            <Dependency>sdl-mixer-devel</Dependency>
            <Dependency>sdl-ttf-devel</Dependency>
            <Dependency>sdl-net-devel</Dependency>
            <Dependency>lua51-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>ode-devel</Dependency>
            <Dependency>sqlite-devel</Dependency>
            <Dependency>mesa-devel</Dependency>
            <Dependency>mesa-glu-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
        </BuildDependencies>
        <Patches>
<!--             <Patch level="0">xmoto-0.5.10-gcc47.patch</Patch> -->
            <Patch level="0">genericname_pl-tr.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>xmoto</Name>
        <RuntimeDependencies>
            <Dependency>curl</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>sqlite</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>libsdl</Dependency>
            <Dependency>sdl-mixer</Dependency>
            <Dependency>sdl-ttf</Dependency>
            <Dependency>sdl-net</Dependency>
            <Dependency>lua51</Dependency>
            <Dependency>ode</Dependency>
            <Dependency>mesa</Dependency>
            <Dependency>mesa-glu</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share/applications</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/pixmaps</Path>
            <Path fileType="data">/usr/share/xmoto</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-03-09</Date>
            <Version>0.5.11</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>xmoto</Name>
        Motokros oyunu
        Motocrossowa gra platformowa
        <Description xml:lang="tr">Gölge tekrarlama gibi güzel özellikleri olan motokros yarışı. 3B hızlandırıcılı ekran kartı gerektirir</Description>
        <Description xml:lang="pl">X-Moto jest wyzywającą motocrossową dwuwymiarową grą platformową, gdzie fizyka ma w rozgrywce główną rolę. Panowanie nad motorem musi być jak najbardziej wyżyłowane, jeżeli chce się myśleć o ukończeniu trudniejszych poziomów.</Description>
    </Source>
</PISI>

repo_name: ayhanyalcinsoy/main


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.system("NOCONFIGURE=1 ./autogen.sh")
    autotools.configure("--disable-static \
                         --sysconfdir=/etc \
                         --enable-polkit")

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")

def build():
    autotools.make()

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

    pisitools.dodoc("CHANGELOG.*", "COPYING")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>blueman</Name>
        <Homepage>http://blueman-project.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        <Icon>bluetooth</Icon>
        <IsA>app:gui</IsA>
        <IsA>library</IsA>
        <Summary>GTK+ Bluetooth Manager</Summary>
        <Description>blueman is a bluetooth manager application which is designed to be simple and intuitive for everyday bluetooth tasks. It's written with GTK+ toolkit.</Description>
        <Archive sha1sum="983cde51a366555e042d20cef9e87f6ccf6eb268" type="targz">https://github.com/blueman-project/blueman/releases/download/2.0.5/blueman-2.0.5.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>intltool</Dependency>
            <Dependency>unifdef</Dependency>
            <Dependency>m4</Dependency>
            <Dependency>util-macros</Dependency>
            <Dependency>gettext-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>itstool</Dependency>
            <Dependency>docbook-xml</Dependency>
            <Dependency>docbook-xsl</Dependency>
            <Dependency>cython</Dependency>
            <Dependency>gtk3-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>notify-python</Dependency>
            <Dependency>bluez-libs-devel</Dependency>
            <Dependency>python-gtk-devel</Dependency>
            <Dependency>python-pygobject3-devel</Dependency>
            <Dependency>python-pygobject-devel</Dependency>
            <Dependency>startup-notification-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>blueman</Name>
        <RuntimeDependencies>
            <Dependency>gtk3</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>python</Dependency>
            <Dependency>bluez-libs</Dependency>
            <Dependency>startup-notification</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/libexec</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="library">/usr/lib/python2*</Path>
            <Path fileType="library">/usr/lib/nautilus-sendto/</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="data">/usr/share/polkit-1</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/etc/dbus-1/system.d</Path>
            <Path fileType="data">/etc/xdg/autostart</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2018-01-04</Date>
            <Version>2.0.5</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2017-04-10</Date>
            <Version>2.0.4</Version>
            <Comment>rebuild</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-09-11</Date>
            <Version>2.0.4</Version>
            <Comment>First release</Comment>
            <Name>Ergün Salman</Name>
            <Email>poyraz76@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>blueman</Name>
        <Summary xml:lang="tr">GTK+ Bluetooth Yöneticisi</Summary>
        <Description xml:lang="tr">blueman, kullanıcının günlük bluetooth görevlerini kolaylıkla yerine getirmesi için basit bir şekilde tasarlanmış ve GTK+ grafik arayüz kitaplığı kullanılarak yazılmış bir bluetooth 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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():

    #shelltools.system("sed -i -e '/SystemdService/d' obexd/src/org.bluez.obex.service.in")
    pisitools.dosed("obexd/src/org.bluez.obex.service.in", "SystemdService", deleteLine=True)
    autotools.autoreconf("-fi")
    autotools.configure("--prefix=/usr \
                         --sysconfdir=/etc \
                         --localstatedir=/var \
                         --libexecdir=/usr/libexec/ \
                         --enable-sixaxis \
                         --enable-experimental \
                         --disable-android \
                         --enable-datafiles \
                         --enable-optimization \
                         --enable-pie \
                         --enable-threads \
                         --enable-library \
                         --enable-tools \
                         --enable-manpages \
                         --enable-monitor \
                         --enable-udev \
                         --enable-test \
                         --disable-systemd")

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s install-libexecPROGRAMS install-dbussessionbusDATA install-dbussystembusDATA install-dbusDATA install-man8" % get.installDIR())

    # Install conf files
    for i in ["profiles/input", "profiles/network" ,"src"]:
        pisitools.insinto("/etc/bluetooth", "%s/*.conf" % (i))

    # Simple test tools
    for i in ["bluezutils.py",
                "dbusdef.py",
                "ftp-client",
                "list-devices",
                "map-client",
                "monitor-bluetooth",
                "opp-client",
                "pbap-client",
                "sap_client.py",
                "simple-agent",
                "simple-endpoint",
                "simple-player",
                "test-adapter",
                "test-alert",
                "test-cyclingspeed",
                "test-device",
                "test-discovery",
                "test-health",
                "test-health-sink",
                "test-heartrate",
                "test-hfp",
                "test-manager",
                "test-nap",
                "test-network",
                "test-profile",
                "test-proximity",
                "test-sap-server",
                "test-thermometer"]:
        pisitools.dobin("test/%s" % i)
   # for i in
      #  pisitools.dodoc("doc/%s" % i)
    # Install documents
    pisitools.dodoc("AUTHORS", "ChangeLog", "README")


code:
from comar.service import *
import os

serviceType = "local"
serviceDesc = _({"en": "Bluetooth Service",
                 "tr": "Bluetooth Hizmeti"})
serviceDefault = "on"

PIDFILE="/run/bluez.pid"
DAEMON ="/usr/libexec/bluetooth/bluetoothd"

@synchronized
def start():

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

    os.system("pidof bluez + /usr/libexec/bluetooth/bluetoothd > /run/bluez.pid")

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

    try:
        os.unlink(PIDFILE)
    except:
        pass

def status():
    return isServiceRunning(pidfile=PIDFILE)


code:
From 3027cb7141fb65cf3eeda69c688db8c4045e2d3f Mon Sep 17 00:00:00 2001
From: Giovanni Campagna <gcampagna-cNUdlRotFMnNLxjTenLetw@public.gmane.org>
Date: Sat, 12 Oct 2013 17:45:25 +0200
Subject: [PATCH] Allow using obexd without systemd in the user session

Not all sessions run systemd --user (actually, the majority
doesn't), so the dbus daemon must be able to spawn obexd
directly, and to do so it needs the full path of the daemon.
---
 Makefile.obexd                      | 4 ++--
 obexd/src/org.bluez.obex.service    | 4 ----
 obexd/src/org.bluez.obex.service.in | 4 ++++
 3 files changed, 6 insertions(+), 6 deletions(-)
 delete mode 100644 obexd/src/org.bluez.obex.service
 create mode 100644 obexd/src/org.bluez.obex.service.in

diff --git a/Makefile.obexd b/Makefile.obexd
index 3760867..142e7c3 100644
--- a/Makefile.obexd
+++ b/Makefile.obexd
@@ -2,12 +2,12 @@
 if SYSTEMD
 systemduserunitdir = @SYSTEMD_USERUNITDIR@
 systemduserunit_DATA = obexd/src/obex.service
+endif

 dbussessionbusdir = @DBUS_SESSIONBUSDIR@
 dbussessionbus_DATA = obexd/src/org.bluez.obex.service
-endif

-EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service
+EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in

 obex_plugindir = $(libdir)/obex/plugins

diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service
deleted file mode 100644
index a538088..0000000
--- a/obexd/src/org.bluez.obex.service
+++ /dev/null
@@ -1,4 +0,0 @@
-[D-BUS Service]
-Name=org.bluez.obex
-Exec=/bin/false
-SystemdService=dbus-org.bluez.obex.service
diff --git a/obexd/src/org.bluez.obex.service.in b/obexd/src/org.bluez.obex.service.in
new file mode 100644
index 0000000..9c815f2
--- /dev/null
+++ b/obexd/src/org.bluez.obex.service.in
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.bluez.obex
+Exec=@libexecdir@/obexd
+SystemdService=dbus-org.bluez.obex.service
--
1.8.3.1


code:
Submitted By:            Armin K. <krejzi at email dot com>
Date:                    2013-04-29
Initial Package Version: 5.17
Upstream Status:         unknown
Origin:                  Arch Linux (Giovanni Campagna)
Description:             Allow using obexd without systemd in the user session

Not all sessions run systemd --user (actually, the majority
doesn't), so the dbus daemon must be able to spawn obexd
directly, and to do so it needs the full path of the daemon.
---
 Makefile.obexd                      | 4 ++--
 obexd/src/org.bluez.obex.service    | 4 ----
 obexd/src/org.bluez.obex.service.in | 4 ++++
 3 files changed, 6 insertions(+), 6 deletions(-)
 delete mode 100644 obexd/src/org.bluez.obex.service
 create mode 100644 obexd/src/org.bluez.obex.service.in

diff --git a/Makefile.obexd b/Makefile.obexd
index 3760867..142e7c3 100644
--- a/Makefile.obexd
+++ b/Makefile.obexd
@@ -2,12 +2,12 @@
 if SYSTEMD
 systemduserunitdir = @SYSTEMD_USERUNITDIR@
 systemduserunit_DATA = obexd/src/obex.service
+endif

 dbussessionbusdir = @DBUS_SESSIONBUSDIR@
 dbussessionbus_DATA = obexd/src/org.bluez.obex.service
-endif

-EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service
+EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in

 obex_plugindir = $(libdir)/obex/plugins

diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service
deleted file mode 100644
index a538088..0000000
--- a/obexd/src/org.bluez.obex.service
+++ /dev/null
@@ -1,4 +0,0 @@
-[D-BUS Service]
-Name=org.bluez.obex
-Exec=/bin/false
-SystemdService=dbus-org.bluez.obex.service
diff --git a/obexd/src/org.bluez.obex.service.in b/obexd/src/org.bluez.obex.service.in
new file mode 100644
index 0000000..9c815f2
--- /dev/null
+++ b/obexd/src/org.bluez.obex.service.in
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.bluez.obex
+Exec=@libexecdir@/obexd
+SystemdService=dbus-org.bluez.obex.service
--
1.8.3.1


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>bluez</Name>
        <Homepage>http://bluez.sourceforge.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2+</License>
        <IsA>service</IsA>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        Official Linux Bluetooth protocol stack
        <Description>bluez contains the tools and libraries that provides support for the core Bluetooth layers and protocols.</Description>
        <Archive sha1sum="d19a5427651689e0eb52b583910837b39b869ed7" type="tarxz">https://www.kernel.org/pub/linux/bluetooth/bluez-5.43.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>cups-devel</Dependency>
            <Dependency>dbus-devel</Dependency>
            <Dependency>libnl-devel</Dependency>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>gstreamer-devel</Dependency>
            <Dependency>libsndfile-devel</Dependency>

            <Dependency>libical-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>eudev-devel</Dependency>
            <Dependency>readline-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">0001-Allow-using-obexd-without-systemd-in-the-user-session.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>bluez</Name>
        <RuntimeDependencies>
            <Dependency>dbus</Dependency>
            <Dependency>eudev</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>readline</Dependency>
            <Dependency>libical</Dependency>
            <Dependency release="current">bluez-libs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/lib/udev/rules.d</Path>
            <Path fileType="data">/lib/systemd/system</Path>
            <Path fileType="data">/usr/share/misc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="executable">/lib/udev</Path>
            <Path fileType="executable">/lib/bluetooth/obexd</Path>
            <Path fileType="executable">/lib/bluetooth/bluetoothd</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/libexec</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/var/lib/bluetooth</Path>
            <Path fileType="data">/usr/share/alsa/bluetooth.conf</Path>
            <Path fileType="data">/usr/share/dbus-1</Path>
            <Path fileType="config">/etc</Path>
        </Files>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>bluez-libs</Name>
        Libraries for use in Bluetooth applications
        <RuntimeDependencies>
            <Dependency>libical</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libbluetooth.so*</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>bluez-libs-devel</Name>
        Development files for bluez-libs
        <RuntimeDependencies>
            <Dependency release="current">bluez-libs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/bluetooth</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
        <Provides>
        </Provides>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-12-26</Date>
            <Version>5.43</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2017-02-17</Date>
            <Version>5.43</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>5.33</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-16</Date>
            <Version>5.33</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>bluez</Name>
        Linux resmi Bluetooth protokol yığını
        <Description xml:lang="tr">Bu projenin genel amacı Linux'ta Bluetooth kablosuz standartların ayrıntılarını yerine getirmektir.</Description>
    </Source>

    <Package>
        <Name>bluez-libs</Name>
        Uygulamalar için bluetooth erişim kitaplığı
    </Package>

    <Package>
        <Name>bluez-libs-devel</Name>
        bluez-libs için geliştirme dosyaları
    </Package>
</PISI>


code:
<PISI>
    <Name>hardware.bluetooth</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/copyleft/gpl.txt

from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools

def setup():
    autotools.configure("--disable-static \
                         --disable-tester")

def build():
    autotools.make()

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

    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>sbc</Name>
        <Homepage>http://www.bluez.org/</Homepage>
        <Packager>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        Bluetooth Subband Codec (SBC) library
        <Description>An audio codec to connect bluetooth high quality audio devices like headphones or loudspeakers.</Description>
        <Archive sha1sum="577d7f50415e9420569d8fd5e179e2429c0e2cbb" type="targz">http://www.kernel.org/pub/linux/bluetooth/sbc-1.3.tar.gz</Archive>
    </Source>

    <Package>
        <Name>sbc</Name>
        <Files>
            <Path fileType="executable">/usr/bin/*</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc/sbc/*</Path>
        </Files>
    </Package>

    <Package>
        <Name>sbc-devel</Name>
        Development files for sbc
        <RuntimeDependencies>
            <Dependency release="current">sbc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-17</Date>
            <Version>1.3</Version>
            <Comment>Rebuild.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-12-12</Date>
            <Version>1.3</Version>
            <Comment>First release</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<PISI>
    <Name>hardware</Name>
</PISI>


code:
<PISI>
    <Name>hardware.cpu</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/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

def build():
    autotools.compile("-Wall %s -o intel-microcode2ucode intel-microcode2ucode.c" % get.CFLAGS())
    shelltools.system("./intel-microcode2ucode ./microcode.dat")

def install():
    pisitools.insinto("/lib/firmware/intel-ucode", "intel-ucode/*")


code:
/*
 * Convert Intel microcode.dat into individual ucode files
 * named: intel-ucode/$family-$model-$stepping
 *
 * The subdir intel-ucode/ is created in the current working
 * directory. We get multiple ucodes in the same file, so they
 * are appended to an existing file. Make sure the directory
 * is empty before every run of the converter.
 *
 * Kay Sievers <kay.sievers@vrfy.org>
 */

#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#include <stdbool.h>
#include <inttypes.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/stat.h>

struct microcode_header_intel {
	unsigned int hdrver;
	unsigned int rev;
	unsigned int date;
	unsigned int sig;
	unsigned int cksum;
	unsigned int ldrver;
	unsigned int pf;
	unsigned int datasize;
	unsigned int totalsize;
	unsigned int reserved[3];
};

union mcbuf {
	struct microcode_header_intel hdr;
	unsigned int i[0];
	char c[0];
};

int main(int argc, char *argv[])
{
	char *filename = "/lib/firmware/microcode.dat";
	FILE *f;
	char line[LINE_MAX];
	char buf[4000000];
	union mcbuf *mc;
	size_t bufsize, count, start;
	int rc = EXIT_SUCCESS;

	if (argv[1] != NULL)
		filename = argv[1];

	count = 0;
	mc = (union mcbuf *) buf;
	f = fopen(filename, "re");
	if (f == NULL) {
		printf("open %s: %m\n", filename);
		rc = EXIT_FAILURE;
		goto out;
	}

	while (fgets(line, sizeof(line), f) != NULL) {
		if (sscanf(line, "%x, %x, %x, %x",
		    &mc->i[count],
		    &mc->i[count + 1],
		    &mc->i[count + 2],
		    &mc->i[count + 3]) != 4)
			continue;
		count += 4;
	}
	fclose(f);

	bufsize = count * sizeof(int);
	printf("%s: %lu(%luk) bytes, %zu integers\n",
	       filename,
	       bufsize,
	       bufsize / 1024,
	       count);

	if (bufsize < sizeof(struct microcode_header_intel))
		goto out;

	mkdir("intel-ucode", 0750);

	start = 0;
	for (;;) {
		size_t size;
		unsigned int family, model, stepping;
		unsigned int year, month, day;

		mc = (union mcbuf *) &buf[start];

		if (mc->hdr.totalsize)
			size = mc->hdr.totalsize;
		else
			size = 2000 + sizeof(struct microcode_header_intel);

		if (mc->hdr.ldrver != 1 || mc->hdr.hdrver != 1) {
			printf("unknown version/format:\n");
			rc = EXIT_FAILURE;
			break;
		}

		/*
		 *  0- 3 stepping
		 *  4- 7 model
		 *  8-11 family
		 * 12-13 type
		 * 16-19 extended model
		 * 20-27 extended family
		 */
		family = (mc->hdr.sig >> 8) & 0xf;
		if (family == 0xf)
			family += (mc->hdr.sig >> 20) & 0xff;
		model = (mc->hdr.sig >> 4) & 0x0f;
		if (family == 0x06)
			model += ((mc->hdr.sig >> 16) & 0x0f) << 4;
		stepping = mc->hdr.sig & 0x0f;

		year = mc->hdr.date & 0xffff;
		month = mc->hdr.date >> 24;
		day = (mc->hdr.date >> 16) & 0xff;

		if (asprintf(&filename, "intel-ucode/%02x-%02x-%02x", family, model, stepping) < 0) {
			rc = EXIT_FAILURE;
			goto out;
		}
		printf("\n");
		printf("%s\n", filename);
		printf("signature: 0x%02x\n", mc->hdr.sig);
		printf("flags:     0x%02x\n", mc->hdr.pf);
		printf("revision:  0x%02x\n", mc->hdr.rev);
		printf("date:      %04x-%02x-%02x\n", year, month, day);
		printf("size:      %zu\n", size);

		f = fopen(filename, "ae");
		if (f == NULL) {
			printf("open %s: %m\n", filename);
			rc = EXIT_FAILURE;
			goto out;
		}
		if (fwrite(mc, size, 1, f) != 1) {
			printf("write %s: %m\n", filename);
			rc = EXIT_FAILURE;
			goto out;
		}
		fclose(f);
		free(filename);

		start += size;
		if (start >= bufsize)
			break;
	}
	printf("\n");
out:
	return rc;
}


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>intel-ucode</Name>
        <Homepage>http://www.intel.com/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>library</IsA>
        <Summary>Microcode update files for Intel CPUs</Summary>
        <Description>Microcode update files for Intel CPUs</Description>
        <Archive sha1sum="ab0b2fff9d139bfe0ec0a051ccecf5799ea27df4" type="targz" target="microcode-20171117">https://downloadmirror.intel.com/27337/eng/microcode-20171117.tgz</Archive>
        <AdditionalFiles>
            <AdditionalFile target="intel-microcode2ucode.c">intel-microcode2ucode.c</AdditionalFile>
        </AdditionalFiles>
    </Source>

    <Package>
        <Name>intel-ucode</Name>
        <Files>
            <Path fileType="data">/usr/share/doc</Path>
            <Path fileType="library">/lib/firmware</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/usr/share/doc/intel-ucode/LICENSE" owner="root" permission="0644">LICENSE</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="3">
            <Date>2018-01-04</Date>
            <Version>20171117</Version>
            <Comment>Version Bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-04-07</Date>
            <Version>20161104</Version>
            <Comment>Version Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>20140122</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-06</Date>
            <Version>20140122</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>intel-ucode</Name>
        <Summary xml:lang="tr">Intel işlemciler için microcode dosyaları</Summary>
        <Description xml:lang="tr">Intel işlemciler için microcode dosyaları</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 shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    shelltools.system("./autogen.sh")

    autotools.configure()

def build():
    autotools.make("CFLAGS='%s'" % get.CFLAGS())

def install():
    pisitools.doman("irqbalance.1")
    pisitools.dosbin("irqbalance")

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


code:
from comar.service import *
import os

serviceType = "local"
serviceConf = "irqbalance"
serviceDefault = "conditional"
serviceDesc = _({"en": "Irqbalance Daemon",
                 "tr": "Irqbalance Servisi"})

@synchronized
def start():
    args = ""
    oneshot = config.get("ONESHOT")
    affinity = config.get("IRQ_AFFINITY_MASK")

    if oneshot == "yes" and os.path.exists("/run/irqbalance.pid"):
        return

    if oneshot == "yes":
        args += ("--oneshot -f")

    if affinity:
        os.environ["IRQBALANCE_BANNED_CPUS"] = affinity

    startService(command="/usr/sbin/irqbalance",
                 args=args, donotify=True)
    os.system("pidof -o %PPID /usr/sbin/irqbalance > /run/irqbalance.pid")

@synchronized
def stop():
    stopService(command="/usr/sbin/irqbalance",
                pidfile="/run/irqbalance.pid",
                donotify=True)

    try:
        os.unlink("/var/lock/subsys/irqbalance")
    except:
        pass

def ready():
    status = is_on()
    if status == "on" or (status == "conditional" and os.path.exists("/sys/devices/system/cpu/cpu1")):
        start()

def status():
    return isServiceRunning("/run/irqbalance.pid")


code:
# irqbalance is a daemon process that distributes interrupts across
# CPUS on SMP systems.  The default is to rebalance once every 10
# seconds.  There is one configuration option:
#
# ONESHOT=yes
#    after starting, wait for a minute, then look at the interrupt
#    load and balance it once; after balancing exit and do not change
#    it again.
ONESHOT=

#
# IRQ_AFFINITY_MASK
#    64 bit bitmask which allows you to indicate which cpu's should
#    be skipped when reblancing irqs.  Cpu numbers which have their
#    corresponding bits set to zero in this mask will not have any
#    irq's assigned to them on rebalance
#
#IRQ_AFFINITY_MASK=


code:
[Unit]
Description=irqbalance daemon
After=syslog.target

[Service]
ExecStart=/usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS

[Install]
WantedBy=multi-user.target


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>irqbalance</Name>
        <Homepage>http://www.irqbalance.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>service</IsA>
        <Summary>Distribute hardware interrupts across processors</Summary>
        <Description>Daemon to balance IRQs across multiple CPUs on systems.This can lead to better performance and I/O balance on SMP systems.</Description>
        <Archive sha1sum="2797747812d65fcfa83d7e3610857e6326df933a" type="targz">https://github.com/Irqbalance/irqbalance/archive/v1.3.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>numactl-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>libcap-ng-devel</Dependency>
            <Dependency>ncurses-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>irqbalance</Name>
        <RuntimeDependencies>
            <Dependency>numactl</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>libcap-ng</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <!--Path fileType="data">/lib/systemd/system</Path-->
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/irqbalance">irqbalance.confd</AdditionalFile>
            <!--AdditionalFile owner="root" permission="0644" target="/lib/systemd/system/irqbalance.service">irqbalance.service</AdditionalFile-->
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-04</Date>
            <Version>1.3.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-29</Date>
            <Version>1.2.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.1.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-27</Date>
            <Version>1.1.0</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>irqbalance</Name>
        <Summary xml:lang="tr">Donanım kesmelerini işlemciler arasında dağıtır</Summary>
        <Description xml:lang="tr">Birden fazla işlemcili sistemlerde donanım kesmelerini (hardware interrupt) işlemciler arasında dağıtarak dengeleme sağlayan artalan süreci. Bu SMP (simetrik çoklu işlemcili) sistemlerde daha iyi performans ve G/Ç dengesi sağlar.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2016 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

def build():
    autotools.make()

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


code:
--- aufs-util-4.0_p20151116.orig/Makefile	2015-11-12 05:29:36.000000000 +0200
+++ aufs-util-4.0_p20151116/Makefile	2016-06-18 02:13:42.598522963 +0300
@@ -19,7 +19,7 @@
 override CPPFLAGS += -D_GNU_SOURCE
 override CPPFLAGS += -I./libau
 override CPPFLAGS += -DAUFHSM_CMD=\"/usr/bin/aufhsm\"
-override CFLAGS += -O -Wall
+override CFLAGS += -Wall
 INSTALL ?= install
 Install = ${INSTALL} -o root -g root -p
 ManDir = /usr/share/man
@@ -76,7 +76,6 @@
 ver_test: ver
 	./ver

-${Bin}: override LDFLAGS += -static -s
 ${Bin}: LDLIBS = -L. -lautil
 ${BinObj}: %.o: %.c ${LibUtilHdr} ${LibUtil}

--- aufs-util-4.0_p20151116.orig/fhsm/Makefile	2015-11-12 05:29:36.000000000 +0200
+++ aufs-util-4.0_p20151116/fhsm/Makefile	2016-06-18 02:13:42.601856468 +0300
@@ -42,9 +42,9 @@
 .NOTPARALLEL: ${LibFhsm}

 ${TgtObj}: %.o: %.c ${LibFhsmHdr} $(addprefix ../, ${LibUtilHdr}) ${LibFhsm}
-#${Tgt}: override LDFLAGS += -static
-${Tgt}: override LDFLAGS += -s
-${Tgt}: override LDLIBS += -L. -lfhsm -L.. -lautil -lrt
+#${Tgt}: override LDFLAGS +=
+${Tgt}: override LDFLAGS +=
+${Tgt}: override LDLIBS += -L. -lfhsm -L.. -lautil  -lrt

 ########################################

--- aufs-util-4.0_p20151116.orig/libau/Makefile	2015-11-12 05:29:36.000000000 +0200
+++ aufs-util-4.0_p20151116/libau/Makefile	2016-06-18 02:13:42.601856468 +0300
@@ -37,14 +37,14 @@
 	ln -sf $< $@
 ${LibSo}.${LibSoMajor}: ${LibSo}.${LibSoMajor}.${LibSoMinor}
 	ln -sf $< $@
-${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDFLAGS += -s
+${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDFLAGS +=
 ${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDLIBS += -ldl -lpthread
 ${LibSo}.${LibSoMajor}.${LibSoMinor}: ${LibSoObj}
 	${CC} --shared -Wl,-soname,${LibSo}.${LibSoMajor} ${LDFLAGS} \
 		-o $@ $^ ${LDLIBS}

 install_ulib: File = ${LibSo}.${LibSoMajor}.${LibSoMinor}
-install_ulib: Tgt = ${DESTDIR}/usr/lib
+install_ulib: Tgt = ${DESTDIR}$(LIBDIR)
 install_ulib: ${File}
 	${INSTALL} -d ${Tgt}
 	${Install} -m 644 ${File} ${Tgt}


code:
diff -Nuar aufs-util.orig/fhsm/Makefile aufs-util/fhsm/Makefile
--- aufs-util.orig/fhsm/Makefile	2016-07-23 21:55:47.853968465 +0300
+++ aufs-util/fhsm/Makefile	2016-07-23 22:46:11.418882478 +0300
@@ -42,9 +42,9 @@
 .NOTPARALLEL: ${LibFhsm}

 ${TgtObj}: %.o: %.c ${LibFhsmHdr} $(addprefix ../, ${LibUtilHdr}) ${LibFhsm}
-#${Tgt}: override LDFLAGS += -static
-${Tgt}: override LDFLAGS += -s
-${Tgt}: override LDLIBS += -L. -lfhsm -L.. -lautil -lrt
+#${Tgt}: override LDFLAGS +=tatic
+${Tgt}: override LDFLAGS +=
+${Tgt}: override LDLIBS += -L. -lfhsm -L.. -lautil  -lrt

 ########################################

diff -Nuar aufs-util.orig/libau/Makefile aufs-util/libau/Makefile
--- aufs-util.orig/libau/Makefile	2016-07-23 21:55:47.854968465 +0300
+++ aufs-util/libau/Makefile	2016-07-23 22:45:59.081882829 +0300
@@ -37,14 +37,14 @@
 	ln -sf $< $@
 ${LibSo}.${LibSoMajor}: ${LibSo}.${LibSoMajor}.${LibSoMinor}
 	ln -sf $< $@
-${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDFLAGS += -s
+${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDFLAGS +=
 ${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDLIBS += -ldl -lpthread
 ${LibSo}.${LibSoMajor}.${LibSoMinor}: ${LibSoObj}
 	${CC} --shared -Wl,-soname,${LibSo}.${LibSoMajor} ${LDFLAGS} \
 		-o $@ $^ ${LDLIBS}

 install_ulib: File = ${LibSo}.${LibSoMajor}.${LibSoMinor}
-install_ulib: Tgt = ${DESTDIR}/usr/lib
+install_ulib: Tgt = ${DESTDIR}/usr/
 install_ulib: ${File}
 	${INSTALL} -d ${Tgt}
 	${Install} -m 644 ${File} ${Tgt}
diff -Nuar aufs-util.orig/Makefile aufs-util/Makefile
--- aufs-util.orig/Makefile	2016-07-23 21:55:47.852968465 +0300
+++ aufs-util/Makefile	2016-07-23 22:45:33.723883550 +0300
@@ -19,7 +19,7 @@
 override CPPFLAGS += -D_GNU_SOURCE
 override CPPFLAGS += -I./libau
 override CPPFLAGS += -DAUFHSM_CMD=\"/usr/bin/aufhsm\"
-override CFLAGS += -O -Wall
+override CFLAGS +=  -Wall
 INSTALL ?= install
 Install = ${INSTALL} -o root -g root -p
 ManDir = /usr/share/man
@@ -76,7 +76,6 @@
 ver_test: ver
 	./ver

-${Bin}: override LDFLAGS += -static -s
 ${Bin}: LDLIBS = -L. -lautil
 ${BinObj}: %.o: %.c ${LibUtilHdr} ${LibUtil}


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>aufs-util</Name>
        <Homepage>http://aufs.sourceforge.ne</Homepage>
        <Packager>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:gui</IsA>
        <Summary>Utilities are always necessary for aufs</Summary>
        <Description>Utilities are always necessary for aufs</Description>
        <Archive sha1sum="4309056189119319fc52fd44851b410ad8687685" type="tarxz">https://dev.gentoo.org/~jlec/distfiles/aufs-util-4.1_p20170130.tar.xz</Archive>
        <Patches>
            <!--Patch level="1">buildflags.patch</Patch-->
        </Patches>
    </Source>

    <Package>
        <Name>aufs-util</Name>
        <RuntimeDependencies>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/sbin</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2018-01-01</Date>
            <Version>20170130</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2017-03-20</Date>
            <Version>20160717</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2016-07-23</Date>
            <Version>20160717</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</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 get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

def setup():
    shelltools.system("./autogen.sh")
    autotools.configure("--disable-zstd")

def build():
    autotools.make("CC=%s" % get.CC())
    #autotools.make("V=1 CC=%s CFLAGS=\"%s\"" % (get.CC(), get.CFLAGS()))
    #autotools.make("V=1 CC=%s CFLAGS=\"%s\" btrfs-select-super" % (get.CC(), get.CFLAGS()))

def install():
    autotools.rawInstall("prefix=/usr DESTDIR=%s" % get.installDIR())
    pisitools.remove("/usr/lib/*.a")

    pisitools.insinto("/usr/bin", "bcp", "btrfs-bcp")
    pisitools.insinto("/usr/bin", "show-blocks", "btrfs-show-blocks")

    pisitools.dodoc("COPYING")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>btrfs-progs</Name>
        <Homepage>http://btrfs.wiki.kernel.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        Userspace utilities for btrfs
        <Description>btrfs-progs package provides all the userspace programs needed to create, check, modify and correct any inconsistencies in the btrfs filesystem.</Description>
        <Archive sha1sum="feac20de1b85da8247e50505ceb6f8f967a371a2" type="targz">https://github.com/kdave/btrfs-progs/archive/v4.14.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>xmlto</Dependency>
            <Dependency>asciidoc</Dependency>
            <Dependency>lzo-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libutil-linux-devel</Dependency>
            <Dependency>util-linux</Dependency>
            <Dependency>libxslt</Dependency>
            <Dependency>e2fsprogs-devel</Dependency>
        </BuildDependencies>
    </Source>
    <Package>
        <Name>btrfs-progs</Name>
        <RuntimeDependencies>
            <Dependency>lzo</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libutil-linux</Dependency>
            <Dependency>e2fsprogs</Dependency>
         </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>btrfs-progs-devel</Name>
        Development files for btrfs-progs
        <RuntimeDependencies>
            <Dependency release="current">btrfs-progs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-12-31</Date>
            <Version>4.14</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-03-19</Date>
            <Version>4.1.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>4.1.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
         <Update release="1">
            <Date>2015-07-20</Date>
            <Version>4.1.2</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>btrfs-progs</Name>
        <Summary xml:lang="tr">btrfs dosya sistemi araçları</Summary>
        <Description xml:lang="tr">btrfs-progs, btrfs dosya sistemleri yaratmak, denetlemek; bu dosya sistemlerindeki hataları düzeltmek ve çeşitli değişiklikler yapmak için gereken araçları içerir.</Description>
    </Source>
</PISI>


code:
<PISI>
    <Name>hardware.disk</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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import libtools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

def setup():
    shelltools.export("OPTIMIZER", get.CFLAGS())
    shelltools.export("DEBUG", "-DNDEBUG")
    pisitools.cflags.add("-fPIC")

    autotools.autoconf()
    autotools.configure("--libexecdir=/usr/lib \
                         --disable-static")

def build():
    autotools.make()

def install():
    autotools.rawInstall('DIST_ROOT="%s" install-dev' % get.installDIR())


code:
From: Jeff Mahoney <jeffm@suse.com>
Subject: dmapi: add missing includes to handle2path

The update to xfsprogs 4.2.0 removed some includes from its own headers, so
those headers need to be added manually to dmapi.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---
 libdm/dm_handle2path.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/libdm/dm_handle2path.c
+++ b/libdm/dm_handle2path.c
@@ -16,6 +16,10 @@
  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */

+#include <sys/stat.h>
+#include <fcntl.h>
+#include <string.h>
+#include <unistd.h>
 #include <dmapi.h>
 #include <dmapi_kern.h>
 #include "dmapi_lib.h"


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>dmapi</Name>
        <Homepage>http://oss.sgi.com/projects/xfs/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>app:console</IsA>
        XFS data management API library
        <Description>The Data Management API (DMAPI/XDSM) allows implementation of hierarchical storage management software with no kernel modifications as well as high-performance dump programs without requiring "raw" access to the disk and knowledge of filesystem structures.</Description>
        <Archive sha1sum="1d71339c14356091eab4d01b5d536d2efc1eaac9" type="targz">ftp://oss.sgi.com/projects/xfs/cmd_tars/dmapi-2.2.12.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>xfsprogs-devel</Dependency>
            <Dependency>libutil-linux-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">dmapi-add-missing-includes-to-handle2path.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>dmapi</Name>
        <RuntimeDependencies>
            <Dependency>xfsprogs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/lib</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>dmapi-devel</Name>
        Development files for dmapi
        <RuntimeDependencies>
            <Dependency release="current">dmapi</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-18</Date>
            <Version>2.2.12</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.2.12</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-22</Date>
            <Version>2.2.12</Version>
            <Comment>First release</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvarice@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>dmapi</Name>
        XFS veri yönetimi kütüphanesi
        Librairie de l'API de gestion de données XFS.
    </Source>

    <Package>
        <Name>dmapi-devel</Name>
        dmapi 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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "dmraid/1.0.0.rc16-3/dmraid/"

def builddiet():
    autotools.make("distclean")
    shelltools.export("CC", "diet %s %s %s -Os -static" % (get.CC(), get.CFLAGS(), get.LDFLAGS()))
    autotools.configure("--disable-libselinux \
                         --disable-libsepol")

    autotools.make("-j1")

    pisitools.insinto("/sbin/", "tools/dmraid", "dmraid.static")

def setup():
    autotools.configure("--enable-shared_lib")

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

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

    #builddiet()
    pisitools.dodoc("CHANGELOG", "README", "TODO", "KNOWN_BUGS", "doc/*")


code:
--- tools/Makefile.in.old	2010-05-31 07:18:31.000000000 -0400
+++ tools/Makefile.in	2010-12-13 13:15:22.000000000 -0500
@@ -60,17 +60,23 @@
 ifeq ("@KLIBC@", "no")
 	ifeq ("@STATIC_LINK@", "no")
 		LDFLAGS += -rdynamic
+		MYLIBOBJ=$(top_builddir)/lib/libdmraid.so
 	else
 		LDFLAGS += -static
+		MYLIBOBJ=$(top_builddir)/lib/libdmraid.a
+		DMRAIDLIBS += \
+			$(DEVMAPPEREVENT_LIBS) \
+			$(DEVMAPPER_LIBS) \
+			$(DL_LIBS)
 	endif
 endif

 .PHONY: install_dmraid_tools

-dmraid: $(OBJECTS) $(top_builddir)/lib/libdmraid.a
+dmraid: $(OBJECTS) $(MYLIBOBJ)
 	$(CC) -o $@ $(OBJECTS) $(LDFLAGS) -L$(top_builddir)/lib $(DMRAIDLIBS) $(LIBS)

-dmevent_tool: $(OBJECTS2) $(top_builddir)/lib/libdmraid.a
+dmevent_tool: $(OBJECTS2) $(MYLIBOBJ)
 	$(CC) -o $@ $(OBJECTS2) $(INCLUDES) $(LDFLAGS) -L$(top_builddir)/lib \
 		$(DMEVENTTOOLLIBS) $(DMRAIDLIBS) $(LIBS)

--- lib/Makefile.in.old	2010-10-27 07:31:46.000000000 -0400
+++ lib/Makefile.in	2010-12-13 13:04:16.000000000 -0500
@@ -60,11 +60,11 @@
 USRLIB_RELPATH = $(shell echo $(abspath $(usrlibdir) $(libdir)) | \
   $(AWK) -f $(top_srcdir)/tools/relpath.awk)

-TARGETS = $(LIB_STATIC)
+TARGETS = $(LIB_STATIC) $(LIB_SHARED) $(LIB_EVENTS_SHARED)

 ifeq ("@KLIBC@", "no")
 	ifeq ("@STATIC_LINK@", "no")
-		TARGETS += $(LIB_SHARED) $(LIB_EVENTS_SHARED)
+		TARGETS = $(LIB_SHARED) $(LIB_EVENTS_SHARED)
 	endif
 endif

--- configure.in	2010-05-31 07:18:30.000000000 -0400
+++ configure.in.new	2010-12-07 13:30:40.000000000 -0500
@@ -155,6 +155,15 @@
     Default is dynamic linking]),
   [STATIC_LINK=$enableval], [STATIC_LINK=no])

+if test "x$STATIC_LINK" != "xno"; then
+  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
+        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
+  fi
+  PKG_CONFIG="${PKG_CONFIG} --static"
+  ac_cv_env_PKG_CONFIG_set=set
+fi
+PKG_PROG_PKG_CONFIG([0.2])
+
 dnl Enables shared libdmraid
 AC_ARG_ENABLE(shared_lib,
   AC_HELP_STRING([--enable-shared_lib], [Use this to generate shared
@@ -248,23 +257,31 @@
 	AC_HELP_STRING([--with-devmapper-prefix=PFX],
 		[Where is devmapper library installed]),
 	[DEVMAPPER_LIBS="-L$withval/lib"
-	 DEVMAPPER_CFLAGS="-I$withval/include"],
+	 DEVMAPPER_CFLAGS="-I$withval/include"
+	 dmprefix=$withval],
 	[DEVMAPPER_LIBS=
-	 DEVMAPPER_CFLAGS=])
-save_LDFLAGS=$LDFLAGS
-save_CPPFLAGS=$CPPFLAGS
-LDFLAGS="$LDFLAGS $DEVMAPPER_LIBS"
-CPPFLAGS="$CPPFLAGS $DEVMAPPER_CFLAGS"
-AC_CHECK_LIB(devmapper-event, dm_event_handler_create,
-	[DEVMAPPEREVENT_LIBS="$DEVMAPPER_LIBS -ldevmapper-event"],
-	[AC_MSG_ERROR([device-mapper-event library is either missing or is too old and badly linked])])
-AC_CHECK_LIB(devmapper, dm_task_set_name,
-	[DEVMAPPER_LIBS="$DEVMAPPER_LIBS -ldevmapper"],
-	[AC_MSG_ERROR([device-mapper library is missing])])
-AC_CHECK_HEADERS(libdevmapper.h libdevmapper-event.h,,
-	[AC_MSG_ERROR([Missing headers device-mapper headers])])
-CPPFLAGS=$save_CPPFLAGS
-LDFLAGS=$save_LDFLAGS
+	 DEVMAPPER_CFLAGS=
+	 dmprefix=no])
+if test "x$dmprefix" = xno ; then
+	PKG_CHECK_MODULES([DEVMAPPER],[devmapper],
+		[PKG_CHECK_MODULES([DEVMAPPEREVENT],[devmapper-event])
+		])
+else
+	save_LDFLAGS=$LDFLAGS
+	save_CPPFLAGS=$CPPFLAGS
+	LDFLAGS="$LDFLAGS $DEVMAPPER_LIBS"
+	CPPFLAGS="$CPPFLAGS $DEVMAPPER_CFLAGS"
+	AC_CHECK_LIB(devmapper-event, dm_event_handler_create,
+		[DEVMAPPEREVENT_LIBS="$DEVMAPPER_LIBS -ldevmapper-event"],
+		[AC_MSG_ERROR([device-mapper-event library is either missing or is too old and badly linked])])
+	AC_CHECK_LIB(devmapper, dm_task_set_name,
+		[DEVMAPPER_LIBS="$DEVMAPPER_LIBS -ldevmapper"],
+		[AC_MSG_ERROR([device-mapper library is missing])])
+	AC_CHECK_HEADERS(libdevmapper.h libdevmapper-event.h,,
+		[AC_MSG_ERROR([Missing headers device-mapper headers])])
+	CPPFLAGS=$save_CPPFLAGS
+	LDFLAGS=$save_LDFLAGS
+fi

 VERSION=$srcdir/tools/VERSION
 DMRAID_LIB_MAJOR=$(cut -d. -f1 $VERSION)


code:
Author: Giuseppe Iuculano <giuseppe@iuculano.it>
Description: Removed "p" from device name. A proper upgrade script is needed before using it.
--- a/1.0.0.rc15/lib/format/partition/dos.c
+++ b/1.0.0.rc15/lib/format/partition/dos.c
@@ -31,7 +31,7 @@ _name(struct lib_context *lc, struct rai
 {
 	const char *base = get_basename(lc, rd->di->path);

-	return type ? snprintf(str, len, "%s%s%u", base, OPT_STR_PARTCHAR(lc),
+	return type ? snprintf(str, len, "%s%u", base,
 			       partition) : snprintf(str, len, "%s", base);
 }


code:
--- dmraid/lib/misc/file.c~	2008-06-12 12:54:32.000000000 +0200
+++ dmraid/lib/misc/file.c	2009-03-19 00:14:33.000000000 +0100
@@ -69,7 +69,7 @@
 	if ((fd = open(path, flags, lc->mode)) == -1)
 		LOG_ERR(lc, 0, "opening \"%s\"", path);

-#ifdef __KLIBC__
+#if defined(__KLIBC__) || defined(__dietlibc__)
 #define	DMRAID_LSEEK	lseek
 #else
 #define	DMRAID_LSEEK	lseek64


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>dmraid</Name>
        <Homepage>http://people.redhat.com/~heinzm/sw/dmraid</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        Device-Mapper Software RAID support tool and library
        <Description>Device-Mapper Software RAID support tool and library</Description>
        <Archive sha1sum="162b6173b91a0121a52402d2ed939b43d74ff605" type="tarbz2">http://launchpad.net/dmraid/1.0/1.0.0.rc16-3/+download/dmraid-1.0.0.rc16-3.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>device-mapper-event-devel</Dependency>
            <Dependency>device-mapper-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">dmraid-diet.patch</Patch>
            <Patch level="2">dmraid-1.0.0_rc16-return-all-sets.patch</Patch>
            <Patch level="0">dmraid-1.0.0_rc16-static-build-fixes.patch</Patch>
            <Patch level="2">dmraid-1.0.0_rc16-undo-p-rename.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>dmraid</Name>
        <RuntimeDependencies>
            <Dependency>device-mapper</Dependency>
            <Dependency>device-mapper-event</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>dmraid-devel</Name>
        Development files for dmraid
        <RuntimeDependencies>
            <Dependency release="current">dmraid</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-05</Date>
            <Version>1.0.0_rc16</Version>
            <Comment>Rebuild.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.0.0_rc16</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-02-17</Date>
            <Version>1.0.0_rc16</Version>
            <Comment>First release</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>dmraid</Name>
        ATARAID aygıtlarını (Yazılımsal RAID) denetleme aracı
        <Description xml:lang="tr">ATARAID aygıtları yaratmak, yönetmek ve izlemek için kullanılan bir araçtır.</Description>
    </Source>

    <Package>
        <Name>dmraid-devel</Name>
        dmraid 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

def setup():
    autotools.configure("--prefix=/usr \
                        --libexecdir=/usr/lib \
                        --sbindir=/usr/bin \
                        --mandir=/usr/share/man \
                        --docdir=/usr/share/doc/dosfstools \
                        --enable-compat-symlinks")

def build():
    autotools.make()

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>dosfstools</Name>
        <Homepage>http://www.daniel-baumann.ch/software/dosfstools/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        <IsA>app:console</IsA>
        <Summary>Tools to create and check DOS and VFAT filesystems</Summary>
        <Description>The dosfstools package includes the DOS and VFAT filesystem utilities like mkdosfs, mkfs.msdos, mkfs.vfat, dosfsck, dosfslabel. You can create and check MS-DOS FAT filesystems on hard drives or on floppies</Description>
        <Archive type="tarxz" sha1sum="814e2d5842c62e328dfc8947178a0a4e45a1c028">https://github.com/dosfstools/dosfstools/releases/download/v4.1/dosfstools-4.1.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>eudev-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>dosfstools</Name>
        <RuntimeDependencies>
            <Dependency>eudev</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-01</Date>
            <Version>4.1</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-29</Date>
            <Version>4.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-10</Date>
            <Version>3.0.26</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-04-03</Date>
            <Version>3.0.26</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>dosfstools</Name>
        <Description xml:lang="tr">Dosfstools paketi, mkdosfs, mkfs.msdos, mkfs.vfat, dosfsck, dosfslabel gibi, DOS ve VFAT dosyasistemleri yaratmaya ve kontrol etmeye yarayan araçları içerir.</Description>
        <Summary xml:lang="tr">DOS dosya sistemi oluşturmaya ve kontrol etmeye yarayan komutlar</Summary>
    </Source>
</PISI>


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

def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")
    shelltools.system("cmake .. -DUSE_INTERNAL_TINYXML=OFF \
                          -DINSTALL_LIBENCFS=ON \
                          -DBUILD_SHARED_LIBS=ON \
                          -DCMAKE_INSTALL_PREFIX=/usr \
                          -G Ninja")

def build():
    shelltools.cd("build")
    shelltools.system("ninja")

def install():
    shelltools.cd("build")
    shelltools.system("DESTDIR=%s ninja install" % get.installDIR())

    shelltools.cd("..")
    pisitools.dodoc("COPYING*", "DESIGN*", "README*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>encfs</Name>
        <Homepage>https://github.com/vgough/encfs</Homepage>
        <Packager>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2</License>
        <IsA>library</IsA>
        <Summary>Encrypted filesystem in user-space</Summary>
        <Description>Encrypted filesystem in user-space</Description>
        <Archive sha1sum="63b065bfd1eedc4ac0dba48573df4f7ca2aa8d5b" type="targz">https://github.com/vgough/encfs/releases/download/v1.9.2/encfs-1.9.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
            <Dependency>ninja</Dependency>
            <Dependency>fuse-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>tinyxml2-devel</Dependency>
        </BuildDependencies>
    </Source>
    <Package>
        <Name>encfs</Name>
        <RuntimeDependencies>
            <Dependency>fuse</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>tinyxml2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>
    <History>
        <Update release="1">
            <Date>2017-10-18</Date>
            <Version>1.9.2</Version>
            <Comment>First release.</Comment>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>encfs</Name>
        <Summary xml:lang="tr">Encrypted filesystem in user-space</Summary>
        <Description xml:lang="tr">Encrypted filesystem in user-space</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 get

def setup():
    autotools.configure("--prefix=/usr ")

def build():
    autotools.make()

def install():
    autotools.install()
    #pisitools.dobin("mkfs/mkexfatfs")
    #pisitools.dobin("dump/dumpexfat")
    #pisitools.dobin("fsck/exfatfsck")
    #pisitools.dobin("label/exfatlabel")

    #pisitools.doman("mkfs/mkexfatfs.8")
    #pisitools.doman("dump/dumpexfat.8")
    #pisitools.doman("fsck/exfatfsck.8")
    #pisitools.doman("label/exfatlabel.8")

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>exfat-utils</Name>
        <Homepage>http://code.google.com/p/exfat</Homepage>
        <Packager>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:gui</IsA>
        <Summary>Utilities for exFAT file system</Summary>
        <Description>This project aims to provide a full-featured exFAT file system implementation for GNU/Linux and other Unix-like systems as a FUSE module and a set of utilities.</Description>
        <Archive sha1sum="ad5c33f40bec53971cf304ffbdb8fc7e91c3d837" type="targz">https://github.com/relan/exfat/releases/download/v1.2.7/exfat-utils-1.2.7.tar.gz</Archive>
    </Source>

    <Package>
        <Name>exfat-utils</Name>
        <Files>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-12-30</Date>
            <Version>1.2.7</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-28</Date>
            <Version>1.2.5</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.2.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-27</Date>
            <Version>1.2.3</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>exfat-utils</Name>
        <Summary xml:lang="en">Utilities for exFAT file system</Summary>
        <Description xml:lang="en">This project aims to provide a full-featured exFAT file system implementation for GNU/Linux and other Unix-like systems as a FUSE module and a set of utilities.</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 get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools

def setup():
    autotools.configure()

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README", "THANKS")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>fsarchiver</Name>
        <Homepage>http://www.fsarchiver.org/Main_Page</Homepage>
        <Packager>
            <Name>marcin bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>Safe and flexible file-system backup/deployment tool.</Summary>
        <Description>FSArchiver is a system tool that allows you to save the contents of a file-system to a compressed archive file.</Description>
        <Archive sha1sum="14221e0a9c93cea762aaadb4b8fb667688098d87" type="targz">https://github.com/fdupoux/fsarchiver/releases/download/0.8.2/fsarchiver-0.8.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>lzo-devel</Dependency>
            <Dependency>xz-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>e2fsprogs-devel</Dependency>
            <Dependency>libgcrypt-devel</Dependency>
            <Dependency>attr-devel</Dependency>
            <Dependency>libutil-linux-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>fsarchiver</Name>
        <RuntimeDependencies>
            <Dependency>lzo</Dependency>
            <Dependency>xz</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>e2fsprogs</Dependency>
            <Dependency>libgcrypt</Dependency>
            <Dependency>libutil-linux</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-01</Date>
            <Version>0.8.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-28</Date>
            <Version>0.8.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.6.21</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-27</Date>
            <Version>0.6.21</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>fsarchiver</Name>
        Sicherung und Wiederherstellung von Dateisystemen
        <Description xml:lang="de">fsarchiver ist ein Konsolenprogramm zum Sichern und Wiederherstellen von Partitionen und Verzeichnissen.</Description>
        Bezpieczne i elastyczne narzędzie do tworzenia kopii zapasowej systemu plików.
        <Description xml:lang="pl">FSArchiver jest narzędziem systemowym, które pozwala na zapisanie zawartości systemu plików w skompresowanym pliku.</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 pisitools
from pisi.actionsapi import autotools
from pisi.actionsapi import get

def setup():
    autotools.configure("--prefix=/usr ")

def build():
    autotools.make()

def install():
    autotools.install()
    #pisitools.dobin("fuse/mount.exfat-fuse")
   # pisitools.doman("fuse/mount.exfat-fuse.8")

    pisitools.dodoc("ChangeLog", "COPYING")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>fuse-exfat</Name>
        <Homepage>http://code.google.com/p/exfat/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        <IsA>app</IsA>
        <Summary>exFAT filesystem fuse module</Summary>
        <Description>exFAT filesystem fuse module</Description>
        <Archive sha1sum="c0ddc51e082ecbd6985b6cf66290735cc31a7f01" type="targz">https://github.com/relan/exfat/releases/download/v1.2.7/fuse-exfat-1.2.7.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>exfat-utils</Dependency>
            <Dependency>fuse-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>fuse-exfat</Name>
        <RuntimeDependencies>
            <Dependency>fuse</Dependency>
            <Dependency>exfat-utils</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-12-30</Date>
            <Version>1.2.7</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-28</Date>
            <Version>1.2.5</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.2.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-27</Date>
            <Version>1.2.3</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>fuse-exfat</Name>
        <Summary xml:lang="tr">exFAT dosya sistemi bağlamak için araçlar</Summary>
        <Description xml:lang="tr">exFAT dosya sistemi bağlamak için araçlar</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/copyleft/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools

def build():
    autotools.make()

def install():
    pisitools.dobin("cgdisk")
    pisitools.dobin("fixparts")
    pisitools.dobin("gdisk")
    pisitools.dobin("sgdisk")

    pisitools.doman("cgdisk.8")
    pisitools.doman("fixparts.8")
    pisitools.doman("gdisk.8")
    pisitools.doman("sgdisk.8")

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


code:
<PISI>
    <Source>
        <Name>gptfdisk</Name>
        <Homepage>http://www.rodsbooks.com/gdisk/</Homepage>
        <Packager>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>A text-mode partitioning tool that works on GUID Partition Table (GPT) disks</Summary>
        <Description>A text-mode partitioning tool that works on GUID Partition Table (GPT) disks</Description>
        <BuildDependencies>
            <Dependency>util-linux</Dependency>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>popt-devel</Dependency>
            <Dependency>libutil-linux-devel</Dependency>
        </BuildDependencies>
        <Archive sha1sum="9a74bbe7805d562316e92417f71e4b03155308e6" type="targz">http://sourceforge.net/projects/gptfdisk/files/gptfdisk/1.0.3/gptfdisk-1.0.3.tar.gz</Archive>
    </Source>

    <Package>
        <Name>gptfdisk</Name>
        <RuntimeDependencies>
            <Dependency>ncurses</Dependency>
            <Dependency>popt</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libutil-linux</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="executable">/usr/bin</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-01</Date>
            <Version>1.0.3</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-03-08</Date>
            <Version>1.0.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.0.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-10-28</Date>
            <Version>1.0.1</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<PISI>
    <Source>
        <Name>gptfdisk</Name>
        <Summary xml:lang="en">A text-mode partitioning tool that works on GUID Partition Table (GPT) disks</Summary>
        <Description xml:lang="en">A text-mode partitioning tool that works on GUID Partition Table (GPT) disks</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 get

def setup():
    pisitools.dosed("Makefile", "(?m)^(CC.*)gcc", r"\1%s" % get.CC())
    pisitools.dosed("Makefile", "(?m)^(LDFLAGS.*)-s", r"\1%s" % get.LDFLAGS())
    pisitools.dosed("Makefile", "(?m)^(CFLAGS.*)-O2", r"\1%s" % get.CFLAGS())

def build():
    autotools.make('STRIP=: CC="%s"' % get.CC())

def install():
    pisitools.dosbin("hdparm", "/sbin")
    pisitools.dosbin("contrib/idectl", "/sbin")

    pisitools.doman("hdparm.8")
    pisitools.dodoc("hdparm.lsm", "Changelog", "README.acoustic")


code:
# /etc/conf.d/hdparm: Config file for hdparm
#
# Hdparm is a useful system utility for setting (E)IDE hard drive parameters and it can be
# used to tweak hard drive performance and to spin down hard drives for power conservation
#
# For example, for all pata drives you can use this parameter
#
# all="-d1 -c1"
#
# If you have a Seagate disk then you may need to use -Z parameter to disable the automatic
# power-saving function of certain Seagate drives to prevent them from idling/spinning-down
# at inconvenient times
#
# hda="-d1 -c1 -Z"
#
# You can use -X parameter to set the IDE transfer mode for newer (E)IDE/ATA drives but you
# should select the correct mode. PIO 1-4 (Programmed IO), SDMA 0-2 (Single-word DMA),
# MDMA 0-2 (Multi-word DMA) and UDMA 0-5 (Ultra-DMA)
#
# hda="-d1 -c1 -X udma5"


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>hdparm</Name>
        <Homepage>http://sourceforge.net/projects/hdparm/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>app:console</IsA>
        <Summary>Utility to change hard drive performance parameters</Summary>
        <Description>hdparm has some useful utilities that allows you to get/set hard disk parameters for Linux IDE drives in runtime.</Description>
        <Archive sha1sum="c641429c5b5d0513acfc86dc31c6b3b35c070a70" type="targz">https://sourceforge.net/projects/hdparm/files/hdparm/hdparm-9.52.tar.gz</Archive>
    </Source>

    <Package>
        <Name>hdparm</Name>
        <Files>
            <Path fileType="executable">/sbin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="config">/etc/conf.d</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/hdparm">hdparm.confd</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-03</Date>
            <Version>9.52</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-28</Date>
            <Version>9.51</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>9.43</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-24</Date>
            <Version>9.43</Version>
            <Comment>First release</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>hdparm</Name>
        <Summary xml:lang="tr">Sabit disk parametrelerini değiştirmekte kullanılan araç</Summary>
        <Description xml:lang="tr">hdparm paketi çalışma anında Linux IDE sürücülerinin parametrelerini almanıza/değiştirmenize olanak sağlayan bazı kullanışlı uygulamaları içerir.</Description>
        <Description xml:lang="fr">le paquet hdparm dispose d'outils utiles permettant d'obtenir/établir les paramètres de disques durs IDE sous Linux en cours d'éxécution.</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 get

def setup():
    autotools.configure("--disable-static")

def build():
    autotools.make()

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

    pisitools.dodoc("README", "LGPL", "blob-examples/SAMSUNG*",
                    "blob-examples/ST*", "blob-examples/Maxtor*",
                    "blob-examples/WDC*", "blob-examples/FUJITSU*",
                    "blob-examples/INTEL*", "blob-examples/TOSHIBA*",
                    "blob-examples/MCC*")


code:
From 26f0cc57fcf346753f17e75fb1378f053dcba92c Mon Sep 17 00:00:00 2001
From: David Zeuthen <davidz@redhat.com>
Date: Wed, 9 Dec 2009 17:14:36 -0500
Subject: [PATCH] fix return of uninitialized variable
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

 atasmart.c: In function ‘init_smart’:
 atasmart.c:2556: warning: ‘ret’ may be used uninitialized in this function

We apparently don't initialize the ret variable in init_smart() -
unfortunately

 o  this warning is never reported with using -O0 (thanks gcc -
    see http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings though)

 o  we never run into this bug with just skdump(1)

The bug does show up in the udisks (aka DeviceKit-disks) use of
libatasmart and this patch fixes it.

Signed-off-by: David Zeuthen <davidz@redhat.com>
---
 atasmart.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/atasmart.c b/atasmart.c
index 3ff0334..cf93819 100644
--- a/atasmart.c
+++ b/atasmart.c
@@ -2564,6 +2564,8 @@ static int init_smart(SkDisk *d) {
         if (!disk_smart_is_available(d))
                 return 0;

+        ret = -1;
+
         if (!disk_smart_is_enabled(d)) {
                 if ((ret = disk_smart_enable(d, TRUE)) < 0)
                         goto fail;
@@ -2580,6 +2582,8 @@ static int init_smart(SkDisk *d) {

         disk_smart_read_thresholds(d);

+        ret = 0;
+
 fail:
         return ret;
 }
--
1.6.5.5


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libatasmart</Name>
        <Homepage>http://git.0pointer.de/?p=libatasmart.git</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2+</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        ATA S.M.A.R.T. Disk Health Monitoring Library
        <Description>A small and lightweight parser library for ATA S.M.A.R.T. hard disk health monitoring.</Description>
        <Archive sha1sum="0d0745b6bd2e5b9461d15966b5daac6c98302de8" type="tarxz">http://0pointer.de/public/libatasmart-0.19.tar.xz</Archive>
        <Patches>
            <Patch level="1">libatasmart-uninitialized-var.patch</Patch>
        </Patches>
        <BuildDependencies>
             <Dependency>eudev-devel</Dependency>
         </BuildDependencies>
    </Source>

    <Package>
        <Name>libatasmart</Name>
        <RuntimeDependencies>
             <Dependency>eudev</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/sbin/skdump</Path>
            <Path fileType="executable">/usr/sbin/sktest</Path>
            <Path fileType="library">/usr/lib/libatasmart.so*</Path>
            <Path fileType="data">/usr/share/doc/libatasmart/README</Path>
            <Path fileType="data">/usr/share/doc/libatasmart/LGPL</Path>
        </Files>
    </Package>

    <Package>
        <Name>libatasmart-devel</Name>
        Development files for libatasmart
        <RuntimeDependencies>
            <Dependency release="current">libatasmart</Dependency>
            <Dependency>eudev-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/share/vala</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-02</Date>
            <Version>0.19</Version>
            <Comment>Release Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.19</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-25</Date>
            <Version>0.19</Version>
            <Comment>First release</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvarice@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libatasmart</Name>
        ATA S.M.A.R.T. disk sağlığı izleme kitaplığı
        <Description xml:lang="tr">libatasmart, ATA S.M.A.R.T. üzerinden disk sağlığını izlemek için kullanılan ufak ve hafif bir kitaplıktır.</Description>
    </Source>

    <Package>
        <Name>libatasmart-devel</Name>
        libatasmart 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 autotools
from pisi.actionsapi import pisitools

def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("--disable-static \
                         --disable-ldconfig-at-install \
                         --with-gnu-ld \
                         --disable-test")

def build():
    autotools.make()

def install():
    autotools.install()
    pisitools.dodoc("AUTHORS", "COPY*", "NEWS", "README")
    pisitools.dodoc("doc/*")
    pisitools.remove("/usr/share/doc/libisofs/doxygen.conf*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libisofs</Name>
        <Homepage>http://libburnia-project.org</Homepage>
        <License>GPLv2</License>
        <Packager>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <PartOf>hardware.optical</PartOf>
        <IsA>library</IsA>
        A library for creating ISO disc images
        <Description>libisofs is a library that handles creating ISO disc image files. It is intended to work together with libburn to write these images to discs</Description>
        <Archive sha1sum="f487a6c9cb713fd7f0aab21860f219ac2267801f" type="targz">http://files.libburnia-project.org/releases/libisofs-1.4.8.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>acl-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
        </BuildDependencies>
    </Source>
    <Package>
        <Name>libisofs</Name>
        <RuntimeDependencies>
            <Dependency>acl</Dependency>
            <Dependency>zlib</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libisofs-devel</Name>
        Development files for libisofs
        <RuntimeDependencies>
            <Dependency release="current">libisofs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="doc">/usr/share/doc/libisofs/Tutorial</Path>
            <Path fileType="doc">/usr/share/doc/libisofs/checksums.txt</Path>
            <Path fileType="doc">/usr/share/doc/libisofs/susp_aaip_2_0.txt</Path>
            <Path fileType="doc">/usr/share/doc/libisofs/susp_aaip_isofs_names.txt</Path>
            <Path fileType="doc">/usr/share/doc/libisofs/zisofs_format.txt</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-03</Date>
            <Version>1.4.8</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-28</Date>
            <Version>1.4.6</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.4.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-26</Date>
            <Version>1.4.2</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libisofs</Name>
        ISO kalıbı oluşturmak için gerekli kitaplıklar
        <Description xml:lang="tr">libisofs, ISO kalıbını oluşturmak için gerekli kitaplıkları içeren pakettir. Bu paket ayrıca Libburn'u kullanarak, ISO kalıplarını CD, DVD veya benzeri disklere yazdırmanıza olanağı sağlar.</Description>
    </Source>

    <Package>
        <Name>libisofs-devel</Name>
        libisofs 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 shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    shelltools.export("CFLAGS", "%s -D_FILE_OFFSET_BITS=64" % get.CFLAGS())
    autotools.configure("--prefix=/usr \
                        --sbin=/usr/bin \
                        --mandir=/usr/share/man \
                        --disable-ldconfig \
                        --disable-static \
                        --with-fuse=external \
                        --enable-posix-acls \
                        --enable-ldscript \
                        --enable-extras")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s rootbindir=/usr/bin rootsbindir=/usr/bin rootlibdir=/usr/lib" % get.installDIR())

    pisitools.domove("/usr/bin/ntfs-3g.*", "/bin")

    # Create some compat symlinks
    pisitools.dosym("/usr/bin/ntfs-3g", "/sbin/mount.ntfs")

    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "CREDITS", "NEWS", "README")
    pisitools.dosym("/usr/share/doc/ntfs-3g", "/usr/share/doc/ntfsprogs")