pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/chat/unrealircd unrealircd: Update to 4.2.4.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/46f6c29f6754
branches:  trunk
changeset: 399354:46f6c29f6754
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Aug 07 13:14:16 2019 +0000

description:
unrealircd: Update to 4.2.4.1

This release fixes a crash issue if UnrealIRCd is configured to use utf8 or
chinese character sets in set::allowed-nickchars. We don't expect many users
to run their IRCd with this enabled, as the utf8 support was tagged as
experimental and the chinese/gbk implementation is incomplete.

This release also contains a number of other fixes and enhancements.
In particular the reputation and connthrottle modules are now working
better and there were some major Windows fixes.

diffstat:

 chat/unrealircd/Makefile                  |   67 +++++++++++---
 chat/unrealircd/PLIST                     |   10 +-
 chat/unrealircd/distinfo                  |   11 +-
 chat/unrealircd/patches/patch-Makefile.in |  130 ------------------------------
 4 files changed, 59 insertions(+), 159 deletions(-)

diffs (truncated from 329 to 300 lines):

diff -r 0cee662a818e -r 46f6c29f6754 chat/unrealircd/Makefile
--- a/chat/unrealircd/Makefile  Wed Aug 07 12:59:07 2019 +0000
+++ b/chat/unrealircd/Makefile  Wed Aug 07 13:14:16 2019 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.61 2019/07/20 22:46:11 wiz Exp $
+# $NetBSD: Makefile,v 1.62 2019/08/07 13:14:16 nia Exp $
 
-DISTNAME=      unrealircd-4.2.2
-PKGREVISION=   3
+DISTNAME=      unrealircd-4.2.4.1
 CATEGORIES=    chat
 MASTER_SITES=  https://www.unrealircd.org/unrealircd4/
 
@@ -16,24 +15,23 @@
 USE_TOOLS+=    aclocal autoconf autoheader automake bash
 USE_TOOLS+=    gmake gunzip pkg-config
 
-# 4.2.2 tarball was changed, remove on next update
-DIST_SUBDIR=   unrealircd-20190402
+.include "options.mk"
 
-.include "options.mk"
+PKG_SYSCONFSUBDIR=     unrealircd
 
 # Quoth ./configure,
 # "noone knows if disabling dynamic linking actually does anything or not".
 # Also needed to configure non-interactively.
 CONFIGURE_ARGS+=       --enable-dynamic-linking
 
-# not building without SSL is apparently unsupported but this still
-# seems to be required or the build breaks...
-CONFIGURE_ARGS+=       --enable-ssl
+CONFIGURE_ARGS+=       --enable-ssl=${BUILDLINK_PREFIX.openssl}
 
 CONFIGURE_ARGS+=       --with-system-cares
-CONFIGURE_ARGS+=       --with-system-tre
 CONFIGURE_ARGS+=       --with-system-pcre2
 
+# Deprecated
+CONFIGURE_ARGS+=       --without-tre
+
 CONFIGURE_ARGS+=       --with-permissions=0660
 CONFIGURE_ARGS+=       --with-datadir=${PREFIX}/unrealircd/data
 CONFIGURE_ARGS+=       --with-cachedir=${PREFIX}/unrealircd/cache
@@ -44,7 +42,7 @@
 CONFIGURE_ARGS+=       --with-bindir=${PREFIX}/bin
 CONFIGURE_ARGS+=       --with-modulesdir=${PREFIX}/lib/unrealircd/modules
 CONFIGURE_ARGS+=       --with-docdir=${PREFIX}/share/doc/unrealircd
-CONFIGURE_ARGS+=       --with-confdir=${PKG_SYSCONFDIR}/unrealircd
+CONFIGURE_ARGS+=       --with-confdir=${PKG_SYSCONFDIR}
 
 OWN_DIRS_PERMS+=       ${PREFIX}/unrealircd ${UIRCD_USER} ${UIRCD_GROUP} 0755
 OWN_DIRS_PERMS+=       ${PREFIX}/unrealircd/data ${UIRCD_USER} ${UIRCD_GROUP} 0700
