code:
diff -Naur imap-2007e.orig/src/osdep/unix/Makefile imap-2007e/src/osdep/unix/Makefile
--- imap-2007e.orig/src/osdep/unix/Makefile	2011-02-01 10:25:01.865074982 +0200
+++ imap-2007e/src/osdep/unix/Makefile	2011-02-01 10:23:35.650187032 +0200
@@ -985,6 +985,9 @@
 	 -DLOCKPGM3=\"$(LOCKPGM3)\" > OSCFLAGS
 	echo $(BASELDFLAGS) $(EXTRALDFLAGS) > LDFLAGS
 	echo "$(ARRC) $(ARCHIVE) $(BINARIES);$(RANLIB) $(ARCHIVE)" > ARCHIVE
+	echo "`$(CAT) CCTYPE` `$(CAT) CFLAGS` `$(CAT) OSFLAGS` -shared \
+	 -Wl,-soname,libc-client.so.1 -o libc-client.so.1.0.0 $(BINARIES)" \
+	 >> ARCHIVE
 	echo $(OS) > OSTYPE
 	./drivers $(EXTRADRIVERS) $(DEFAULTDRIVERS) dummy
 	./mkauths $(EXTRAAUTHENTICATORS) $(DEFAULTAUTHENTICATORS)


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libc-client</Name>
        <Homepage>http://www.washington.edu/imap/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>Apache-2.0</License>
        <IsA>service</IsA>
        <Summary>C-client mail access routines for IMAP and POP protocols</Summary>
        <Description>The c-client library is a common API for accessing mailboxes developed at the University of Washington. It is used mainly by php</Description>
        <Archive sha1sum="7a82ebd5aae57a5dede96ac4923b63f850ff4fa7" type="targz">ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>pam-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>e2fsprogs-devel</Dependency>
            <Dependency>mit-kerberos</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="0">imap-2007a-linux.diff</Patch>
            <Patch level="1">imap-2006c1-glibc-2.2.2.diff</Patch>
            <Patch level="0">imap-2006c1-krbpath.diff</Patch>
            <Patch level="1">imap-2001a-disable-mbox.patch</Patch>
            <Patch level="1">imap-2001a-overflow.patch</Patch>
            <Patch level="1">imap-2004a-doc.patch</Patch>
            <!--Patch level="1">imap-2007-paths.patch</Patch-->
            <Patch level="1">imap-2007e-authmd5.patch</Patch>
            <Patch level="1">imap-2007e-shared.patch</Patch>
            <Patch level="1">uw-imap-2004c-amd64-so-fix.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>libc-client</Name>
        <RuntimeDependencies>
            <Dependency>mit-kerberos</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-11</Date>
            <Version>2007f</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2007f</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-02-27</Date>
            <Version>2007f</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>

repo_name: ayhanyalcinsoy/main


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libc-client</Name>
        <Summary xml:lang="tr">İmap protokolü için kitaplık</Summary>
        <Description xml:lang="tr">Washington üniversitesi tarafından, POP ve IMAP protokolleri için geliştirilmiş genel kitaplıklar. Temel olarak php tarafından kullanılı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 get

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

