pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/librelp
Module Name: pkgsrc
Committed By: fhajny
Date: Mon Feb 13 18:33:24 UTC 2017
Added Files:
pkgsrc/devel/librelp: DESCR Makefile PLIST distinfo
pkgsrc/devel/librelp/patches: patch-src_tcp.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/librelp/DESCR \
pkgsrc/devel/librelp/Makefile pkgsrc/devel/librelp/PLIST \
pkgsrc/devel/librelp/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/librelp/patches/patch-src_tcp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/librelp/DESCR
diff -u /dev/null pkgsrc/devel/librelp/DESCR:1.1
--- /dev/null Mon Feb 13 18:33:24 2017
+++ pkgsrc/devel/librelp/DESCR Mon Feb 13 18:33:24 2017
@@ -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.
Index: pkgsrc/devel/librelp/Makefile
diff -u /dev/null pkgsrc/devel/librelp/Makefile:1.1
--- /dev/null Mon Feb 13 18:33:24 2017
+++ pkgsrc/devel/librelp/Makefile Mon Feb 13 18:33:24 2017
@@ -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"
Index: pkgsrc/devel/librelp/PLIST
diff -u /dev/null pkgsrc/devel/librelp/PLIST:1.1
--- /dev/null Mon Feb 13 18:33:24 2017
+++ pkgsrc/devel/librelp/PLIST Mon Feb 13 18:33:24 2017
@@ -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
Index: pkgsrc/devel/librelp/distinfo
diff -u /dev/null pkgsrc/devel/librelp/distinfo:1.1
--- /dev/null Mon Feb 13 18:33:24 2017
+++ pkgsrc/devel/librelp/distinfo Mon Feb 13 18:33:24 2017
@@ -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
Index: pkgsrc/devel/librelp/patches/patch-src_tcp.c
diff -u /dev/null pkgsrc/devel/librelp/patches/patch-src_tcp.c:1.1
--- /dev/null Mon Feb 13 18:33:24 2017
+++ pkgsrc/devel/librelp/patches/patch-src_tcp.c Mon Feb 13 18:33:24 2017
@@ -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