code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>freerdp</Name>
        <Homepage>http://www.freerdp.com</Homepage>
        <Packager>
            <Name>Aydın Demirel</Name>
            <Email>aydin.demirel@pisilinux.org</Email>
        </Packager>
        <License>ASF</License>
        <IsA>app:console</IsA>
        <Summary>A Remote Desktop Implementation</Summary>
        <Description>FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under Apacle License.</Description>
        <Archive sha1sum="53cd2a8992a1e2c05978ab2083a12ac573985df2" type="targz">https://github.com/FreeRDP/FreeRDP/archive/6001cb710dc67eb8811362b7bf383754257a902b/FreeRDP-6001cb710dc67eb8811362b7bf383754257a902b.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>cups-devel</Dependency>
            <Dependency>ffmpeg-devel</Dependency>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>libXinerama-devel</Dependency>
            <Dependency>xmlto</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libXi-devel</Dependency>
            <Dependency>libXcursor-devel</Dependency>
            <Dependency>libxkbcommon-devel</Dependency>
	        <Dependency>libxkbfile-devel</Dependency>
            <Dependency>libXv-devel</Dependency>
            <Dependency>libXrandr-devel</Dependency>
            <Dependency>gstreamer-next-devel</Dependency>
            <Dependency>gst-plugins-base-next-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>cmake</Dependency>
            <Dependency>libxslt</Dependency>
            <Dependency>util-linux</Dependency>
        </BuildDependencies>
        <Patches>
<!--             <Patch level="1">ffmpeg2.0.patch</Patch> -->
<!--             <Patch level="1">patch_numblock.patch</Patch> -->
        </Patches>
    </Source>

    <Package>
        <Name>freerdp</Name>
        <RuntimeDependencies>
            <Dependency>glib2</Dependency>
            <Dependency>libXi</Dependency>
            <Dependency>libXv</Dependency>
            <Dependency>ffmpeg</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libXext</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>alsa-lib</Dependency>
            <Dependency>libXfixes</Dependency>
            <Dependency>libXcursor</Dependency>
            <Dependency>libXrender</Dependency>
            <Dependency>libxkbfile</Dependency>
            <Dependency>libXinerama</Dependency>
            <Dependency>gstreamer-next</Dependency>
            <Dependency>gst-plugins-base-next</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="lib">/usr/lib</Path>
            <Path fileType="data">/usr/share/freerdp</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>freerdp-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">freerdp</Dependency>
            <Dependency>openssl-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="lib">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-03-01</Date>
            <Version>2.0_20170201</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-14</Date>
            <Version>2.0</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.0.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-01-01</Date>
            <Version>1.0.2</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>freerdp</Name>
        <Summary xml:lang="tr">Bir uzak masaüstü protokol uygulaması</Summary>
        <Description xml:lang="tr">FreeRDP Apache lisansı altında dağıtılan, Uzak Masaüstü Uygulamasının (RDP) özgür bir uygulamasıdır.</Description>
    </Source>
</PISI>

repo_name: ayhanyalcinsoy/main


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

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

def setup():
    autotools.configure()

    # for remove unused
    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")

