[packages/ibp] - new
qboosh
qboosh at pld-linux.org
Sun Apr 20 07:48:41 CEST 2014
commit 2d99a28de73e30084512e75c68892826124b865d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Apr 20 07:50:40 2014 +0200
- new
ibp-fhs.patch | 33 ++++++++++++++
ibp-link.patch | 13 ++++++
ibp.spec | 136 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 182 insertions(+)
---
diff --git a/ibp.spec b/ibp.spec
new file mode 100644
index 0000000..6f157bb
--- /dev/null
+++ b/ibp.spec
@@ -0,0 +1,136 @@
+#
+# Conditional build:
+%bcond_without apidocs # do not build and package API docs
+%bcond_without static_libs # don't build static libraries
+#
+Summary: Internet Backplane Protocol libraries
+Summary(pl.UTF-8): Biblioteki protokołu Internet Backplane Protocol
+Name: ibp
+Version: 1.4.0.6
+Release: 1
+License: MIT
+Group: Libraries
+#Source0Download: http://loci.cs.utk.edu/downloads/
+Source0: http://loci.cs.utk.edu/lors/distributions/%{name}-%{version}.tar.gz
+# Source0-md5: b4fd7859f50b35b5404b3ee6f4eddad7
+Patch0: %{name}-fhs.patch
+Patch1: %{name}-link.patch
+URL: http://loci.cs.utk.edu/ibp/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: openssl-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Internet Backplane Protocol (IBP) is middleware for managing and
+using remote storage. It was invented to support Logistical Networking
+in large scale, distributed systems and applications.
+
+%description -l pl.UTF-8
+Protokół IBP (Internet Backplane Protocol) to warstwa pośrednia do
+zarządzania i wykorzystywania zdalnych składowisk danych. Powstał w
+celu obsługi sieci logistycznych na wielką skalę oraz systemów i
+aplikacji rozproszonych.
+
+%package devel
+Summary: Header files for IBP libraries
+Summary(pl.UTF-8): Pliki nagłówkowe bibliotek IBP
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for IBP libraries.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe bibliotek IBP.
+
+%package static
+Summary: Static IBP libraries
+Summary(pl.UTF-8): Statyczne biblioteki IBP
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static IBP libraries.
+
+%description static -l pl.UTF-8
+Statyczne biblioteki IBP.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README doc/{IBP_NFU.pdf,ibpservercfg.pdf}
+%attr(755,root,root) %{_bindir}/DM
+%attr(755,root,root) %{_bindir}/blaster
+%attr(755,root,root) %{_bindir}/blasterd
+%attr(755,root,root) %{_bindir}/clientMCAST
+%attr(755,root,root) %{_bindir}/clientTCP
+%attr(755,root,root) %{_bindir}/ibp-dmtest
+%attr(755,root,root) %{_bindir}/ibp-slm
+%attr(755,root,root) %{_bindir}/ibp-test
+%attr(755,root,root) %{_bindir}/ibp_server_mt
+%attr(755,root,root) %{_bindir}/ibpd-%{version}
+%attr(755,root,root) %{_bindir}/ibpd
+%attr(755,root,root) %{_bindir}/makefs
+%attr(755,root,root) %{_bindir}/mclientTCP
+%attr(755,root,root) %{_bindir}/pmclientTCP
+%attr(755,root,root) %{_bindir}/readfat
+%attr(755,root,root) %{_bindir}/serverMCAST
+%attr(755,root,root) %{_bindir}/serverTCP
+%attr(755,root,root) %{_bindir}/smclientTCP
+%attr(755,root,root) %{_bindir}/tblaster
+%attr(755,root,root) %{_bindir}/tservMCAST
+%attr(755,root,root) %{_libdir}/libibp-%{version}.so
+%attr(755,root,root) %{_libdir}/libmdns.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libmdns.so.0
+%attr(755,root,root) %{_libdir}/libnfuops.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libnfuops.so.0
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ibp.cfg
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nfu.cfg
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libibp.so
+%attr(755,root,root) %{_libdir}/libmdns.so
+%attr(755,root,root) %{_libdir}/libnfuops.so
+%{_libdir}/libibp.la
+%{_libdir}/libmdns.la
+%{_libdir}/libnfuops.la
+%{_includedir}/ibp
+%{_includedir}/ibp.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libibp.a
+%{_libdir}/libmdns.a
+%{_libdir}/libnfuops.a
diff --git a/ibp-fhs.patch b/ibp-fhs.patch
new file mode 100644
index 0000000..7c69449
--- /dev/null
+++ b/ibp-fhs.patch
@@ -0,0 +1,33 @@
+--- ibp-1.4.0.6/etc/Makefile.am.orig 2007-01-19 05:06:53.000000000 +0100
++++ ibp-1.4.0.6/etc/Makefile.am 2014-04-19 23:06:59.728552938 +0200
+@@ -4,7 +4,7 @@
+ IBP_ETC = ibp.cfg nfu.cfg
+ endif
+
+-etcdir=@prefix@/etc
++etcdir=@sysconfdir@
+ etc_DATA = $(IBP_ETC)
+
+ EXTRA_DIST = ibp.cfg.in nfu.cfg.in
+--- ibp-1.4.0.6/etc/ibp.cfg.in.orig 2007-01-19 05:06:53.000000000 +0100
++++ ibp-1.4.0.6/etc/ibp.cfg.in 2014-04-20 07:38:38.781246407 +0200
+@@ -74,7 +74,7 @@
+ # HOSTNAME rod.cs.utk.edu
+
+ # NFUCFGFILE define the NFU configuration file name.
+- NFUCFGFILE @prefix@/etc/nfu.cfg
++ NFUCFGFILE @sysconfdir@/nfu.cfg
+
+ # THREADS define the number of the statically allocated threads in
+ # mutli-thread ibp server
+--- ibp-1.4.0.6/src/ibp_server_lib.c.orig 2008-08-31 04:43:59.000000000 +0200
++++ ibp-1.4.0.6/src/ibp_server_lib.c 2014-04-20 07:43:47.931239964 +0200
+@@ -4541,7 +4541,7 @@
+ fprintf(stderr,"Done\n");
+
+ if ((gc_cfgpath[0] == '\0') && ( gc_cfgname[0] == '\0')) {
+- strcpy (gc_cfgpath, "/home/yong/projects/ibp-1.4.0.alpha/local/etc/");
++ strcpy (gc_cfgpath, "/etc/");
+ }
+ if (gc_cfgname[0] == '\0') {
+ strcpy (gc_cfgname, "ibp.cfg");
diff --git a/ibp-link.patch b/ibp-link.patch
new file mode 100644
index 0000000..0992ec7
--- /dev/null
+++ b/ibp-link.patch
@@ -0,0 +1,13 @@
+--- ibp-1.4.0.6/configure.in.orig 2008-05-28 21:26:42.000000000 +0200
++++ ibp-1.4.0.6/configure.in 2014-04-19 23:18:19.315205441 +0200
+@@ -47,8 +47,8 @@
+ AC_CHECK_LIB(c_r,pthread_create)
+ AC_CHECK_LIB(socket, connect)
+ AC_CHECK_LIB(getpagesize,c)
+-AC_CHECK_LIB(nsl,getaddrinfo)
+-AC_CHECK_LIB(nsl,gethostbyname)
++AC_SEARCH_LIBS(getaddrinfo,nsl)
++AC_SEARCH_LIBS(gethostbyname,nsl)
+ AC_CHECK_LIB(ssl,SSL_free)
+ AC_CHECK_LIB(crypto,X509_NAME_get_text_by_NID)
+ AC_CHECK_LIB(m,pow)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ibp.git/commitdiff/2d99a28de73e30084512e75c68892826124b865d
More information about the pld-cvs-commit
mailing list