@@ -53,12 +51,11 @@
 OWN_DIRS_PERMS+=       ${PREFIX}/unrealircd/tmp ${UIRCD_USER} ${UIRCD_GROUP} 0700
 
 CONFIGURE_ARGS+=       --with-sendq=${UIRCD_SENDQ:Q}
-CONFIGURE_ARGS+=       --with-fd-setsize=${UIRCD_FDSIZE:Q}
 CONFIGURE_ARGS+=       --with-nick-history=${UIRCD_NICKHIST:Q}
 
 IRCD_EG=       ${PREFIX}/share/examples/unrealircd
 
-BUILD_DEFS+=   UIRCD_SENDQ UIRCD_NICKHIST UIRCD_FDSIZE VARBASE
+BUILD_DEFS+=   UIRCD_SENDQ UIRCD_NICKHIST VARBASE
 
 PTHREAD_OPTS+= require
 
@@ -69,7 +66,6 @@
 #
 UIRCD_SENDQ?=          3000000
 UIRCD_NICKHIST?=       2000
-UIRCD_FDSIZE?=         1024
 UIRCD_USER?=           uircd
 UIRCD_GROUP?=          uircd
 
@@ -89,18 +85,55 @@
 CFLAGS.Darwin+=        -DUSE_LOCALE
 CFLAGS.SunOS+= -DUSE_LOCALE
 
+INSTALLATION_DIRS+=    bin
 INSTALLATION_DIRS+=    unrealircd/scripts
+INSTALLATION_DIRS+=    lib/unrealircd/modules
+INSTALLATION_DIRS+=    lib/unrealircd/modules/usermodes
+INSTALLATION_DIRS+=    lib/unrealircd/modules/chanmodes
+INSTALLATION_DIRS+=    lib/unrealircd/modules/snomasks
+INSTALLATION_DIRS+=    lib/unrealircd/modules/extbans
+INSTALLATION_DIRS+=    lib/unrealircd/modules/cap
+INSTALLATION_DIRS+=    lib/unrealircd/modules/third
+INSTALLATION_DIRS+=    share/doc/unrealircd
 INSTALLATION_DIRS+=    ${IRCD_EG}
+INSTALLATION_DIRS+=    ${IRCD_EG}/aliases
+INSTALLATION_DIRS+=    ${IRCD_EG}/help
+INSTALLATION_DIRS+=    ${IRCD_EG}/examples
+INSTALLATION_DIRS+=    ${IRCD_EG}/ssl
+
+OWN_DIRS_PERMS+=       unrealircd/tmp ${UIRCD_USER} ${UIRCD_GROUP} 0755
+OWN_DIRS_PERMS+=       unrealircd/logs ${UIRCD_USER} ${UIRCD_GROUP} 0755
+OWN_DIRS_PERMS+=       unrealircd/data ${UIRCD_USER} ${UIRCD_GROUP} 0755
+OWN_DIRS_PERMS+=       unrealircd/cache ${UIRCD_USER} ${UIRCD_GROUP} 0755
+OWN_DIRS_PERMS+=       ${PKG_SYSCONFDIR} ${UIRCD_USER} ${UIRCD_GROUP} 0755
 
 pre-configure:
        cd ${WRKSRC} && ${BASH} ./autogen.sh
 