def build():
    autotools.make()

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>geoclue</Name>
        <Homepage>http://www.freedesktop.org/wiki/Software/GeoClue</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2</License>
        <PartOf>network.misc</PartOf>
        <IsA>library</IsA>
        The Geoinformation Service.
        <Description>Geoclue is a modular geoinformation service built on top of the D-Bus messaging system.</Description>
        <BuildDependencies>

            <Dependency>dbus-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>dbus-glib-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>libxslt</Dependency>
            <Dependency>NetworkManager-devel</Dependency>
        </BuildDependencies>
        <Archive sha1sum="32958b36e679c9fb9b35b25d29c43d5ae6a0be27" type="targz">http://people.freedesktop.org/~hadess/geoclue-0.12.99.tar.gz</Archive>
        <Patches/>
    </Source>

    <Package>
        <Name>geoclue</Name>
        <RuntimeDependencies>

            <Dependency>glib2</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>dbus-glib</Dependency>

            <Dependency>NetworkManager</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/</Path>
            <Path fileType="data">/usr/share/</Path>
            <Path fileType="executable">/usr/libexec/</Path>
        </Files>
    </Package>

    <Package>
        <Name>geoclue-devel</Name>
        geoclue için geliştirme dosyaları
        <RuntimeDependencies>
            <Dependency release="current">geoclue</Dependency>
            <Dependency>dbus-glib-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/geoclue</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-07-30</Date>
            <Version>0.12.99</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-02-28</Date>
            <Version>0.12.99</Version>
            <Comment>Rebuild for new Toolchain.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.12.99</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-27</Date>
            <Version>0.12.99</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>geoclue</Name>
        The Geoinformation Service.
        <Description xml:lang="en">Geoclue is a modular geoinformation service built on top of the D-Bus messaging system.</Description>
    </Source>

    <Package>
        <Name>geoclue-devel</Name>
        geoclue 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 build():
    autotools.make("USE_NETTLE=no USE_GNUTLS=no CCOPT='%s -fpie' CC=%s" % (get.CFLAGS(), get.CC()))

def install():
    pisitools.dobin("ping")

    for app in ["clockdiff", "rarpd", "tftpd", "arping", "rdisc", "tracepath", "traceroute6"]:
        pisitools.dosbin(app)

    # We will not need these if we set cap on postInstall like Fedora
    shelltools.chmod("%s/usr/bin/ping" % get.installDIR(), 04711)
    #shelltools.chmod("%s/usr/bin/ping6" % get.installDIR(), 04711)

    pisitools.dodoc("RELNOTES")


code:
--- iputils/rarpd.c.mps	2004-06-10 15:27:01.000000000 +0200
+++ iputils/rarpd.c	2004-06-10 15:26:29.000000000 +0200
@@ -42,7 +42,9 @@ int listen_arp;
 char *ifname;
 char *tftp_dir = "/etc/tftpboot";

+#ifndef __UCLIBC__
 extern int ether_ntohost(char *name, unsigned char *ea);
+#endif
 void usage(void) __attribute__((noreturn));

 struct iflink
@@ -305,7 +307,11 @@ struct rarp_map *rarp_lookup(int ifindex
 				6,
 			};

+#ifndef __UCLIBC__
 			if (ether_ntohost(ename, lladdr) != 0 ||
+#else
+			if (
+#endif
 			    (hp = gethostbyname(ename)) == NULL) {
 				if (verbose)
 					syslog(LOG_INFO, "not found in /etc/ethers");


code:
--- a/doc/Makefile	2007-11-27 02:57:27.000000000 +0200
+++ b/doc/Makefile	2007-11-27 04:55:23.000000000 +0200
@@ -13,25 +13,17 @@
 # So, scope it to a temporary dir and clean all after each run.

 $(HTMLFILES): index.db
-	@-rm -rf tmp.db2html
-	@mkdir tmp.db2html
-	@set -e; cd tmp.db2html; docbook2html ../$< ; mv *.html ..
-	@-rm -rf tmp.db2html
+	@docbook2html $<

 iputils.html: iputils.db
-	@-rm -rf tmp.db2html
-	@mkdir tmp.db2html
-	@set -e; cd tmp.db2html; docbook2html -u -o html ../$< ; mv html/$@ ..
-	@-rm -rf tmp.db2html
+	@docbook2html -u $<

 # docbook2man produces utterly ugly output and I did not find
 # any way to customize this but hacking backend perl script a little.
 # Well, hence...

 $(MANFILES): index.db
-	@-mkdir tmp.db2man
-	@set -e; cd tmp.db2man; nsgmls ../$< | sgmlspl ../docbook2man-spec.pl ;	mv $@ ..
-	@-rm -rf tmp.db2man
+	@nsgmls $< |sgmlspl docbook2man-spec.pl

 clean:
 	@rm -rf $(MANFILES) $(HTMLFILES) iputils.html tmp.db2html tmp.db2man


code:
--- iputils/ping_common.c.countermeasures	Tue May 21 10:06:05 2002
+++ iputils/ping_common.c	Tue May 21 10:12:42 2002
@@ -628,7 +628,8 @@
 		tvsub(tv, &tmp_tv);
 		triptime = tv->tv_sec * 1000000 + tv->tv_usec;
 		if (triptime < 0) {
-			fprintf(stderr, "Warning: time of day goes back (%ldus), taking countermeasures.\n", triptime);
+			if (options & F_VERBOSE)
+				fprintf(stderr, "Warning: time of day goes back (%ldus), taking countermeasures.\n", triptime);
 			triptime = 0;
 			if (!(options & F_LATENCY)) {
 				gettimeofday(tv, NULL);


code:
--- iputils-ss021109-vanilla/ping.c	Thu Nov  7 23:53:21 2002
+++ iputils/ping.c	Sun Jan 12 03:39:24 2003
@@ -285,6 +285,9 @@
 						perror("ping: IP_MULTICAST_IF");
 						exit(2);
 					}
+				} else if (icmp_sock >= 0) {
+					/* We possible tried to SO_BINDTODEVICE() a subinterface like 'eth0:1' */
+					perror("Warning: cannot bind to specified iface, falling back");
 				}
 			}
 		}


