pkgsrc-Changes archive

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

CVS commit: pkgsrc/chat/ctrlproxy



Module Name:    pkgsrc
Committed By:   nia
Date:           Sat May 15 11:54:48 UTC 2021

Modified Files:
        pkgsrc/chat/ctrlproxy: Makefile distinfo options.mk
Added Files:
        pkgsrc/chat/ctrlproxy/patches: patch-Makefile patch-src_gnutls.c
Removed Files:
        pkgsrc/chat/ctrlproxy/patches: patch-aa

Log Message:
ctrlproxy: fix SSL support


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/chat/ctrlproxy/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/chat/ctrlproxy/distinfo \
    pkgsrc/chat/ctrlproxy/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/chat/ctrlproxy/patches/patch-Makefile \
    pkgsrc/chat/ctrlproxy/patches/patch-src_gnutls.c
cvs rdiff -u -r1.1.1.1 -r0 pkgsrc/chat/ctrlproxy/patches/patch-aa

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/chat/ctrlproxy/Makefile
diff -u pkgsrc/chat/ctrlproxy/Makefile:1.16 pkgsrc/chat/ctrlproxy/Makefile:1.17
--- pkgsrc/chat/ctrlproxy/Makefile:1.16 Wed Apr 21 13:24:25 2021
+++ pkgsrc/chat/ctrlproxy/Makefile      Sat May 15 11:54:48 2021
@@ -1,17 +1,19 @@
-# $NetBSD: Makefile,v 1.16 2021/04/21 13:24:25 adam Exp $
+# $NetBSD: Makefile,v 1.17 2021/05/15 11:54:48 nia Exp $
 #
 
 DISTNAME=              ctrlproxy-3.0.8
-PKGREVISION=           11
+PKGREVISION=           12
 CATEGORIES=            chat
 MASTER_SITES=          http://www.ctrlproxy.org/releases/
 
 MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=              http://www.ctrlproxy.org/
 COMMENT=               Detachable internet relay chat proxy server
+LICENSE=               gnu-gpl-v3
 
 USE_PKGLOCALEDIR=      yes
 USE_TOOLS+=            pkg-config gmake
+USE_LANGUAGES=         c99
 GNU_CONFIGURE=         yes
 PKG_SYSCONFSUBDIR=     ctrlproxy
 
@@ -36,4 +38,5 @@ post-install:
                ${DESTDIR}${PREFIX}/share/examples/ctrlproxy/config.example
 
 .include "../../devel/glib2/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/chat/ctrlproxy/distinfo
diff -u pkgsrc/chat/ctrlproxy/distinfo:1.2 pkgsrc/chat/ctrlproxy/distinfo:1.3
--- pkgsrc/chat/ctrlproxy/distinfo:1.2  Tue Nov  3 01:20:18 2015
+++ pkgsrc/chat/ctrlproxy/distinfo      Sat May 15 11:54:48 2021
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2015/11/03 01:20:18 agc Exp $
+$NetBSD: distinfo,v 1.3 2021/05/15 11:54:48 nia Exp $
 
 SHA1 (ctrlproxy-3.0.8.tar.gz) = 4999ba32e2f8eed95c0f30bebc0d72ae55cf76aa
 RMD160 (ctrlproxy-3.0.8.tar.gz) = f2dcf9a16172f9a2f8e34d0987e2be87d35c7607
 SHA512 (ctrlproxy-3.0.8.tar.gz) = 241f227eaae864a43846cf90bb3c41e7ff2423224f92b214d19f681cd1fbdee73c1edfde06ecd6ab0df2061e1386b370c66905a797ab3e3f92382f886698520c
 Size (ctrlproxy-3.0.8.tar.gz) = 277083 bytes
-SHA1 (patch-aa) = c21ee7933b80e30db19b79afaa8d6b6186f04017
+SHA1 (patch-Makefile) = e42074951158b4d35704725c115ad17eee8a8200
+SHA1 (patch-src_gnutls.c) = 735747cf2b344b3821d9d5a32aaf73d0d3586d56
Index: pkgsrc/chat/ctrlproxy/options.mk
diff -u pkgsrc/chat/ctrlproxy/options.mk:1.2 pkgsrc/chat/ctrlproxy/options.mk:1.3
--- pkgsrc/chat/ctrlproxy/options.mk:1.2        Sat Nov  7 20:28:30 2015
+++ pkgsrc/chat/ctrlproxy/options.mk    Sat May 15 11:54:48 2021
@@ -1,18 +1,11 @@
-# $NetBSD: options.mk,v 1.2 2015/11/07 20:28:30 dholland Exp $
+# $NetBSD: options.mk,v 1.3 2021/05/15 11:54:48 nia Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.ctrlproxy
 