def build():
    autotools.make()

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libcddb</Name>
        <Homepage>http://libcddb.sourceforge.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        A library for accessing a CDDB server
        <Description>Libcddb is a library that implements the different protocols (CDDBP, HTTP, SMTP) to access data on a CDDB server (e.g http://freedb.org/).</Description>
        <Archive sha1sum="2a7855918689692ff5ca3316d078a859d51959ce" type="tarbz2">mirrors://sourceforge/libcddb/libcddb-1.3.2.tar.bz2</Archive>
    </Source>

    <Package>
        <Name>libcddb</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>libcddb-devel</Name>
        Development files for libcddb
        <RuntimeDependencies>
            <Dependency release="current">libcddb</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-02</Date>
            <Version>1.3.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.3.2</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.3.2</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>libcddb</Name>
        CDDB sunucularına ulaşmak için bir kitaplık
        Une librairie pour accéder aux serveurs CDDB.
        <Description xml:lang="tr">libcddb, CDDB sunucularındaki (freedb.org) verilere erişmek için yazılmış bir C kitaplığıdır.</Description>
    </Source>

    <Package>
        <Name>libcddb-devel</Name>
        libcddb 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 setup():
    autotools.configure("--disable-static")

    # Do not link to unused m library
    pisitools.dosed("libtool", "^(postdeps=.*) -lm (.*)$", r"\1 \2")

def build():
    autotools.make()

def install():
    autotools.install()

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libconfig</Name>
        <Homepage>http://www.hyperrealm.com/libconfig/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        C/C++ Configuration File Library
        <Description>Libconfig is a simple library for manipulating structured configuration files. The file format is more compact and more readable than XML. And unlike XML, it is type-aware, so it is not necessary to do string parsing in application code.</Description>
        <Archive sha1sum="24306c7efce07669a4053d0977a45e2f3a3add79" type="targz">http://pkgs.fedoraproject.org/repo/pkgs/libconfig/libconfig-1.5.tar.gz/a939c4990d74e6fc1ee62be05716f633/libconfig-1.5.tar.gz</Archive>
    </Source>

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

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

    <History>
        <Update release="3">
            <Date>2017-02-17</Date>
            <Version>1.5</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.5</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2013-03-04</Date>
            <Version>1.4.9</Version>
            <Comment>First release</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libconfig</Name>
        C/C++ Yapılandırma Dosyası Kitaplığı
        <Description xml:lang="tr">Libconfig, yapılandırma dosyalarını düzenlemek için basit bir kitaplıktır. Dosya biçimi XML'den daha basit ve okunabilirdir. XML'den farklı olarak tip bilgisi de tutulur. Böylece, uygulama kodlarında katar ayrıştırmaya gerek kalmaz.</Description>
    </Source>

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


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

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

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

    autotools.configure("--prefix=/usr \
                         --sysconfdir=/etc \
                         --localstatedir=/var \
                         --disable-static \
                         --libexecdir=/usr/lib")

def build():
    autotools.make()

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libndp</Name>
        <Homepage>http://libndp.org/</Homepage>
        <Packager>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Packager>
        <License>GPLv2+</License>
        <IsA>library</IsA>
        Library for Neighbor Discovery Protocol
        <Description>Library for Neighbor Discovery Protocol</Description>
        <Archive sha1sum="eaf62c2ad8c0bedfa37c2d8ccad75f02f3b3ff8c" type="targz">https://github.com/jpirko/libndp/archive/v1.6.tar.gz</Archive>
    </Source>

    <Package>
        <Name>libndp</Name>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="data">/etc/dbus-1</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="executable">/usr/bin</Path>
        </Files>
    </Package>

    <Package>
        <Name>libndp-devel</Name>
        Development files for libndp
        <RuntimeDependencies>
            <Dependency release="current">libndp</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-19</Date>
            <Version>1.6</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.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-01-07</Date>
            <Version>1.4</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libndp</Name>
        Ağ tarama protokolü için kitaplık
        <Description xml:lang="tr">Ağ tarama protokolü için kitaplık</Description>
    </Source>

    <Package>
        <Name>libndp-devel</Name>
        libndp 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 setup():
    autotools.configure("--disable-static")

def build():
    autotools.make()

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libnfnetlink</Name>
        <Homepage>http://www.netfilter.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        Low level library for netfilter related kernel/userspace communication
        <Description>libnfnetlink provides a generic messaging infrastructure for in-kernel netfilter subsystems.</Description>
        <Archive sha1sum="27ae2dfbd976e28cb7a417f9e946c901f512dd9a" type="tarbz2">http://www.netfilter.org/projects/libnfnetlink/files/libnfnetlink-1.0.1.tar.bz2</Archive>
    </Source>

    <Package>
        <Name>libnfnetlink</Name>
        <Files>
            <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-01-29</Date>
            <Version>1.0.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.0.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-03-13</Date>
            <Version>1.0.1</Version>
            <Comment>First release</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libnfnetlink</Name>
        Ağ filtreleme işlemleri ile ilgili çekirdek/uygulama iletişimi için alt seviye bir kitaplık
        Niskopoziomowa biblioteka do netfilter
        <Description xml:lang="tr">libnfnetlink, çekirdek içi ağ filtreleme alt sistemleri için jenerik bir mesajlaşma altyapısı sunar.</Description>
        <Description xml:lang="pl">libnfnetlink to niskopoziomowa biblioteka do związanej z netfiltrem komunikacji między jądrem a przestrzenią użytkownika. Udostępnia ogólną infrastrukturę komunikatów dla podsystemów netfiltra w jądrze oraz ich użytkowników i/lub narzędzi zarządzających w przestrzeni użytkownika.</Description>
    </Source>

    <Package>
        <Name>libnfnetlink-devel</Name>
        libnfnetlink için geliştirme dosyaları
        Pliki nagłówkowe do bibliioteki libnfnetlink
    </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

def setup():
    autotools.configure()

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

def build():
    autotools.make()

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libnl</Name>
        <Homepage>http://people.suug.ch/~tgr/libnl</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        A library for applications dealing with netlink sockets
        <Description>libnl is a convenience library to simplify the usage of the Linux kernel's netlink sockets interface for network manipulation.</Description>
        <Archive sha1sum="b7a4981f7edf7398256d35fd3c0b87bc84ae27d1" type="targz">http://www.infradead.org/~tgr/libnl/files/libnl-3.2.25.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>glibc</Dependency>
            <Dependency>flex</Dependency>
            <Dependency>bison</Dependency>
            <Dependency>pkgconfig</Dependency>
            <Dependency>libtool</Dependency>
            <Dependency>check</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libnl</Name>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="config">/etc/libnl</Path>
            <Path fileType="executable">/usr/sbin</Path>
        </Files>
    </Package>

    <Package>
        <Name>libnl-devel</Name>
        Development files for libnl
        <RuntimeDependencies>
            <Dependency release="current">libnl</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>3.2.25</Version>
            <Comment>Rebuild.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>3.2.25</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-07-15</Date>
            <Version>3.2.25</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libnl</Name>
        Netlink soketleri erişimi için bir kitaplığı
        <Description xml:lang="tr">libnl Linux çekirdeğinin netlink soket arayüzünü ağ ile ilgili çeşitli işlemleri kolaylaştırmak için kullanan bir kitaplığıdır.</Description>
    </Source>

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

def setup():
    cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
                          -DCMAKE_SKIP_RPATH=ON \
                          -DPERL_VENDORINSTALL=yes \
                          -DCMAKE_BUILD_TYPE=Release \
                          -DWITH_WEBKIT=ON \
                          -DWITH_MOZJS=ON")

def build():
    cmaketools.make()

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

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


code:
From cccc44ce0c8a251d987d0d83f05e93d31aa659d7 Mon Sep 17 00:00:00 2001
From: Colin Walters <walters@verbum.org>
Date: Mon, 3 Jun 2013 17:09:25 -0400
Subject: [PATCH] pacrunner_mozjs: Also support mozjs-17.0

GNOME 3.10 is moving to hard require mozjs-17.0, so we should support
it too.  See also:

https://bugs.freedesktop.org/show_bug.cgi?id=59830
https://bugzilla.gnome.org/show_bug.cgi?id=690982
---
 libproxy/cmake/modules/pacrunner_mozjs.cmk |    8 +++++++-
 libproxy/modules/pacrunner_mozjs.cpp       |   16 +++++++++++++---
 2 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/libproxy/cmake/modules/pacrunner_mozjs.cmk b/libproxy/cmake/modules/pacrunner_mozjs.cmk
index 21072db..49856a6 100644
--- a/libproxy/cmake/modules/pacrunner_mozjs.cmk
+++ b/libproxy/cmake/modules/pacrunner_mozjs.cmk
@@ -14,7 +14,13 @@ elseif(NOT APPLE)
       include_directories(${MOZJS_INCLUDE_DIRS})
       link_directories(${MOZJS_LIBRARY_DIRS})
     else()
-      set(MOZJS_FOUND 0)
+      pkg_search_module(MOZJS mozjs-17.0)
+      if(MOZJS_FOUND)
+        include_directories(${MOZJS_INCLUDE_DIRS})
+        link_directories(${MOZJS_LIBRARY_DIRS})
+      else()
+        set(MOZJS_FOUND 0)
+      endif()
     endif()
   else()
     set(MOZJS_FOUND 0)
diff --git a/libproxy/modules/pacrunner_mozjs.cpp b/libproxy/modules/pacrunner_mozjs.cpp
index abb4b9d..f5e678c 100644
--- a/libproxy/modules/pacrunner_mozjs.cpp
+++ b/libproxy/modules/pacrunner_mozjs.cpp
@@ -19,6 +19,7 @@

 #include <cstring> // ?
 #include <unistd.h> // gethostname
+#include <stdint.h>

 #include "../extension_pacrunner.hpp"
 using namespace libproxy;
@@ -76,12 +77,12 @@ static JSBool dnsResolve_(JSContext *cx, jsval hostname, jsval *vp) {
 		return true;
 }

-static JSBool dnsResolve(JSContext *cx, uintN /*argc*/, jsval *vp) {
+static JSBool dnsResolve(JSContext *cx, uint32_t /*argc*/, jsval *vp) {
 	jsval *argv = JS_ARGV(cx, vp);
 	return dnsResolve_(cx, argv[0], vp);
 }

-static JSBool myIpAddress(JSContext *cx, uintN /*argc*/, jsval *vp) {
+static JSBool myIpAddress(JSContext *cx, uint32_t /*argc*/, jsval *vp) {
 	char *hostname = (char *) JS_malloc(cx, 1024);
 	if (!gethostname(hostname, 1023)) {
 		JSString *myhost = JS_NewStringCopyN(cx, hostname, strlen(hostname));
@@ -98,7 +99,12 @@ static JSBool myIpAddress(JSContext *cx, uintN /*argc*/, jsval *vp) {
 static JSClass cls = {
 		"global", JSCLASS_GLOBAL_FLAGS,
 		JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_StrictPropertyStub,
-		JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub,
+		JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub,
+#if JS_VERSION == 186
+		NULL,
+#else
+		JS_FinalizeStub,
+#endif
 		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
 };

@@ -117,7 +123,11 @@ public:
 	    //JS_SetOptions(this->jsctx, JSOPTION_VAROBJFIX);
 	    //JS_SetVersion(this->jsctx, JSVERSION_LATEST);
 	    //JS_SetErrorReporter(cx, reportError);
+#if JS_VERSION == 186
+		if (!(this->jsglb = JS_NewGlobalObject(this->jsctx, &cls, NULL))) goto error;
+#else
 		if (!(this->jsglb = JS_NewCompartmentAndGlobalObject(this->jsctx, &cls, NULL))) goto error;
+#endif
 		if (!JS_InitStandardClasses(this->jsctx, this->jsglb))            goto error;

 		// Define Javascript functions
--
1.7.1


code:
--- libproxy/cmake/modules/pacrunner_mozjs.cmk.orig	2012-10-02 16:20:40.000000000 +0200
+++ libproxy/cmake/modules/pacrunner_mozjs.cmk		2012-10-17 00:36:43.645579472 +0200
@@ -9,7 +9,7 @@ if(WIN32)
 elseif(NOT APPLE)
   option(WITH_MOZJS "Search for MOZJS package" ON)
   if (WITH_MOZJS)
-    pkg_search_module(MOZJS mozjs185>=1.8.5)
+    pkg_search_module(MOZJS mozjs185)
     if(MOZJS_FOUND)
       include_directories(${MOZJS_INCLUDE_DIRS})
       link_directories(${MOZJS_LIBRARY_DIRS})


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libproxy</Name>
        <Homepage>http://code.google.com/p/libproxy/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>app:console</IsA>
        Proxy configuration library
        <Description>libproxy is a library that provides automatic proxy configuration management.</Description>
        <Archive sha1sum="c037969434095bc65d29437e11a7c9e0293a5149" type="targz">http://pkgs.fedoraproject.org/repo/pkgs/libproxy/libproxy-0.4.11.tar.gz/3cd1ae2a4abecf44b3f24d6639d2cd84/libproxy-0.4.11.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>gconf-devel</Dependency>
            <Dependency>libXmu-devel</Dependency>
            <Dependency>NetworkManager-devel</Dependency>
            <Dependency>webkit-gtk2-devel</Dependency>
            <Dependency>spidermonkey-devel</Dependency>
            <Dependency>cmake</Dependency>
            <Dependency>intltool</Dependency>
        </BuildDependencies>
        <Patches>
	    <Patch level="0">libproxy-0.4.10-mozjs.patch</Patch>
        <Patch level="1">0001-pacrunner_mozjs-Also-support-mozjs-17.0.patch</Patch>
        </Patches>
    </Source>

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

    <Package>
        <Name>libproxy-gnome3</Name>
        <RuntimeDependencies>
            <Dependency>libproxy</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libproxy/*/modules/config_gnome3.*</Path>

            <Path fileType="executable">/usr/libexec/pxgconf</Path>
        </Files>
    </Package>

    <Package>
        <Name>libproxy-networkmanager</Name>
        <RuntimeDependencies>
            <Dependency>libproxy</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libproxy/*/modules/network_networkmanager.*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libproxy-webkit-gtk2</Name>
        <RuntimeDependencies>
            <Dependency>libproxy</Dependency>
            <Dependency>webkit-gtk2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libproxy/*/modules/pacrunner_webkit*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libproxy-mozjs</Name>
        <RuntimeDependencies>
            <Dependency>libproxy</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libproxy/*/modules/pacrunner_mozjs*</Path>
        </Files>
    </Package>

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

    <History>
	<Update release="3">
            <Date>2017-07-30</Date>
            <Version>0.4.10</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2017-03-08</Date>
            <Version>0.4.10</Version>
            <Comment>Release bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-11-01</Date>
            <Version>0.4.10</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>libproxy</Name>
        Proxy yapılandırma kitaplığı
        <Description xml:lang="tr">Otomatik proxy yapılandırma yönetimini sağlayan bir kitaplığı.</Description>
    </Source>

    <Package>
        <Name>libproxy-devel</Name>
        libproxy 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/copyleft/gpl.txt

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

def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")
    cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
                          -DWITH_GSSAPI=OFF", sourceDir="..")

def build():
    shelltools.cd("build")
    cmaketools.make()
    #cmaketools.make("doc")

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

    #pisitools.doman("doc/man/*/*")
    pisitools.dohtml("doc/*")

    shelltools.cd("..")
    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "INSTALL", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libssh</Name>
        <Homepage>http://www.libssh.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        Full C library functions for manipulating a client-side SSH connection
        <Description>libssh library was designed to be used by programmers needing a working SSH implementation by the mean of a library. The complete control of the client is made by the programmer. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel for your remote programs. With its Secure FTP implementation, you can play with remote files easily, without third-party programs others than libcrypto (from openssl).</Description>
        <Archive sha1sum="4e04c06036a7f2c00becc8c3174bba7a3b5248c3" type="targz">https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.4.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>openssl-devel</Dependency>

	    <Dependency>doxygen</Dependency>
	    <Dependency>cmake</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libssh</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>openssl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

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

    <Package>
        <Name>libssh-docs</Name>
        Development documentation for libssh
        <Files>
            <Path fileType="doc">/usr/share/doc/libssh/html</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-02</Date>
            <Version>0.7.4</Version>
            <Comment>Version Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.7.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-25</Date>
            <Version>0.7.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>libssh</Name>
        SSH bağlantılarının kontrol edilebilmesini sağlayan C kitaplığı
        <Description xml:lang="tr">libssh, yazılımlarında SSH kullanmak isteyen programcılar için tasarlanmış bir C kitaplığıdır. SSH istemcisi programcı tarafından tam olarak kontrol edilebilir, uzaktan yazılım çalıştırma, tünel yaratma, dosya transferi ve uzak dosya erişimi işlemleri yapılabilir. Tüm bunlar için openssl paketinde bulunan lıbcrypto'nun sistemde bulunması yeterlidir.</Description>
    </Source>

    <Package>
        <Name>libssh-devel</Name>
        libssh 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 setup():
    autotools.configure("--with-libxml2 \
                         --with-expat \
                         --without-gssapi \
                         --without-libproxy \
                         --with-ssl=openssl \
                         --with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt \
                         --enable-threadsafe-ssl=posix \
                         --enable-shared \
                         --disable-static")

def build():
    autotools.make()

def install():
    autotools.install()

    pisitools.dodoc("THANKS", "TODO", "ChangeLog", "AUTHORS", "BUGS", "NEWS", "README", "doc/*.txt")


code:
--- Makefile.in.orig	2009-01-29 03:13:36.000000000 +0200
+++ Makefile.in	2009-05-02 03:14:18.000000000 +0300
@@ -22,7 +22,7 @@
 man3dir = $(mandir)/man3
 datarootdir = @datarootdir@
 datadir = @datadir@
-docdir = $(datadir)/doc/neon-@NEON_VERSION@
+docdir = $(datadir)/doc/neon
 includedir = @includedir@
 neonincludes = $(includedir)/neon
 pkgconfigdir = $(libdir)/pkgconfig


code:
--- neon-0.27.0/neon-config.in.multilib
+++ neon-0.27.0/neon-config.in
@@ -5,7 +5,11 @@
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 includedir=@includedir@
-libdir=@libdir@
+
+libdir=`pkg-config --variable=libdir neon`
+CFLAGS=`pkg-config --cflags neon`
+LIBS=`pkg-config --libs neon`
+has_lfs=`pkg-config --variable=has_lfs neon`

 usage()
 {
@@ -23,7 +27,7 @@
   --support FEATURE     exit with success if feature is supported

  Known features:
-    dav [@NE_FLAG_DAV@], ssl [@NE_FLAG_SSL@], zlib [@NE_FLAG_ZLIB@], ipv6 [@NE_FLAG_IPV6@], lfs [@NE_FLAG_LFS@],
+    dav [@NE_FLAG_DAV@], ssl [@NE_FLAG_SSL@], zlib [@NE_FLAG_ZLIB@], ipv6 [@NE_FLAG_IPV6@], lfs [${has_lfs}],
     i18n [@NE_FLAG_I18N@], ts_ssl [@NE_FLAG_TS_SSL@]

 EOF
@@ -69,11 +73,10 @@
 	;;

     --cflags)
-       	echo -I${includedir}/neon @NEON_CFLAGS@
+       	echo ${CFLAGS}
        	;;

     --libs)
-        LIBS="-lneon @NEON_LIBS@"
 	# Don't add standard library paths
         if test "$prefix" != "/usr"; then
            LIBS="-L${libdir} ${LIBS}"
@@ -93,7 +96,7 @@
 	zlib|ZLIB) support @NE_FLAG_ZLIB@ ;;
 	ipv6|IPV6) support @NE_FLAG_IPV6@ ;;
 	dav|DAV) support @NE_FLAG_DAV@ ;;
-	lfs|LFS) support @NE_FLAG_LFS@ ;;
+	lfs|LFS) support ${has_lfs} ;;
 	i18n|I18N) support @NE_FLAG_I18N@ ;;
 	ts_ssl|TS_SSL) support @NE_FLAG_TS_SSL@ ;;
 	*) support no ;;
