pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/chat/ircd-hybrid
Module Name: pkgsrc
Committed By: fox
Date: Sat Jun 29 01:10:14 UTC 2024
Modified Files:
pkgsrc/chat/ircd-hybrid: Makefile distinfo
pkgsrc/chat/ircd-hybrid/patches: patch-src_ircd.c
Added Files:
pkgsrc/chat/ircd-hybrid/patches: patch-libio_src_misc.c
Removed Files:
pkgsrc/chat/ircd-hybrid/patches: patch-src_misc.c
Log Message:
chat/ircd-hybrid: Update to 8.2.44
Changes since 8.2.43:
-- Noteworthy changes in version 8.2.44 (2024-06-15)
* Fixed FTCBFS issue caused by ./configure using macros that lacked special
handling for cross-compilation scenarios
* Fixed the issue where XLINE and UNXLINE were not working properly on
servers within a cluster
* Command-line options now support both short (`-c`) and long
(`--configfile`) formats.
The available options are:
* `-c` or `--configfile` for the configuration file
* `-k` or `--klinefile` for the kline database file
* `-d` or `--dlinefile` for the dline database file
* `-x` or `--xlinefile` for the xline database file
* `-r` or `--resvfile` for the resv database file
* `-l` or `--logfile` for the log file
* `-p` or `--pidfile` for the PID file
* `-f` or `--foreground` to run in the foreground
* `-v` or `--version` to print the version and exit
* `-h` or `--help` to display help information
* The new IRC operator flag, `message:mass`, has been implemented. This flag
controls access to sending mass messages using the `NOTICE $$*.mask` command.
* Upon connecting, a user will now receive a notice with their client
certificate fingerprint, if provided.
* The `INFO` command now includes the `serverinfo::name`, `serverinfo::sid`,
and`serverinfo::description` configuration options in its output.
* The `STATS` subsystem has been rewritten to support dynamic registration
and unregistration of stats handlers. This allows modules to register and unregister
their own stats handlers.
* Implemented hostname cloaking API to improve user privacy and security by
obfuscating real IP addresses. The cloaking process uses CIDR masking,
SHA3 hashing, and base32 encoding to generate secure and unique cloaked
hostnames. The following configuration directives have been introduced:
* `cloak_enabled`: Enable or disable hostname cloaking.
* `cloak_cidr_len_ipv4`: CIDR length for IPv4 addresses used in hostname cloaking.
* `cloak_cidr_len_ipv6`: CIDR length for IPv6 addresses used in hostname cloaking.
* `cloak_num_bits`: Number of bits for the MAC computation used in hostname cloaking.
* `cloak_secret`: Secret key used in the MAC computation for hostname cloaking.
* `cloak_suffix`: Suffix appended to the cloaked hostname.
* Added user mode `+x` (cloak) to activate hostname cloaking for the user,
replacing their real IP address with a cloaked hostname.
* The `INFO` command now includes the new cloaking configuration options in
its output. The following cloaking-related configuration directives will be shown:
* `general::cloak_enabled`
* `general::cloak_cidr_len_ipv4`
* `general::cloak_cidr_len_ipv6`
* `general::cloak_num_bits`
* `general::cloak_secret` (displayed as `<REDACTED>` for security)
* `general::cloak_suffix`
To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 pkgsrc/chat/ircd-hybrid/Makefile
cvs rdiff -u -r1.39 -r1.40 pkgsrc/chat/ircd-hybrid/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/chat/ircd-hybrid/patches/patch-libio_src_misc.c
cvs rdiff -u -r1.2 -r1.3 pkgsrc/chat/ircd-hybrid/patches/patch-src_ircd.c
cvs rdiff -u -r1.1 -r0 pkgsrc/chat/ircd-hybrid/patches/patch-src_misc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/chat/ircd-hybrid/Makefile
diff -u pkgsrc/chat/ircd-hybrid/Makefile:1.92 pkgsrc/chat/ircd-hybrid/Makefile:1.93
--- pkgsrc/chat/ircd-hybrid/Makefile:1.92 Wed May 29 16:31:30 2024
+++ pkgsrc/chat/ircd-hybrid/Makefile Sat Jun 29 01:10:14 2024
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.92 2024/05/29 16:31:30 adam Exp $
+# $NetBSD: Makefile,v 1.93 2024/06/29 01:10:14 fox Exp $
-DISTNAME= ircd-hybrid-8.2.43
-PKGREVISION= 6
+DISTNAME= ircd-hybrid-8.2.44
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ircd-hybrid/}
EXTRACT_SUFX= .tgz
@@ -63,7 +62,7 @@ SUBST_SED.rpaths+= -e "s|var/lib|${VARBA
SUBST_CLASSES+= bpaths
SUBST_MESSAGE.bpaths= Fixing hardcoded build paths.
SUBST_STAGE.bpaths= post-configure
-SUBST_FILES.bpaths= include/defaults.h
+SUBST_FILES.bpaths= src/defaults.h
SUBST_SED.bpaths+= -e "s|LOGPATH \"/ircd.log\"|\"${VARBASE}/log/ircd-hybrid/ircd.log\"|g"
SUBST_SED.bpaths+= -e "s|RUNPATH \"/ircd.pid\"|\"${VARBASE}/run/ircd-hybrid/ircd.pid\"|g"
Index: pkgsrc/chat/ircd-hybrid/distinfo
diff -u pkgsrc/chat/ircd-hybrid/distinfo:1.39 pkgsrc/chat/ircd-hybrid/distinfo:1.40
--- pkgsrc/chat/ircd-hybrid/distinfo:1.39 Sat Oct 1 11:59:40 2022
+++ pkgsrc/chat/ircd-hybrid/distinfo Sat Jun 29 01:10:14 2024
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.39 2022/10/01 11:59:40 fox Exp $
+$NetBSD: distinfo,v 1.40 2024/06/29 01:10:14 fox Exp $
-BLAKE2s (ircd-hybrid-8.2.43.tgz) = c18115e7a4ff162f31b8d64a851a5b243d18593ef6aa3627c05c4bc538df555f
-SHA512 (ircd-hybrid-8.2.43.tgz) = cf8019dc7716b61955bffde66123fe16b4f7151e2f48f3c76ec96b83e3997dc286b0fb8f167cc212929d9fcc3100d44e0e89e0bd9b21650ac2ee9085617f39f3
-Size (ircd-hybrid-8.2.43.tgz) = 1053894 bytes
+BLAKE2s (ircd-hybrid-8.2.44.tgz) = aad1e1a34358438ad4f855d79f9173b9de94df055a0c85f57de61ad0d9d381ac
+SHA512 (ircd-hybrid-8.2.44.tgz) = e79b4666b297ba0fbdaeed271e3ef174c4b475741ea8228cb1f8aa1a25a6b19cb0944ffec66875008eba90559c644095b834663f05650c39cc324502d6e35a5a
+Size (ircd-hybrid-8.2.44.tgz) = 1108694 bytes
SHA1 (patch-doc_Makefile.in) = 787cb151da51cd947a384e33ae35c58df1d17e19
-SHA1 (patch-src_ircd.c) = bed5e5d1663dc64f78be905eeb4f2d9a2cdb1c64
-SHA1 (patch-src_misc.c) = 67373fb505728f155df369740f76573deb469e0c
+SHA1 (patch-libio_src_misc.c) = d6f17e3ec9754bcb6464113ae620acf734faf237
+SHA1 (patch-src_ircd.c) = f2f86c3c969635dd8a2c7edbd98cd5c3b518e170
Index: pkgsrc/chat/ircd-hybrid/patches/patch-src_ircd.c
diff -u pkgsrc/chat/ircd-hybrid/patches/patch-src_ircd.c:1.2 pkgsrc/chat/ircd-hybrid/patches/patch-src_ircd.c:1.3
--- pkgsrc/chat/ircd-hybrid/patches/patch-src_ircd.c:1.2 Sat May 18 20:34:56 2019
+++ pkgsrc/chat/ircd-hybrid/patches/patch-src_ircd.c Sat Jun 29 01:10:14 2024
@@ -1,21 +1,21 @@
-$NetBSD: patch-src_ircd.c,v 1.2 2019/05/18 20:34:56 fox Exp $
+$NetBSD: patch-src_ircd.c,v 1.3 2024/06/29 01:10:14 fox Exp $
Properly check for possible fgets(3) errors (otherwise possible
unrelated errors are logged).
---- src/ircd.c.orig 2019-04-24 17:50:27.000000000 +0000
+--- src/ircd.c.orig 2024-06-15 10:35:58.000000000 +0000
+++ src/ircd.c
-@@ -236,8 +236,11 @@ check_pidfile(const char *filename)
- if ((fb = fopen(filename, "r")))
- {
+@@ -347,8 +347,11 @@ check_pidfile(const char *filename)
+ char buf[IRCD_BUFSIZE];
+
if (fgets(buf, 20, fb) == NULL)
-- ilog(LOG_TYPE_IRCD, "Error reading from pid file %s: %s",
-- filename, strerror(errno));
+- log_write(LOG_TYPE_IRCD, "Error reading from pid file %s: %s",
+- filename, strerror(errno));
+ {
+ if (ferror(fb))
-+ ilog(LOG_TYPE_IRCD, "Error reading from pid file %s: %s",
++ log_write(LOG_TYPE_IRCD, "Error reading from pid file %s: %s",
+ filename, strerror(errno));
-+ }
++ }
else
{
pid_t pid = atoi(buf);
Added files:
Index: pkgsrc/chat/ircd-hybrid/patches/patch-libio_src_misc.c
diff -u /dev/null pkgsrc/chat/ircd-hybrid/patches/patch-libio_src_misc.c:1.1
--- /dev/null Sat Jun 29 01:10:14 2024
+++ pkgsrc/chat/ircd-hybrid/patches/patch-libio_src_misc.c Sat Jun 29 01:10:14 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-libio_src_misc.c,v 1.1 2024/06/29 01:10:14 fox Exp $
+
+Fix day-of-month format so that strftime(3) will recognize it.
+
+--- libio/src/misc.c.orig 2020-05-03 11:05:50.000000000 +0000
++++ libio/src/misc.c 2020-07-13 13:05:57.180120719 +0000
+@@ -42,7 +42,7 @@ date(uintmax_t lclock)
+ if (lclock_last != lclock)
+ {
+ lclock_last = lclock; /* Cache value to avoid repetitive strftime() calls. */
+- strftime(buf, sizeof(buf), "%A %B %-e %Y -- %T %z", localtime((time_t *)&lclock));
++ strftime(buf, sizeof(buf), "%A %B %e %Y -- %T %z", localtime((time_t *)&lclock));
+ }
+
+ return buf;
+@@ -90,7 +90,7 @@ date_ctime(uintmax_t lclock)
+ if (lclock_last != lclock)
+ {
+ lclock_last = lclock; /* Cache value to avoid repetitive strftime() calls. */
+- strftime(buf, sizeof(buf), "%a %b %-e %T %Y", localtime((time_t *)&lclock));
++ strftime(buf, sizeof(buf), "%a %b %e %T %Y", localtime((time_t *)&lclock));
+ }
+
+ return buf;
Home |
Main Index |
Thread Index |
Old Index