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
from pisi.actionsapi import shelltools

def setup():
    # force to use python2.x
    #pisitools.dosed("configure.ac", "(python)3", "\\1")

    autotools.autoreconf("-fi")
    autotools.configure("--prefix=/usr \
                         --with-udevdir=/lib/udev")

def build():
    shelltools.system('LANG="en_US.UTF-8" make')

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>media-player-info</Name>
        <Homepage>http://cgit.freedesktop.org/media-player-info</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <Summary>Media player capability database</Summary>
        <Description>media-player-info is a repository of data files describing media player capabilities. These files contain information about the directory layout to use to add music to these devices, about the supported file formats, etc.</Description>
        <Archive sha1sum="8ddaae5b048d6e844bd50ec63467e0478bf1bfa0" type="targz">http://www.freedesktop.org/software/media-player-info/media-player-info-23.tar.gz</Archive>
        <BuildDependencies>
            <!-- For pkgconfig fixes in udev -->
            <Dependency>eudev-devel</Dependency>
            <Dependency versionFrom="3.6.0">python3-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>media-player-info</Name>
        <Files>
            <Path fileType="data">/lib/udev/rules.d</Path>
            <Path fileType="data">/lib/udev</Path>
            <Path fileType="data">/usr/share/media-player-info</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-04</Date>
            <Version>23</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-03-02</Date>
            <Version>22</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>22</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-05-08</Date>
            <Version>22</Version>
            <Comment>First release</Comment>
            <Name>Hakan Yıldız</Name>
            <Email>hknyldz93@gmail.com</Email>
        </Update>
    </History>
</PISI>

repo_name: ayhanyalcinsoy/main


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>media-player-info</Name>
        <Summary xml:lang="tr">Medya oynatıcısı yetenek veritabanı</Summary>
        <Description xml:lang="tr">media-player-info, ortam oynatıcılarının yeteneklerini tanımlayan bir dosya demetidir. Bu dosyalar bu aygıtların hangi dizinlerine müzik dosyaları koyulması gerektiğini, hangi dosya biçimlerinin desteklendiğini tanımlar.</Description>
    </Source>
</PISI>


code:
<PISI>
    <Name>hardware.irda</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 get

#WorkDir = "lirc-%s" % get.srcVERSION().replace("_", "-")

def setup():
    autotools.autoreconf("-fi")
    autotools.configure("--localstatedir=/var \
                         --enable-sandboxed \
                         --with-systemdsystemunitdir=no \
                         --enable-shared \
                         --disable-static \
                         --disable-debug \
                         --disable-dependency-tracking \
                         --with-transmitter \
                         --with-x \
                         --with-driver=userspace \
                         --with-syslog=LOG_DAEMON")

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

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.dobin("contrib/irman2lirc")

    # needed for lircd pid
    pisitools.dodir("/run/lirc")

    # example configs
    pisitools.insinto("/etc", "contrib/lircd.conf", "lircd.conf")
    pisitools.insinto("/etc", "contrib/lircmd.conf", "lircmd.conf")

    pisitools.dohtml("doc/html/*.html")
    pisitools.rename("/%s/%s" % (get.docDIR(), get.srcNAME()), "lirc")

    pisitools.insinto("/%s/lirc/contrib" % get.docDIR(), "contrib/*")
    pisitools.insinto("/lib/udev/rules.d", "contrib/*.rules", "60-lirc.rules")


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

serviceType = "local"
serviceDefault = "off"
serviceDesc = _({"en": "InfraRed Controller Manager",
                 "tr": "Kızılötesi Denetleyici Yöneticisi"})

lircdpid = "/var/run/lirc/lircd.pid"

@synchronized
def start():
    lircmodule = config.get("LIRC_MODULE", "")
    if lircmodule != "":
        run("modprobe %s" % lircmodule)

    reply = startService(command="/usr/sbin/lircd",
                         args=config.get("LIRCD_OPTS", ""),
                         pidfile=lircdpid,
                         donotify=True)

    if reply == 0 and config.get("USE_LIRCMD", "no") == "yes":
        startService(command="/usr/sbin/lircmd")

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

    if config.get("USE_LIRCMD", "no") == "yes":
        stopService(command="/usr/sbin/lircmd")

def status():
    return isServiceRunning(lircdpid)


code:
From 0463f56357d1dd223a4d2882dbc460a0a7a7e9ad Mon Sep 17 00:00:00 2001
From: Alec Leamas <leamas.alec@gmail.com>
Date: Sat, 29 Oct 2016 11:06:50 +0200
Subject: [PATCH 07/10] Build: Use HAVE_UINPUT=1 to force building uinput code
 (#238).

---
 configure.ac | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index cde9813..08e2c8e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,7 @@ if test x$XSLTPROC != "xyes"; then
     AC_MSG_ERROR([
       xsltproc is required to build. It usually comes with libxml])
 fi
-AM_CONDITIONAL(HAVE_UINPUT, test -e /dev/uinput)
+AM_CONDITIONAL(HAVE_UINPUT, test -n "$HAVE_UINPUT" -o -e /dev/uinput)
 AC_CHECK_PROG([MAN2HTML],[man2html],[yes],[no])
 AM_CONDITIONAL(HAVE_MAN2HTML, test x$MAN2HTML = xyes)
 AC_CHECK_PROG([DOXYGEN],[doxygen],[yes],[no])
@@ -446,6 +446,11 @@ AM_CONDITIONAL(NEED_PYTHON3, [test "x$enable_python3_fix" = "xyes"])
 AC_ARG_VAR(HAVE_WORKING_POLL,[
 	   On cross-compile: Target has a working poll(2) implementation])

+AC_ARG_VAR(HAVE_UINPUT,[
+  If not-empty, assume uinput is available despite missing /dev/uinput
+])
+
+
 suffix=$(echo "$VERSION" | sed 's/.*-//')
 AM_CONDITIONAL(DEVEL, [test x$suffix = xdevel])

--


code:
diff -Nur lirc-0.8.3pre1-old/configure.ac lirc-0.8.3pre1/configure.ac
--- lirc-0.8.3pre1-old/configure.ac	2007-12-05 19:16:55.855088318 +0200
+++ lirc-0.8.3pre1/configure.ac	2007-12-05 19:19:22.301825030 +0200
@@ -9,7 +9,7 @@
 AM_INIT_AUTOMAKE(lirc, 0.8.3pre1)
 AM_CONFIG_HEADER(config.h)

-CFLAGS="${CFLAGS--O2 -g -Wall}"
+CFLAGS=""

 dnl Checks for programs.
 AC_PROG_CC


code:
diff -Nur lirc-0.9.0-pre1-old//config.h.in lirc-0.9.0-pre1/config.h.in
--- lirc-0.9.0-pre1-old//config.h.in	2010-12-27 23:17:34.689000035 +0200
+++ lirc-0.9.0-pre1/config.h.in	2010-12-27 23:18:10.491999952 +0200
@@ -2,7 +2,7 @@

 /* device file names - beneath DEVDIR (default /dev) */
-#define DEV_LIRC	"lirc"
+#define DEV_LIRC	"lirc0"
 #define DEV_LIRCD	"lircd"
 #define DEV_LIRCM	"lircm"


code:
diff --git a/configure.ac b/configure.ac
index 6c07e0d..1a3347e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,11 +20,11 @@ AC_PROG_MAKE_SET
 AC_PATH_PROG(mknod, mknod, /bin/mknod)
 AC_PATH_PROG(mkfifo, mkfifo, /usr/bin/mkfifo)
 AC_PATH_PROG(depmod, depmod, /sbin/depmod, $PATH:/sbin)
-AC_PATH_PROG(LIBUSB_CONFIG, libusb-config)
 AC_PROG_LN_S
 AC_PROG_LIBTOOL
 AM_PATH_PYTHON(,, [:])
 AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != ""])
+LIBUSB_CONFIG="pkg-config libusb"

 dnl Checks for header files.
 AC_HEADER_STDC
@@ -310,15 +310,14 @@ AH_TEMPLATE([SYSCONFDIR],
 AH_TEMPLATE([USE_SYSLOG],
 	[define if you want to log to syslog instead of logfile])

-if test -n "${LIBUSB_CONFIG}"; then
-  AC_DEFINE(HAVE_LIBUSB)
-  possible_drivers="${possible_drivers} (atilibusb) (awlibusb) (dfclibusb) (commandir) (srm7500libusb)"
-fi
-
 AC_CHECK_LIB(caraca_client, caraca_init,
   AC_DEFINE(HAVE_LIBCARACA)
   possible_drivers="${possible_drivers} (caraca)"
 )
+AC_CHECK_HEADER(usb.h,
+  AC_DEFINE(HAVE_LIBUSB)
+  possible_drivers="${possible_drivers} (atilibusb) (awlibusb) (dfclibusb) (commandir) (srm7500libusb)"
+)
 AC_CHECK_HEADER(ftdi.h,
   AC_DEFINE(HAVE_FTDI)
   possible_drivers="${possible_drivers} (ftdi)"
@@ -1449,7 +1448,7 @@ Get it at:
 Or install these packages from your distro:

    libusb
-   libusb-dev
+   libusb-devel

 ])
     ;;
