commit a37e9318d3826ecd91bc3f164ebb726a6dde86c2 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:58:31 2019 -0400 Package init diff --git a/0001-update-libtirpc-to-enable-tcp-port-listening.patch b/0001-update-libtirpc-to-enable-tcp-port-listening.patch new file mode 100644 index 0000000..c36682c --- /dev/null +++ b/0001-update-libtirpc-to-enable-tcp-port-listening.patch @@ -0,0 +1,38 @@ +From ce60a0505a473a9462af9af40425c9c3400e7385 Mon Sep 17 00:00:00 2001 +From: mouxibo +Date: Thu, 4 Apr 2019 05:30:15 +0000 +Subject: [PATCH] libtirp: update libtirpc to enable tcp port listening + +Change-Id: I1f0b4d12fb80158c50026f76d5c6a5cafb7038e7 +--- + src/rpc_soc.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/src/rpc_soc.c b/src/rpc_soc.c +index 5a6eeb7..bf27673 100644 +--- a/src/rpc_soc.c ++++ b/src/rpc_soc.c +@@ -314,6 +314,8 @@ svc_com_create(fd, sendsize, recvsize, netid) + int madefd = FALSE; + int port; + ++ struct sockaddr_in sin; ++ + if ((nconf = __rpc_getconfip(netid)) == NULL) { + (void) syslog(LOG_ERR, "Could not get %s transport", netid); + return (NULL); +@@ -329,6 +331,11 @@ svc_com_create(fd, sendsize, recvsize, netid) + madefd = TRUE; + } + ++ memset(&sin, 0, sizeof sin); ++ sin.sin_family = AF_INET; ++ bindresvport(fd, &sin); ++ listen(fd, SOMAXCONN); ++ + svc = svc_tli_create(fd, nconf, NULL, sendsize, recvsize); + (void) freenetconfigent(nconf); + if (svc == NULL) { +-- +1.8.3.1 + diff --git a/libtirpc-1.1.4.tar.bz2 b/libtirpc-1.1.4.tar.bz2 new file mode 100644 index 0000000..9c458b6 Binary files /dev/null and b/libtirpc-1.1.4.tar.bz2 differ diff --git a/libtirpc.spec b/libtirpc.spec new file mode 100644 index 0000000..9bc0d97 --- /dev/null +++ b/libtirpc.spec @@ -0,0 +1,67 @@ +Name: libtirpc +Version: 1.1.4 +Release: 1 +Summary: Transport-independent RPC library +License: SISSL and BSD +URL: http://git.linux-nfs.org/?p=steved/libtirpc.git;a=summary +Source0: http://downloads.sourceforge.net/libtirpc/%{name}-%{version}.tar.bz2 +Patch01: 0001-update-libtirpc-to-enable-tcp-port-listening.patch +BuildRequires: automake autoconf libtool pkgconfig krb5-devel + +%description +Libtirpc is a Transport-Independent RPC library for Linux + +%package devel +Summary: Development files for the %{name} +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig man-db + +%description devel +The %{name}-devel package contains development files for %{name}. + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +sh autogen.sh +autoreconf -fisv +%configure +%make_build + +%install +%make_install libdir=/%{_lib} pkgconfigdir=%{_libdir}/pkgconfig +%delete_la + +mv %{buildroot}%{_mandir}/man3 %{buildroot}%{_mandir}/man3t + +%ldconfig_scriptlets + +%post devel +%postun devel + +%files +%defattr(-,root,root) +%doc AUTHORS +%license COPYING +/%{_lib}/*.so.* +%config(noreplace)%{_sysconfdir}/netconfig +%config(noreplace)%{_sysconfdir}/bindresvport.blacklist + +%files devel +%defattr(-,root,root) +%{!?_licensedir:%global license %%doc} +/%{_lib}/*.a +/%{_lib}/*.so +%{_libdir}/pkgconfig/*.pc +%{_includedir}/tirpc/* + +%files help +%defattr(-,root,root) +%doc ChangeLog NEWS README +%{_mandir}/*/* + +%changelog +* Thu Aug 29 2019 openEuler Buildteam - 1.1.4-1 +- Package init