code:
diff -up iputils-s20070202/ping6.c.flowlabel iputils-s20070202/ping6.c
--- iputils-s20070202/ping6.c.flowlabel	2008-02-01 11:10:53.000000000 +0100
+++ iputils-s20070202/ping6.c	2008-02-01 11:16:47.000000000 +0100
@@ -86,6 +86,10 @@ char copyright[] =
 #define SOL_ICMPV6 IPPROTO_ICMPV6
 #endif

+#ifndef IVP6_FLOWINFO_SEND
+#define IPV6_FLOWINFO_SEND	33
+#endif
+
 /* RFC3542 */
 #ifndef ICMP6_DST_UNREACH_BEYONDSCOPE
 #define ICMP6_DST_UNREACH_BEYONDSCOPE ICMP6_DST_UNREACH_NOTNEIGHBOR


code:
diff -up iputils-s20100418/tracepath6.c.convtoint iputils-s20100418/tracepath6.c
--- iputils-s20100418/tracepath6.c.convtoint	2010-04-23 11:28:15.294593391 +0200
+++ iputils-s20100418/tracepath6.c	2010-04-23 11:28:23.544605551 +0200
@@ -89,7 +89,7 @@ void print_host(const char *a, const cha
 	}
 	if (plen >= HOST_COLUMN_SIZE)
 		plen = HOST_COLUMN_SIZE - 1;
-	printf("%*s", HOST_COLUMN_SIZE - plen, "");
+	printf("%*s", HOST_COLUMN_SIZE - (int)plen, "");
 }

 int recverr(int fd, int ttl)
diff -up iputils-s20100418/tracepath.c.convtoint iputils-s20100418/tracepath.c
--- iputils-s20100418/tracepath.c.convtoint	2010-04-23 11:26:20.273555629 +0200
+++ iputils-s20100418/tracepath.c	2010-04-23 11:26:20.281562493 +0200
@@ -77,7 +77,7 @@ void print_host(const char *a, const cha
 	}
 	if (plen >= HOST_COLUMN_SIZE)
 		plen = HOST_COLUMN_SIZE - 1;
-	printf("%*s", HOST_COLUMN_SIZE - plen, "");
+	printf("%*s", HOST_COLUMN_SIZE - (int)plen, "");
 }

 int recverr(int fd, int ttl)


code:
[Unit]
Description=rdisc daemon which discovers routers on the local subnet
After=syslog.target network.target

[Service]
Type=forking
EnvironmentFile=/etc/conf.d/rdisc
ExecStart=/sbin/rdisc $RDISCOPTS

[Install]
WantedBy=multi-user.target


code:
service tftp
{
	socket_type	= dgram
	protocol	= udp
	wait		= yes
	user		= nobody
	server		= /usr/sbin/tftpd
	server_args	= /var/tftpboot
	disable		= yes
}