--- lirc-0.9.0/configure.orig	2011-06-07 00:08:14.850212313 -0400
+++ lirc-0.9.0/configure	2011-06-07 00:11:07.140109458 -0400
@@ -865,7 +865,6 @@ build_cpu
 build
 LIBTOOL
 LN_S
-LIBUSB_CONFIG
 depmod
 mkfifo
 mknod
@@ -4160,37 +4159,7 @@ $as_echo "no" >&6; }
 fi

-# Extract the first word of "libusb-config", so it can be a program name with args.
-set dummy libusb-config; ac_word=$2
-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_path_LIBUSB_CONFIG+set}" = set; then
-  $as_echo_n "(cached) " >&6
-else
-  case $LIBUSB_CONFIG in
-  [\\/]* | ?:[\\/]*)
-  ac_cv_path_LIBUSB_CONFIG="$LIBUSB_CONFIG" # Let the user override the test with a path.
-  ;;
-  *)
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_path_LIBUSB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
-    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-done
-IFS=$as_save_IFS
-
-  ;;
-esac
-fi
-LIBUSB_CONFIG=$ac_cv_path_LIBUSB_CONFIG
+LIBUSB_CONFIG="pkg-config libusb"
 if test -n "$LIBUSB_CONFIG"; then
   { $as_echo "$as_me:$LINENO: result: $LIBUSB_CONFIG" >&5
 $as_echo "$LIBUSB_CONFIG" >&6; }


code:
--- a/configure.ac
+++ b/configure.ac
@@ -48,7 +48,7 @@
 dnl Checks for header files.
 AC_HEADER_STDC
 AC_HEADER_TIME
-AC_CHECK_HEADERS([fcntl.h limits.h poll.h sys/ioctl.h sys/poll.h sys/time.h ])
+AC_CHECK_HEADERS([fcntl.h libudev.h limits.h poll.h sys/ioctl.h sys/poll.h sys/time.h ])
 AC_CHECK_HEADERS([syslog.h unistd.h util.h libutil.h pty.h])

 dnl Checks for typedefs, structures, and compiler characteristics.
@@ -390,6 +390,10 @@
     AC_DEFINE(HAVE_SYSTEMD)
 fi

+PKG_CHECK_MODULES([LIBUDEV],[libudev],,[true])
+CFLAGS="$CFLAGS $LIBUDEV_CFLAGS"
+LIBS="$LIBS $LIBUDEV_LIBS"
+
 dnl Ubuntu's systemd pkg-config seems broken beyond repair. So:
 kernelversion=`cat /proc/version || echo "non-linux"`
 case $kernelversion in


code:
From 33c40d127877179e0cba2f6595816377bb6bcda1 Mon Sep 17 00:00:00 2001
From: Alec Leamas <leamas.alec@gmail.com>
Date: Tue, 25 Oct 2016 10:28:14 +0200
Subject: [PATCH 05/10] lib: curl_poll.h: Ensure build on unconfiguredclients.

---
 lib/curl_poll.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/curl_poll.h b/lib/curl_poll.h
