pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/chat
Module Name: pkgsrc
Committed By: nia
Date: Mon Oct 14 21:12:55 UTC 2024
Modified Files:
pkgsrc/chat: Makefile
Added Files:
pkgsrc/chat/ngircd: DESCR Makefile PLIST distinfo options.mk
pkgsrc/chat/ngircd/files: ngircd.sh
pkgsrc/chat/ngircd/files/smf: manifest.xml
pkgsrc/chat/ngircd/patches: patch-doc_Makefile.in
patch-doc_sample-ngircd.conf.tmpl
Log Message:
import chat/ngircd, heavily modified from wip
ngIRCd is a free, portable and lightweight Internet Relay Chat
server for small or private networks, developed under the GNU
General Public License (GPL). It is easy to configure, can cope
with dynamic IP addresses, and supports IPv6, SSL-protected
connections as well as PAM for authentication. It is written from
scratch and not based on the original IRCd.
To generate a diff of this commit:
cvs rdiff -u -r1.292 -r1.293 pkgsrc/chat/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/chat/ngircd/DESCR pkgsrc/chat/ngircd/Makefile \
pkgsrc/chat/ngircd/PLIST pkgsrc/chat/ngircd/distinfo \
pkgsrc/chat/ngircd/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/chat/ngircd/files/ngircd.sh
cvs rdiff -u -r0 -r1.1 pkgsrc/chat/ngircd/files/smf/manifest.xml
cvs rdiff -u -r0 -r1.1 pkgsrc/chat/ngircd/patches/patch-doc_Makefile.in \
pkgsrc/chat/ngircd/patches/patch-doc_sample-ngircd.conf.tmpl
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/chat/Makefile
diff -u pkgsrc/chat/Makefile:1.292 pkgsrc/chat/Makefile:1.293
--- pkgsrc/chat/Makefile:1.292 Mon Sep 16 12:56:07 2024
+++ pkgsrc/chat/Makefile Mon Oct 14 21:12:54 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.292 2024/09/16 12:56:07 wiz Exp $
+# $NetBSD: Makefile,v 1.293 2024/10/14 21:12:54 nia Exp $
#
COMMENT= Communication programs
@@ -78,6 +78,7 @@ SUBDIR+= meanwhile
SUBDIR+= miniircd
SUBDIR+= mumble
SUBDIR+= neonmodem
+SUBDIR+= ngircd
SUBDIR+= ninja
SUBDIR+= p5-IRC-Utils
SUBDIR+= p5-Net-Goofey
Added files:
Index: pkgsrc/chat/ngircd/DESCR
diff -u /dev/null pkgsrc/chat/ngircd/DESCR:1.1
--- /dev/null Mon Oct 14 21:12:55 2024
+++ pkgsrc/chat/ngircd/DESCR Mon Oct 14 21:12:54 2024
@@ -0,0 +1,6 @@
+ngIRCd is a free, portable and lightweight Internet Relay Chat
+server for small or private networks, developed under the GNU
+General Public License (GPL). It is easy to configure, can cope
+with dynamic IP addresses, and supports IPv6, SSL-protected
+connections as well as PAM for authentication. It is written from
+scratch and not based on the original IRCd.
Index: pkgsrc/chat/ngircd/Makefile
diff -u /dev/null pkgsrc/chat/ngircd/Makefile:1.1
--- /dev/null Mon Oct 14 21:12:55 2024
+++ pkgsrc/chat/ngircd/Makefile Mon Oct 14 21:12:54 2024
@@ -0,0 +1,48 @@
+# $NetBSD: Makefile,v 1.1 2024/10/14 21:12:54 nia Exp $
+
+DISTNAME= ngircd-27
+CATEGORIES= chat
+MASTER_SITES= https://arthur.barton.de/pub/ngircd/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://ngircd.barton.de/
+COMMENT= Free, portable and lightweight IRC server
+LICENSE= gnu-gpl-v2
+
+GNU_CONFIGURE= yes
+
+RCD_SCRIPTS+= ngircd
+
+CONF_FILES+= ${PREFIX}/share/examples/ngircd/sample-ngircd.conf \
+ ${PKG_SYSCONFDIR}/ngircd.conf
+
+BUILD_DEFS+= VARBASE
+
+.include "../../mk/bsd.prefs.mk"
+
+NGIRCD_USER?= ngircd
+NGIRCD_GROUP?= ngircd
+
+SUBST_CLASSES+= vars
+SUBST_STAGE.vars= pre-configure
+SUBST_FILES.vars= doc/sample-ngircd.conf.tmpl
+SUBST_VARS.vars= VARBASE
+SUBST_VARS.vars+= NGIRCD_USER
+SUBST_VARS.vars+= NGIRCD_GROUP
+
+PKG_USERS_VARS+= NGIRCD_USER
+PKG_GROUPS_VARS+= NGIRCD_GROUP
+
+PKG_GROUPS= ${NGIRCD_GROUP}
+PKG_USERS= ${NGIRCD_USER}:${NGIRCD_GROUP}
+
+INSTALLATION_DIRS+= share/examples/ngircd
+
+OWN_DIRS_PERMS+= ${VARBASE}/run/ngircd ${NGIRCD_USER} ${NGIRCD_GROUP} 0755
+
+post-install:
+ ${MV} ${DESTDIR}${PREFIX}/share/doc/ngircd/sample-ngircd.conf \
+ ${DESTDIR}${PREFIX}/share/examples/ngircd/sample-ngircd.conf
+
+.include "options.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/chat/ngircd/PLIST
diff -u /dev/null pkgsrc/chat/ngircd/PLIST:1.1
--- /dev/null Mon Oct 14 21:12:55 2024
+++ pkgsrc/chat/ngircd/PLIST Mon Oct 14 21:12:54 2024
@@ -0,0 +1,28 @@
+@comment $NetBSD: PLIST,v 1.1 2024/10/14 21:12:54 nia Exp $
+man/man5/ngircd.conf.5
+man/man8/ngircd.8
+sbin/ngircd
+share/doc/ngircd/AUTHORS.md
+share/doc/ngircd/Bopm.txt
+share/doc/ngircd/COPYING
+share/doc/ngircd/Capabilities.txt
+share/doc/ngircd/ChangeLog
+share/doc/ngircd/Commands.txt
+share/doc/ngircd/Container.md
+share/doc/ngircd/Contributing.txt
+share/doc/ngircd/FAQ.md
+share/doc/ngircd/HowToRelease.txt
+share/doc/ngircd/INSTALL.md
+share/doc/ngircd/Modes.txt
+share/doc/ngircd/NEWS
+share/doc/ngircd/PAM.txt
+share/doc/ngircd/Platforms.txt
+share/doc/ngircd/Protocol.txt
+share/doc/ngircd/README-AUX.txt
+share/doc/ngircd/README-BeOS.txt
+share/doc/ngircd/README-Interix.txt
+share/doc/ngircd/README.md
+share/doc/ngircd/RFC.txt
+share/doc/ngircd/SSL.md
+share/doc/ngircd/Services.txt
+share/examples/ngircd/sample-ngircd.conf
Index: pkgsrc/chat/ngircd/distinfo
diff -u /dev/null pkgsrc/chat/ngircd/distinfo:1.1
--- /dev/null Mon Oct 14 21:12:55 2024
+++ pkgsrc/chat/ngircd/distinfo Mon Oct 14 21:12:54 2024
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2024/10/14 21:12:54 nia Exp $
+
+BLAKE2s (ngircd-27.tar.gz) = 0899b15b916d4cee6aba64361270fc64ef3e37c46cfabbcaa52be1e8f9258395
+SHA512 (ngircd-27.tar.gz) = 54ad38b3f5a9a899106c1163f53f45c5b021f6bad3ea3b7cb9b06e619434d76416d494b046508f588b334daba5b39a451bbf28e6196ef8fffa0408e395ea3839
+Size (ngircd-27.tar.gz) = 554709 bytes
+SHA1 (patch-doc_Makefile.in) = b8561a0a2086854aafd60bb5491d243078d143c1
+SHA1 (patch-doc_sample-ngircd.conf.tmpl) = 55b305aa72e1ef13814a3278645bfbc5f61a47ec
Index: pkgsrc/chat/ngircd/options.mk
diff -u /dev/null pkgsrc/chat/ngircd/options.mk:1.1
--- /dev/null Mon Oct 14 21:12:55 2024
+++ pkgsrc/chat/ngircd/options.mk Mon Oct 14 21:12:54 2024
@@ -0,0 +1,54 @@
+# $NetBSD: options.mk,v 1.1 2024/10/14 21:12:54 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ngircd
+PKG_SUPPORTED_OPTIONS= zlib tcpwrappers ident pam iconv
+PKG_SUPPORTED_OPTIONS+= ngircd-sniffer ngircd-strictrfc
+
+PKG_OPTIONS_OPTIONAL_GROUPS= ssl
+PKG_OPTIONS_GROUP.ssl= gnutls openssl
+
+PKG_SUGGESTED_OPTIONS= zlib ident openssl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mzlib)
+CONFIGURE_ARGS+= --with-zlib
+. include "../../devel/zlib/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenssl)
+CONFIGURE_ARGS+= --with-openssl
+. include "../../security/openssl/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mgnutls)
+CONFIGURE_ARGS+= --with-gnutls
+. include "../../security/gnutls/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mtcpwrappers)
+CONFIGURE_ARGS+= --with-tcp-wrappers
+.endif
+
+.if !empty(PKG_OPTIONS:Mident)
+CONFIGURE_ARGS+= --with-ident
+. include "../../security/libident/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mpam)
+CONFIGURE_ARGS+= --with-pam
+. include "../../mk/pam.buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Miconv)
+CONFIGURE_ARGS+= --with-iconv
+. include "../../converters/libiconv/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mngircd-sniffer)
+CONFIGURE_ARGS+= --enable-sniffer
+.endif
+
+.if !empty(PKG_OPTIONS:Mngircd-strictrfc)
+CONFIGURE_ARGS+= --enable-strict-rfc
+.endif
Index: pkgsrc/chat/ngircd/files/ngircd.sh
diff -u /dev/null pkgsrc/chat/ngircd/files/ngircd.sh:1.1
--- /dev/null Mon Oct 14 21:12:55 2024
+++ pkgsrc/chat/ngircd/files/ngircd.sh Mon Oct 14 21:12:55 2024
@@ -0,0 +1,24 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD $
+#
+# PROVIDE: ngircd
+# REQUIRE: DAEMON
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="ngircd"
+rcvar=$name
+command="@PREFIX@/sbin/ngircd"
+required_files="@PKG_SYSCONFDIR@/ngircd.conf"
+pidfile="@VARBASE@/run/ngircd.pid"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ @ECHO@ -n " ${name}"
+ ${command} ${ngircd_flags} ${command_args}
+fi
Index: pkgsrc/chat/ngircd/files/smf/manifest.xml
diff -u /dev/null pkgsrc/chat/ngircd/files/smf/manifest.xml:1.1
--- /dev/null Mon Oct 14 21:12:55 2024
+++ pkgsrc/chat/ngircd/files/smf/manifest.xml Mon Oct 14 21:12:55 2024
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+<service_bundle type="manifest" name="export">
+ <service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1">
+ <create_default_instance enabled="false" />
+ <single_instance />
+ <dependency name='network' grouping='require_all' restart_on='error' type='service'>
+ <service_fmri value='svc:/milestone/network:default' />
+ </dependency>
+ <dependency name='filesystem-local' grouping='require_all' restart_on='none' type='service'>
+ <service_fmri value='svc:/system/filesystem/local:default' />
+ </dependency>
+ <exec_method type="method" name="start" exec="@PREFIX@/sbin/ngircd" timeout_seconds="60" />
+ <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60" />
+ <exec_method type="method" name="refresh" exec=":kill -HUP" timeout_seconds="60" />
+ <property_group name="startd" type="framework">
+ <propval name="duration" type="astring" value="child" />
+ <propval name="ignore_error" type="astring" value="core,signal" />
+ </property_group>
+ <property_group name="application" type="application">
+ <propval name="config_file" type="astring" value="@PKG_SYSCONFDIR@/ngircd.conf" />
+ </property_group>
+ <template>
+ <common_name>
+ <loctext xml:lang="C">ngIRCd IRC server</loctext>
+ </common_name>
+ </template>
+ </service>
+</service_bundle>
Index: pkgsrc/chat/ngircd/patches/patch-doc_Makefile.in
diff -u /dev/null pkgsrc/chat/ngircd/patches/patch-doc_Makefile.in:1.1
--- /dev/null Mon Oct 14 21:12:55 2024
+++ pkgsrc/chat/ngircd/patches/patch-doc_Makefile.in Mon Oct 14 21:12:55 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-doc_Makefile.in,v 1.1 2024/10/14 21:12:55 nia Exp $
+
+Let pkgsrc handle configuration files.
+
+--- doc/Makefile.in.orig 2024-04-26 14:54:22.000000000 +0000
++++ doc/Makefile.in
+@@ -618,7 +618,7 @@ maintainer-clean-local:
+ all: $(generated_docs)
+
+ install-data-hook: $(static_docs) $(toplevel_docs) $(generated_docs)
+- $(MKDIR_P) -m 755 $(DESTDIR)$(sysconfdir)
++ #$(MKDIR_P) -m 755 $(DESTDIR)$(sysconfdir)
+ @if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
+ ${MAKE} install-config; \
+ fi
+@@ -631,7 +631,7 @@ install-data-hook: $(static_docs) $(topl
+ done
+
+ install-config:
+- $(INSTALL) -m 600 -c sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf
++ #$(INSTALL) -m 600 -c sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf
+ @echo; \
+ echo " ** NOTE: Installed sample configuration file:"; \
+ echo " ** \"$(DESTDIR)$(sysconfdir)/ngircd.conf\""; \
Index: pkgsrc/chat/ngircd/patches/patch-doc_sample-ngircd.conf.tmpl
diff -u /dev/null pkgsrc/chat/ngircd/patches/patch-doc_sample-ngircd.conf.tmpl:1.1
--- /dev/null Mon Oct 14 21:12:55 2024
+++ pkgsrc/chat/ngircd/patches/patch-doc_sample-ngircd.conf.tmpl Mon Oct 14 21:12:55 2024
@@ -0,0 +1,32 @@
+$NetBSD: patch-doc_sample-ngircd.conf.tmpl,v 1.1 2024/10/14 21:12:55 nia Exp $
+
+Run as ngircd user by default.
+
+--- doc/sample-ngircd.conf.tmpl.orig 2024-10-14 19:52:39.281302704 +0000
++++ doc/sample-ngircd.conf.tmpl
+@@ -72,7 +72,7 @@
+ # Note that the pidfile is written AFTER chroot and switching the
+ # user ID, e.g. the directory the pidfile resides in must be
+ # writable by the ngIRCd user and exist in the chroot directory.
+- ;PidFile = /var/run/ngircd/ngircd.pid
++ PidFile = @VARBASE@/run/ngircd/ngircd.pid
+
+ # Ports on which the server should listen. There may be more than
+ # one port, separated with ",". (Default: 6667)
+@@ -81,14 +81,14 @@
+ # Group ID under which the ngIRCd should run; you can use the name
+ # of the group or the numerical ID. ATTENTION: For this to work the
+ # server must have been started with root privileges!
+- ;ServerGID = 65534
++ ServerGID = @NGIRCD_USER@
+
+ # User ID under which the server should run; you can use the name
+ # of the user or the numerical ID. ATTENTION: For this to work the
+ # server must have been started with root privileges! In addition,
+ # the configuration and MOTD files must be readable by this user,
+ # otherwise RESTART and REHASH won't work!
+- ;ServerUID = 65534
++ ServerUID = @NGIRCD_GROUP@
+
+ [Limits]
+ # Define some limits and timeouts for this ngIRCd instance. Default
Home |
Main Index |
Thread Index |
Old Index