--- neon-0.27.0/neon.pc.in.multilib
+++ neon-0.27.0/neon.pc.in
@@ -2,6 +2,7 @@
 exec_prefix=@exec_prefix@
 libdir=@libdir@
 includedir=@includedir@
+has_lfs=@NE_FLAG_LFS@

 Name: neon
 Description: HTTP/WebDAV client library


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>neon</Name>
        <Homepage>http://www.webdav.org/neon/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        HTTP and WebDAV client library
        <Description>neon is an HTTP and WebDAV client library with a C interface; providing a high-level interface to HTTP and WebDAV methods along with a low-level interface for HTTP request handling.</Description>
        <Archive sha1sum="d1c020f96731135263476ebaa72b2da07c4727cd" type="targz">http://www.webdav.org/neon/neon-0.30.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>openssl-devel</Dependency>
            <Dependency>expat-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>mit-kerberos</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch>fixdocdir.patch</Patch>
            <Patch level="1">multilib.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>neon</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>expat</Dependency>
            <Dependency>openssl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>neon-devel</Name>
        Development files for neon
        <RuntimeDependencies>
            <Dependency release="current">neon</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-24</Date>
            <Version>0.30.2</Version>
            <Comment>Version Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.30.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-25</Date>
            <Version>0.30.0</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>neon</Name>
        C arayüzü ile birlikte gelen, Http ve WebDAV için istemci kitaplığı
        <Description xml:lang="tr">neon, C arayüzü sunan bir HTTP ve WebDAV istemci kitaplığıdır. HTTP ve WebDAV metodlarına yüksek seviyeli, HTTP istek değerlendirmesi için de düşük seviyeli bir arayüz sunar.</Description>
        Librairie cliente HTTP et WebDAV.
    </Source>

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