index 6144c42..af25381 100644
--- a/lib/curl_poll.h
+++ b/lib/curl_poll.h
@@ -21,7 +21,9 @@
  * KIND, either express or implied.
  *
  ***************************************************************************/
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif

 #ifdef __cplusplus
 extern "C" {
@@ -29,7 +31,7 @@ extern "C" {

 #ifdef HAVE_SYS_POLL_H
 #include <sys/poll.h>
-#elif defined(HAVE_POLL_H)
+#else
 #include <poll.h>
 #endif

--


code:
# Options to pass to the lircd process
LIRCD_OPTS="-d /dev/lirc0"
# wheter use lirc mouse daemon
USE_LIRCMD="no"
# kernel module to load, may be needed for lirc_serial etc.
LIRC_MODULE=""


code:
/var/log/lircd {
   missingok
   notifempty
   delaycompress
}


code:
From 916a48ffcb9f1c259a0fc778a2de1be729423092 Mon Sep 17 00:00:00 2001
From: Alec Leamas <leamas.alec@gmail.com>
Date: Tue, 25 Oct 2016 21:29:27 +0200
Subject: [PATCH 06/10] lirc.pc: Fix bad library specification (#236).

---
 lirc.pc.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lirc.pc.in b/lirc.pc.in
index 802f00e..5ed7c1c 100644
--- a/lirc.pc.in
+++ b/lirc.pc.in
@@ -10,5 +10,5 @@ includedir=@includedir@
 pkgdatadir=@datadir@/lirc
 plugindir=${libdir}/lirc/plugins

-Libs: -L${libdir} -llirc
+Libs: -L${libdir} -llirc_client
 Cflags: -I${includedir}
--


code:
[Unit]
Description=LIRC Infrared Signal Decoder
After=network.target

[Service]
Type=forking
PIDFile=/run/lirc/lircd.pid
ExecStart=/usr/sbin/lircd --driver=default --device=/dev/lirc0

[Install]
WantedBy=multi-user.target


code: d /run/lirc 0755 root root -


code:
[Unit]
Description=LIRC Infrared Mouse Event Signal Decoder
Requires=lirc.service
After=network.target lirc.service

[Service]
Type=forking
ExecStart=/usr/sbin/lircmd

[Install]
WantedBy=multi-user.target


code:
diff -Nur lirc-0.8.4a-old/drivers/lirc_gpio/Makefile.am lirc-0.8.4a/drivers/lirc_gpio/Makefile.am
--- lirc-0.8.4a-old/drivers/lirc_gpio/Makefile.am	2009-04-21 19:07:37.000000000 +0300
+++ lirc-0.8.4a/drivers/lirc_gpio/Makefile.am	2009-04-21 19:07:38.000000000 +0300
@@ -8,6 +8,6 @@
 automake_dummy_SOURCES = lirc_gpio.c

 ## there is no *just* object file support in automake.  This is close enough
-module_DATA = lirc_gpio.o
+module_DATA =

 include ../Makefile.common


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>lirc</Name>
        <Homepage>http://www.lirc.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <IsA>service</IsA>
        Linux Infrared Remote Control system
        <Description>lirc is a package that allows you to decode and send infra-red signals of many (but not all) commonly used remote controls.</Description>
        <Archive sha1sum="9d6f6d18ac566a96ef4ca1d6909a4e8bc517d48a" type="tarbz2">https://sourceforge.net/projects/lirc/files/LIRC/0.10.1/lirc-0.10.1.tar.bz2/download</Archive>
        <BuildDependencies>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>libftdi-devel</Dependency>
            <Dependency>libusb-compat-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libxslt</Dependency>
            <Dependency>doxygen</Dependency>
            <Dependency>python3-devel</Dependency>
            <Dependency>python3-setuptools</Dependency>
        </BuildDependencies>
        <Patches>

        </Patches>
    </Source>

    <Package>
        <Name>lirc</Name>
        <RuntimeDependencies>
            <Dependency>python3</Dependency>
            <Dependency>alsa-lib</Dependency>
            <Dependency>libftdi</Dependency>
            <Dependency>libusb-compat</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>eudev</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libusb</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="data">/lib/udev/rules.d</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man/man1</Path>
            <Path fileType="man">/usr/share/man/man5</Path>
            <Path fileType="man">/usr/share/man/man8</Path>
            <Path fileType="data">/usr/share/lirc</Path>
            <Path fileType="data">/run</Path>
            <Path fileType="data">/var</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/lirc">lirc.conf.d</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/lirc.conf">lirc.tmpfiles</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/logrotate/lirc">lirc.logrotate</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>

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

    <History>
        <Update release="5">
            <Date>2017-11-05</Date>
            <Version>0.10.1</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2017-09-22</Date>
            <Version>0.9.4c</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>0.9.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-27</Date>
            <Version>0.9.3</Version>
            <Comment>Release bump</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2016-05-08</Date>
            <Version>0.9.3</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>lirc</Name>
        Linux Kızılötesi Uzaktan Kumanda Sistemi
        <Description xml:lang="tr">lirc, kızılötesi sinyalleriyle yaygın uzaktan kumandaları denetlemeye olanak veren bir Linux altyapısıdır.</Description>
        LIRC est un paquet permettant de décoder et d'envoyer des signaux par infrarouges pour de nombreuses télécommandes usuelles (mais pas toutes).
        Sistema de control remoto por infrarrojo en Linux
        <Description xml:lang="es">LIRC permite decodificar y transmitir señales infrarrojos compatible con muchos (pero no de todos) controles remotos comúnes.</Description>
    </Source>

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


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


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

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

def build():
    autotools.make()

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

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


code:
<PISI>
    <Source>
        <Name>dkms</Name>
        <Homepage>http://linux.dell.com/dkms</Homepage>
        <Packager>
            <Name>Ertan Güven</Name>
            <Email>ertan@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <PartOf>hardware.misc</PartOf>
        <IsA>kernel</IsA>
        <Summary>Dynamic Kernel Module Support</Summary>
        <Description>DKMS is a dynamic kernel module support framework.</Description>
        <BuildDependencies>
            <Dependency>kernel-headers</Dependency>
        </BuildDependencies>
        <Archive sha1sum="d7134cfa07b63857be4007c243d516013c914254" type="targz">https://github.com/dell/dkms/archive/v2.5.tar.gz</Archive>
    </Source>
    <Package>
        <Name>dkms</Name>
        <RuntimeDependencies>
            <Dependency>kernel-headers</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/var/lib</Path>
        </Files>
    </Package>
    <History>
        <Update release="4">
            <Date>2018-01-04</Date>
            <Version>2.5</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-04-29</Date>
            <Version>2.3</Version>
            <Comment>new release</Comment>
            <Name>Ali Algül</Name>
            <Email>aligulle3801@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.2.0.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-01</Date>
            <Version>2.2.0.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>dkms</Name>
        <Summary xml:lang="tr">Dynamic Kernel Module Support</Summary>
        <Description xml:lang="tr">DKMS, dinamik çekirdek modülü desteği çatısıdır.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

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

def setup():
    shelltools.system("./autogen.sh")
    autotools.configure("--prefix=/usr \
                         --sysconfdir=/etc/gpm \
                         --sbindir=/usr/bin")
                         #--libdir=/usr/lib \

def build():
    autotools.make()

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

    # Remove this when we can break abi
    pisitools.dosym("libgpm.so.2", "/usr/lib/libgpm.so")

    #remove static link
    pisitools.remove("/usr/lib/libgpm.a")

    pisitools.insinto("/etc/gpm", "conf/gpm-*.conf")

    pisitools.dodoc("COPYING", "README", "TODO", "doc/Announce", "doc/FAQ", "doc/README*")


code:
# -*- coding: utf-8 -*-
serviceType = "local"
serviceDesc = _({"en": "Console Mouse Daemon",
                 "tr": "Konsol Fare Servisi"})

from comar.service import *

@synchronized
def start():
    args = []
    args.append("-m %s" % config.get("MOUSEDEV", "/dev/input/mice"))
    args.append("-t %s" % config.get("MOUSE", "imps2"))
    if "RESPONSIVENESS" in config:
        args.append("-r %s " % config.get("RESPONSIVENESS"))
    if "REPEAT_TYPE" in config:
        args.append("-R%s " % config.get("REPEAT_TYPE"))
    args.append(config.get("APPEND", ""))

    startService(command="/usr/sbin/gpm",
                 args=" ".join(args),
                 donotify=True)

@synchronized
def stop():
    stopService(pidfile="/run/gpm.pid",
                donotify=True)

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


code:
# Config file for /etc/init.d/gpm

# Please uncomment the type of mouse you have and the appropriate MOUSEDEV entry

#MOUSE=ps2
MOUSE=imps2
#MOUSEDEV=/dev/psaux
MOUSEDEV=/dev/input/mice

# Extra settings

#RESPONSIVENESS=
#REPEAT_TYPE=raw

# Please uncomment this line if you want gpm to understand charsets used
# in URLs and names with ~ or : in them, etc. This is a good idea to turn on!

#APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\""

# Various other options

#APPEND="-g 1 -A 60"
#APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\" -g 1 -A 60"


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>gpm</Name>
        <Homepage>http://linux.schottelius.org/gpm/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>service</IsA>
        <Summary>Console mouse driver</Summary>
        <Description>GPM (short for General Purpose Mouse) brings mouse support to TTYs.</Description>
        <Archive sha1sum="08aaceddf7976b98ad3c43143012d3b89a296a40" type="tarbz2">http://www.nico.schottelius.org/software/gpm/archives/gpm-1.20.7.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>texinfo</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>gpm</Name>
        <RuntimeDependencies>
            <Dependency>ncurses</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <!--<Path fileType="executable">/usr/sbin</Path>-->
            <Path fileType="header">/usr/include</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="info">/usr/share/info</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="config">/etc</Path>
            <Path fileType="data">/usr/share/emacs</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/gpm">gpm.conf.d</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-05</Date>
            <Version>1.20.7</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.20.7</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-20</Date>
            <Version>1.20.7</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>gpm</Name>
        <Summary xml:lang="tr">Konsol tabanlı fare sürücüsü</Summary>
        <Description xml:lang="tr">Genel amaçlı fare ve konsolda fare desteği içindir.</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 cmaketools
from pisi.actionsapi import get

def setup():
    pisitools.dosed("CMakeLists.txt", "LIB_SUFFIX 64", deleteLine="True")

    cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
                          -DPYTHON_EXECUTABLE=/usr/bin/python2.7 \
                          -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
                          -DPYTHON_LIBRARY=/usr/lib/python2.7 \
                          -DCMAKE_SKIP_BUILD_RPATH=ON \
                          -DCMAKE_BUILD_TYPE=Release \
                          -DEXAMPLES=OFF -DFTDI_EEPROM=ON")

def build():
    autotools.make()

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

    #Remove python examples
    pisitools.removeDir("/usr/share/libftdi")

    # Their source can be useful though
    pisitools.dodoc("examples/*.c", destDir="%s/examples" % get.srcNAME())

    # Install udev rule
    pisitools.insinto("/lib/udev/rules.d", "packages/99-libftdi.rules")

    pisitools.doman("doc/man/man3/*.3")

    pisitools.dodoc("AUTHORS", "COPYING.LIB", "ChangeLog", "LICENSE", "README")


code:
--- 99-libftdi.rules.orig	2014-02-05 18:24:11.000000000 +0200
+++ packages/99-libftdi.rules	2014-05-25 13:57:47.482994692 +0300
@@ -5,7 +5,7 @@
 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0664", GROUP="plugdev"

 # FTDI Devices: FT4232HL/Q
-SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", MODE="0664", GROUP="plugdev"
+SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", MODE="0664", GROUP="pnp"


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libftdi</Name>
        <Homepage>http://www.intra2net.com/en/developer/libftdi/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        A library for accessing to FTDI USB chips
        <Description>libftdi allows access to eeprom and bitbang modes of FT232/245/2232 USB serial interface chips.</Description>
        <Archive sha1sum="ff3bdc8ec6f9e0fffc735e2b4708fe574289107f" type="tarbz2">https://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.3.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
            <Dependency>doxygen</Dependency>
            <Dependency>libusb-devel</Dependency>
            <Dependency>boost-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>swig</Dependency>
        </BuildDependencies>
        <Patches>

            <Patch level="0">fix-udev-group_and_usb_name.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>libftdi</Name>
        <RuntimeDependencies>
            <Dependency>libusb</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/lib/udev/rules.d</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>python-libftdi</Name>
        <RuntimeDependencies>
            <Dependency>libusb</Dependency>
            <Dependency>python3</Dependency>
            <Dependency release="current">libftdi</Dependency>
        </RuntimeDependencies>
        Python bindings for libftdi
        <Files>
            <Path fileType="library">/usr/lib/python*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libftdi-devel</Name>
        Development files for libftdi
        <RuntimeDependencies>
            <Dependency release="current">libftdi</Dependency>
            <Dependency>libusb-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/libftdi-config</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
            <Path fileType="doc">/usr/share/doc/libftdi/examples</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-17</Date>
            <Version>1.3</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-26</Date>
            <Version>1.2</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>libftdi</Name>
        FTDI USB entegrelerine erişim kitaplığı
        <Description xml:lang="tr">libftdi ile FT232/245/2232 USB seri arabirim entegrelerinin eeprom ve bitbang modlarını kullanabilirsiniz.</Description>
    </Source>

    <Package>
        <Name>python-libftdi</Name>
        Python için libftdi bağlayıcıları
    </Package>

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

import os

def setup():
    shelltools.export("AUTOPOINT", "true")
    autotools.autoreconf("-fi")
    autotools.configure("--with-rpmbuild=/bin/false \
                         --with-drivers=all \
                         --enable-nls \
                         --without-aalib \
                         --disable-rpath \
                         --disable-lockdev \
                         --disable-resmgr \
                         --disable-ttylock \
                         --disable-baudboy \
                         --disable-static")

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

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s \
                          udevscriptdir=/lib/udev" % get.installDIR())

    HAL_FDI="usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi"
    UDEV_RULES="lib/udev/rules.d/40-libgphoto2.rules"
    CAM_LIST="usr/lib/libgphoto2/print-camera-list"
    CAM_LIBS="usr/lib/libgphoto2/%s" % get.srcVERSION()

    # Create hal directory
    pisitools.dodir(shelltools.dirName(HAL_FDI))

    # Export the necessary env variables
    shelltools.export("CAMLIBS", "%s/%s" % (get.installDIR(), CAM_LIBS))
    shelltools.export("LIBDIR", "%s/usr/lib/" % get.installDIR())
    shelltools.export("LD_LIBRARY_PATH", "%s/usr/lib/" % get.installDIR())

    # Generate HAL FDI file
    f = open(os.path.join(get.installDIR(), HAL_FDI), "w")
    f.write(os.popen("%s/%s hal-fdi" % (get.installDIR(), CAM_LIST)).read())
    f.close()

    # Generate UDEV rule which will replace the HAL FDI when HAL is deprecated
    pisitools.dodir("/lib/udev/rules.d")
    f = open(os.path.join(get.installDIR(), UDEV_RULES), "w")
    f.write(os.popen("%s/%s udev-rules version 136" % (get.installDIR(), CAM_LIST)).read())
    f.close()

    pisitools.removeDir("/usr/share/doc/libgphoto2_port")
    pisitools.removeDir("/usr/share/libgphoto2_port")

    # Remove circular symlink
    pisitools.remove("/usr/include/gphoto2/gphoto2")

    pisitools.dodoc("ChangeLog", "NEWS*", "README", "AUTHORS", "TESTERS", "MAINTAINERS", "HACKING")


code:
import os

def postInstall(fromVersion, fromRelease, toVersion, toRelease):
    stale_files = ["/usr/share/hal/fdi/information/10freedesktop/10-camera-libgphoto2-device.fdi",
                   "/etc/udev/rules.d/60-libgphoto2.rules"]

    for f in stale_files:
        if os.path.exists(f):
            os.unlink(f)


code:
From 242878ac1cefd1ef99c2e5d84a794f72e49e28be Mon Sep 17 00:00:00 2001
From: Lubomir Rintel <lkundrak@v3.sk>
Date: Fri, 23 Oct 2009 13:12:16 +0200
Subject: [PATCH] Repair reattach of kernel driver if it was unbound

Drah in the header for USBDEVFS_CONNECT.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
---
 libgphoto2_port/usb/libusb.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/libgphoto2_port/usb/libusb.c b/libgphoto2_port/usb/libusb.c
index d1535a5..c8a63f1 100644
--- a/libgphoto2_port/usb/libusb.c
+++ b/libgphoto2_port/usb/libusb.c
@@ -38,6 +38,12 @@
 #include <gphoto2/gphoto2-port-result.h>
 #include <gphoto2/gphoto2-port-log.h>

+#if defined(LIBUSB_HAS_GET_DRIVER_NP) && defined(LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP)
+/* Pull in USBDEVFS_CONNECT */
+#include <sys/ioctl.h>
+#include <linux/usbdevice_fs.h>
+#endif
+
 #ifdef ENABLE_NLS
 #  include <libintl.h>
 #  undef _
--
1.6.5.rc2


code:
diff -up gphoto2-2.4.0/libgphoto2-2.4.0/libgphoto2_port/serial/unix.c.ixany gphoto2-2.4.0/libgphoto2-2.4.0/libgphoto2_port/serial/unix.c
--- libgphoto2-2.4.0/libgphoto2_port/serial/unix.c.ixany	2007-07-27 02:36:13.000000000 +0200
+++ libgphoto2-2.4.0/libgphoto2_port/serial/unix.c	2008-02-25 06:40:40.000000000 +0100
@@ -98,6 +98,10 @@

 #define CHECK(result) {int r=(result); if (r<0) return (r);}

+#ifndef IXANY
+#define IXANY	0004000
+#endif
+
 /* Linux */
 #ifdef __linux__
 /* devfs is accounted for in the implementation */


code:
--- libgphoto2-2.4.1/gphoto2-config.in.pkgcfg	2007-07-27 02:36:23.000000000 +0200
+++ libgphoto2-2.4.1/gphoto2-config.in	2007-07-31 12:21:14.000000000 +0200
@@ -1,11 +1,5 @@
 #! /bin/sh

-# leave these definitions here
-# they are required for correct interpolation of
-# @libdir@ and @includedir@ later on
-prefix="@prefix@"
-exec_prefix="@exec_prefix@"
-
 usage()
 {
     cat <<EOF
@@ -13,7 +7,7 @@ Usage: gphoto2-config [OPTION]

 Known values for OPTION are:

-  --prefix=DIR		change libgphoto2 prefix [default ${prefix}]
+  --prefix		print libgphoto2 prefix
   --libs		print library linking information
   --cflags		print pre-processor and compiler flags
   --help		display this help and exit
@@ -55,11 +49,11 @@ while test $# -gt 0; do
 	;;

     --cflags)
-       	echo "-I@includedir@/gphoto2"
+       	pkg-config --cflags libgphoto2
        	;;

     --libs)
-        echo "-L@libdir@" -lgphoto2 -lgphoto2_port -lm
+        pkg-config --libs libgphoto2
        	;;

     *)
--- libgphoto2-2.4.1/libgphoto2_port/gphoto2-port-config.in.pkgcfg	2007-07-27 02:36:16.000000000 +0200
+++ libgphoto2-2.4.1/libgphoto2_port/gphoto2-port-config.in	2007-07-31 12:21:14.000000000 +0200
@@ -1,11 +1,5 @@
 #! /bin/sh

-# leave these definitions here
-# they are required for correct interpolation of
-# @libdir@ and @includedir@ later on
-prefix="@prefix@"
-exec_prefix="@exec_prefix@"
-
 usage()
 {
     cat <<EOF
@@ -13,7 +7,7 @@ Usage: gphoto2-port-config [OPTION]

 Known values for OPTION are:

-  --prefix=DIR		change libgphoto2-port prefix [default ${prefix}]
+  --prefix		print libgphoto2-port prefix
   --libs		print library linking information
   --cflags		print pre-processor and compiler flags
   --help		display this help and exit
@@ -55,11 +49,11 @@ while test $# -gt 0; do
 	;;

     --cflags)
-       	echo "-I@includedir@/gphoto2"
+       	pkg-config --cflags libgphoto2_port
        	;;

     --libs)