-post-install:
-       ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/unrealircd/* ${DESTDIR}${IRCD_EG}
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/src/ircd ${DESTDIR}${PREFIX}/bin/unrealircd
+       ${INSTALL_DATA} ${WRKSRC}/doc/Authors ${DESTDIR}${PREFIX}/share/doc/unrealircd
+       ${INSTALL_DATA} ${WRKSRC}/doc/coding-guidelines ${DESTDIR}${PREFIX}/share/doc/unrealircd
+       ${INSTALL_DATA} ${WRKSRC}/doc/tao.of.irc ${DESTDIR}${PREFIX}/share/doc/unrealircd
+       ${INSTALL_DATA} ${WRKSRC}/doc/conf/*.default.conf ${DESTDIR}${IRCD_EG}
+       ${INSTALL_DATA} ${WRKSRC}/doc/conf/*.optional.conf ${DESTDIR}${IRCD_EG}
+       ${INSTALL_DATA} ${WRKSRC}/doc/conf/spamfilter.conf ${DESTDIR}${IRCD_EG}
+       ${INSTALL_DATA} ${WRKSRC}/doc/conf/badwords.conf ${DESTDIR}${IRCD_EG}
+       ${INSTALL_DATA} ${WRKSRC}/doc/conf/dccallow.conf ${DESTDIR}${IRCD_EG}
+       ${INSTALL_DATA} ${WRKSRC}/doc/conf/aliases/*.conf ${DESTDIR}${IRCD_EG}/aliases
+       ${INSTALL_DATA} ${WRKSRC}/doc/conf/help/*.conf ${DESTDIR}${IRCD_EG}/help
+       ${INSTALL_DATA} ${WRKSRC}/doc/conf/examples/*.conf ${DESTDIR}${IRCD_EG}/examples
+       ${INSTALL_DATA} ${WRKSRC}/doc/conf/ssl/curl-ca-bundle.crt ${DESTDIR}${IRCD_EG}/ssl
+       ${INSTALL_SCRIPT} ${WRKSRC}/unrealircd ${DESTDIR}${PREFIX}/unrealircd/scripts
+       ${INSTALL_LIB} ${WRKSRC}/src/modules/*.so ${DESTDIR}${PREFIX}/lib/unrealircd/modules
+       ${INSTALL_LIB} ${WRKSRC}/src/modules/usermodes/*.so ${DESTDIR}${PREFIX}/lib/unrealircd/modules/usermodes
+       ${INSTALL_LIB} ${WRKSRC}/src/modules/chanmodes/*.so ${DESTDIR}${PREFIX}/lib/unrealircd/modules/chanmodes
+       ${INSTALL_LIB} ${WRKSRC}/src/modules/snomasks/*.so ${DESTDIR}${PREFIX}/lib/unrealircd/modules/snomasks
+       ${INSTALL_LIB} ${WRKSRC}/src/modules/extbans/*.so ${DESTDIR}${PREFIX}/lib/unrealircd/modules/extbans
+       ${INSTALL_LIB} ${WRKSRC}/src/modules/cap/*.so ${DESTDIR}${PREFIX}/lib/unrealircd/modules/cap
 
 .include "../../net/libcares/buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"
-.include "../../devel/tre/buildlink3.mk"
 .include "../../devel/pcre2/buildlink3.mk"
 .include "../../security/argon2/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
diff -r 0cee662a818e -r 46f6c29f6754 chat/unrealircd/PLIST
--- a/chat/unrealircd/PLIST     Wed Aug 07 12:59:07 2019 +0000
+++ b/chat/unrealircd/PLIST     Wed Aug 07 13:14:16 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2019/02/09 15:23:15 nia Exp $
+@comment $NetBSD: PLIST,v 1.13 2019/08/07 13:14:16 nia Exp $
 bin/unrealircd
 lib/unrealircd/modules/antimixedutf8.so
 lib/unrealircd/modules/antirandom.so
@@ -28,6 +28,7 @@
 lib/unrealircd/modules/chanmodes/stripcolor.so
 lib/unrealircd/modules/charsys.so
 lib/unrealircd/modules/cloak.so
+lib/unrealircd/modules/connthrottle.so
 lib/unrealircd/modules/extbans/account.so
 lib/unrealircd/modules/extbans/certfp.so
 lib/unrealircd/modules/extbans/inchannel.so
@@ -102,6 +103,7 @@
 lib/unrealircd/modules/m_setident.so
 lib/unrealircd/modules/m_setname.so
 lib/unrealircd/modules/m_silence.so
+lib/unrealircd/modules/m_sinfo.so
 lib/unrealircd/modules/m_sjoin.so
 lib/unrealircd/modules/m_sqline.so
 lib/unrealircd/modules/m_squit.so
@@ -142,6 +144,7 @@
 lib/unrealircd/modules/m_whowas.so
 lib/unrealircd/modules/m_whox.so
 lib/unrealircd/modules/nocodes.so
+lib/unrealircd/modules/reputation.so
 lib/unrealircd/modules/snomasks/dccreject.so
 lib/unrealircd/modules/ssl_antidos.so
 lib/unrealircd/modules/usermodes/bot.so
@@ -186,9 +189,4 @@
 share/examples/unrealircd/spamfilter.conf
 share/examples/unrealircd/ssl/curl-ca-bundle.crt
 unrealircd/scripts/unrealircd
-@pkgdir unrealircd/tmp
-@pkgdir unrealircd/logs
-@pkgdir unrealircd/data
-@pkgdir unrealircd/cache
 @pkgdir lib/unrealircd/modules/third
-@pkgdir etc/unrealircd
diff -r 0cee662a818e -r 46f6c29f6754 chat/unrealircd/distinfo
--- a/chat/unrealircd/distinfo  Wed Aug 07 12:59:07 2019 +0000
+++ b/chat/unrealircd/distinfo  Wed Aug 07 13:14:16 2019 +0000
@@ -1,9 +1,8 @@
-$NetBSD: distinfo,v 1.23 2019/04/02 13:20:21 wiz Exp $
+$NetBSD: distinfo,v 1.24 2019/08/07 13:14:16 nia Exp $
 
-SHA1 (unrealircd-20190402/unrealircd-4.2.2.tar.gz) = 3d29867f65cd407db207f3eb4a2038cafea75caa
-RMD160 (unrealircd-20190402/unrealircd-4.2.2.tar.gz) = a6c39a01c3a20fe481da3b8516b49ca213fd18fa
-SHA512 (unrealircd-20190402/unrealircd-4.2.2.tar.gz) = 961947e2286e10cd6032320d57cf3a99d4354f46ae28ad3142d11a0d423f7a0be915f8c09e8fe7b5816829752e4a03776907bb491366f418afc319fd8efb14ad
-Size (unrealircd-20190402/unrealircd-4.2.2.tar.gz) = 6060272 bytes
-SHA1 (patch-Makefile.in) = f42dbe01865c99f16db227bec251a0d78bdddd2c
+SHA1 (unrealircd-4.2.4.1.tar.gz) = cf9ac43cff3f69c77852e1b0526b84662acb66fd
+RMD160 (unrealircd-4.2.4.1.tar.gz) = 8202b2059811a7da1c1c9fc831492784ef196979
+SHA512 (unrealircd-4.2.4.1.tar.gz) = 752573c4af1f92a10739bb2b0cdaade1948207b46d28ae5177e1dfd6b0663044bc22dce5ffe8549882cd70325e3ef7e3296182fffbb84e08d59dbbdd6551a686
+Size (unrealircd-4.2.4.1.tar.gz) = 6090725 bytes
 SHA1 (patch-ac) = 644990fd93c6754778d4c0a8b3a2aab34a1bcbb3
 SHA1 (patch-ae) = 14499974009921e55fbf2c1719f7588b17f1315c
diff -r 0cee662a818e -r 46f6c29f6754 chat/unrealircd/patches/patch-Makefile.in
--- a/chat/unrealircd/patches/patch-Makefile.in Wed Aug 07 12:59:07 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,130 +0,0 @@
-$NetBSD: patch-Makefile.in,v 1.1 2019/02/09 15:23:16 nia Exp $
-
-DESTDIR support. Also use correct permissions.
-
---- Makefile.in.orig   2019-01-03 08:00:11.000000000 +0000
-+++ Makefile.in
-@@ -177,65 +177,65 @@ depend:
-       done
- 
- install: all
--      $(INSTALL) -m 0700 -d @BINDIR@
--      $(INSTALL) -m 0700 src/ircd @BINDIR@/unrealircd
--      $(INSTALL) -m 0700 -d @DOCDIR@
--      $(INSTALL) -m 0600 doc/Authors doc/coding-guidelines doc/tao.of.irc @DOCDIR@
--      $(INSTALL) -m 0700 -d @CONFDIR@
--      $(INSTALL) -m 0600 doc/conf/*.default.conf @CONFDIR@
--      $(INSTALL) -m 0600 doc/conf/*.optional.conf @CONFDIR@
--      -@if [ ! -f "@CONFDIR@/spamfilter.conf" ] ; then \
--              $(INSTALL) -m 0600 doc/conf/spamfilter.conf @CONFDIR@ ; \
--      fi
--      -@if [ ! -f "@CONFDIR@/badwords.conf" ] ; then \
--              $(INSTALL) -m 0600 doc/conf/badwords.conf @CONFDIR@ ; \
--      fi
--      -@if [ ! -f "@CONFDIR@/dccallow.conf" ] ; then \
--              $(INSTALL) -m 0600 doc/conf/dccallow.conf @CONFDIR@ ; \
--      fi
--      $(INSTALL) -m 0700 -d @CONFDIR@/aliases
--      $(INSTALL) -m 0600 doc/conf/aliases/*.conf @CONFDIR@/aliases
--      $(INSTALL) -m 0700 -d @CONFDIR@/help
--      $(INSTALL) -m 0600 doc/conf/help/*.conf @CONFDIR@/help
--      $(INSTALL) -m 0700 -d @CONFDIR@/examples
--      $(INSTALL) -m 0600 doc/conf/examples/*.conf @CONFDIR@/examples
--      $(INSTALL) -m 0700 -d @CONFDIR@/ssl
--      $(INSTALL) -m 0600 doc/conf/ssl/curl-ca-bundle.crt @CONFDIR@/ssl
--      $(INSTALL) -m 0700 unrealircd @SCRIPTDIR@
--      $(INSTALL) -m 0700 -d @MODULESDIR@
--      $(INSTALL) -m 0700 src/modules/*.so @MODULESDIR@
--      $(INSTALL) -m 0700 -d @MODULESDIR@/usermodes
--      $(INSTALL) -m 0700 src/modules/usermodes/*.so @MODULESDIR@/usermodes
--      $(INSTALL) -m 0700 -d @MODULESDIR@/chanmodes
--      $(INSTALL) -m 0700 src/modules/chanmodes/*.so @MODULESDIR@/chanmodes
--      $(INSTALL) -m 0700 -d @MODULESDIR@/snomasks
--      $(INSTALL) -m 0700 src/modules/snomasks/*.so @MODULESDIR@/snomasks
--      $(INSTALL) -m 0700 -d @MODULESDIR@/extbans
--      $(INSTALL) -m 0700 src/modules/extbans/*.so @MODULESDIR@/extbans
--      $(INSTALL) -m 0700 -d @MODULESDIR@/cap
--      $(INSTALL) -m 0700 src/modules/cap/*.so @MODULESDIR@/cap
--      $(INSTALL) -m 0700 -d @MODULESDIR@/third
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@BINDIR@
-+      $(INSTALL) -m 0755 src/ircd ${DESTDIR}@BINDIR@/unrealircd
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@DOCDIR@
-+      $(INSTALL) -m 0644 doc/Authors doc/coding-guidelines doc/tao.of.irc ${DESTDIR}@DOCDIR@
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@CONFDIR@
-+      $(INSTALL) -m 0644 doc/conf/*.default.conf ${DESTDIR}@CONFDIR@
-+      $(INSTALL) -m 0644 doc/conf/*.optional.conf ${DESTDIR}@CONFDIR@
-+      -@if [ ! -f "${DESTDIR}@CONFDIR@/spamfilter.conf" ] ; then \
-+              $(INSTALL) -m 0644 doc/conf/spamfilter.conf ${DESTDIR}@CONFDIR@ ; \
-+      fi
-+      -@if [ ! -f "${DESTDIR}@CONFDIR@/badwords.conf" ] ; then \
-+              $(INSTALL) -m 0644 doc/conf/badwords.conf ${DESTDIR}@CONFDIR@ ; \
-+      fi
-+      -@if [ ! -f "${DESTDIR}@CONFDIR@/dccallow.conf" ] ; then \
-+              $(INSTALL) -m 0644 doc/conf/dccallow.conf ${DESTDIR}@CONFDIR@ ; \
-+      fi
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@CONFDIR@/aliases
-+      $(INSTALL) -m 0644 doc/conf/aliases/*.conf ${DESTDIR}@CONFDIR@/aliases
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@CONFDIR@/help
-+      $(INSTALL) -m 0644 doc/conf/help/*.conf ${DESTDIR}@CONFDIR@/help
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@CONFDIR@/examples
-+      $(INSTALL) -m 0644 doc/conf/examples/*.conf ${DESTDIR}@CONFDIR@/examples
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@CONFDIR@/ssl
-+      $(INSTALL) -m 0644 doc/conf/ssl/curl-ca-bundle.crt ${DESTDIR}@CONFDIR@/ssl
-+      $(INSTALL) -m 0755 unrealircd ${DESTDIR}@SCRIPTDIR@
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@MODULESDIR@
-+      $(INSTALL) -m 0755 src/modules/*.so ${DESTDIR}@MODULESDIR@
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@MODULESDIR@/usermodes
-+      $(INSTALL) -m 0755 src/modules/usermodes/*.so ${DESTDIR}@MODULESDIR@/usermodes
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@MODULESDIR@/chanmodes
-+      $(INSTALL) -m 0755 src/modules/chanmodes/*.so ${DESTDIR}@MODULESDIR@/chanmodes
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@MODULESDIR@/snomasks
-+      $(INSTALL) -m 0755 src/modules/snomasks/*.so ${DESTDIR}@MODULESDIR@/snomasks
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@MODULESDIR@/extbans
-+      $(INSTALL) -m 0755 src/modules/extbans/*.so ${DESTDIR}@MODULESDIR@/extbans
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@MODULESDIR@/cap
-+      $(INSTALL) -m 0755 src/modules/cap/*.so ${DESTDIR}@MODULESDIR@/cap
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@MODULESDIR@/third
-       @#Ugly stuff to detect 0 files in this directory:
-       @+for f in src/modules/third/*.so; do \
--              [ -e $f ] && $(INSTALL) -m 0700 src/modules/third/*.so @MODULESDIR@/third || echo; \
-+              [ -e $f ] && $(INSTALL) -m 0755 src/modules/third/*.so ${DESTDIR}@MODULESDIR@/third || echo; \
-       done
--      $(INSTALL) -m 0700 -d @TMPDIR@
--      $(INSTALL) -m 0700 -d @CACHEDIR@
--      $(INSTALL) -m 0700 -d @PERMDATADIR@
--      $(INSTALL) -m 0700 -d @LOGDIR@
--      -@if [ ! -f "@CONFDIR@/ssl/server.cert.pem" ] ; then \
--              $(INSTALL) -m 0600 server.req.pem @CONFDIR@/ssl ; \
--              $(INSTALL) -m 0600 server.key.pem @CONFDIR@/ssl ; \
--              $(INSTALL) -m 0600 server.cert.pem @CONFDIR@/ssl ; \
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@TMPDIR@
-+      $(INSTALL) -m 0755 -d ${DESTDIR}@CACHEDIR@



Home | Main Index | Thread Index | Old Index