radsecproxy: bump to 1.7.1
authorEneas U de Queiroz <redacted>
Mon, 9 Jul 2018 13:11:05 +0000 (10:11 -0300)
committerToke Høiland-Jørgensen <redacted>
Mon, 9 Jul 2018 13:19:23 +0000 (15:19 +0200)
Version 1.7.1 brings compatibility with openssl 1.1.0.

Signed-off-by: Eneas U de Queiroz <redacted>
net/radsecproxy/Makefile
net/radsecproxy/patches/100-fix-debug-tid.patch [new file with mode: 0644]
net/radsecproxy/patches/100-missing-return.patch [deleted file]
net/radsecproxy/patches/200-logdest-on-foreground.patch

index 2a37ad3b605aa6e398267d1f7cc5ab9be3267992..340000067f5a088ed78af8f4a0ac7b6de8f63a12 100644 (file)
@@ -8,16 +8,17 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=radsecproxy
-PKG_VERSION:=1.6.8
+PKG_VERSION:=1.7.1
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=http://software.uninett.no/radsecproxy/
-PKG_HASH:=9923203c3aaf17e31d5bc7a61b99e5a6aa0ef19a8397616f6ef9c0c41948f7d2
+PKG_SOURCE_URL:=https://github.com/radsecproxy/radsecproxy/releases/download/$(PKG_VERSION)/
+PKG_HASH:=49fd644684c6ea502d896d31e29f1acf2ae9b61b02b231a8ffd0cec11857dd07
 
 PKG_LICENSE:=GPL-2.0+
 PKG_LICENSE_FILES:=LICENSE
 
+PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
@@ -25,9 +26,9 @@ include $(INCLUDE_DIR)/package.mk
 define Package/radsecproxy
   SECTION:=net
   CATEGORY:=Network
-  DEPENDS:=+libopenssl +libpthread
+  DEPENDS:=+libopenssl +libpthread +libnettle
   TITLE:=radsecproxy
-  URL:=http://software.uninett.no/radsecproxy
+  URL:=https://radsecproxy.github.io/
   MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
 endef
 
diff --git a/net/radsecproxy/patches/100-fix-debug-tid.patch b/net/radsecproxy/patches/100-fix-debug-tid.patch
new file mode 100644 (file)
index 0000000..c170e3f
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/debug.c
++++ b/debug.c
+@@ -153,7 +153,7 @@ void debug_logit(uint8_t level, const ch
+     if (debug_tid) {
+         tidbuf = malloc((3*sizeof(pthread_t)+5)+strlen(format));
+-        sprintf(tidbuf, "(%ld) %s", pthread_self(), format);
++        sprintf(tidbuf, "(%ld) %s", (long int)pthread_self(), format);
+         format = tidbuf;
+     } else
+         tidbuf = NULL;
diff --git a/net/radsecproxy/patches/100-missing-return.patch b/net/radsecproxy/patches/100-missing-return.patch
deleted file mode 100644 (file)
index 871fc6e..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
---- a/dtls.c
-+++ b/dtls.c
-@@ -523,6 +523,7 @@ void *udpdtlsserverrd(void *arg) {
-       free(params);
-       cacheexpire(sessioncache, &lastexpiry);
-     }
-+    return NULL;
- }
- int dtlsconnect(struct server *server, struct timeval *when, int timeout, char *text) {
-@@ -642,6 +643,7 @@ void *udpdtlsclientrd(void *arg) {
-       if (udp2bio(s, conf->servers->rbios, cnt))
-           debug(DBG_DBG, "radudpget: got DTLS in UDP from %s", addr2string((struct sockaddr *)&from));
-     }
-+    return NULL;
- }
- void *dtlsclientrd(void *arg) {
---- a/radsecproxy.c
-+++ b/radsecproxy.c
-@@ -3203,6 +3203,8 @@ void *sighandler(void *arg) {
-             debug(DBG_WARN, "sighandler: ignoring signal %d", sig);
-         }
-     }
-+
-+    return NULL;
- }
- int createpidfile(const char *pidfile) {
-@@ -3289,6 +3291,8 @@ int radsecproxy_main(int argc, char **ar
-     /* just hang around doing nothing, anything to do here? */
-     for (;;)
-       sleep(1000);
-+
-+    return 0;
- }
- /* Local Variables: */
---- a/udp.c
-+++ b/udp.c
-@@ -266,6 +266,8 @@ void *udpclientrd(void *arg) {
-       buf = radudpget(*s, NULL, &server, NULL);
-       replyh(server, buf);
-     }
-+
-+    return NULL;
- }
- void *udpserverrd(void *arg) {
-@@ -310,6 +312,8 @@ void *udpserverwr(void *arg) {
-       debug(DBG_DBG, "udpserverwr: refcount %d", reply->refcount);
-       freerq(reply);
-     }
-+
-+    return NULL;
- }
- void addclientudp(struct client *client) {
index 6678448acf421ab8c35c98082ff9c533c0b12931..9af20b7f3dceb545a26a80b557d167e40c57c5d4 100644 (file)
@@ -1,8 +1,6 @@
-diff --git a/radsecproxy.c b/radsecproxy.c
-index 563c4a8..9fa076d 100644
 --- a/radsecproxy.c
 +++ b/radsecproxy.c
-@@ -3382,18 +3382,16 @@ int radsecproxy_main(int argc, char **argv) {
+@@ -3385,15 +3385,13 @@ int radsecproxy_main(int argc, char **ar
        options.loglevel = loglevel;
      else if (options.loglevel)
        debug_set_level(options.loglevel);
@@ -10,22 +8,18 @@ index 563c4a8..9fa076d 100644
 -      debug_set_destination(options.logdestination
 -                              ? options.logdestination
 -                              : "x-syslog:///", LOG_TYPE_DEBUG);
-+    debug_set_destination(options.logdestination
-+                        ? options.logdestination
-+                        : "x-syslog:///", LOG_TYPE_DEBUG);
- #if defined(WANT_FTICKS)
 -      if (options.ftickssyslogfacility) {
 -            debug_set_destination(options.ftickssyslogfacility,
 -                                  LOG_TYPE_FTICKS);
 -            free(options.ftickssyslogfacility);
 -      }
--#endif
++    debug_set_destination(options.logdestination
++                          ? options.logdestination
++                          : "x-syslog:///", LOG_TYPE_DEBUG);
 +    if (options.ftickssyslogfacility) {
-+      debug_set_destination(options.ftickssyslogfacility,
-+                            LOG_TYPE_FTICKS);
-+      free(options.ftickssyslogfacility);
++        debug_set_destination(options.ftickssyslogfacility,
++                              LOG_TYPE_FTICKS);
++        free(options.ftickssyslogfacility);
      }
-+#endif
      free(options.logdestination);
-     if (!list_first(clconfs))
+     if (options.logtid)
git clone https://git.99rst.org/PROJECT