From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/libtirpc/Config.in | 9 ++++++ package/libtirpc/Makefile | 31 +++++++++++++++++++ package/libtirpc/files/netconfig | 7 +++++ package/libtirpc/ipkg/libtirpc.control | 4 +++ package/libtirpc/patches/patch-Makefile_am | 10 +++++++ package/libtirpc/patches/patch-src_Makefile_am | 20 +++++++++++++ package/libtirpc/patches/patch-src_rpc_soc_c | 41 ++++++++++++++++++++++++++ 7 files changed, 122 insertions(+) create mode 100644 package/libtirpc/Config.in create mode 100644 package/libtirpc/Makefile create mode 100644 package/libtirpc/files/netconfig create mode 100644 package/libtirpc/ipkg/libtirpc.control create mode 100644 package/libtirpc/patches/patch-Makefile_am create mode 100644 package/libtirpc/patches/patch-src_Makefile_am create mode 100644 package/libtirpc/patches/patch-src_rpc_soc_c (limited to 'package/libtirpc') diff --git a/package/libtirpc/Config.in b/package/libtirpc/Config.in new file mode 100644 index 000000000..33d144dd7 --- /dev/null +++ b/package/libtirpc/Config.in @@ -0,0 +1,9 @@ +config ADK_PACKAGE_LIBTIRPC + prompt "libtirpc.......................... A transport independent RPC library" + tristate + default n + help + A transport independent RPC library + + http://libtirpc.sourceforge.net/ + diff --git a/package/libtirpc/Makefile b/package/libtirpc/Makefile new file mode 100644 index 000000000..c9ec41721 --- /dev/null +++ b/package/libtirpc/Makefile @@ -0,0 +1,31 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= libtirpc +PKG_VERSION:= 0.1.11 +PKG_RELEASE:= 2 +PKG_MD5SUM:= c656b7bf47e8bddbdefcd0b6a6f77b71 +MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=libtirpc/} +DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2 + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,LIBTIRPC,libtirpc,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE:= autotool gnu +ifneq (${ADK_COMPILE_NFS_UTILS_WITH_KERBEROS},y) +CONFIGURE_ARGS+= --disable-gss +endif +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +post-install: + ${INSTALL_DIR} ${IDIR_LIBTIRPC}/usr/lib ${IDIR_LIBTIRPC}/etc + ${CP} ${WRKINST}/usr/lib/libtirpc*.so* ${IDIR_LIBTIRPC}/usr/lib/ + ${CP} ./files/netconfig ${IDIR_LIBTIRPC}/etc + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/libtirpc/files/netconfig b/package/libtirpc/files/netconfig new file mode 100644 index 000000000..5cbe4c120 --- /dev/null +++ b/package/libtirpc/files/netconfig @@ -0,0 +1,7 @@ +udp tpi_clts v inet udp - - +tcp tpi_cots_ord v inet tcp - - +udp6 tpi_clts v inet6 udp - - +tcp6 tpi_cots_ord v inet6 tcp - - +rawip tpi_raw - inet - - - +local tpi_cots_ord - loopback - - - +unix tpi_cots_ord - loopback - - - diff --git a/package/libtirpc/ipkg/libtirpc.control b/package/libtirpc/ipkg/libtirpc.control new file mode 100644 index 000000000..2253115a3 --- /dev/null +++ b/package/libtirpc/ipkg/libtirpc.control @@ -0,0 +1,4 @@ +Package: libtirpc +Priority: optional +Section: libs +Description: a transport independent RPC library diff --git a/package/libtirpc/patches/patch-Makefile_am b/package/libtirpc/patches/patch-Makefile_am new file mode 100644 index 000000000..e95e38150 --- /dev/null +++ b/package/libtirpc/patches/patch-Makefile_am @@ -0,0 +1,10 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- libtirpc-0.1.9.orig/Makefile.am 2008-07-09 20:13:20.000000000 +0200 ++++ libtirpc-0.1.9/Makefile.am 2008-12-10 01:02:50.823745058 +0100 +@@ -46,6 +46,3 @@ nobase_include_HEADERS = tirpc/un-namesp + pkgconfigdir=$(libdir)/pkgconfig + pkgconfig_DATA = libtirpc.pc + +-install-exec-local: +- cp -p ./doc/etc_netconfig $(DESTDIR)/etc/netconfig +- chmod 0644 $(DESTDIR)/etc/netconfig diff --git a/package/libtirpc/patches/patch-src_Makefile_am b/package/libtirpc/patches/patch-src_Makefile_am new file mode 100644 index 000000000..9248c173d --- /dev/null +++ b/package/libtirpc/patches/patch-src_Makefile_am @@ -0,0 +1,20 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- libtirpc-0.1.9.orig/src/Makefile.am 2008-07-09 20:13:20.000000000 +0200 ++++ libtirpc-0.1.9/src/Makefile.am 2008-10-27 14:54:13.000000000 +0100 +@@ -20,8 +20,7 @@ libtirpc_la_SOURCES = auth_none.c auth_u + pmap_prot.c pmap_prot2.c pmap_rmt.c rpc_prot.c rpc_commondata.c \ + rpc_callmsg.c rpc_generic.c rpc_soc.c rpcb_clnt.c rpcb_prot.c \ + rpcb_st_xdr.c svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_generic.c \ +- svc_raw.c svc_run.c svc_simple.c svc_vc.c getpeereid.c \ +- auth_time.c auth_des.c authdes_prot.c ++ svc_raw.c svc_run.c svc_simple.c svc_vc.c getpeereid.c + + ## XDR + libtirpc_la_SOURCES += xdr.c xdr_rec.c xdr_array.c xdr_float.c xdr_mem.c xdr_reference.c xdr_stdio.c +@@ -62,5 +61,5 @@ $(libtirpc_la_OBJECTS) :auth_none.c auth + rpcb_st_xdr.c svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_generic.c \ + svc_raw.c svc_run.c svc_simple.c svc_vc.c \ + xdr.c xdr_rec.c xdr_array.c xdr_float.c xdr_mem.c xdr_reference.c xdr_stdio.c \ +- getpeereid.c auth_time.c auth_des.c authdes_prot.c ++ getpeereid.c + endif diff --git a/package/libtirpc/patches/patch-src_rpc_soc_c b/package/libtirpc/patches/patch-src_rpc_soc_c new file mode 100644 index 000000000..6422d507c --- /dev/null +++ b/package/libtirpc/patches/patch-src_rpc_soc_c @@ -0,0 +1,41 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- libtirpc-0.1.9.orig/src/rpc_soc.c 2008-07-09 20:13:20.000000000 +0200 ++++ libtirpc-0.1.9/src/rpc_soc.c 2008-10-28 16:20:59.000000000 +0100 +@@ -480,37 +480,6 @@ clnt_broadcast(prog, vers, proc, xargs, + (resultproc_t) rpc_wrap_bcast, "udp"); + } + +-/* +- * Create the client des authentication object. Obsoleted by +- * authdes_seccreate(). +- */ +-AUTH * +-authdes_create(servername, window, syncaddr, ckey) +- char *servername; /* network name of server */ +- u_int window; /* time to live */ +- struct sockaddr *syncaddr; /* optional hostaddr to sync with */ +- des_block *ckey; /* optional conversation key to use */ +-{ +- AUTH *dummy; +- AUTH *nauth; +- char hostname[NI_MAXHOST]; +- +- if (syncaddr) { +- /* +- * Change addr to hostname, because that is the way +- * new interface takes it. +- */ +- if (getnameinfo(syncaddr, sizeof(syncaddr), hostname, +- sizeof hostname, NULL, 0, 0) != 0) +- goto fallback; +- +- nauth = authdes_seccreate(servername, window, hostname, ckey); +- return (nauth); +- } +-fallback: +- dummy = authdes_seccreate(servername, window, NULL, ckey); +- return (dummy); +-} + + /* + * Create a client handle for a unix connection. Obsoleted by clnt_vc_create() -- cgit v1.2.3