Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=c236bb9d3e003e11badd9618444d144feedbad62

commit c236bb9d3e003e11badd9618444d144feedbad62
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Tue Jan 18 13:14:33 2011 +0100

libtirpc-0.2.1-1-i686

- new package (depend for rpcbind, a portmap replacement)

diff --git a/source/lib/libtirpc/FrugalBuild b/source/lib/libtirpc/FrugalBuild
new file mode 100644
index 0000000..d8c830a
--- /dev/null
+++ b/source/lib/libtirpc/FrugalBuild
@@ -0,0 +1,24 @@
+# Compiling Time: 0.13 SBU
+# Maintainer: Miklos Vajna <vmik...@frugalware.org>
+
+pkgname=libtirpc
+pkgver=0.2.1
+pkgrel=1
+pkgdesc="A port of Suns Transport-Independent RPC library to Linux."
+_F_sourceforge_ext=".tar.bz2"
+Finclude sourceforge
+depends=('libgssglue' 'heimdal')
+backup=('etc/netconfig')
+groups=('lib')
+archs=('i686')
+source=($source libtirpc-0.2.1-fortify.patch)
+sha1sums=('ab0188be0eee162ad42cb941257e1615db5387c9' \
+          'c14fcb21e0dfa37fce5b5e23d5a04ddf0090da35')
+
+build()
+{
+       Fbuild
+       Ffilerel doc/etc_netconfig /etc/netconfig
+}
+
+# optimization OK
diff --git a/source/lib/libtirpc/libtirpc-0.2.1-fortify.patch 
b/source/lib/libtirpc/libtirpc-0.2.1-fortify.patch
new file mode 100644
index 0000000..7375bf8
--- /dev/null
+++ b/source/lib/libtirpc/libtirpc-0.2.1-fortify.patch
@@ -0,0 +1,18 @@
+Index: libtirpc-0.2.1/src/getrpcport.c
+===================================================================
+--- libtirpc-0.2.1.orig/src/getrpcport.c
++++ libtirpc-0.2.1/src/getrpcport.c
+@@ -54,11 +54,11 @@ getrpcport(host, prognum, versnum, proto
+
+       if ((hp = gethostbyname(host)) == NULL)
+               return (0);
++      if (hp->h_length != sizeof(addr.sin_addr.s_addr))
++              return (0);
+       memset(&addr, 0, sizeof(addr));
+       addr.sin_family = AF_INET;
+       addr.sin_port =  0;
+-      if (hp->h_length > sizeof(addr))
+-        hp->h_length = sizeof(addr);
+       memcpy(&addr.sin_addr.s_addr, hp->h_addr, (size_t)hp->h_length);
+       /* Inconsistent interfaces need casts! :-( */
+       return (pmap_getport(&addr, (u_long)prognum, (u_long)versnum,
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to