-       	echo "-L@libdir@" -lgphoto2_port
+       	pkg-config --libs libgphoto2_port
        	;;

     *)


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libgphoto2</Name>
        <Homepage>http://www.gphoto.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        Library that implements support for numerous digital cameras
        <Description>libgphoto2 is the core library designed to allow access to digital camera by external programs.</Description>
        <Archive sha1sum="f1736e4c0f7273a1154c28ac26b76f1be538b4f3" type="tarbz2">mirrors://sourceforge/gphoto/libgphoto2-2.5.16.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>doxygen</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>gd-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>libexif-devel</Dependency>
            <Dependency>libusb-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libgphoto2</Name>
        <RuntimeDependencies>
            <Dependency>libxml2</Dependency>
            <Dependency>libtool-ltdl</Dependency>
            <Dependency>libusb</Dependency>
            <Dependency>gd</Dependency>
            <Dependency>libexif</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/lib/udev</Path>
            <Path fileType="doc">/usr/share/doc/libgphoto2/README</Path>
            <Path fileType="doc">/usr/share/doc/libgphoto2/COPYING</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share/libgphoto2</Path>
            <Path fileType="data">/usr/share/hal/fdi</Path>
            <Path fileType="data">/lib/udev/rules.d</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
        <Provides>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>libgphoto2-docs</Name>
        Documentation for libgphoto2
        <Files>
            <Path fileType="doc">/usr/share/doc/libgphoto2</Path>
            <Path fileType="doc">/usr/share/doc/libgphoto2/camlibs</Path>
            <Path fileType="doc">/usr/share/doc/libgphoto2/apidocs.html</Path>
            <Path fileType="doc">/usr/share/doc/libgphoto2/linux-hotplug</Path>
        </Files>
    </Package>

    <Package>
        <Name>libgphoto2-devel</Name>
        Development files for libgphoto2
        <RuntimeDependencies>
            <Dependency>libexif-devel</Dependency>
            <Dependency release="current">libgphoto2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/gphoto2-config*</Path>
            <Path fileType="executable">/usr/bin/gphoto2-port-config</Path>
            <Path fileType="header">/usr/include/gphoto2</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-04</Date>
            <Version>2.5.16</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-04-09</Date>
            <Version>2.5.13</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>2.5.8</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-02</Date>
            <Version>2.5.8</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>libgphoto2</Name>
        Sayısal kamera ve müzik çalarlara erişim sağlayan kütüphane
        <Description xml:lang="tr">libgphoto2, harici uygulamalar tarafından sayısal kameralara ve müzik çalarlara erişim için kullanılan bir programlama kütüphanesidir.</Description>
        <Description xml:lang="fr">Libgphoto2 est une librairie centrale conçue pour permettre aux programmes extérieurs d'accéder aux appareils photos numériques.</Description>
        <Description xml:lang="es">Libgphoto2 es la librería núcleo (core) que permite a programas externos acceder a camaras digitales.</Description>
    </Source>

    <Package>
        <Name>libgphoto2-docs</Name>
        libgphoto2 için detaylı belgelendirme
    </Package>

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


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

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

