summaryrefslogtreecommitdiff
path: root/chat/ircd-hybrid/files
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2001-10-21 21:26:51 +0000
committerseb <seb@pkgsrc.org>2001-10-21 21:26:51 +0000
commitbbe8e2dce24ae58a4914880dbbc7f21eda109801 (patch)
treef41c98ee9a3290611b1423f1e76165e79211a604 /chat/ircd-hybrid/files
parent9a50e2ff611887348dba55d0b8cd4856b067461a (diff)
downloadpkgsrc-bbe8e2dce24ae58a4914880dbbc7f21eda109801.tar.gz
Added ircd-hybrid version 6.2, an IRC daemon.
Diffstat (limited to 'chat/ircd-hybrid/files')
-rw-r--r--chat/ircd-hybrid/files/ircd-hybrid60
-rw-r--r--chat/ircd-hybrid/files/pkg-setup.txt28
2 files changed, 88 insertions, 0 deletions
diff --git a/chat/ircd-hybrid/files/ircd-hybrid b/chat/ircd-hybrid/files/ircd-hybrid
new file mode 100644
index 00000000000..8923c6d0c7d
--- /dev/null
+++ b/chat/ircd-hybrid/files/ircd-hybrid
@@ -0,0 +1,60 @@
+#! /bin/sh
+#
+# $NetBSD: ircd-hybrid,v 1.1.1.1 2001/10/21 21:26:52 seb Exp $
+#
+# PROVIDE: ircdhybrid
+# REQUIRE: DAEMON
+
+name="ircdhybrid"
+pidfile="@PPATH@"
+command="@SPATH@"
+conffile="@DPATH@ircd.conf"
+required_files="$conffile"
+start_precmd=set_pid_file
+
+set_pid_file () {
+ @TOUCH@ $pidfile && @CHOWN@ @USER@ $pidfile && @CHMOD@ 600 $pidfile
+}
+
+if [ -d /etc/rc.d ]; then :; else
+ command=${1:-start}
+
+ case ${command} in
+ start)
+ if [ -x @SPATH@ -a -f "$conffile" ]
+ then
+ echo "Starting ${name}."
+ set_pid_file || exit 1
+ exec @SPATH@
+ fi
+ ;;
+ stop)
+ if [ -f ${pidfile} ]; then
+ pid=`head -1 ${pidfile}`
+ echo "Stopping ${name}."
+ kill -TERM ${pid}
+ else
+ echo "${name} not running?"
+ fi
+ ;;
+ restart)
+ ( $0 stop )
+ sleep 1
+ $0 start
+ ;;
+ status)
+ if [ -f ${pidfile} ]; then
+ pid=`head -1 ${pidfile}`
+ echo "${name} is running as pid ${pid}."
+ else
+ echo "${name} is not running."
+ fi
+ ;;
+ esac
+ exit 0
+fi
+
+. /etc/rc.subr
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/chat/ircd-hybrid/files/pkg-setup.txt b/chat/ircd-hybrid/files/pkg-setup.txt
new file mode 100644
index 00000000000..08ac2ac2d59
--- /dev/null
+++ b/chat/ircd-hybrid/files/pkg-setup.txt
@@ -0,0 +1,28 @@
+======================================================================
+$NetBSD: pkg-setup.txt,v 1.1.1.1 2001/10/21 21:26:52 seb Exp $
+
+If you want to use Hybrid ircd...
+* Create the daemon configuration file:
+ `${DPATH}ircd.conf'
+ To aid you in this see the example file:
+ `${PREFIX}/share/examples/ircd-hybrid/ircd.conf'.
+ Or you can use the generator script:
+ `${PREFIX}/sbin/ircd-hybrid-mkconf'.
+* Copy
+ `${PREFIX}/share/examples/ircd-hybrid/opers.txt'
+ as
+ `${DPATH}opers.txt'.
+* Create an empty file writeable by user `${USER}' group `${GROUP}' named
+ `${DPATH}kline.conf'.
+* Create MOTD files:
+ `${DPATH}ircd.motd',
+ `${DPATH}opers.motd'.
+* Create logfile(s) writeable by user `${USER}' group `${GROUP}':
+ optional: `${OPERLOG}'
+ mandatory: `${LPATH}'
+ optional: `${USERLOG}'
+* Handle syslog facility ${SYSLOG_FACILITY} as you see fit
+
+You should use `${PREFIX}/etc/rc.d/ircd-hybrid' to start/stop/... ircd
+
+======================================================================