summaryrefslogtreecommitdiff
path: root/irc/dancer-services/files
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-04-19 12:02:50 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-04-19 12:02:50 +0000
commitfc37200bcd2540800b9b82ab45ea395717c31281 (patch)
treef46f3b6d74d2b86f99712aa44630b95569951e31 /irc/dancer-services/files
parentAdd dancer-ircd, an irc daemon based on hybrid ircd. (diff)
Add dancer-services, the IRC services (nickserv, chanserv, etc.) for
dancer-ircd.
Notes
Notes: svn path=/head/; revision=79273
Diffstat (limited to 'irc/dancer-services/files')
-rw-r--r--irc/dancer-services/files/dancer-services.sh25
-rw-r--r--irc/dancer-services/files/patch-config.h.in11
-rw-r--r--irc/dancer-services/files/patch-services.conf63
-rw-r--r--irc/dancer-services/files/patch-settings.conf.in33
4 files changed, 132 insertions, 0 deletions
diff --git a/irc/dancer-services/files/dancer-services.sh b/irc/dancer-services/files/dancer-services.sh
new file mode 100644
index 000000000000..f52c4a40f049
--- /dev/null
+++ b/irc/dancer-services/files/dancer-services.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+case "$1" in
+start)
+ if [ -x %PREFIX%/bin/dancer-services ]; then
+ su -fm ircservices -c %PREFIX%/bin/dancer-services && echo ' dancer-services'
+ fi
+ ;;
+
+stop)
+ if [ -f /var/run/dancer-services.pid ]; then
+ kill `cat /var/run/dancer-services.pid`
+ else
+ # oh well
+ killall dancer-services
+ fi
+ ;;
+
+*)
+ echo "usage: $0 {start|stop}" >&2
+ exit 64
+ ;;
+esac
diff --git a/irc/dancer-services/files/patch-config.h.in b/irc/dancer-services/files/patch-config.h.in
new file mode 100644
index 000000000000..953f1718325c
--- /dev/null
+++ b/irc/dancer-services/files/patch-config.h.in
@@ -0,0 +1,11 @@
+--- include/config.h.in.orig Sun May 12 00:46:26 2002
++++ include/config.h.in Tue Apr 15 19:01:09 2003
+@@ -6,7 +6,7 @@
+ * it. -kre
+ */
+
+-#define SETPATH "@prefix@/dancer-services/settings.conf"
++#define SETPATH "@prefix@/etc/dancer-services/settings.conf"
+
+ /*
+ * Define this to enable NickServ (Nickname Services)
diff --git a/irc/dancer-services/files/patch-services.conf b/irc/dancer-services/files/patch-services.conf
new file mode 100644
index 000000000000..5c23c19d14a0
--- /dev/null
+++ b/irc/dancer-services/files/patch-services.conf
@@ -0,0 +1,63 @@
+--- bin/services.conf.orig Tue Jul 31 21:12:57 2001
++++ bin/services.conf Tue Apr 15 18:27:34 2003
+@@ -7,14 +7,14 @@
+ # This should contain the name(s) and email(s) of the services
+ # administrator(s) - just to tell users who to contact w/ questions
+
+-A:Open Projects <support@openprojects.net>
++A:Dancer-services admin <support@locahost>
+
+ # The first field is the name you want the services server to be. It
+ # should match the C/N lines of the hub server. The second field is
+ # the text info for the services (it corresponds to the third field
+ # in a server's M line)
+
+-N:services1.openprojects.net:Services
++N:services.:Local services
+
+ # This line should contain three fields. In order, the password for
+ # the connection, the hostname (or IP address) of the hub server to
+@@ -25,7 +25,7 @@
+ # and so on.
+ # (The password must match the C/N lines of the hub server).
+
+-S:password:pratchett.openprojects.net:8007
++S:password:localhost:6667
+ #S:ConnectPassword:irc.hub.net:6667
+ #S:DumbPass:irc.althub.net:6666
+ #S:Services:irc.anotherhub.net:
+@@ -50,25 +50,25 @@
+ # is defined in config.h (which is the default) - use
+ # mkpasswd to generate the password
+
+-O:servadmin@services.com:DifficultPassword:ServAdmin:segj
+-O:admin@services.com:Password:Nickname:aegj
+-O:coadmin@services.com:ChangeThis:Charlie:ae
+-O:cool@neat.com:Neato:CoolGuy:jf
+-O:oper@oper.com:Oper:OperGuy:ogj
++#O:servadmin@services.com:DifficultPassword:ServAdmin:segj
++#O:admin@services.com:Password:Nickname:aegj
++#O:coadmin@services.com:ChangeThis:Charlie:ae
++#O:cool@neat.com:Neato:CoolGuy:jf
++#O:oper@oper.com:Oper:OperGuy:ogj
+
+ # C: lines specify channels that OperServ will monitor. The first
+ # field is the name of the channel.
+
+-C:#HybNet
+-C:#services
++#C:#HybNet
++#C:#services
+
+ # I: lines specify restricted hostmasks. The fields, in order:
+ # the hostmask, the number of connections allowed from the hostmask.
+
+ # Allows only 3 connections from cloneguy@*.clones.org
+-I:cloneguy@*.clones.org:3
++#I:cloneguy@*.clones.org:3
+ # Allows a total of 6 users from the .blah.com domain
+-I:*.blah.com:6
++#I:*.blah.com:6
+
+ # B: lines are to specify TCM bots to link to. The fields are, in
+ # order, the hostname of the box the TCM is running on, the nickname
diff --git a/irc/dancer-services/files/patch-settings.conf.in b/irc/dancer-services/files/patch-settings.conf.in
new file mode 100644
index 000000000000..d2cdc5506d41
--- /dev/null
+++ b/irc/dancer-services/files/patch-settings.conf.in
@@ -0,0 +1,33 @@
+--- bin/settings.conf.in.orig Tue Mar 25 06:09:13 2003
++++ bin/settings.conf.in Tue Apr 15 18:30:41 2003
+@@ -80,19 +80,19 @@
+ #
+ ################################################################
+
+-HPath "@prefix@/hybserv"
+-ConfigFile "hybserv.conf"
+-LogFile "hybserv.log"
+-PidFile "hybserv.pid"
+-PipeFile "hybserv.pipe"
+-HelpPath "help"
+-DccMotdFile "motd.dcc"
+-MotdFile "motd.global"
++HPath "@@prefix@@/etc/dancer-services"
++ConfigFile "@@prefix@@/etc/dancer-services/services.conf"
++LogFile "/var/log/dancer-services/services.log"
++PidFile "/var/run/dancer-services/dancer-services.pid"
++PipeFile "/var/run/dancer-services/dancer-services.pipe"
++HelpPath "/usr/local/share/dancer-services/help"
++DccMotdFile "@@prefix@@/etc/dancer-services/motd.dcc"
++MotdFile "@@prefix@@/etc/dancer-services/motd.global"
+
+-GlineFile "glines.conf"
+-JupeFile "jupes.conf"
++GlineFile "@@prefix@@/etc/dancer-services/glines.conf"
++JupeFile "@@prefix@@/etc/dancer-services/jupes.conf"
+
+-LogonNews "logon.news"
++LogonNews "@@prefix@@/etc/dancer-services/logon.news"
+
+ ################################################################
+ #