Browse Source

Merge pull request #8111 from neheb/ng

ngircd: Update to 25
lilik-openwrt-22.03
Hannu Nyman 6 years ago
committed by GitHub
parent
commit
fb209cf568
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 58 deletions
  1. +11
    -12
      net/ngircd/Makefile
  2. +0
    -46
      net/ngircd/patches/010-Fix-compilation-without-deprecated-OpenSSL-APIs.patch

+ 11
- 12
net/ngircd/Makefile View File

@ -8,22 +8,21 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=ngircd PKG_NAME:=ngircd
PKG_VERSION:=24
PKG_RELEASE:=2
PKG_MAINTAINER:=Claudio Leite <leitec@staticky.com>
PKG_VERSION:=25
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://ngircd.barton.de/pub/ngircd
PKG_HASH:=c4997cae3e3dd6ff6a605ca274268f2b8c9ba0b1a96792c7402e5594222eee4e
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
PKG_MAINTAINER:=
PKG_LICENSE:=GPL-2.0 PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= \
http://ngircd.barton.de/pub/ngircd/ \
ftp://ftp.berlios.de/pub/ngircd/
PKG_HASH:=3e00a7da52c81fc1e02bb996a27bf43da905ba7037bf8c6bb3bd13321e0c85ab
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1 PKG_INSTALL:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/ngircd/Default define Package/ngircd/Default
@ -32,7 +31,7 @@ define Package/ngircd/Default
SUBMENU:=Instant Messaging SUBMENU:=Instant Messaging
DEPENDS:=+zlib DEPENDS:=+zlib
TITLE:=Next Generation IRC Server TITLE:=Next Generation IRC Server
URL:=http://ngircd.barton.de
URL:=https://ngircd.barton.de
endef endef
define Package/ngircd/Default/description define Package/ngircd/Default/description


+ 0
- 46
net/ngircd/patches/010-Fix-compilation-without-deprecated-OpenSSL-APIs.patch View File

@ -1,46 +0,0 @@
From d7bf6c919259a65d78b5bf67a3c75838f8894e91 Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Sun, 25 Nov 2018 19:59:49 -0800
Subject: [PATCH] Fix compilation without deprecated OpenSSL APIs
---
src/ngircd/conf-ssl.h | 4 ++++
src/ngircd/conn-ssl.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/ngircd/conf-ssl.h b/src/ngircd/conf-ssl.h
index c2373797..af715af8 100644
--- a/src/ngircd/conf-ssl.h
+++ b/src/ngircd/conf-ssl.h
@@ -13,6 +13,10 @@
#ifdef HAVE_LIBSSL
#define SSL_SUPPORT
#include <openssl/ssl.h>
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#define OpenSSL_version SSLeay_version
+#define OPENSSL_VERSION SSLEAY_VERSION
+#endif
#endif
#ifdef HAVE_LIBGNUTLS
#define SSL_SUPPORT
diff --git a/src/ngircd/conn-ssl.c b/src/ngircd/conn-ssl.c
index 705c29d5..ba47e513 100644
--- a/src/ngircd/conn-ssl.c
+++ b/src/ngircd/conn-ssl.c
@@ -42,6 +42,7 @@ extern struct SSLOptions Conf_SSLOptions;
#ifdef HAVE_LIBSSL
#include <openssl/err.h>
#include <openssl/rand.h>
+#include <openssl/dh.h>
static SSL_CTX * ssl_ctx;
static DH *dh_params;
@@ -326,7 +327,7 @@ ConnSSL_InitLibrary( void )
Verify_openssl);
SSL_CTX_free(ssl_ctx);
ssl_ctx = newctx;
- Log(LOG_INFO, "%s initialized.", SSLeay_version(SSLEAY_VERSION));
+ Log(LOG_INFO, "%s initialized.", OpenSSL_version(OPENSSL_VERSION));
return true;
out:
SSL_CTX_free(newctx);

Loading…
Cancel
Save