mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
Add new port devel/libsearpc
PR: 193132 Submitted by: JingFeng Yan Searpc is a simple C language RPC framework based on GObject system. Searpc handles the serialization/deserialization part of RPC, the transport part is left to users. The serialization/deserialization uses JSON format via json-glib library. A serialized json object is returned from server to client after executing the RPC function. Each RPC function defined in the server side should take an extra GError argument to report error.
This commit is contained in:
parent
8c04387bda
commit
5619450fbc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=372073
@ -1127,6 +1127,7 @@
|
||||
SUBDIR += librevisa-vxi
|
||||
SUBDIR += libruin
|
||||
SUBDIR += libs11n
|
||||
SUBDIR += libsearpc
|
||||
SUBDIR += libserialport
|
||||
SUBDIR += libserver
|
||||
SUBDIR += libshbuf
|
||||
|
28
devel/libsearpc/Makefile
Normal file
28
devel/libsearpc/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= libsearpc
|
||||
PORTVERSION= 3.0.0
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= yan_jingfeng@yahoo.com
|
||||
COMMENT= Simple RPC framework based on GObject System in C
|
||||
|
||||
LICENSE= GPLv3
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
LIB_DEPENDS= libjansson.so:${PORTSDIR}/devel/jansson \
|
||||
libgobject-2.0.so:${PORTSDIR}/devel/glib20
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= haiwen
|
||||
GH_TAGNAME= v3.0-latest
|
||||
GH_COMMIT= 8998e7b
|
||||
|
||||
USES= autoreconf libtool pathfix pkgconfig python:2
|
||||
USE_LDCONFIG= yes
|
||||
PATHFIX_MAKEFILEIN= Makefile.am
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
INSTALL_TARGET= install-strip
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/libsearpc/distinfo
Normal file
2
devel/libsearpc/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (libsearpc-3.0.0.tar.gz) = cf563519d593be83d05192397ef56b33c6f2c5a105e7d469cc48e465ffdfc010
|
||||
SIZE (libsearpc-3.0.0.tar.gz) = 43293
|
15
devel/libsearpc/files/patch-Makefile.am
Normal file
15
devel/libsearpc/files/patch-Makefile.am
Normal file
@ -0,0 +1,15 @@
|
||||
--- Makefile.am.orig 2014-08-14 11:48:58.000000000 -0400
|
||||
+++ Makefile.am 2014-09-06 03:15:27.906790580 -0400
|
||||
@@ -19,11 +19,7 @@
|
||||
SUBDIRS = lib pysearpc ${MAKE_DEMO} tests
|
||||
|
||||
install-data-local:
|
||||
-if MACOS
|
||||
- sed -i '' -e "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
|
||||
-else
|
||||
- ${SED} -i "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
|
||||
-endif
|
||||
+ ${SED} -i '' "s|(DESTDIR)||g" $(pcfiles)
|
||||
|
||||
dist-hook:
|
||||
git log -1 > $(distdir)/latest_commit
|
10
devel/libsearpc/pkg-descr
Normal file
10
devel/libsearpc/pkg-descr
Normal file
@ -0,0 +1,10 @@
|
||||
Searpc is a simple C language RPC framework based on GObject system.
|
||||
Searpc handles the serialization/deserialization part of RPC, the
|
||||
transport part is left to users.
|
||||
|
||||
The serialization/deserialization uses JSON format via json-glib
|
||||
library. A serialized json object is returned from server to client
|
||||
after executing the RPC function. Each RPC function defined in the
|
||||
server side should take an extra GError argument to report error.
|
||||
|
||||
WWW: https://github.com/haiwen/libsearpc
|
22
devel/libsearpc/pkg-plist
Normal file
22
devel/libsearpc/pkg-plist
Normal file
@ -0,0 +1,22 @@
|
||||
bin/searpc-codegen.py
|
||||
include/searpc-client.h
|
||||
include/searpc-server.h
|
||||
include/searpc-utils.h
|
||||
include/searpc.h
|
||||
lib/libsearpc.a
|
||||
lib/libsearpc.so
|
||||
lib/libsearpc.so.1
|
||||
lib/libsearpc.so.1.0.2
|
||||
%%PYTHON_SITELIBDIR%%/pysearpc/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/pysearpc/__init__.pyc
|
||||
%%PYTHON_SITELIBDIR%%/pysearpc/__init__.pyo
|
||||
%%PYTHON_SITELIBDIR%%/pysearpc/client.py
|
||||
%%PYTHON_SITELIBDIR%%/pysearpc/client.pyc
|
||||
%%PYTHON_SITELIBDIR%%/pysearpc/client.pyo
|
||||
%%PYTHON_SITELIBDIR%%/pysearpc/common.py
|
||||
%%PYTHON_SITELIBDIR%%/pysearpc/common.pyc
|
||||
%%PYTHON_SITELIBDIR%%/pysearpc/common.pyo
|
||||
%%PYTHON_SITELIBDIR%%/pysearpc/server.py
|
||||
%%PYTHON_SITELIBDIR%%/pysearpc/server.pyc
|
||||
%%PYTHON_SITELIBDIR%%/pysearpc/server.pyo
|
||||
libdata/pkgconfig/libsearpc.pc
|
Loading…
Reference in New Issue
Block a user