def setup():
    autotools.configure("\
                         --with-html-dir=/usr/share/doc/%s/html \
                         --with-temp-mount-dir=/run/libgpod \
                         --without-hal \
                         --without-mono \
                         --disable-gtk-doc \
                         --disable-static \
                         --enable-udev \
                        " % get.srcNAME())

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

def build():
    autotools.make()

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

    # For temporary mounts
    pisitools.dodir("/run/libgpod")

    # rm "/usr/lib/pkgconfig/libgpod-sharp.pc"
    pisitools.remove("/usr/lib/pkgconfig/libgpod-sharp.pc")

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libgpod</Name>
        <Homepage>http://www.gtkpod.org/libgpod.html</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        A library to access the contents of an iPod
        <Description>libgpod is a library to access the contents of an iPod. It supports playlists, smart playlists, playcounts, ratings, podcasts, album artwork, photos, etc.</Description>
        <Archive sha1sum="5b5f692fef880d714dad71aa21e1737258fa878c" type="tarbz2">mirrors://sourceforge/gtkpod/libgpod-0.8.3.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>intltool</Dependency>
            <Dependency>sqlite-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>gtk-doc</Dependency>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>docbook-xml</Dependency>
            <Dependency>python-mutagen</Dependency>
            <Dependency>libplist-devel</Dependency>
            <Dependency>sg3_utils-devel</Dependency>
            <Dependency>libimobiledevice-devel</Dependency>
            <Dependency>python-pygobject-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libgpod</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>sqlite</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>libplist</Dependency>
            <Dependency>sg3_utils</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
            <Dependency>libimobiledevice</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/lib/udev</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share/hal</Path>
            <Path fileType="data">/lib/udev/rules.d</Path>
            <Path fileType="data">/run/libgpod</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>python-libgpod</Name>
        <PartOf>programming.language.python</PartOf>
        Python bindings for libgpod
        <RuntimeDependencies>
            <Dependency release="current">libgpod</Dependency>
            <Dependency>libplist</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
            <Dependency>python-mutagen</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/python2*</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="2">
            <Date>2018-01-03</Date>
            <Version>0.8.3</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2017-01-04</Date>
            <Version>0.8.3</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>libgpod</Name>
        iPod üzerindeki verilere ulaşmak için kullanılan bir kütüphane
        <Description xml:lang="tr">libgpod, iPod taşınabilir medya oynatıcıları üzerindeki verilere ulaşmak için kullanılan bir kütüphanedir. Kütüphane, gelişmiş parça listesi, parça istatistikleri, podcast gibi ileri özellikleri destekler. libgpod, gtkpod projesi temel alınarak geliştirilmiştir.</Description>
        <Description xml:lang="fr">libgpod est une librairie partagée permettant d'accéder au contenu d'un iPod. Cette librairie est basée sur le code du projet gtkpod.</Description>
    </Source>

    <Package>
        <Name>libgpod-devel</Name>
        libgpod için geliştirme dosyaları
    </Package>

    <Package>
        <Name>python-libgpod</Name>
        libgpod için Python bağlayıcıları
    </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

def setup():
    autotools.configure("--prefix=/usr \
			 --disable-static \
                         --enable-vala \
                         --enable-introspection")

