aboutsummaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-05-01 12:45:14 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-05-01 12:45:14 +0000
commitb873fc159ab9ef5cace8a31e25945ddabbb726bf (patch)
treea3f8f3b276471b6778c2f2488e261a2da1160f91 /irc
parent3b15b05d211cbf008e8aa21c49dd50417c6e56c0 (diff)
downloadports-b873fc159ab9ef5cace8a31e25945ddabbb726bf.tar.gz
ports-b873fc159ab9ef5cace8a31e25945ddabbb726bf.zip
Notes
Diffstat (limited to 'irc')
-rw-r--r--irc/Makefile1
-rw-r--r--irc/ratbox-services/Makefile140
-rw-r--r--irc/ratbox-services/distinfo3
-rw-r--r--irc/ratbox-services/files/patch-Makefile.in29
-rw-r--r--irc/ratbox-services/files/patch-help_Makefile.in15
-rw-r--r--irc/ratbox-services/files/patch-include_config.h17
-rw-r--r--irc/ratbox-services/files/pkg-install.in126
-rw-r--r--irc/ratbox-services/files/pkg-message.in12
-rw-r--r--irc/ratbox-services/files/ratbox-services.sh.in35
-rw-r--r--irc/ratbox-services/pkg-descr17
-rw-r--r--irc/ratbox-services/pkg-plist160
11 files changed, 555 insertions, 0 deletions
diff --git a/irc/Makefile b/irc/Makefile
index 8cfa70080c9f..de1dddb5c795 100644
--- a/irc/Makefile
+++ b/irc/Makefile
@@ -86,6 +86,7 @@
SUBDIR += py-supybot-plugins
SUBDIR += quirc
SUBDIR += ratbox-respond
+ SUBDIR += ratbox-services
SUBDIR += rbot
SUBDIR += riece
SUBDIR += riece-emacs20
diff --git a/irc/ratbox-services/Makefile b/irc/ratbox-services/Makefile
new file mode 100644
index 000000000000..f1440dab7a17
--- /dev/null
+++ b/irc/ratbox-services/Makefile
@@ -0,0 +1,140 @@
+# New ports collection makefile for: ratbox-services
+# Date Created: 2006-01-27
+# Whom: Shaun Amott <shaun@inerd.com>
+#
+# $FreeBSD$
+
+PORTNAME= ratbox-services
+PORTVERSION= 1.0.3
+CATEGORIES= irc
+MASTER_SITES= ftp://ftp.ircd-ratbox.org/pub/ircd-ratbox/${PORTNAME}/ \
+ ftp://ftp.demon.co.uk/pub/mirrors/ircd-ratbox/${PORTNAME}/ \
+ http://services.ircd-ratbox.org/download/ \
+ ftp://ftp.parodius.com/pub/ircd-ratbox/${PORTNAME}/ \
+ http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= shaun@inerd.com
+COMMENT= A highly configurable services package for use with ircd-ratbox
+
+USE_RC_SUBR= ratbox-services.sh
+
+LOGDIR?= /var/log
+RUNDIR?= /var/run
+DBDIR?= /var/db/${PORTNAME}
+SUB_FILES= pkg-message pkg-install
+PLIST_SUB= LOGDIR=${LOGDIR} RUNDIR=${RUNDIR} DBDIR=${DBDIR}
+SUB_LIST= LOGDIR=${LOGDIR} RUNDIR=${RUNDIR} DBDIR=${DBDIR}
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/ \
+ --with-logdir=${LOGDIR} \
+ --with-rundir=${RUNDIR} \
+ --with-helpdir=${DATADIR}/help \
+ --with-sqlite=${LOCALBASE} \
+ --without-sqlitebuild
+
+USE_SQLITE= 2
+
+PORTDOCS= operguide.txt
+
+#-- Options ------------------------------------------------------------
+
+OPTIONS= NICKSERV "Enable nickname registration service" on \
+ CHANSERV "Enable channel registration service" on \
+ USERSERV "Enable user service" on \
+ OPERSERV "Enable oper service" on \
+ ALIS "Enable advanced listing service" on \
+ JUPESERV "Enable jupe service" on \
+ OPERBOT "Enable operbot service" on \
+ GLOBALMSG "Enable global messaging service" on \
+ BANSERV "Enable ban service" on
+
+#----------------------------------------------------------------------
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITHOUT_NICKSERV)
+CONFIGURE_ARGS+= --disable-nickserv
+.endif
+
+.if defined(WITHOUT_CHANSERV)
+CONFIGURE_ARGS+= --disable-chanserv
+.endif
+
+.if defined(WITHOUT_USERSERV)
+CONFIGURE_ARGS+= --disable-userserv
+.endif
+
+.if defined(WITHOUT_OPERSERV)
+CONFIGURE_ARGS+= --disable-operserv
+.endif
+
+.if defined(WITHOUT_ALIS)
+CONFIGURE_ARGS+= --disable-alis
+.endif
+
+.if defined(WITHOUT_JUPESERV)
+CONFIGURE_ARGS+= --disable-jupeserv
+.endif
+
+.if defined(WITHOUT_OPERBOT)
+CONFIGURE_ARGS+= --disable-operbot
+.endif
+
+.if defined(WITHOUT_GLOBALMSG)
+CONFIGURE_ARGS+= --disable-global
+.endif
+
+.if defined(WITHOUT_BANSERV)
+CONFIGURE_ARGS+= --disable-banserv
+.endif
+
+#-- User Configuration -------------------------------------------------
+
+.if defined(NICKLEN)
+CONFIGURE_ARGS+= --with-nicklen=${NICKLEN}
+.endif
+
+.if defined(TOPICLEN)
+CONFIGURE_ARGS+= --with-topiclen=${TOPICLEN}
+.endif
+
+#-----------------------------------------------------------------------
+
+pre-configure:
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "This port has additional options:"
+ @${ECHO_MSG} " NICKLEN [default 9, max 50] - Max nick length on server"
+ @${ECHO_MSG} " TOPICLEN [default 160, max 390] - Max topic length"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "THESE SHOULD BE CONSISTENT WITH YOUR IRCD-RATBOX SERVER/NETWORK!"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Press CTRL+C now if you wish to set them."
+ @${ECHO_MSG} ""
+
+post-patch:
+ @${REINPLACE_CMD} -e "s#-O[02]##g" ${WRKSRC}/configure
+
+ @${REINPLACE_CMD} -e "s#%%DBDIR%%#${DBDIR}#g" ${WRKSRC}/include/config.h
+
+pre-su-install:
+ @${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+ ${MKDIR} ${DATADIR}/help
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/ratbox-services ${PREFIX}/sbin/
+ ${INSTALL_SCRIPT} ${WRKSRC}/tools/ircd-shortcut.pl ${PREFIX}/bin/ircd-shortcut
+ ${INSTALL_DATA} ${WRKSRC}/doc/example.conf ${PREFIX}/etc/ratbox-services.conf.sample
+ ${INSTALL_DATA} ${WRKSRC}/doc/schema.txt ${DATADIR}/schema.sql
+
+ @${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ @${CAT} ${PKGMESSAGE}
+
+#-----------------------------------------------------------------------
+
+.include <bsd.port.post.mk>
diff --git a/irc/ratbox-services/distinfo b/irc/ratbox-services/distinfo
new file mode 100644
index 000000000000..4cc7c73185ce
--- /dev/null
+++ b/irc/ratbox-services/distinfo
@@ -0,0 +1,3 @@
+MD5 (ratbox-services-1.0.3.tgz) = acd4598d12b82c367f5a13110d784422
+SHA256 (ratbox-services-1.0.3.tgz) = 10e08ec21522499c8b3e6c1b37300a83f87e74b40a98ef19fcc40cd61127b510
+SIZE (ratbox-services-1.0.3.tgz) = 634213
diff --git a/irc/ratbox-services/files/patch-Makefile.in b/irc/ratbox-services/files/patch-Makefile.in
new file mode 100644
index 000000000000..d5bbdf94849a
--- /dev/null
+++ b/irc/ratbox-services/files/patch-Makefile.in
@@ -0,0 +1,29 @@
+--- Makefile.in.orig Wed May 18 00:33:18 2005
++++ Makefile.in Sat Jan 28 22:58:12 2006
+@@ -6,7 +6,7 @@
+ LIBS=@LIBS@
+ LDFLAGS=@LDFLAGS@
+
+-SUBDIRS=@SQLITE_SUBDIR@ src help
++SUBDIRS=src help
+
+ prefix=@prefix@
+ exec_prefix=@prefix@
+@@ -36,17 +36,6 @@
+ done
+
+ install: build
+- $(INSTALL) -m 750 -d $(DESTDIR)$(prefix)
+- $(INSTALL) -m 750 -d $(DESTDIR)$(bindir)
+- $(INSTALL) -m 750 -d $(DESTDIR)$(sbindir)
+- $(INSTALL) -m 750 -d $(DESTDIR)$(sysconfdir)
+- $(INSTALL) -m 750 -d $(DESTDIR)$(logdir)
+- $(INSTALL) -m 750 -d $(DESTDIR)$(rundir)
+- $(INSTALL) -m 750 -d $(DESTDIR)$(helpdir)
+- $(INSTALL) -m 750 tools/ircd-shortcut.pl $(DESTDIR)$(bindir)
+- $(INSTALL) -m 750 src/$(BIN) $(DESTDIR)$(sbindir)
+- $(INSTALL) -m 640 doc/example.conf $(DESTDIR)$(sysconfdir)
+- $(INSTALL) -m 640 doc/schema.txt $(DESTDIR)$(sysconfdir)
+ @for i in $(SUBDIRS); do \
+ echo "install -> $$i"; \
+ cd $$i; \
diff --git a/irc/ratbox-services/files/patch-help_Makefile.in b/irc/ratbox-services/files/patch-help_Makefile.in
new file mode 100644
index 000000000000..d49a8a82ba6f
--- /dev/null
+++ b/irc/ratbox-services/files/patch-help_Makefile.in
@@ -0,0 +1,15 @@
+--- help/Makefile.in.orig Wed Jun 15 15:21:39 2005
++++ help/Makefile.in Sat Jan 28 23:15:11 2006
+@@ -10,10 +10,10 @@
+ SUBDIRS=alis main operbot chanserv userserv jupeserv operserv nickserv global banserv
+
+ install:
+- $(INSTALL) -m 750 -d $(DESTDIR)$(helpdir)
++ $(INSTALL) -d $(DESTDIR)$(helpdir)
+
+ @for i in $(SUBDIRS); do \
+- $(INSTALL) -m 750 -d $(DESTDIR)$(helpdir)/$$i; \
++ $(INSTALL) -d $(DESTDIR)$(helpdir)/$$i; \
+ for j in $$i/*; do \
+ if [ -f $$j ]; then \
+ $(INSTALL_DATA) $$j $(DESTDIR)$(helpdir)/$$i; \
diff --git a/irc/ratbox-services/files/patch-include_config.h b/irc/ratbox-services/files/patch-include_config.h
new file mode 100644
index 000000000000..95134485d26c
--- /dev/null
+++ b/irc/ratbox-services/files/patch-include_config.h
@@ -0,0 +1,17 @@
+--- include/config.h.orig Tue Aug 23 20:41:19 2005
++++ include/config.h Sat Jan 28 22:08:14 2006
+@@ -5,11 +5,13 @@
+ * IMPORTANT: if you alter the directories these files go to,
+ * you must create those paths yourself.
+ */
++#define DBDIR "%%DBDIR%%"
++
+ #define CONF_PATH SYSCONFDIR "/ratbox-services.conf"
+ #define PID_PATH RUNDIR "/ratbox-services.pid"
+ #define LOG_PATH LOGDIR "/ratbox-services.log"
+ #define HELP_PATH HELPDIR
+-#define DB_PATH SYSCONFDIR "/ratbox-services.db"
++#define DB_PATH DBDIR "/ratbox-services.db"
+
+ /* SMALL_NETWORK
+ * If your network is fairly small, enable this to save some memory.
diff --git a/irc/ratbox-services/files/pkg-install.in b/irc/ratbox-services/files/pkg-install.in
new file mode 100644
index 000000000000..5aec496c1d8e
--- /dev/null
+++ b/irc/ratbox-services/files/pkg-install.in
@@ -0,0 +1,126 @@
+#!/bin/sh
+#
+# Adapted from irc/ircd-hybrid's script
+#
+
+ask() {
+ local question default answer
+
+ question=$1
+ default=$2
+ if [ -z "${PACKAGE_BUILDING}" ]; then
+ read -p "${question} [${default}]? " answer
+ fi
+ if [ x${answer} = x ]; then
+ answer=${default}
+ fi
+ echo ${answer}
+}
+
+yesno() {
+ local dflt question answer
+
+ question=$1
+ dflt=$2
+ while :; do
+ answer=$(ask "${question}" "${dflt}")
+ case "${answer}" in
+ [Yy]*) return 0;;
+ [Nn]*) return 1;;
+ esac
+ echo "Please answer yes or no."
+ done
+}
+
+#-----------------------------------------------------------------------
+if [ "x$2" = "xPRE-INSTALL" ]; then
+#-----------------------------------------------------------------------
+
+if which -s pw ; then
+ :
+else
+ cat <<EOF
+Your system does not include the "pw" utility. You should upgrade
+to a newer version of FreeBSD. Without "pw" this script will not
+run.
+EOF
+ exit 1
+fi
+
+echo ""
+if pw groupshow ircservices 2> /dev/null ; then
+ echo "You already have a group \"ircservices\", so I will use it."
+else
+ if pw groupshow 73 2> /dev/null ; then
+ echo "You already have a gid \"73\". Please create a user \"ircservices\""
+ echo "with a default group of \"ircservices\"."
+ exit 1
+ fi
+ echo "You need a group \"ircservices\"."
+ if which -s pw && yesno "Would you like me to create it" y; then
+ pw groupadd ircservices -g 73 || exit
+ echo "Done."
+ else
+ echo "Please create it, and try again."
+ if ! pw usershow ircservices 2> /dev/null ; then
+ echo "While you're at it, please create a user \"ircservices\""
+ echo 'too, with a default group of "ircservices".'
+ fi
+ exit 1
+ fi
+fi
+
+if pw usershow ircservices 2> /dev/null ; then
+ echo "You already have a user \"ircservices\", so I will use it."
+else
+ if pw usershow 73 2> /dev/null ; then
+ echo "You already have a uid \"73\". Please create a user \"irc
+d\""
+ echo "with a default group of \"ircservices\"."
+ exit 1
+ fi
+ echo "You need a user \"ircservices\"."
+ if which -s pw && yesno "Would you like me to create it" y; then
+ pw useradd ircservices -g ircservices -u 73 -h - -d /nonexistent \
+ -s /nonexistent -c "IRC services" || exit
+ echo "Done."
+ else
+ echo "Please create it, and try again."
+ exit 1
+ fi
+fi
+
+#-----------------------------------------------------------------------
+elif [ "x$2" = "xPOST-INSTALL" ]; then
+#-----------------------------------------------------------------------
+
+lf="%%LOGDIR%%/ratbox-services.log"
+
+touch $lf \
+&& chown ircservices:ircservices $lf \
+&& chmod 640 $lf
+
+mkdir -p %%DBDIR%%
+
+db="%%DBDIR%%/ratbox-services.db"
+
+if [ ! -f $db ]; then
+ echo "Initialising services database..."
+ %%LOCALBASE%%/bin/sqlite $db < %%DATADIR%%/schema.sql
+fi
+
+# Secure permissions if we think this is a fresh install
+
+if [ ! -f ${PKG_PREFIX}/ratbox-services.conf ]; then
+ chown -R ircservices:ircservices %%DBDIR%%
+ chown ircservices:ircservices ${PKG_PREFIX}/etc/ratbox-services.conf.sample
+ chmod 750 %%DBDIR%%
+ chmod 640 $db
+ chmod 640 ${PKG_PREFIX}/etc/ratbox-services.conf.sample
+fi
+
+#-----------------------------------------------------------------------
+fi
+#-----------------------------------------------------------------------
+
+exit 0
diff --git a/irc/ratbox-services/files/pkg-message.in b/irc/ratbox-services/files/pkg-message.in
new file mode 100644
index 000000000000..197977db07e5
--- /dev/null
+++ b/irc/ratbox-services/files/pkg-message.in
@@ -0,0 +1,12 @@
+------------------------------------------------------------------------
+ratbox-services has been successfully installed.
+
+You should now copy %%PREFIX%%/etc/ratbox-services.conf.sample to
+%%PREFIX%%/etc/ratbox-services.conf, and edit it as per the ratbox-services
+documentation. This file is required to start the server.
+
+Once you have added ratbox_services_enable="YES" to /etc/rc.conf, the
+server can be started by running:
+
+ %%PREFIX%%/etc/rc.d/ratbox-services.sh start
+------------------------------------------------------------------------
diff --git a/irc/ratbox-services/files/ratbox-services.sh.in b/irc/ratbox-services/files/ratbox-services.sh.in
new file mode 100644
index 000000000000..321384a3d0f8
--- /dev/null
+++ b/irc/ratbox-services/files/ratbox-services.sh.in
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+# PROVIDE: ratbox-services
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+
+. %%RC_SUBR%%
+
+name="ratbox_services"
+rcvar=`set_rcvar`
+load_rc_config $name
+
+ratbox_services_enable=${ratbox_services_enable:-"NO"}
+ratbox_services_user=${ratbox_services_user:-"ircservices"}
+ratbox_services_group=${ratbox_services_group:-"ircservices"}
+
+command="%%PREFIX%%/sbin/ratbox-services"
+pidfile=%%RUNDIR%%/ratbox-services.pid
+required_files="%%PREFIX%%/etc/ratbox-services.conf"
+
+start_precmd=prestart
+stop_precmd=prestop
+
+prestart()
+{
+ touch $pidfile
+ chown $ratbox_services_user:$ratbox_services_group $pidfile
+}
+
+prestop()
+{
+ rm -f $pidfile
+}
+
+run_rc_command "$1"
diff --git a/irc/ratbox-services/pkg-descr b/irc/ratbox-services/pkg-descr
new file mode 100644
index 000000000000..b7c6157a3106
--- /dev/null
+++ b/irc/ratbox-services/pkg-descr
@@ -0,0 +1,17 @@
+ratbox-services is a services package written mostly from scratch for
+use with ircd-ratbox.
+
+It is highly configurable, with nearly all options being set in a config
+that can be rehashed rather than set at compile time. It also uses the
+SQLite database backend, which works as a database interface to a normal
+file, meaning no seperate database software must be running.
+
+Features:
+ - User, nick and channel services
+ - Jupe service
+ - Global message service
+ - Oper services
+ - Opered bot
+ - List service
+
+WWW: http://services.ircd-ratbox.org/
diff --git a/irc/ratbox-services/pkg-plist b/irc/ratbox-services/pkg-plist
new file mode 100644
index 000000000000..f041d62cb8fc
--- /dev/null
+++ b/irc/ratbox-services/pkg-plist
@@ -0,0 +1,160 @@
+bin/ircd-shortcut
+etc/ratbox-services.conf.sample
+sbin/ratbox-services
+%%DATADIR%%/schema.sql
+%%DATADIR%%/help/alis/general
+%%DATADIR%%/help/alis/index
+%%DATADIR%%/help/alis/list
+%%DATADIR%%/help/main/u-boot
+%%DATADIR%%/help/main/u-connect
+%%DATADIR%%/help/main/u-die
+%%DATADIR%%/help/main/u-events
+%%DATADIR%%/help/main/u-flags
+%%DATADIR%%/help/main/u-quit
+%%DATADIR%%/help/main/u-rehash
+%%DATADIR%%/help/main/u-service
+%%DATADIR%%/help/main/u-stats
+%%DATADIR%%/help/main/u-status
+%%DATADIR%%/help/main/u-who
+%%DATADIR%%/help/operbot/general
+%%DATADIR%%/help/operbot/index
+%%DATADIR%%/help/operbot/index-admin
+%%DATADIR%%/help/operbot/invite
+%%DATADIR%%/help/operbot/objoin
+%%DATADIR%%/help/operbot/obpart
+%%DATADIR%%/help/operbot/op
+%%DATADIR%%/help/operbot/u-objoin
+%%DATADIR%%/help/operbot/u-obpart
+%%DATADIR%%/help/chanserv/addban
+%%DATADIR%%/help/chanserv/adduser
+%%DATADIR%%/help/chanserv/chandrop
+%%DATADIR%%/help/chanserv/chaninfo
+%%DATADIR%%/help/chanserv/chanlist
+%%DATADIR%%/help/chanserv/chanregister
+%%DATADIR%%/help/chanserv/chansuspend
+%%DATADIR%%/help/chanserv/chanunsuspend
+%%DATADIR%%/help/chanserv/clearallops
+%%DATADIR%%/help/chanserv/clearbans
+%%DATADIR%%/help/chanserv/clearmodes
+%%DATADIR%%/help/chanserv/clearops
+%%DATADIR%%/help/chanserv/delban
+%%DATADIR%%/help/chanserv/deluser
+%%DATADIR%%/help/chanserv/general
+%%DATADIR%%/help/chanserv/getkey
+%%DATADIR%%/help/chanserv/index
+%%DATADIR%%/help/chanserv/index-admin
+%%DATADIR%%/help/chanserv/info
+%%DATADIR%%/help/chanserv/invite
+%%DATADIR%%/help/chanserv/listbans
+%%DATADIR%%/help/chanserv/listusers
+%%DATADIR%%/help/chanserv/modauto
+%%DATADIR%%/help/chanserv/modban
+%%DATADIR%%/help/chanserv/moduser
+%%DATADIR%%/help/chanserv/op
+%%DATADIR%%/help/chanserv/set
+%%DATADIR%%/help/chanserv/register
+%%DATADIR%%/help/chanserv/suspend
+%%DATADIR%%/help/chanserv/u-chandrop
+%%DATADIR%%/help/chanserv/u-chaninfo
+%%DATADIR%%/help/chanserv/u-chanregister
+%%DATADIR%%/help/chanserv/u-chansuspend
+%%DATADIR%%/help/chanserv/u-chanunsuspend
+%%DATADIR%%/help/chanserv/unban
+%%DATADIR%%/help/chanserv/unsuspend
+%%DATADIR%%/help/chanserv/voice
+%%DATADIR%%/help/userserv/general
+%%DATADIR%%/help/userserv/index
+%%DATADIR%%/help/userserv/index-admin
+%%DATADIR%%/help/userserv/info
+%%DATADIR%%/help/userserv/login
+%%DATADIR%%/help/userserv/logout
+%%DATADIR%%/help/userserv/register
+%%DATADIR%%/help/userserv/set
+%%DATADIR%%/help/userserv/u-userdrop
+%%DATADIR%%/help/userserv/u-userinfo
+%%DATADIR%%/help/userserv/u-userregister
+%%DATADIR%%/help/userserv/u-usersetpass
+%%DATADIR%%/help/userserv/u-usersuspend
+%%DATADIR%%/help/userserv/u-userunsuspend
+%%DATADIR%%/help/userserv/userdrop
+%%DATADIR%%/help/userserv/userinfo
+%%DATADIR%%/help/userserv/userlist
+%%DATADIR%%/help/userserv/userregister
+%%DATADIR%%/help/userserv/usersetpass
+%%DATADIR%%/help/userserv/usersuspend
+%%DATADIR%%/help/userserv/userunsuspend
+%%DATADIR%%/help/jupeserv/calljupe
+%%DATADIR%%/help/jupeserv/callunjupe
+%%DATADIR%%/help/jupeserv/general
+%%DATADIR%%/help/jupeserv/index
+%%DATADIR%%/help/jupeserv/index-admin
+%%DATADIR%%/help/jupeserv/jupe
+%%DATADIR%%/help/jupeserv/pending
+%%DATADIR%%/help/jupeserv/u-jupe
+%%DATADIR%%/help/jupeserv/u-unjupe
+%%DATADIR%%/help/jupeserv/unjupe
+%%DATADIR%%/help/operserv/general
+%%DATADIR%%/help/operserv/index
+%%DATADIR%%/help/operserv/index-admin
+%%DATADIR%%/help/operserv/omode
+%%DATADIR%%/help/operserv/osjoin
+%%DATADIR%%/help/operserv/ospart
+%%DATADIR%%/help/operserv/takeover
+%%DATADIR%%/help/operserv/u-omode
+%%DATADIR%%/help/operserv/u-osjoin
+%%DATADIR%%/help/operserv/u-ospart
+%%DATADIR%%/help/operserv/u-takeover
+%%DATADIR%%/help/nickserv/drop
+%%DATADIR%%/help/nickserv/general
+%%DATADIR%%/help/nickserv/index
+%%DATADIR%%/help/nickserv/index-admin
+%%DATADIR%%/help/nickserv/info
+%%DATADIR%%/help/nickserv/nickdrop
+%%DATADIR%%/help/nickserv/regain
+%%DATADIR%%/help/nickserv/register
+%%DATADIR%%/help/nickserv/release
+%%DATADIR%%/help/nickserv/set
+%%DATADIR%%/help/nickserv/u-nickdrop
+%%DATADIR%%/help/global/general
+%%DATADIR%%/help/global/index
+%%DATADIR%%/help/global/index-admin
+%%DATADIR%%/help/global/netmsg
+%%DATADIR%%/help/global/u-netmsg
+%%DATADIR%%/help/banserv/findkline
+%%DATADIR%%/help/banserv/findresv
+%%DATADIR%%/help/banserv/findxline
+%%DATADIR%%/help/banserv/general
+%%DATADIR%%/help/banserv/index
+%%DATADIR%%/help/banserv/index-admin
+%%DATADIR%%/help/banserv/kline
+%%DATADIR%%/help/banserv/resv
+%%DATADIR%%/help/banserv/sync
+%%DATADIR%%/help/banserv/u-findkline
+%%DATADIR%%/help/banserv/u-findresv
+%%DATADIR%%/help/banserv/u-findxline
+%%DATADIR%%/help/banserv/u-kline
+%%DATADIR%%/help/banserv/u-resv
+%%DATADIR%%/help/banserv/u-sync
+%%DATADIR%%/help/banserv/u-unkline
+%%DATADIR%%/help/banserv/u-unresv
+%%DATADIR%%/help/banserv/u-unxline
+%%DATADIR%%/help/banserv/u-xline
+%%DATADIR%%/help/banserv/unkline
+%%DATADIR%%/help/banserv/unresv
+%%DATADIR%%/help/banserv/unxline
+%%DATADIR%%/help/banserv/xline
+@dirrm %%DATADIR%%/help/alis
+@dirrm %%DATADIR%%/help/main
+@dirrm %%DATADIR%%/help/operbot
+@dirrm %%DATADIR%%/help/chanserv
+@dirrm %%DATADIR%%/help/userserv
+@dirrm %%DATADIR%%/help/jupeserv
+@dirrm %%DATADIR%%/help/operserv
+@dirrm %%DATADIR%%/help/nickserv
+@dirrm %%DATADIR%%/help/global
+@dirrm %%DATADIR%%/help/banserv
+@dirrm %%DATADIR%%/help
+@dirrm %%DATADIR%%
+@dirrmtry %%DBDIR%%
+@unexec f="/var/log/ratbox-services.log"; if [ ! -s "$f" ]; then rm -f "$f"; fi
+@unexec f="/var/run/ratbox-services.pid"; if [ ! -s "$f" ]; then rm -f "$f"; fi