pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/librelp Import librelp 1.2.12 as devel/librelp.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b020b3fa6925
branches:  trunk
changeset: 358486:b020b3fa6925
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Mon Feb 13 18:33:24 2017 +0000

description:
Import librelp 1.2.12 as devel/librelp.

librelp is a core protocol library for RELP, the "reliable event
logging protocol". It was created to provide ultra-reliable
delivery of syslog messages and is quite good at that.

diffstat:

 devel/librelp/DESCR                   |   3 ++
 devel/librelp/Makefile                |  19 +++++++++++++++
 devel/librelp/PLIST                   |   4 +++
 devel/librelp/distinfo                |   7 +++++
 devel/librelp/patches/patch-src_tcp.c |  42 +++++++++++++++++++++++++++++++++++
 5 files changed, 75 insertions(+), 0 deletions(-)

diffs (95 lines):

diff -r e665d5085897 -r b020b3fa6925 devel/librelp/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/librelp/DESCR       Mon Feb 13 18:33:24 2017 +0000
@@ -0,0 +1,3 @@
+librelp is a core protocol library for RELP, the "reliable event
+logging protocol". It was created to provide ultra-reliable
+delivery of syslog messages and is quite good at that.
diff -r e665d5085897 -r b020b3fa6925 devel/librelp/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/librelp/Makefile    Mon Feb 13 18:33:24 2017 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2017/02/13 18:33:24 fhajny Exp $
+
+DISTNAME=      librelp-1.2.12
+CATEGORIES=    devel
+MASTER_SITES=  http://download.rsyslog.com/librelp/
+
+MAINTAINER=    filip%joyent.com@localhost
+HOMEPAGE=      http://www.librelp.com/
+COMMENT=       Reliable Event Logging Protocol core library
+LICENSE=       gnu-gpl-v3
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL=   yes
+USE_TOOLS+=    pkg-config
+
+PKGCONFIG_OVERRIDE+=   relp.pc.in
+
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r e665d5085897 -r b020b3fa6925 devel/librelp/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/librelp/PLIST       Mon Feb 13 18:33:24 2017 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2017/02/13 18:33:24 fhajny Exp $
+include/librelp.h
+lib/librelp.la
+lib/pkgconfig/relp.pc
diff -r e665d5085897 -r b020b3fa6925 devel/librelp/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/librelp/distinfo    Mon Feb 13 18:33:24 2017 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2017/02/13 18:33:24 fhajny Exp $
+
+SHA1 (librelp-1.2.12.tar.gz) = 7582992279eb63012e44208813a672a586b5ab55
+RMD160 (librelp-1.2.12.tar.gz) = de4ce5d7e0faed845d1398e3f90d0ee042419644
+SHA512 (librelp-1.2.12.tar.gz) = bfc38882404e06c047bdabd203d71beba67bc5a717d2d6733863f15f0a3a09b4a792a628a1653c102c828fde7ff67cc8ade637de785399ab48a68605b23a72ed
+Size (librelp-1.2.12.tar.gz) = 437945 bytes
+SHA1 (patch-src_tcp.c) = 088973b11f649f6815ccf9c734f89763d520c25b
diff -r e665d5085897 -r b020b3fa6925 devel/librelp/patches/patch-src_tcp.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/librelp/patches/patch-src_tcp.c     Mon Feb 13 18:33:24 2017 +0000
@@ -0,0 +1,42 @@
+$NetBSD: patch-src_tcp.c,v 1.1 2017/02/13 18:33:24 fhajny Exp $
+
+Improve portability, fix build on SunOS and BSD.
+
+--- src/tcp.c.orig     2016-07-07 11:24:53.000000000 +0000
++++ src/tcp.c
+@@ -653,7 +653,7 @@ EnableKeepAlive(const relpTcp_t *__restr
+       if(pSrv->iKeepAliveProbes > 0) {
+               optval = pSrv->iKeepAliveProbes;
+               optlen = sizeof(optval);
+-              ret = setsockopt(sock, SOL_TCP, TCP_KEEPCNT, &optval, optlen);
++              ret = setsockopt(sock, IPPROTO_TCP, TCP_KEEPCNT, &optval, optlen);
+       } else {
+               ret = 0;
+       }
+@@ -669,7 +669,7 @@ EnableKeepAlive(const relpTcp_t *__restr
+       if(pSrv->iKeepAliveTime > 0) {
+               optval = pSrv->iKeepAliveTime;
+               optlen = sizeof(optval);
+-              ret = setsockopt(sock, SOL_TCP, TCP_KEEPIDLE, &optval, optlen);
++              ret = setsockopt(sock, IPPROTO_TCP, TCP_KEEPIDLE, &optval, optlen);
+       } else {
+               ret = 0;
+       }
+@@ -685,7 +685,7 @@ EnableKeepAlive(const relpTcp_t *__restr
+       if(pSrv->iKeepAliveIntvl > 0) {
+               optval = pSrv->iKeepAliveIntvl;
+               optlen = sizeof(optval);
+-              ret = setsockopt(sock, SOL_TCP, TCP_KEEPINTVL, &optval, optlen);
++              ret = setsockopt(sock, IPPROTO_TCP, TCP_KEEPINTVL, &optval, optlen);
+       } else {
+               ret = 0;
+       }
+@@ -1548,7 +1548,7 @@ static inline void
+ setCORKopt(int sock, int onOff)
+ {
+ #if defined(TCP_CORK)
+-      setsockopt(sock, SOL_TCP, TCP_CORK, &onOff, sizeof (onOff));
++      setsockopt(sock, IPPROTO_TCP, TCP_CORK, &onOff, sizeof (onOff));
+ #elif defined(TCP_NOPUSH)
+       setsockopt(sock, IPPROTO_TCP, TCP_NOPUSH, &onOff, sizeof (onOff));
+ #endif



Home | Main Index | Thread Index | Old Index