def setup():
    shelltools.export("PTHREAD_LIBS", "-lpthread")
    shelltools.copy("../googletest-release-1.7.0", "gtest")
    autotools.autoreconf("-vif")
    autotools.configure("--disable-static")

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

def build():
    autotools.make()
    shelltools.cd("python")
    pythonmodules.compile()
    shelltools.cd("..")

def install():
    autotools.install()
    shelltools.cd("python")
    pythonmodules.install()
    shelltools.cd("..")

    pisitools.insinto("/usr/share/vim/vimfiles/syntax/", "editors/proto.vim")
    pisitools.insinto("/usr/share/emacs/site-lisp/", "editors/protobuf-mode.el")

    pisitools.dodoc("CHANGES.txt", "CONTRIBUTORS.txt", "LICENSE", "README.md")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>protobuf</Name>
        <Homepage>http://code.google.com/p/protobuf</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>Apache-2.0</License>
        <IsA>library</IsA>
        Google's data interchange format
        <Description>Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats.</Description>
        <Archive sha1sum="d3bd3cfaa046d252e1b7c3c45106baab06b51f59" type="targz">http://source.pisilinux.org/1.0/protobuf-3.0.0-pre.tar.gz</Archive>
        <Archive sha1sum="d7aa4b8536f3a007b480cf016be8a4333dbf4768" type="targz">https://github.com/google/googletest/archive/release-1.7.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-setuptools</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>protobuf</Name>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib/libproto*</Path>
            <Path fileType="library">/usr/lib/python2.7/site-packages</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/vim</Path>
            <Path fileType="data">/usr/share/emacs</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="2">
           <Date>2017-03-08</Date>
            <Version>2.6.1</Version>
            <Comment>Rebuild.</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
        <Update release="1">
           <Date>2016-06-12</Date>
            <Version>2.6.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>protobuf</Name>
        Google'ın veri alış veriş biçimi
        <Description xml:lang="tr">Protokol Arabellekleri(protobuf) yapılandırılmış veriyi kodlamak için verimli bir biçimdir. Google kendi içindeki bütün RPC protokolleri ve dosya biçimleri için Protokol Arabelleklerini kullanmaktadır.</Description>
    </Source>

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

shelltools.export("XDG_DATA_HOME", get.workDIR())
#pisitools.flags.replace("-ggdb3", "-g")

cflags = get.CFLAGS().replace("-ggdb3","")
cxxflags = get.CXXFLAGS().replace("-gddb3", "")

paths = ["JavaScriptCore", "WebCore", "WebKit"]
docs = ["AUTHORS", "ChangeLog", "COPYING.LIB", "THANKS", \
        "LICENSE-LGPL-2", "LICENSE-LGPL-2.1", "LICENSE"]