def build():
    autotools.make()

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libgusb</Name>
        <Homepage>https://gitorious.org/gusb/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        GObject wrapper for libusb.
        <Description>GLib wrapper around libusb1.</Description>
        <Archive sha1sum="9b565359d03908b0d39613294656ddd6d93c8d8c" type="tarxz">https://people.freedesktop.org/~hughsient/releases/libgusb-0.2.11.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>glib2-devel</Dependency>
            <Dependency>vala-devel</Dependency>
            <Dependency>libxslt-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>libusb-devel</Dependency>
            <Dependency>gobject-introspection-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libgusb</Name>
        <RuntimeDependencies>
            <Dependency>glib2</Dependency>
            <Dependency>vala</Dependency>
            <Dependency>libxslt</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>libusb</Dependency>
            <Dependency>gobject-introspection</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
            <Path fileType="data">/usr/share/vala</Path>
            <Path fileType="data">/usr/share/gir-1.0</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="8">
            <Date>2017-12-13</Date>
            <Version>0.2.11</Version>
            <Comment>Version bump</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="7">
            <Date>2017-02-06</Date>
            <Version>0.2.9</Version>
            <Comment>Rebuild.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="6">
            <Date>2016-11-13</Date>
            <Version>0.2.9</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="5">
            <Date>2015-05-22</Date>
            <Version>0.2.4</Version>
            <Comment>Rebuild for vala</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2015-02-25</Date>
            <Version>0.2.4</Version>
            <Comment>Version bump.</Comment>
            <Name>Hakan Yıldız</Name>
            <Email>hknyldz93@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2014-09-13</Date>
            <Version>0.1.6</Version>
            <Comment>Rebuild.</Comment>
            <Name>Stefan Gronewold (groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2013-04-13</Date>
            <Version>0.1.6</Version>
            <Comment>bump</Comment>
            <Name>Erdinç GÜltekin</Name>
            <Email>erdincgultekin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2012-10-05</Date>
            <Version>0.1.4</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>libgusb</Name>
        GObject wrapper for libusb.
        <Description xml:lang="en">GLib wrapper around libusb1.</Description>
    </Source>

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

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

def configure():
    autotools.make()

def install():
    autotools.install()

    shelltools.system("chrpath --delete %s/usr/lib/python2.7/site-packages/ieee1284module.so" % get.installDIR())
    pisitools.dodoc("AUTHORS", "NEWS", "TODO", "README", "doc/interface*")


code:
diff -up libieee1284-0.2.11/src/ieee1284module.c.strict-aliasing libieee1284-0.2.11/src/ieee1284module.c
--- libieee1284-0.2.11/src/ieee1284module.c.strict-aliasing	2004-02-03 11:50:57.000000000 +0000
+++ libieee1284-0.2.11/src/ieee1284module.c	2010-06-23 12:36:05.093026807 +0100
@@ -28,6 +28,17 @@ typedef struct {
 	struct parport *port;
 } ParportObject;

+static PyObject *
+Parport_new (PyTypeObject *type, PyObject *args, PyObject *kwds)
+{
+  ParportObject *self;
+  self = (ParportObject *) type->tp_alloc (type, 0);
+  if (self != NULL)
+    self->port = NULL;
+
+  return (PyObject *) self;
+}
+
 static int
 Parport_init (ParportObject *self, PyObject *args, PyObject *kwds)
 {
@@ -562,6 +573,23 @@ static PyTypeObject ParportType = {
 	0,					/* tp_as_buffer */
 	Py_TPFLAGS_DEFAULT,			/* tp_flags */
 	"parallel port object",			/* tp_doc */
+	0,					/* tp_traverse */
+	0,					/* tp_clear */
+	0,					/* tp_richcompare */
+	0,					/* tp_weaklistoffset */
+	0,					/* tp_iter */
+	0,					/* tp_iternext */
+	Parport_methods,			/* tp_methods */
+	0,					/* tp_members */
+	Parport_getseters,			/* tp_getset */
+	0,					/* tp_base */
+	0,					/* tp_dict */
+	0,					/* tp_descr_get */
+	0,					/* tp_descr_set */
+	0,					/* tp_dictoffset */
+	(initproc)Parport_init,			/* tp_init */
+	0,					/* tp_alloc */
+	Parport_new,		                /* tp_new */
 };

 static PyObject *
@@ -625,14 +653,9 @@ initieee1284 (void)
 	PyObject *d = PyModule_GetDict (m);
 	PyObject *c;

-	ParportType.tp_new = PyType_GenericNew;
-	ParportType.tp_init = (initproc) Parport_init;
-	ParportType.tp_getset = Parport_getseters;
-	ParportType.tp_methods = Parport_methods;
 	if (PyType_Ready (&ParportType) < 0)
 		return;

-	Py_INCREF (&ParportType);
 	PyModule_AddObject (m, "Parport", (PyObject *) &ParportType);

 	pyieee1284_error = PyErr_NewException("ieee1284.error", NULL, NULL);


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libieee1284</Name>
        <Homepage>http://cyberelk.net/tim/libieee1284/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        Library to query devices using IEEE1284
        <Description>Library is intended to be used by applications that need to communicate with (or at least identify) devices that are attached via a parallel port.</Description>
        <Archive sha1sum="600e6f8a5c79b435ee81df3618cd82e2b74812de" type="tarbz2">mirrors://sourceforge/libieee1284/libieee1284-0.2.11.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
            <Dependency>chrpath</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">libieee1284-strict-aliasing.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>libieee1284</Name>
        <Files>
            <Path fileType="executable">/usr/bin</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>python-libieee1284</Name>
        Python bindings for libieee1284
        <RuntimeDependencies>
            <Dependency release="current">libieee1284</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/python*</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-04-07</Date>
            <Version>0.2.11</Version>
            <Comment>Release Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.2.11</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-03-10</Date>
            <Version>0.2.11</Version>
            <Comment>First release</Comment>
            <Name>Varol Maksutoğlu</Name>
            <Email>waroi@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libieee1284</Name>
        IEEE1284 kullanarak donanımların sorgulanması için bir kütüphane
        <Description xml:lang="tr">Paralel portlar aracılığı ile bağlanmış araçlarla iletişimi (en azından tanımlanmasını) gerçekleştiren uygulamalar için gerekli olan kütüphanedir.</Description>
        <Description xml:lang="fr">Cette librairie est à destination des applications qui ont besoins de communiquer avec (ou au moins identifier) des périphériques liés au système par le port parallèle.</Description>
        <Description xml:lang="es">La librería usado por aplicaciones que necesitan comunicarse con (,o al menos necesitan identificar) dispositivos conectados al puerto paralelo.</Description>
    </Source>

    <Package>
        <Name>python-libieee1284</Name>
        libieee1284 için Python bağlayıcıları
    </Package>

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

WorkDir = "mtdev-%s" % get.srcVERSION()

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

def build():
    autotools.make()

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

    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>libmtdev</Name>
        <Homepage>http://bitmath.org/code/mtdev</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <IsA>library</IsA>
        Multitouch Protocol Translation Library
        <Description>The libmtdev is a stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol.</Description>
        <Archive sha1sum="346115a91b68652170d02d7b1c0722cf1cacf4eb" type="targz">http://bitmath.org/code/mtdev/mtdev-1.1.5.tar.gz</Archive>
    </Source>

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

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

    <Package>
       <Name>libmtdev-32bit</Name>
       <PartOf>emul32</PartOf>
       32-bit shared libraries for libmtdev
       <BuildType>emul32</BuildType>
       <BuildDependencies>

       </BuildDependencies>
       <RuntimeDependencies>
           <Dependency release="current">libmtdev</Dependency>

       </RuntimeDependencies>
       <Files>
           <Path fileType="library">/usr/lib32</Path>
       </Files>
   </Package>

    <History>
        <Update release="3">
            <Date>2017-02-13</Date>
            <Version>1.1.5</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>1.1.5</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-16</Date>
            <Version>1.1.5</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>libmtdev</Name>
        Çoklu Dokunmatik Protokol Dönüşüm Kütüphanesi
        <Description xml:lang="tr">Libmtdev kütüphanesi, kernel MT olaylarının tüm çeşitlerini slotlu B tipi protokole dönüştürür.</Description>
    </Source>

    <Package>
        <Name>libmtdev-devel</Name>
        Libmtdev 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():
    autotools.configure("--disable-static \
                         --disable-rpath \
                         --with-udev=/lib/udev \
                         --with-udev-rules=69-libmtp.rules")

def build():
    autotools.make()

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

    #install HAL file for portable audio players
    pisitools.insinto("/usr/share/hal/fdi/information/10freedesktop", "libmtp.fdi", "10-usb-music-players-libmtp.fdi")

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libmtp</Name>
        <Homepage>http://libmtp.sourceforge.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        An implementation of Microsoft's Media Transfer Protocol (MTP)
        <Description>libmtp is an implementation of Microsoft's Media Transfer Protocol (MTP) in the form of a library suitable primarily for POSIX compliant operating systems.</Description>
        <Archive sha1sum="22568b321e467cbc1fe222f8935107a53e57f3ab" type="targz">mirrors://sourceforge/libmtp/1.1.14/libmtp-1.1.14.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>doxygen</Dependency>
            <Dependency>libusb-devel</Dependency>
            <Dependency>libgcrypt-devel</Dependency>
        </BuildDependencies>
        <Patches>
        </Patches>
    </Source>

    <Package>
        <Name>libmtp</Name>
        <RuntimeDependencies>
            <Dependency>libusb</Dependency>
            <Dependency>libgcrypt</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib/libmtp.*</Path>
            <Path fileType="executable">/lib/udev</Path>
            <Path fileType="data">/usr/share/hal</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="4">
            <Date>2018-01-04</Date>
            <Version>1.1.14</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-03-02</Date>
            <Version>1.1.12</Version>
            <Comment>Version Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.1.11</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-10</Date>
            <Version>1.1.11</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>libmtp</Name>
        Microsoft'un medya aktarım protokolünü destekleyen araçlar için bir kütüphane
        <Description xml:lang="tr">libmtp, PlayForSure olarak da anılan, Microsoft'un medya aktarım protokolünü desteklemek için yazılmış bir programlama kütüphanesidir. Uygulamalar, libmtp kütüphanesini kullanarak, PlayForSure destekli MP3 çalar veya dijital kameralardaki içerik üzerinde taşıma, aktarma, isimlendirme vb.. işlemleri kolayca yapabilirler.</Description>
        <Description xml:lang="fr">libmtp est une implémentation du Media Transfer Protocol (MTP) de Microsoft sous la forme d'une librairie principalement adéquate pour les systèmes d'exploitation conformes à POSIX.</Description>
        <Description xml:lang="es">libmtp es una implementación del protocolo de transferencia de Microsoft's Media (MTP) en forma de una librería para uso en sistemas operativos POSIX compliant.</Description>
    </Source>

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

def setup():
    shelltools.system("./autogen.sh --no-configure")
    #autotools.autoreconf("-fi")
    shelltools.makedirs("build")
    shelltools.cd("build")
    shelltools.system("../configure --prefix=/usr --sbindir=/usr/sbin --sysconfdir=/etc --disable-static --enable-libsmbios_cxx")

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

def build():
    shelltools.cd("build")
    autotools.make()

def install():
    shelltools.cd("build")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.insinto("/usr/include", "../src/include/*")
    pisitools.insinto("/usr/include", "out/public-include/*")

    # Symlink to /usr/sbin/DellWirelessCtl for the new HAL
    pisitools.dosym("/usr/sbin/smbios-wireless-ctl", "/usr/sbin/DellWirelessCtl")

    # Remove yum specific stuff
    pisitools.removeDir("/etc/yum")
    #pisitools.removeDir("/usr/bin")
    pisitools.removeDir("/usr/lib/yum-plugins")

    shelltools.cd("..")
    pisitools.dodoc("NEWS", "TODO")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libsmbios</Name>
        <Homepage>http://linux.dell.com/libsmbios/main/index.html</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>OSL-2.0</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        Provide access to (SM)BIOS information
        <Description>libsmbios project aims towards providing access to as much BIOS information as possible. It does this by providing a library of functions that can be used as well as sample binaries.</Description>
        <Archive sha1sum="c0f9a8ddf5f13fd2ca9b3ab18bee07b54c74dd1a" type="targz">https://codeload.github.com/dell/libsmbios/tar.gz/v2.3.3</Archive>
        <BuildDependencies>
              <Dependency>libxml2-devel</Dependency>
              <Dependency>chrpath</Dependency>
              <Dependency>doxygen</Dependency>
          </BuildDependencies>
    </Source>

    <Package>
        <Name>libsmbios</Name>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <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/man3</Path>
            <Path fileType="data">/usr/share/smbios-utils</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="4">
            <Date>2017-12-11</Date>
            <Version>2.3.3</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-04-29</Date>
            <Version>2.3.3</Version>
            <Comment>new release</Comment>
            <Name>Ali Algül</Name>
            <Email>aligulle3801@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.3.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-01</Date>
            <Version>2.3.0</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>libsmbios</Name>
        (SM)BIOS bilgilerine ulaşabilmeyi sağlar
    </Source>

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

def build():
    autotools.make('CFLAGS="%s -fPIC" BACKEND=x86emu' % get.CFLAGS())

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

    pisitools.remove("/usr/lib/libx86.a")

    pisitools.dodoc("COPYRIGHT")


code:
--- lrmi.c.orig	2008-09-06 12:24:36.070136428 +0200
+++ lrmi.c	2008-09-06 12:28:10.584287458 +0200
@@ -55,6 +55,18 @@ OTHER DEALINGS IN THE SOFTWARE.
 #include "x86-common.h"

 #if defined(__linux__)
+#ifndef TF_MASK
+#define TF_MASK X86_EFLAGS_TF
+#endif
+#ifndef IF_MASK
+#define IF_MASK X86_EFLAGS_IF
+#endif
+#ifndef IOPL_MASK
+#define IOPL_MASK X86_EFLAGS_IOPL
+#endif
+#ifndef VIF_MASK
+#define VIF_MASK X86_EFLAGS_VIF
+#endif
 #define DEFAULT_VM86_FLAGS 	(IF_MASK | IOPL_MASK)
 #elif defined(__NetBSD__) || defined(__FreeBSD__)
 #define DEFAULT_VM86_FLAGS  (PSL_I | PSL_IOPL)


code:
From fc4f25c4d16aaff7dcb5dd42cc20b292f4eb2218 Mon Sep 17 00:00:00 2001
From: Dave Airlie <airlied@redhat.com>
Date: Tue, 4 Aug 2009 13:08:42 +1000
Subject: [PATCH] git add x86.pc

---
 Makefile  |   15 ++++++++++++---
 x86.pc.in |   10 ++++++++++
 2 files changed, 22 insertions(+), 3 deletions(-)
 create mode 100644 x86.pc.in

diff --git a/Makefile b/Makefile
index 951b617..953a499 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 OBJECTS = x86-common.o
 CFLAGS ?= -O2 -Wall -DDEBUG -g
 LIBDIR ?= /usr/lib
+INCLUDEDIR ?= /usr/include

 ifeq ($(BACKEND),x86emu)
 	OBJECTS += thunk.o x86emu/decode.o x86emu/debug.o x86emu/fpu.o \
@@ -29,10 +30,18 @@ objclean:
 	rm -f *.o *~

 clean: objclean
-	rm -f *.so.1 *.a
+	rm -f *.so.1 *.a x86.pc

-install: libx86.so.1
+x86.pc:
+	sed -e's,@prefix@,/usr,' x86.pc.in > x86.pc
+	sed -e's,@exec_prefix@,/usr,' -i x86.pc
+	sed -e's,@libdir@,${LIBDIR},' -i x86.pc
+	sed -e's,@includedir@,${INCLUDEDIR},' -i x86.pc
+	sed -e's,@PACKAGE_VERSION@,1.1,' -i x86.pc
+
+install: libx86.so.1 x86.pc
 	install -D libx86.so.1 $(DESTDIR)$(LIBDIR)/libx86.so.1
 	install -D libx86.a $(DESTDIR)$(LIBDIR)/libx86.a
+	install -D x86.pc $(DESTDIR)$(LIBDIR)/pkgconfig/x86.pc
 	ln -sf libx86.so.1 $(DESTDIR)$(LIBDIR)/libx86.so
-	install -p -m 0644 -D lrmi.h $(DESTDIR)/usr/include/libx86.h
+	install -p -m 0644 -D lrmi.h $(DESTDIR)$(INCLUDEDIR)/libx86.h
diff --git a/x86.pc.in b/x86.pc.in
new file mode 100644
index 0000000..711d90d
--- /dev/null
+++ b/x86.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: x86
+Description: Library providing x86 emulator access
+Version: @PACKAGE_VERSION@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lx86
--
1.5.4.1


code:
diff -ur libx86-1.1/lrmi.c libx86-1.1.hack/lrmi.c
--- libx86-1.1/lrmi.c	2006-10-30 15:10:16.000000000 -0500
+++ libx86-1.1.hack/lrmi.c	2009-10-26 15:55:42.000000000 -0400
@@ -136,7 +136,7 @@
 	if (context.ready)
 		return 1;

-	if (!LRMI_common_init())
+	if (!LRMI_common_init(0))
 		return 0;

 	/*
diff -ur libx86-1.1/thunk.c libx86-1.1.hack/thunk.c
--- libx86-1.1/thunk.c	2008-04-02 20:48:00.000000000 -0400
+++ libx86-1.1.hack/thunk.c	2009-10-26 16:05:39.000000000 -0400
@@ -139,11 +139,11 @@
 	int i;
 	X86EMU_intrFuncs intFuncs[256];

-	if (!LRMI_common_init())
+	mmap_addr = LRMI_common_init(1);
+
+	if (!mmap_addr)
 		return 0;

-	mmap_addr = 0;
-
 	X86EMU_pioFuncs pioFuncs = {
 		(&x_inb),
 		(&x_inw),
@@ -169,10 +169,10 @@
 	X86_ESP = 0xFFF9;
 	memset (stack, 0, 64*1024);

-	*((char *)0) = 0x4f; /* Make sure that we end up jumping back to a
-				halt instruction */
+	*mmap_addr = 0x4f; /* Make sure that we end up jumping back to a
+			      halt instruction */

-	M.mem_base = 0;
+	M.mem_base = (unsigned long)mmap_addr;
 	M.mem_size = 1024*1024;

 	return 1;
diff -ur libx86-1.1/x86-common.c libx86-1.1.hack/x86-common.c
--- libx86-1.1/x86-common.c	2008-05-16 12:56:23.000000000 -0400
+++ libx86-1.1.hack/x86-common.c	2009-10-26 16:03:21.000000000 -0400
@@ -45,14 +45,15 @@
 static struct {
 	int ready;
 	int count;
+	void *offset;
 	struct mem_block blocks[REAL_MEM_BLOCKS];
 } mem_info = { 0 };

 static int
-real_mem_init(void)
+real_mem_init(int high_page)
 {
 	void *m;
-	int fd_zero;
+	int fd_zero, flags = MAP_SHARED;

 	if (mem_info.ready)
 		return 1;
@@ -63,9 +64,12 @@
 		return 0;
 	}

+	if (!high_page)
+		flags |= MAP_FIXED;
+
 	m = mmap((void *)REAL_MEM_BASE, REAL_MEM_SIZE,
-	 PROT_READ | PROT_WRITE | PROT_EXEC,
-	 MAP_FIXED | MAP_SHARED, fd_zero, 0);
+		 PROT_READ | PROT_WRITE | PROT_EXEC,
+		 flags, fd_zero, 0);

 	if (m == (void *)-1) {
 		perror("mmap /dev/zero");
@@ -76,6 +80,7 @@
 	close(fd_zero);

 	mem_info.ready = 1;
+	mem_info.offset = m;
 	mem_info.count = 1;
 	mem_info.blocks[0].size = REAL_MEM_SIZE;
 	mem_info.blocks[0].free = 1;
@@ -87,7 +92,7 @@
 real_mem_deinit(void)
 {
 	if (mem_info.ready) {
-		munmap((void *)REAL_MEM_BASE, REAL_MEM_SIZE);
+		munmap(mem_info.offset, REAL_MEM_SIZE);
 		mem_info.ready = 0;
 	}
 }
@@ -119,7 +124,7 @@
 LRMI_alloc_real(int size)
 {
 	int i;
-	char *r = (char *)REAL_MEM_BASE;
+	char *r = (char *)mem_info.offset;

 	if (!mem_info.ready)
 		return NULL;
@@ -151,7 +156,7 @@
 LRMI_free_real(void *m)
 {
 	int i;
-	char *r = (char *)REAL_MEM_BASE;
+	char *r = (char *)mem_info.offset;

 	if (!mem_info.ready)
 		return;
@@ -200,13 +205,15 @@
 	return *(unsigned short *)(i * 4);
 }

-int LRMI_common_init(void)
+void *LRMI_common_init(int high_page)
 {
-	void *m;
+	void *m, *offset;
 	int fd_mem;

-	if (!real_mem_init())
-		return 0;
+	if (!real_mem_init(high_page))
+		return NULL;
+
+	offset = mem_info.offset - REAL_MEM_BASE;

 	/*
 	 Map the Interrupt Vectors (0x0 - 0x400) + BIOS data (0x400 - 0x502)
@@ -217,33 +224,33 @@
 	if (fd_mem == -1) {
 		real_mem_deinit();
 		perror("open /dev/mem");
-		return 0;
+		return NULL;
 	}

-	m = mmap((void *)0, 0x502,
-	 PROT_READ | PROT_WRITE | PROT_EXEC,
-	 MAP_FIXED | MAP_SHARED, fd_mem, 0);
+	m = mmap(offset, 0x502,
+		 PROT_READ | PROT_WRITE | PROT_EXEC,
+		 MAP_FIXED | MAP_SHARED, fd_mem, 0);

 	if (m == (void *)-1) {
 		close(fd_mem);
 		real_mem_deinit();
 		perror("mmap /dev/mem");
-		return 0;
+		return NULL;
 	}

-	m = mmap((void *)0xa0000, 0x100000 - 0xa0000,
+	m = mmap(offset+0xa0000, 0x100000 - 0xa0000,
 	 PROT_READ | PROT_WRITE | PROT_EXEC,
 	 MAP_FIXED | MAP_SHARED, fd_mem, 0xa0000);

 	if (m == (void *)-1) {
-		munmap((void *)0, 0x502);
+		munmap(offset, 0x502);
 		close(fd_mem);
 		real_mem_deinit();
 		perror("mmap /dev/mem");
-		return 0;
+		return NULL;
 	}

 	close(fd_mem);

-	return 1;
+	return offset;
 }
diff -ur libx86-1.1/x86-common.h libx86-1.1.hack/x86-common.h
--- libx86-1.1/x86-common.h	2006-09-07 18:44:27.000000000 -0400
+++ libx86-1.1.hack/x86-common.h	2009-10-26 16:01:19.000000000 -0400
@@ -40,4 +40,4 @@

 void *LRMI_alloc_real(int size);
 void LRMI_free_real(void *m);
-int LRMI_common_init(void);
+void *LRMI_common_init(int high_page);


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libx86</Name>
        <Homepage>http://www.codon.org.uk/~mjg59/libx86/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <Summary>A hardware-independent library for executing real-mode x86 code</Summary>
        <Description>libx86 contains the library and header files necessary for the development of programs that will use libx86 to make real-mode x86 calls.</Description>
        <Archive sha1sum="c55d8a428ab7f2084010c255aa8c666602544af9" type="targz">http://www.codon.org.uk/~mjg59/libx86/downloads/libx86-1.1.tar.gz</Archive>
        <Patches>
            <!-- Fix building on newer kernels -->
            <Patch>libx86-0.99-ifmask.patch</Patch>
            <Patch level="1">libx86-add-pkgconfig.patch</Patch>
            <Patch level="1">libx86-mmap-offset.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>libx86</Name>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libx86-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">libx86</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.1</Version>
            <Comment>Rebuild.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.1</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>1.1</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>libx86</Name>
        <Summary xml:lang="tr">Gerçek-mod x86 kodlarını çalıştırmak için donanım-bağımsız bir kütüphane</Summary>
        <Description xml:lang="tr">libx86, gerçek-mod x86 çağrıları yapabilen programların geliştirilmesi için gerekli başlık dosyaları ve kütüphaneleri içerir.</Description>
        <Description xml:lang="es">A menudo puede ser útil poder realizar llamadas de BIOS x86 en modo real desde el espacio de usuarios. lrmi facilita para ello una interfaz simple para equipos x86, sin embargo no funciona en otras plataformas. libx86 facilita la interfaz lrmi, pero además funcionará en plataformas como amd64 y alpha.</Description>
    </Source>
</PISI>


code:
<PISI>
    <Name>hardware.mobile</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 get

def setup():
    autotools.autoreconf("-vfi")
    autotools.configure()

def build():
    autotools.make()

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ifuse</Name>
        <Homepage>http://matt.colyer.name/projects/iphone-linux</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2+</License>
        <IsA>library</IsA>
        <Summary>Mount Apple iPhone and iPod touch devices</Summary>
        <Description>ifuse, a fuse filesystem for mounting iPhone and iPod touch devices.</Description>
        <Archive sha1sum="d186dd713bbff8e15cd8cbb5f7f2c5b5be62d594" type="tarbz2">http://www.libimobiledevice.org/downloads/ifuse-1.1.3.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>libimobiledevice-devel</Dependency>
            <Dependency>fuse-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>ifuse</Name>
        <RuntimeDependencies>
            <Dependency>libimobiledevice</Dependency>
            <Dependency>fuse</Dependency>
            <Dependency>libusbmuxd</Dependency>
            <Dependency>libtasn1</Dependency>
            <Dependency>gnutls</Dependency>
            <Dependency>libplist</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="man">/usr/share/man/</Path>
            <Path fileType="doc">/usr/share/doc/ifuse</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-06-21</Date>
            <Version>1.1.3</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2017-01-07</Date>
            <Version>1.1.3</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>ifuse</Name>
        <Summary xml:lang="tr">Apple iPhone ve iPod touch cihazlarını bağlama aracı</Summary>
        <Description xml:lang="tr">ifuse, Apple iPhone ve iPod touch cihazlarını sisteme bağlamak için gerekli araçları içerir.</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("\
                         --disable-static \
                         --disable-openssl \
                         --disable-silent-rules \
                         --without-cython \
                        ")

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

def build():
    autotools.make()

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

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


code:
From 2a5868411c57e25802d2f16fd6b77601f10d0b72 Mon Sep 17 00:00:00 2001
From: Nikos Mavrogiannopoulos <nmav@redhat.com>
Date: Fri, 29 Apr 2016 22:58:34 +0200
Subject: [PATCH] Updated gnutls certificate callback to new API (backwards
 compatible)

---
 src/idevice.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/idevice.c b/src/idevice.c
index 5912aeb..f2de6a3 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -642,7 +642,11 @@ static const char *ssl_error_to_string(int e)
 /**
  * Internally used gnutls callback function that gets called during handshake.
  */
+#if GNUTLS_VERSION_NUMBER >= 0x020b07
+static int internal_cert_callback(gnutls_session_t session, const gnutls_datum_t * req_ca_rdn, int nreqs, const gnutls_pk_algorithm_t * sign_algos, int sign_algos_length, gnutls_retr2_st * st)
+#else
 static int internal_cert_callback(gnutls_session_t session, const gnutls_datum_t * req_ca_rdn, int nreqs, const gnutls_pk_algorithm_t * sign_algos, int sign_algos_length, gnutls_retr_st * st)
+#endif
 {
 	int res = -1;
 	gnutls_certificate_type_t type = gnutls_certificate_type_get(session);
@@ -650,7 +654,12 @@ static int internal_cert_callback(gnutls_session_t session, const gnutls_datum_t
 		ssl_data_t ssl_data = (ssl_data_t)gnutls_session_get_ptr(session);
 		if (ssl_data && ssl_data->host_privkey && ssl_data->host_cert) {
 			debug_info("Passing certificate");
+#if GNUTLS_VERSION_NUMBER >= 0x020b07
+			st->cert_type = type;
+			st->key_type = GNUTLS_PRIVKEY_X509;
+#else
 			st->type = type;
+#endif
 			st->ncerts = 1;
 			st->cert.x509 = &ssl_data->host_cert;
 			st->key.x509 = ssl_data->host_privkey;
@@ -759,7 +768,11 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne
 	debug_info("enabling SSL mode");
 	errno = 0;
 	gnutls_certificate_allocate_credentials(&ssl_data_loc->certificate);
+#if GNUTLS_VERSION_NUMBER >= 0x020b07
+	gnutls_certificate_set_retrieve_function(ssl_data_loc->certificate, internal_cert_callback);
+#else
 	gnutls_certificate_client_set_retrieve_function(ssl_data_loc->certificate, internal_cert_callback);
+#endif
 	gnutls_init(&ssl_data_loc->session, GNUTLS_CLIENT);
 	gnutls_priority_set_direct(ssl_data_loc->session, "NONE:+VERS-SSL3.0:+ANON-DH:+RSA:+AES-128-CBC:+AES-256-CBC:+SHA1:+MD5:+COMP-NULL", NULL);
 	gnutls_credentials_set(ssl_data_loc->session, GNUTLS_CRD_CERTIFICATE, ssl_data_loc->certificate);


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libimobiledevice</Name>
        <Homepage>http://www.libimobiledevice.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2+</License>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        Library for connecting to mobile devices
        <Description>libimobiledevice is a library for connecting to mobile devices including phones and music players</Description>
        <Archive sha1sum="a8e3f21180b1d6df754d04a4080a29cf6891e701" type="tarbz2">http://www.libimobiledevice.org/downloads/libimobiledevice-1.2.0.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>gnutls-devel</Dependency>
            <Dependency>libusbmuxd-devel</Dependency>
            <Dependency>libplist-devel</Dependency>
            <Dependency>libtasn1-devel</Dependency>
            <Dependency>libgcrypt-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch>gnutls-3.4.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>libimobiledevice</Name>
        <RuntimeDependencies>
            <Dependency>gnutls</Dependency>
            <Dependency>libusbmuxd</Dependency>
            <Dependency>libplist</Dependency>
            <Dependency>libtasn1</Dependency>
            <Dependency>libgcrypt</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="man">/usr/share/man/man1</Path>
            <Path fileType="doc">/usr/share/doc/libimobiledevice</Path>
        </Files>
    </Package>

    <Package>
        <Name>libimobiledevice-devel</Name>
        Development files for libimobiledevice
        <RuntimeDependencies>
            <Dependency>gnutls-devel</Dependency>
            <Dependency>libusbmuxd-devel</Dependency>
            <Dependency>libplist-devel</Dependency>
            <Dependency>libtasn1-devel</Dependency>
            <Dependency>libgcrypt-devel</Dependency>
            <Dependency release="current">libimobiledevice</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-06-21</Date>
            <Version>1.2.0</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-03-01</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.7</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-01-25</Date>
            <Version>1.1.7</Version>
            <Comment>First release</Comment>
            <Name>Hakan Yıldız</Name>
            <Email>hknyldz93@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libimobildevice</Name>
        Mobil cihazlara bağlanmak için gerekli kitaplıklar
        <Description xml:lang="tr">libimobildevice, telefonlar ve müzik çalarlar gibi mobil cihazlarla iletişim için kullanılan kitaplıklardır.</Description>
    </Source>

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

def setup():
    #  do not link with installed old library
    pisitools.dosed("cython/Makefile.*", "(plist_la_LDFLAGS\s=.*)(\s-L\$\(libdir\))(.*)", r"\1\3")

    autotools.configure("\
                         --disable-static \
                         --disable-silent-rules \
                        ")

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

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

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

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