-PKG_SUPPORTED_OPTIONS= ssl gssapi
+PKG_SUPPORTED_OPTIONS= gssapi
 
 .include "../../mk/bsd.options.mk"
 
-###
-### Build in SSL support via gnutls
-###
-.if !empty(PKG_OPTIONS:Mssl)
-.include "../../security/gnutls/buildlink3.mk"
-.endif
-
 .if !empty(PKG_OPTIONS:Mgssapi)
 .include "../../mk/krb5.buildlink3.mk"
 .else

Added files:

Index: pkgsrc/chat/ctrlproxy/patches/patch-Makefile
diff -u /dev/null pkgsrc/chat/ctrlproxy/patches/patch-Makefile:1.1
--- /dev/null   Sat May 15 11:54:48 2021
+++ pkgsrc/chat/ctrlproxy/patches/patch-Makefile        Sat May 15 11:54:48 2021
@@ -0,0 +1,21 @@
+$NetBSD: patch-Makefile,v 1.1 2021/05/15 11:54:48 nia Exp $
+
+Allow pkgsrc to take care of installing config files.
+
+--- Makefile.orig      2008-12-06 17:36:33.000000000 +0000
++++ Makefile
+@@ -190,10 +190,10 @@ uninstall-data::
+       -rmdir $(DESTDIR)$(sysconfdir)
+ 
+ install-data:
+-      $(INSTALL) -d $(DESTDIR)$(sysconfdir)
+-      $(INSTALL) -d $(DESTDIR)$(DEFAULT_CONFIG_DIR)
+-      $(INSTALL) -m 0644 motd $(DESTDIR)$(DEFAULT_CONFIG_DIR)
+-      $(INSTALL) -m 0644 config.default $(DESTDIR)$(DEFAULT_CONFIG_DIR)/config
++      #$(INSTALL) -d $(DESTDIR)$(sysconfdir)
++      #$(INSTALL) -d $(DESTDIR)$(DEFAULT_CONFIG_DIR)
++      #$(INSTALL) -m 0644 motd $(DESTDIR)$(DEFAULT_CONFIG_DIR)
++      #$(INSTALL) -m 0644 config.default $(DESTDIR)$(DEFAULT_CONFIG_DIR)/config
+ 
+ install-pkgconfig:
+       $(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig
Index: pkgsrc/chat/ctrlproxy/patches/patch-src_gnutls.c
diff -u /dev/null pkgsrc/chat/ctrlproxy/patches/patch-src_gnutls.c:1.1
--- /dev/null   Sat May 15 11:54:48 2021
+++ pkgsrc/chat/ctrlproxy/patches/patch-src_gnutls.c    Sat May 15 11:54:48 2021
@@ -0,0 +1,39 @@
+$NetBSD: patch-src_gnutls.c,v 1.1 2021/05/15 11:54:48 nia Exp $
+
+Fix building with newer GnuTLS. From FreeBSD Ports.
+
+--- src/gnutls.c.orig  2008-12-06 17:36:33.000000000 +0000
++++ src/gnutls.c
+@@ -18,7 +18,6 @@
+ 
+ #include <glib.h>
+ 
+-#include <gcrypt.h>
+ #include <gnutls/gnutls.h>
+ #include <gnutls/x509.h>
+ 
+@@ -47,11 +46,11 @@ typedef struct {
+ static gboolean
+ verify_certificate (gnutls_session session, const char *hostname, GError **err)
+ {
+-      int status;
++      int res, status;
+ 
+-      status = gnutls_certificate_verify_peers (session);
++      res = gnutls_certificate_verify_peers2 (session, &status);
+ 
+-      if (status == GNUTLS_E_NO_CERTIFICATE_FOUND) {
++      if (res < 0 || status == GNUTLS_E_NO_CERTIFICATE_FOUND) {
+               g_set_error (err, SSL_ERROR,
+                            SSL_ERROR_CERTIFICATE,
+                            "No SSL certificate was sent.");
+@@ -452,9 +451,6 @@ static gboolean gnutls_inited = FALSE;
+ static void
+ _gnutls_init (void)
+ {
+-      /* to disallow usage of the blocking /dev/random */
+-      gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
+-
+       gnutls_global_init ();
+       gnutls_inited = TRUE;
+ }



Home | Main Index | Thread Index | Old Index