def setup():
    autotools.autoreconf("-fiv")
    shelltools.export("CFLAGS", cflags)
    shelltools.export("CXXFLAGS", cxxflags)
    autotools.configure("--prefix=/usr \
                        --libexecdir=/usr/lib/WebKitGTK \
                        --disable-static \
                        --disable-webkit2 \
                        --disable-gtk-doc \
                        --disable-silent-rules \
                        --disable-wayland-target \
                        --enable-geolocation \
                        --enable-glx \
                        --enable-webgl \
                        --with-gnu-ld \
                        --with-gtk=2.0 \
                        --enable-x11-target \
                        --enable-video \
                        --enable-web-audio \
                        --enable-introspection")

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

def build():
    shelltools.export("CFLAGS", cflags)
    shelltools.export("CXXFLAGS", cxxflags)
    autotools.make("-j1 all stamp-po")

def install():
    shelltools.export("CFLAGS", cflags)
    shelltools.export("CXXFLAGS", cxxflags)
    autotools.rawInstall("-j1 DESTDIR=%s" % get.installDIR())

    pisitools.domove("/usr/share/gtk-doc/html", "/usr/share/doc/webkit-gtk2")

    pisitools.dodoc("NEWS")
    shelltools.cd("Source")
    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                pisitools.insinto("%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                                  "%s/%s" % (path, doc))


code:
From: Michael Catanzaro <mcatanzaro@igalia.com>
Subject: Fix FTBFS with GCC 6
Bug: https://bugs.webkit.org/show_bug.cgi?id=159124
Bug-Debian: https://bugs.debian.org/828198
Index: webkitgtk/Source/WebCore/platform/gtk/GtkClickCounter.cpp
===================================================================
--- webkitgtk.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp
+++ webkitgtk/Source/WebCore/platform/gtk/GtkClickCounter.cpp
@@ -85,8 +85,8 @@ int GtkClickCounter::clickCountForGdkBut
     guint32 eventTime = getEventTime(event);

     if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS)
-        || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
-            && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
+        || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
+            && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
             && (eventTime - m_previousClickTime < static_cast<guint>(doubleClickTime))
             && (buttonEvent->button == m_previousClickButton)))
         m_currentClickCount++;
Index: webkitgtk/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
===================================================================
--- webkitgtk.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
+++ webkitgtk/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
@@ -659,7 +659,7 @@ String localizedMediaTimeDescription(flo
     if (!std::isfinite(time))
         return String::fromUTF8(_("indefinite time"));

-    int seconds = static_cast<int>(abs(time));
+    int seconds = static_cast<int>(fabs(time));
     int days = seconds / (60 * 60 * 24);
     int hours = seconds / (60 * 60);
     int minutes = (seconds / 60) % 60;


code:
--- webkitgtk-2.16.1/Source/JavaScriptCore/API/JSStringRef.h.orig	2017-02-20 17:20:08.000000000 +0100
+++ webkitgtk-2.16.1/Source/JavaScriptCore/API/JSStringRef.h	2017-04-22 14:35:00.926530142 +0200
@@ -32,6 +32,7 @@
 #include <stdbool.h>
 #endif
 #include <stddef.h> /* for size_t */
+#include <uchar.h>

 #ifdef __cplusplus
 extern "C" {
@@ -46,7 +47,7 @@
  character. As with all scalar types, endianness depends on the underlying
  architecture.
 */
-    typedef unsigned short JSChar;
+    typedef char16_t JSChar;
 #else
     typedef wchar_t JSChar;
 #endif
--- webkitgtk-2.16.1/Source/WebKit2/Shared/API/c/WKString.h.orig	2017-02-20 17:20:17.000000000 +0100
+++ webkitgtk-2.16.1/Source/WebKit2/Shared/API/c/WKString.h	2017-04-22 14:35:56.853196170 +0200
@@ -28,6 +28,7 @@

 #include <WebKit/WKBase.h>
 #include <stddef.h>
+#include <uchar.h>

 #ifndef __cplusplus
 #include <stdbool.h>
@@ -39,7 +40,7 @@

 #if !defined(WIN32) && !defined(_WIN32) \
     && !((defined(__CC_ARM) || defined(__ARMCC__)) && !defined(__linux__)) /* RVCT */
-    typedef unsigned short WKChar;
+    typedef char16_t WKChar;
 #else
     typedef wchar_t WKChar;
 #endif


code:
From: Alberto Garcia <berto@igalia.com>
Subject: Install the MiniBrowser binary
Forwarded: not-needed
Index: webkitgtk/Tools/MiniBrowser/gtk/main.c
===================================================================
--- webkitgtk.orig/Tools/MiniBrowser/gtk/main.c
+++ webkitgtk/Tools/MiniBrowser/gtk/main.c
@@ -265,8 +265,6 @@ int main(int argc, char *argv[])
     }
     g_option_context_free (context);

-    g_setenv("WEBKIT_INJECTED_BUNDLE_PATH", WEBKIT_INJECTED_BUNDLE_PATH, FALSE);
-
     // Enable the favicon database, by specifying the default directory.
     webkit_web_context_set_favicon_database_directory(webkit_web_context_get_default(), NULL);

Index: webkitgtk/Tools/MiniBrowser/gtk/GNUmakefile.am
===================================================================
--- webkitgtk.orig/Tools/MiniBrowser/gtk/GNUmakefile.am
+++ webkitgtk/Tools/MiniBrowser/gtk/GNUmakefile.am
@@ -1,5 +1,5 @@
 if ENABLE_WEBKIT2
-noinst_PROGRAMS += \
+libexec_PROGRAMS += \
 	Programs/MiniBrowser
 endif

@@ -44,9 +44,6 @@ Programs_MiniBrowser_LDADD = \
 	$(GTK_LIBS) \
 	$(LIBSOUP_LIBS)

-Programs_MiniBrowser_LDFLAGS = \
-	-no-install
-
 CLEANFILES += \
 	$(top_builddir)/Programs/MiniBrowser \
 	$(minibrowser_built_sources) \


code:
diff -up webkitgtk-2.4.8/Source/autotools/CheckSystemAndBasicDependencies.m4.gcc5 webkitgtk-2.4.8/Source/autotools/CheckSystemAndBasicDependencies.m4
--- webkitgtk-2.4.8/Source/autotools/CheckSystemAndBasicDependencies.m4.gcc5	2015-01-07 10:45:43.000000000 +0100
+++ webkitgtk-2.4.8/Source/autotools/CheckSystemAndBasicDependencies.m4	2015-02-18 13:09:57.359888184 +0100
@@ -87,12 +87,12 @@ AC_SYS_LARGEFILE
 c_compiler="unknown"
 AC_LANG_PUSH([C])
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
-#if !(defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 7)
+#if !(defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)))
 #error Not a supported GCC compiler
 #endif
 ])], [c_compiler="gcc"], [])
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
-#if !(defined(__clang__) && __clang_major__ >= 3 && __clang_minor__ >= 3)
+#if !(defined(__clang__) && (__apple_build_version__ >= 4250024 || (!defined(__apple_build_version__) && (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 3)))))
 #error Not a supported Clang compiler
 #endif
 ])], [c_compiler="clang"], [])
