[packages/libacrd] - initial (though deprecated)

qboosh qboosh at pld-linux.org
Wed Mar 1 18:07:41 CET 2023


commit 80485ebc5b9f53b3b18bf8f1054a02d525fb7edf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Mar 1 18:09:20 2023 +0100

    - initial (though deprecated)

 accord-includes.patch |  20 +++++++++
 accord-optflags.patch |  46 +++++++++++++++++++
 libacrd.spec          | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 186 insertions(+)
---
diff --git a/libacrd.spec b/libacrd.spec
new file mode 100644
index 0000000..a6d556d
--- /dev/null
+++ b/libacrd.spec
@@ -0,0 +1,120 @@
+Summary:	Accord - coordination service focusing on write-intensive workloads
+Summary(pl.UTF-8):	Accord - usługa koordynująca skupiająca się na obciążeniu zapisem
+# NOTE: project name is accord, but it's too common, so use library name as package name
+Name:		libacrd
+# grep VERSION Makefile
+Version:	0.0.1
+%define	gitref	1ee1b413be67a48e4de133e3e82bbef52aac9df2
+%define	snap	20121229
+Release:	0.%{snap}.1
+License:	LGPL v2+
+Group:		Libraries
+Source0:	https://github.com/collie/accord/archive/%{gitref}/accord-%{snap}.tar.gz
+# Source0-md5:	f278c0bb969d483f6dbf2541df66027a
+Patch0:		accord-optflags.patch
+Patch1:		accord-includes.patch
+# original project page, dead
+#URL:		http://www.osrg.net/accord/
+URL:		https://github.com/collie/accord
+BuildRequires:	corosync-devel
+BuildRequires:	db-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Accord is a coordination service (like ZooKeeper). Features:
+- Accord focuses on write-intensive workloads unlike ZooKeeper.
+  ZooKeeper forwards all write requests to a master server. It can be
+  bottleneck in write-intensive workloads.
+- More flexible transaction support: not only write, del operations,
+  but also cmp, copy, read operations are supported in transaction
+  operations.
+- In-memory mode and persistent mode support.
+- Message size is unbounded, and partial update is supported.
+
+NOTE: Now, this project is marked as deprecated, because it has been
+observed that write-intensive workload is much less important than
+read-intensive workload for coordination service.
+
+Please use ZooKeeper.
+
+%description -l pl.UTF-8
+Accord to usługa koordynująca (podobna do ZooKeepera). Cechy:
+- Accord w przeciwieństwie do ZooKeepera skupia się na obciążeniu
+  zapisem. ZooKeeper przekierowuje wszystkie żądania zapisu do
+  serwera nadrzędnego. Może to być wąskim gardłem przy dużych
+  obciążeniach zapisem. 
+- Bardziej elastyczna obsługa transakcji: w operacjach transakcyjnych
+  są obsługiwane nie tylko operacje write oraz del, ale także cmp,
+  copy, read.
+- Obsługa trybu pracy w pamięci i trwałego.
+- Rozmiar komunikatów bez ograniczeń, obsługiwane są częściowe
+  uaktualnienia.
+
+UWAGA: Obecnie projekt jest oznaczony jako przestarzały, ponieważ
+zaobserwowano, że dla usługi koordynującej obciążenie zapisem jest
+dużo mniej ważne, niż obciążenie odczytem.
+
+Prosimy używać ZooKeepera.
+
+%package devel
+Summary:	Header files for libacrd library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libacrd
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for libacrd library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libacrd.
+
+%package static
+Summary:	Static libacrd library
+Summary(pl.UTF-8):	Statyczna biblioteka libacrd
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libacrd library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libacrd.
+
+%prep
+%setup -q -n accord-%{gitref}
+%patch0 -p1
+%patch1 -p1
+
+%build
+CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+%{__make} \
+	CC="%{__cc}" \
+	libdir=%{_libdir}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README TODO
+%attr(755,root,root) %{_sbindir}/conductor
+%attr(755,root,root) %{_libdir}/libacrd.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/accord.h
+%{_includedir}/accord_proto.h
+%{_pkgconfigdir}/libacrd.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libacrd.a
diff --git a/accord-includes.patch b/accord-includes.patch
new file mode 100644
index 0000000..dff0c18
--- /dev/null
+++ b/accord-includes.patch
@@ -0,0 +1,20 @@
+--- accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/libacrd/libacrd.c.orig	2012-12-28 01:51:03.000000000 +0100
++++ accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/libacrd/libacrd.c	2023-03-01 16:18:05.580265900 +0100
+@@ -27,6 +27,7 @@
+ #include <netinet/tcp.h>
+ #include <pthread.h>
+ #include <assert.h>
++#include <sys/uio.h>
+ 
+ #include "list.h"
+ #include "accord.h"
+--- accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/conductor/acrdnet.c.orig	2012-12-28 01:51:03.000000000 +0100
++++ accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/conductor/acrdnet.c	2023-03-01 16:19:12.193246360 +0100
+@@ -18,6 +18,7 @@
+ #include <stdint.h>
+ #include <assert.h>
+ #include <errno.h>
++#include <sys/uio.h>
+ 
+ #include "accord_proto.h"
+ #include "list.h"
diff --git a/accord-optflags.patch b/accord-optflags.patch
new file mode 100644
index 0000000..37b98f2
--- /dev/null
+++ b/accord-optflags.patch
@@ -0,0 +1,46 @@
+--- accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/conductor/Makefile.orig	2012-12-28 01:51:03.000000000 +0100
++++ accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/conductor/Makefile	2023-03-01 16:09:01.936545405 +0100
+@@ -1,6 +1,6 @@
+ sbindir ?= $(PREFIX)/sbin
+ 
+-CFLAGS += -g -O3 -Wall -Wstrict-prototypes -I../include
++CFLAGS += -Wall -Wstrict-prototypes -I../include
+ CFLAGS += -D_GNU_SOURCE -DNDEBUG
+ LIBS += -lpthread -ldb -lcpg
+ 
+--- accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/libacrd/Makefile.orig	2012-12-28 01:51:03.000000000 +0100
++++ accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/libacrd/Makefile	2023-03-01 16:10:47.725414609 +0100
+@@ -1,6 +1,6 @@
+ libdir ?= $(PREFIX)/lib
+ 
+-CFLAGS += -g -O3 -Wall -Wstrict-prototypes -I../include
++CFLAGS += -Wall -Wstrict-prototypes -I../include
+ CFLAGS += -D_GNU_SOURCE -DNDEBUG -fPIC
+ 
+ LIBRARIES = libacrd.a libacrd.so
+--- accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/lib/Makefile.orig	2012-12-28 01:51:03.000000000 +0100
++++ accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/lib/Makefile	2023-03-01 16:10:56.989264214 +0100
+@@ -1,4 +1,4 @@
+-CFLAGS += -g -O3 -Wall -Wstrict-prototypes -I../include
++CFLAGS += -Wall -Wstrict-prototypes -I../include
+ CFLAGS += -D_GNU_SOURCE -DNDEBUG
+ 
+ .PHONY:clean
+--- accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/test/Makefile.orig	2012-12-28 01:51:03.000000000 +0100
++++ accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/test/Makefile	2023-03-01 16:11:07.389254303 +0100
+@@ -1,4 +1,4 @@
+-CFLAGS += -g -O3 -Wall -Wstrict-prototypes -I../include
++CFLAGS += -Wall -Wstrict-prototypes -I../include
+ CFLAGS += -D_GNU_SOURCE
+ CFLAGS += $(shell pkg-config --cflags glib-2.0)
+ LIBS += -lpthread
+--- accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/apps/queue/Makefile.orig	2012-12-28 01:51:03.000000000 +0100
++++ accord-1ee1b413be67a48e4de133e3e82bbef52aac9df2/apps/queue/Makefile	2023-03-01 16:19:54.939684250 +0100
+@@ -1,6 +1,6 @@
+ sbindir ?= $(PREFIX)/sbin
+ 
+-CFLAGS += -g -O3 -Wall -Wstrict-prototypes -I../../include
++CFLAGS += -Wall -Wstrict-prototypes -I../../include
+ CFLAGS += -D_GNU_SOURCE -DNDEBUG
+ LIBS += -L../../libacrd -lpthread -lacrd
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libacrd.git/commitdiff/80485ebc5b9f53b3b18bf8f1054a02d525fb7edf



More information about the pld-cvs-commit mailing list