@@ -106,12 +106,12 @@ fi
 cxx_compiler="unknown"
 AC_LANG_PUSH([C++])
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
-#if !(defined(__GNUG__) && defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 7)
+#if !(defined(__GNUG__) && defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)))
 #error Not a supported G++ compiler
 #endif
 ])], [cxx_compiler="g++"], [])
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
-#if !(defined(__clang__) && __clang_major__ >= 3 && __clang_minor__ >= 3)
+#if !(defined(__clang__) && (__apple_build_version__ >= 4250024 || (!defined(__apple_build_version__) && (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 3)))))
 #error Not a supported Clang++ compiler
 #endif
 ])], [cxx_compiler="clang++"], [])


code:
diff -up webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp.gmutexlocker webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
--- webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp.gmutexlocker	2015-02-18 15:40:21.851816374 +0100
+++ Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp	2015-02-18 15:45:58.560092191 +0100
@@ -316,7 +316,7 @@ void MediaPlayerPrivateGStreamerBase::mu
 #if USE(ACCELERATED_COMPOSITING) && USE(TEXTURE_MAPPER_GL) && !USE(COORDINATED_GRAPHICS)
 PassRefPtr<BitmapTexture> MediaPlayerPrivateGStreamerBase::updateTexture(TextureMapper* textureMapper)
 {
-    GMutexLocker lock(m_bufferMutex);
+    WebCore::GMutexLocker lock(m_bufferMutex);
     if (!m_buffer)
         return nullptr;

@@ -366,7 +366,7 @@ void MediaPlayerPrivateGStreamerBase::tr
     g_return_if_fail(GST_IS_BUFFER(buffer));

     {
-        GMutexLocker lock(m_bufferMutex);
+        WebCore::GMutexLocker lock(m_bufferMutex);
         gst_buffer_replace(&m_buffer, buffer);
     }

@@ -398,7 +398,7 @@ void MediaPlayerPrivateGStreamerBase::pa
     if (!m_player->visible())
         return;

-    GMutexLocker lock(m_bufferMutex);
+    WebCore::GMutexLocker lock(m_bufferMutex);
     if (!m_buffer)
         return;

diff -up webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp.gmutexlocker webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
diff -up webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp.gmutexlocker webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp
--- webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp.gmutexlocker	2015-02-18 15:16:11.995228731 +0100
+++ Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp	2015-02-18 15:45:42.686843477 +0100
@@ -118,7 +118,7 @@ static gboolean webkitVideoSinkTimeoutCa
     WebKitVideoSink* sink = reinterpret_cast<WebKitVideoSink*>(data);
     WebKitVideoSinkPrivate* priv = sink->priv;

-    GMutexLocker lock(priv->bufferMutex);
+    WebCore::GMutexLocker lock(priv->bufferMutex);
     GstBuffer* buffer = priv->buffer;
     priv->buffer = 0;
     priv->timeoutId = 0;
@@ -140,7 +140,7 @@ static GstFlowReturn webkitVideoSinkRend
     WebKitVideoSink* sink = WEBKIT_VIDEO_SINK(baseSink);
     WebKitVideoSinkPrivate* priv = sink->priv;

-    GMutexLocker lock(priv->bufferMutex);
+    WebCore::GMutexLocker lock(priv->bufferMutex);

     if (priv->unlocked)
         return GST_FLOW_OK;
@@ -279,7 +279,7 @@ static void webkitVideoSinkGetProperty(G

 static void unlockBufferMutex(WebKitVideoSinkPrivate* priv)
 {
-    GMutexLocker lock(priv->bufferMutex);
+    WebCore::GMutexLocker lock(priv->bufferMutex);

     if (priv->buffer) {
         gst_buffer_unref(priv->buffer);
@@ -305,7 +305,7 @@ static gboolean webkitVideoSinkUnlockSto
     WebKitVideoSinkPrivate* priv = WEBKIT_VIDEO_SINK(baseSink)->priv;

     {
-        GMutexLocker lock(priv->bufferMutex);
+        WebCore::GMutexLocker lock(priv->bufferMutex);
         priv->unlocked = false;
     }

@@ -330,7 +330,7 @@ static gboolean webkitVideoSinkStart(Gst
 {
     WebKitVideoSinkPrivate* priv = WEBKIT_VIDEO_SINK(baseSink)->priv;

-    GMutexLocker lock(priv->bufferMutex);
+    WebCore::GMutexLocker lock(priv->bufferMutex);
     priv->unlocked = false;
     return TRUE;
 }
diff -up webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp.gmutexlocker webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
--- webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp.gmutexlocker	2015-02-18 15:16:40.954678407 +0100
+++ Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp	2015-02-18 15:45:19.567481225 +0100
@@ -346,7 +346,7 @@ static void webKitWebSrcSetProperty(GObj

     switch (propID) {
     case PROP_IRADIO_MODE: {
-        GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+        WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
         priv->iradioMode = g_value_get_boolean(value);
         break;
     }
@@ -364,7 +364,7 @@ static void webKitWebSrcGetProperty(GObj
     WebKitWebSrc* src = WEBKIT_WEB_SRC(object);
     WebKitWebSrcPrivate* priv = src->priv;

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     switch (propID) {
     case PROP_IRADIO_MODE:
         g_value_set_boolean(value, priv->iradioMode);
@@ -417,7 +417,7 @@ static gboolean webKitWebSrcStop(WebKitW

     ASSERT(isMainThread());

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));

     bool seeking = priv->seekID;

@@ -476,7 +476,7 @@ static gboolean webKitWebSrcStart(WebKit

     ASSERT(isMainThread());

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));

     priv->startID = 0;
     priv->corsAccessCheck = CORSNoCheck;
@@ -573,7 +573,7 @@ static GstStateChangeReturn webKitWebSrc
         return ret;
     }

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     switch (transition) {
     case GST_STATE_CHANGE_READY_TO_PAUSED:
         GST_DEBUG_OBJECT(src, "READY->PAUSED");
@@ -604,7 +604,7 @@ static gboolean webKitWebSrcQueryWithPar
         gst_query_parse_duration(query, &format, NULL);

         GST_DEBUG_OBJECT(src, "duration query in format %s", gst_format_get_name(format));
-        GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+        WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
         if (format == GST_FORMAT_BYTES && src->priv->size > 0) {
             gst_query_set_duration(query, format, src->priv->size);
             result = TRUE;
@@ -612,7 +612,7 @@ static gboolean webKitWebSrcQueryWithPar
         break;
     }
     case GST_QUERY_URI: {
-        GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+        WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
         gst_query_set_uri(query, src->priv->uri);
         result = TRUE;
         break;
@@ -653,7 +653,7 @@ static gchar* webKitWebSrcGetUri(GstURIH
     WebKitWebSrc* src = WEBKIT_WEB_SRC(handler);
     gchar* ret;

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     ret = g_strdup(src->priv->uri);
     return ret;
 }
@@ -668,7 +668,7 @@ static gboolean webKitWebSrcSetUri(GstUR
         return FALSE;
     }

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));

     g_free(priv->uri);
     priv->uri = 0;
@@ -704,7 +704,7 @@ static gboolean webKitWebSrcNeedDataMain

     ASSERT(isMainThread());

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     // already stopped
     if (!priv->needDataID)
         return FALSE;
@@ -725,7 +725,7 @@ static void webKitWebSrcNeedDataCb(GstAp

     GST_DEBUG_OBJECT(src, "Need more data: %u", length);

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     if (priv->needDataID || !priv->paused) {
         return;
     }
@@ -739,7 +739,7 @@ static gboolean webKitWebSrcEnoughDataMa

     ASSERT(isMainThread());

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     // already stopped
     if (!priv->enoughDataID)
         return FALSE;
@@ -760,7 +760,7 @@ static void webKitWebSrcEnoughDataCb(Gst

     GST_DEBUG_OBJECT(src, "Have enough data");

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     if (priv->enoughDataID || priv->paused) {
         return;
     }
@@ -774,7 +774,7 @@ static gboolean webKitWebSrcSeekMainCb(W

     ASSERT(isMainThread());

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     // already stopped
     if (!priv->seekID)
         return FALSE;
@@ -792,7 +792,7 @@ static gboolean webKitWebSrcSeekDataCb(G
     WebKitWebSrcPrivate* priv = src->priv;

     GST_DEBUG_OBJECT(src, "Seeking to offset: %" G_GUINT64_FORMAT, offset);
-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     if (offset == priv->offset && priv->requestedOffset == priv->offset)
         return TRUE;

@@ -811,7 +811,7 @@ static gboolean webKitWebSrcSeekDataCb(G
 void webKitWebSrcSetMediaPlayer(WebKitWebSrc* src, WebCore::MediaPlayer* player)
 {
     ASSERT(player);
-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     src->priv->player = player;
 }

@@ -841,7 +841,7 @@ char* StreamingClient::createReadBuffer(

     mapGstBuffer(buffer);

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     priv->buffer = adoptGRef(buffer);
     locker.unlock();

@@ -867,7 +867,7 @@ void StreamingClient::handleResponseRece
         return;
     }

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));

     priv->corsAccessCheck = corsAccessCheck;

@@ -966,7 +966,7 @@ void StreamingClient::handleDataReceived
     WebKitWebSrc* src = WEBKIT_WEB_SRC(m_src);
     WebKitWebSrcPrivate* priv = src->priv;

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));

     GST_LOG_OBJECT(src, "Have %lld bytes of data", priv->buffer ? static_cast<long long>(gst_buffer_get_size(priv->buffer.get())) : length);

@@ -1035,7 +1035,7 @@ void StreamingClient::handleNotifyFinish

     GST_DEBUG_OBJECT(src, "Have EOS");

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     if (!priv->seekID) {
         locker.unlock();
         gst_app_src_end_of_stream(priv->appsrc);
@@ -1194,7 +1194,7 @@ void ResourceHandleStreamingClient::wasB

     GST_ERROR_OBJECT(src, "Request was blocked");

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     uri.reset(g_strdup(src->priv->uri));
     locker.unlock();

@@ -1208,7 +1208,7 @@ void ResourceHandleStreamingClient::cann

     GST_ERROR_OBJECT(src, "Cannot show URL");

-    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
+    WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
     uri.reset(g_strdup(src->priv->uri));
     locker.unlock();

diff -up webkitgtk-2.4.8/Source/WTF/wtf/gobject/GMutexLocker.h.gmutexlocker webkitgtk-2.4.8/Source/WTF/wtf/gobject/GMutexLocker.h


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>webkit-gtk2</Name>
        <Homepage>http://webkitgtk.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2</License>
        <License>LGPLv2.1</License>
        <License>BSD</License>
        <IsA>library</IsA>
        An opensource web browser engine for GTK+ applications
        <Description>The GTK+ port of WebKit is intended to provide a browser component primarily for users of the portable GTK+ UI toolkit on platforms like Linux.</Description>
        <Archive sha1sum="e425ae86084ab6335dadb368c9e8f53600665d54" type="tarxz">http://www.webkitgtk.org/releases/webkitgtk-2.4.11.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>mesa-devel</Dependency>
            <Dependency>gtk-doc</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>ruby-devel</Dependency>
            <Dependency>webp-devel</Dependency>
            <Dependency>cairo-devel</Dependency>
            <Dependency>icu4c-devel</Dependency>
            <Dependency>libXt-devel</Dependency>
            <Dependency>enchant-devel</Dependency>
            <Dependency>sqlite-devel</Dependency>
            <Dependency>geoclue-devel</Dependency>
            <Dependency>libsoup-devel</Dependency>
            <Dependency>fontconfig-devel</Dependency>
            <Dependency>libxslt-devel</Dependency>
            <Dependency>harfbuzz-devel</Dependency>
            <Dependency>libsecret-devel</Dependency>
            <Dependency>libXcomposite-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>gstreamer-next-devel</Dependency>
            <Dependency>gst-libav-next</Dependency>
            <Dependency>gobject-introspection-devel</Dependency>
            <Dependency>gst-plugins-base-next-devel</Dependency>
            <Dependency>gst-plugins-bad-next-devel</Dependency>
            <Dependency>gst-plugins-good-next</Dependency>
            <Dependency>which</Dependency>
            <Dependency>icon-theme-hicolor</Dependency>
            <Dependency>gperf</Dependency>
            <Dependency>libSM-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">install-minibrowser.patch</Patch>
            <Patch level="1">fix-ftbfs-gcc6.patch</Patch>
            <Patch level="1">icu59.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>webkit-gtk2</Name>
        <RuntimeDependencies>
            <Dependency>atk</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>gtk2</Dependency>
            <Dependency>mesa</Dependency>
            <Dependency>webp</Dependency>
            <Dependency>cairo</Dependency>
            <Dependency>icu4c</Dependency>
            <Dependency>libXt</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>pango</Dependency>
            <Dependency>sqlite</Dependency>
            <Dependency>enchant</Dependency>
            <Dependency>geoclue</Dependency>
            <Dependency>libsoup</Dependency>
            <Dependency>libxslt</Dependency>
            <Dependency>harfbuzz</Dependency>
            <Dependency>freetype</Dependency>
            <Dependency>libsecret</Dependency>
            <Dependency>fontconfig</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
            <Dependency>libXdamage</Dependency>
            <Dependency>libXrender</Dependency>
            <Dependency>libXcomposite</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>gstreamer-next</Dependency>
            <Dependency>gst-libav-next</Dependency>
            <Dependency>gst-plugins-bad-next</Dependency>
            <Dependency>gst-plugins-base-next</Dependency>
            <Dependency>gst-plugins-good-next</Dependency>
            <Dependency>gobject-introspection</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>webkit-gtk2-devel</Name>
        <IsA>library</IsA>
        <IsA>data:doc</IsA>
        Development files for GTK+ port of WebKit
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency release="current">webkit-gtk2</Dependency>
            <Dependency>libsoup-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="doc">/usr/share/doc/webkit-gtk/Web*</Path>
            <Path fileType="doc">/usr/share/doc/webkit-gtk2/html</Path>
            <Path fileType="doc">/usr/share/doc/webkit-gtk/JavaScriptCore</Path>
        </Files>
    </Package>

    <History>
        <Update release="5">
            <Date>2018-02-05</Date>
            <Version>2.4.11</Version>
            <Comment>Rebuild for new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2017-02-27</Date>
            <Version>2.4.11</Version>
            <Comment>Rebuild for new toolchain.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-18</Date>
            <Version>2.4.11</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-9</Date>
            <Version>2.4.9</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-05</Date>
            <Version>2.4.9</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<PISI>
    <Name>network.monitor</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 pythonmodules
from pisi.actionsapi import perlmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

shelltools.export("PYTHONDONTWRITEBYTECODE", "1")

MIBS = "host agentx smux \
       ucd-snmp/diskio tcp-mib udp-mib mibII/mta_sendmail \
       ip-mib/ipv4InterfaceTable ip-mib/ipv6InterfaceTable \
       ip-mib/ipAddressPrefixTable/ipAddressPrefixTable \
       ip-mib/ipDefaultRouterTable/ipDefaultRouterTable \
       ip-mib/ipv6ScopeZoneIndexTable ip-mib/ipIfStatsTable \
       sctp-mib rmon-mib etherlike-mib"

def setup():
    autotools.autoreconf("-vfi")
    autotools.configure('--enable-shared \
                         --disable-static \
                         --without-rpm \
                         --with-sys-location=Unknown \
                         --with-sys-contact=root@Unknown \
                         --with-default-snmp-version=3 \
                         --with-logfile=/var/log/snmpd.log \
                         --with-persistent-directory=/var/lib/net-snmp \
                         --with-mib-modules="%s" \
                         --enable-ipv6 \
                         --enable-ucd-snmp-compatibility \
                         --with-openssl \
                         --with-pic \
                         --enable-embedded-perl \
                         --with-libwrap \
                         --enable-as-needed \
                         --without-root-access \
                         --enable-mfd-rewrites \
                         --with-temp-file-pattern="/run/net-snmp/snmp-tmp-XXXXXX" \
                         --enable-local-smux' % MIBS)

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

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

    shelltools.cd("python")
    pythonmodules.compile("--basedir=..")

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

    shelltools.cd("python")
    pythonmodules.install('--skip-build --basedir=..')
    shelltools.cd("..")

    pisitools.insinto("/etc/snmp/", "EXAMPLE.conf", "snmpd.conf.example")

    pisitools.dodir("/var/lib/net-snmp")
    pisitools.dodir("/etc/snmp")

    pisitools.dodoc("AGENT.txt", "ChangeLog", "FAQ", "NEWS", "PORTING", "README", "TODO")

    perlmodules.removePacklist()
    perlmodules.removePodfiles()


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

serviceType = "server"
serviceDesc = _({"en": "Simple Network Management Protocol (SNMP) Daemon",
                 "tr": "Simple Network Management Protocol (SNMP) Servisi"})
serviceConf = "snmpd"

pidfile = "/run/snmpd.pid"

@synchronized
def start():
    startService(command="/usr/sbin/snmpd",
                args="-p %s %s"  % (pidfile, config.get("SNMPD_FLAGS", "")),
                pidfile=pidfile,
                donotify=True)

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

def status():
    return isServiceRunning(pidfile)


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

serviceType = "server"
serviceDesc = _({"en": "Simple Network Management Protocol (SNMP) Trap Daemon",
                 "tr": "Simple Network Management Protocol (SNMP) Trap Servisi"})
serviceConf = "snmptrapd"

pidfile = "/run/snmptrapd.pid"

@synchronized
def start():
    startService(command="/usr/sbin/snmptrapd",
                args="-p %s %s"  % (pidfile, config.get("SNMPTRAPD_FLAGS", "")),
                pidfile=pidfile,
                donotify=True)

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

def status():
    return isServiceRunning(pidfile)


code:
# Initial (empty) options.
SNMPD_FLAGS=""

# Enable connection logging.
#SNMPD_FLAGS="${SNMPD_FLAGS} -a"

# Enable syslog and disable file log.
#SNMPD_FLAGS="${SNMPD_FLAGS} -Lsd -Lf /dev/null"

# Enable agentx socket as /var/agentx/master
# *NOTE* Before uncommenting this, make sure
#        the /var/agentx directory exists.
#SNMPD_FLAGS="${SNMPD_FLAGS} -x /var/agentx/master"


code:
# extra flags to pass to snmptrapd
SNMPTRAPD_FLAGS=""

# ignore authentication failure traps
#SNMPTRAPD_FLAGS="${SNMPTRAPD_FLAGS} -a"

# log messages to specified file
#SNMPTRAPD_FLAGS="${SNMPTRAPD_FLAGS} -Lf /var/log/snmptrapd.log"

# log messages to syslog with the specified facility
# where facility is: 'd' = LOG_DAEMON, 'u' = LOG_USER, [0-7] = LOG_LOCAL[0-7]
#SNMPTRAPD_FLAGS="${SNMPTRAPD_FLAGS} -Ls d"


code:
Index: net-snmp-5.5/snmplib/parse.c
===================================================================
--- net-snmp-5.5.orig/snmplib/parse.c
+++ net-snmp-5.5/snmplib/parse.c
@@ -101,6 +101,7 @@ SOFTWARE.
 #endif

 #include <errno.h>
+#include <locale.h>

 #include <net-snmp/types.h>
 #include <net-snmp/output_api.h>
@@ -4785,6 +4786,8 @@ add_mibdir(const char *dirname)
     char newline;
     struct stat     dir_stat, idx_stat;
     char            tmpstr1[300];
+    char *locale_data = setlocale(LC_CTYPE, "");
+    setlocale(LC_CTYPE, "C");
 #endif

     DEBUGMSGTL(("parse-mibs", "Scanning directory %s\n", dirname));
@@ -4817,6 +4820,7 @@ add_mibdir(const char *dirname)
                     count++;
                 }
                 fclose(ip);
+                setlocale(LC_CTYPE, locale_data);
                 return count;
             } else
                 DEBUGMSGTL(("parse-mibs", "Can't read index\n"));
@@ -4858,11 +4862,13 @@ add_mibdir(const char *dirname)
         closedir(dir);
         if (ip)
             fclose(ip);
+        setlocale(LC_CTYPE, locale_data);
         return (count);
     }
     else
         DEBUGMSGTL(("parse-mibs","cannot open MIB directory %s\n", dirname));

+    setlocale(LC_CTYPE, locale_data);
     return (-1);
 }