aboutsummaryrefslogtreecommitdiffstats
path: root/irc/hybserv
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2003-11-12 10:31:18 +0800
committerlinimon <linimon@FreeBSD.org>2003-11-12 10:31:18 +0800
commitede2240602d6973aaf88131ef4bae6a327759c4e (patch)
treec22f205c491007f3652dc84611441b961f99f631 /irc/hybserv
parentb289bdaa9c10d69f9ef1fb452587c04eb8d00fc2 (diff)
downloadfreebsd-ports-gnome-ede2240602d6973aaf88131ef4bae6a327759c4e.tar.gz
freebsd-ports-gnome-ede2240602d6973aaf88131ef4bae6a327759c4e.tar.zst
freebsd-ports-gnome-ede2240602d6973aaf88131ef4bae6a327759c4e.zip
HybServ was specifically designed to run with hybrid ircd,
although it *should* work with CSr as well. These services (more or less same code) are currently used by EFNet / DalNet / ICQ / WFNet / HybNet / EFNow / Openprojects Network. Note: this port will create uid 73 and gid 73 if they do not already exist. (In non-batch mode the user is queried first). PR: ports/47128, with a little portlint action added.
Diffstat (limited to 'irc/hybserv')
-rw-r--r--irc/hybserv/Makefile37
-rw-r--r--irc/hybserv/distinfo1
-rw-r--r--irc/hybserv/files/hybserv.sh15
-rw-r--r--irc/hybserv/pkg-descr6
-rw-r--r--irc/hybserv/pkg-install91
-rw-r--r--irc/hybserv/pkg-plist200
6 files changed, 350 insertions, 0 deletions
diff --git a/irc/hybserv/Makefile b/irc/hybserv/Makefile
new file mode 100644
index 000000000000..003c3c46ffa5
--- /dev/null
+++ b/irc/hybserv/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: hybserv
+# Date created: 15 Jan 2003
+# Whom: Rick Fournier <rick@help-desk.ca>
+#
+# $FreeBSD$
+#
+
+PORTNAME= hybserv
+PORTVERSION= 1.8.0
+CATEGORIES= irc
+MASTER_SITES= http://www.srce.hr/~kreator/projects/tarballs/
+
+MAINTAINER= rick@help-desk.ca
+COMMENT= "HybServ2 IRCD Services"
+
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+
+WRKSRC= ${WRKDIR}/hybserv
+
+.if !defined(PACKAGE_BUILDING) && !defined(BATCH)
+IS_INTERACTIVE= yes
+.endif
+
+pre-install:
+.if !defined(PACKAGE_BUILDING) && !defined(BATCH)
+ @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+.endif
+
+post-install:
+ @${SED} -e "s#%PREFIX%#${PREFIX}#" ${FILESDIR}/hybserv.sh \
+ > ${WRKDIR}/hybserv.sh
+ @${INSTALL_SCRIPT} ${WRKDIR}/hybserv.sh ${PREFIX}/etc/rc.d
+ ${CHOWN} -R hybserv:hybserv ${PREFIX}/hybserv
+ ${CHMOD} 700 ${PREFIX}/hybserv
+
+.include <bsd.port.mk>
diff --git a/irc/hybserv/distinfo b/irc/hybserv/distinfo
new file mode 100644
index 000000000000..a59c93d40dd0
--- /dev/null
+++ b/irc/hybserv/distinfo
@@ -0,0 +1 @@
+MD5 (hybserv-1.8.0.tar.gz) = 48ddde6d48f62e72d7a9f457d31a96a2
diff --git a/irc/hybserv/files/hybserv.sh b/irc/hybserv/files/hybserv.sh
new file mode 100644
index 000000000000..99fd74939dea
--- /dev/null
+++ b/irc/hybserv/files/hybserv.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+if [ $# -eq 0 -o x$1 = xstart ]; then
+ if [ -x %PREFIX%/hybserv/hybserv ]; then
+ su -fm hybserv -c %PREFIX%/hybserv/hybserv && echo ' hybserv'
+ fi
+fi
+if [ x$1 = xstop ]; then
+ if [ -f %PREFIX%/hybserv/hybserv.pid ]; then
+ kill `cat %PREFIX%/hybserv/hybserv.pid`
+ else
+ # oh well
+ killall hybserv
+ fi
+fi
+
diff --git a/irc/hybserv/pkg-descr b/irc/hybserv/pkg-descr
new file mode 100644
index 000000000000..c73b34559cb7
--- /dev/null
+++ b/irc/hybserv/pkg-descr
@@ -0,0 +1,6 @@
+HybServ was specifically designed to run with hybrid ircd, although it
+*should* work with CSr as well. These services (more or less same code)
+are currently used by EFNet / DalNet / ICQ / WFNet / HybNet /
+EFNow / Openprojects Network.
+
+WWW: http://www.srce.hr/~kreator/projects/hybserv/
diff --git a/irc/hybserv/pkg-install b/irc/hybserv/pkg-install
new file mode 100644
index 000000000000..a40c5cd66a57
--- /dev/null
+++ b/irc/hybserv/pkg-install
@@ -0,0 +1,91 @@
+#!/bin/sh
+
+# This script is a slightly modified copy of the pkg-install script from the
+# original ircd-hybrid port, by desmo@bandwidth.org.
+
+if [ "x$2" != "xPRE-INSTALL" ]; then
+ exit 0;
+fi
+
+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 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 hybserv 2> /dev/null ; then
+ echo "You already have a group \"hybserv\", 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 \"hybserv\""
+ echo "with a default group of \"hybserv\"."
+ exit 1
+ fi
+ echo "You need a group \"hybserv\"."
+ if which -s pw && yesno "Would you like me to create it" y; then
+ pw groupadd hybserv -g 73 || exit
+ echo "Done."
+ else
+ echo "Please create it, and try again."
+ if ! pw usershow hybserv 2> /dev/null ; then
+ echo "While you're at it, please create a user \"hybserv\""
+ echo 'too, with a default group of "hybserv".'
+ fi
+ exit 1
+ fi
+fi
+
+if pw usershow hybserv 2> /dev/null ; then
+ echo "You already have a user \"hybserv\", 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 \"hybserv\"."
+ exit 1
+ fi
+ echo "You need a user \"hybserv\"."
+ if which -s pw && yesno "Would you like me to create it" y; then
+ pw useradd hybserv -g hybserv -u 73 -h - -d /nonexistent \
+ -s /nonexistent -c "IRC Daemon" || exit
+ echo "Done."
+ else
+ echo "Please create it, and try again."
+ exit 1
+ fi
+fi
diff --git a/irc/hybserv/pkg-plist b/irc/hybserv/pkg-plist
new file mode 100644
index 000000000000..3068a18a0ce0
--- /dev/null
+++ b/irc/hybserv/pkg-plist
@@ -0,0 +1,200 @@
+hybserv/hybserv
+hybserv/cleandb
+hybserv/encryptconf
+hybserv/encryptdb
+hybserv/mkpasswd
+hybserv/servchk
+hybserv/fixlevel
+hybserv/hybserv.conf
+hybserv/settings.conf
+hybserv/motd.dcc
+hybserv/motd.global
+hybserv/shownicks
+hybserv/showchans
+hybserv/help/memoserv/undel
+hybserv/help/memoserv/del
+hybserv/help/memoserv/index
+hybserv/help/memoserv/list
+hybserv/help/memoserv/purge
+hybserv/help/memoserv/read
+hybserv/help/memoserv/reply
+hybserv/help/memoserv/send
+hybserv/help/memoserv/forward
+hybserv/help/seenserv/seennick
+hybserv/help/seenserv/index
+hybserv/help/seenserv/seen
+hybserv/help/seenserv/seenstat
+hybserv/help/seenserv/unseen
+hybserv/help/operserv/dcc/motd
+hybserv/help/operserv/dcc/index
+hybserv/help/operserv/dcc/link
+hybserv/help/operserv/dcc/boot
+hybserv/help/operserv/dcc/quit
+hybserv/help/operserv/dcc/unlink
+hybserv/help/operserv/dcc/who
+hybserv/help/operserv/channel
+hybserv/help/operserv/clones
+hybserv/help/operserv/die
+hybserv/help/operserv/dump
+hybserv/help/operserv/gline
+hybserv/help/operserv/help
+hybserv/help/operserv/htm
+hybserv/help/operserv/hub
+hybserv/help/operserv/identify
+hybserv/help/operserv/ignore
+hybserv/help/operserv/index
+hybserv/help/operserv/join
+hybserv/help/operserv/jump
+hybserv/help/operserv/jupe
+hybserv/help/operserv/kill
+hybserv/help/operserv/killchan
+hybserv/help/operserv/killhost
+hybserv/help/operserv/kline
+hybserv/help/operserv/off
+hybserv/help/operserv/omode
+hybserv/help/operserv/on
+hybserv/help/operserv/part
+hybserv/help/operserv/rehash
+hybserv/help/operserv/reload
+hybserv/help/operserv/restart
+hybserv/help/operserv/save
+hybserv/help/operserv/secure
+hybserv/help/operserv/set
+hybserv/help/operserv/stats
+hybserv/help/operserv/status
+hybserv/help/operserv/trace
+hybserv/help/operserv/umode
+hybserv/help/operserv/ungline
+hybserv/help/operserv/unjupe
+hybserv/help/nickserv/access/add
+hybserv/help/nickserv/access/del
+hybserv/help/nickserv/access/index
+hybserv/help/nickserv/access/list
+hybserv/help/nickserv/set/url
+hybserv/help/nickserv/set/email
+hybserv/help/nickserv/set/gsm
+hybserv/help/nickserv/set/hide
+hybserv/help/nickserv/set/index
+hybserv/help/nickserv/set/kill
+hybserv/help/nickserv/set/master
+hybserv/help/nickserv/set/memos
+hybserv/help/nickserv/set/notify
+hybserv/help/nickserv/set/oper
+hybserv/help/nickserv/set/password
+hybserv/help/nickserv/set/phone
+hybserv/help/nickserv/set/private
+hybserv/help/nickserv/set/secure
+hybserv/help/nickserv/set/signon
+hybserv/help/nickserv/set/uin
+hybserv/help/nickserv/set/unsecure
+hybserv/help/nickserv/set/automask
+hybserv/help/nickserv/collide
+hybserv/help/nickserv/droplink
+hybserv/help/nickserv/flag
+hybserv/help/nickserv/forbid
+hybserv/help/nickserv/ghost
+hybserv/help/nickserv/identify
+hybserv/help/nickserv/index
+hybserv/help/nickserv/info
+hybserv/help/nickserv/link
+hybserv/help/nickserv/list
+hybserv/help/nickserv/noexpire
+hybserv/help/nickserv/recover
+hybserv/help/nickserv/register
+hybserv/help/nickserv/release
+hybserv/help/nickserv/setpass
+hybserv/help/nickserv/showlink
+hybserv/help/nickserv/unforbid
+hybserv/help/nickserv/unlink
+hybserv/help/nickserv/drop
+hybserv/help/statserv/stats
+hybserv/help/statserv/domain
+hybserv/help/statserv/greplog
+hybserv/help/statserv/host
+hybserv/help/statserv/index
+hybserv/help/statserv/refresh
+hybserv/help/statserv/server
+hybserv/help/statserv/showadmins
+hybserv/help/statserv/showopers
+hybserv/help/statserv/showstats
+hybserv/help/statserv/split
+hybserv/help/statserv/clearstats
+hybserv/help/helpserv/chanserv
+hybserv/help/helpserv/index
+hybserv/help/helpserv/memoserv
+hybserv/help/helpserv/nickserv
+hybserv/help/helpserv/operserv
+hybserv/help/helpserv/statserv
+hybserv/help/global/gchannote
+hybserv/help/global/gcmemo
+hybserv/help/global/gmemo
+hybserv/help/global/gnote
+hybserv/help/global/index
+hybserv/help/global/motd
+hybserv/help/chanserv/access/add
+hybserv/help/chanserv/access/del
+hybserv/help/chanserv/access/index
+hybserv/help/chanserv/access/list
+hybserv/help/chanserv/akick/add
+hybserv/help/chanserv/akick/del
+hybserv/help/chanserv/akick/index
+hybserv/help/chanserv/akick/list
+hybserv/help/chanserv/level/index
+hybserv/help/chanserv/level/list
+hybserv/help/chanserv/level/reset
+hybserv/help/chanserv/level/set
+hybserv/help/chanserv/set/verbose
+hybserv/help/chanserv/set/email
+hybserv/help/chanserv/set/founder
+hybserv/help/chanserv/set/forget
+hybserv/help/chanserv/set/password
+hybserv/help/chanserv/set/guard
+hybserv/help/chanserv/set/index
+hybserv/help/chanserv/set/mlock
+hybserv/help/chanserv/set/private
+hybserv/help/chanserv/set/restricted
+hybserv/help/chanserv/set/secure
+hybserv/help/chanserv/set/secureops
+hybserv/help/chanserv/set/splitops
+hybserv/help/chanserv/set/successor
+hybserv/help/chanserv/set/topic
+hybserv/help/chanserv/set/topiclock
+hybserv/help/chanserv/set/url
+hybserv/help/chanserv/set/entrymsg
+hybserv/help/chanserv/forbid
+hybserv/help/chanserv/forget
+hybserv/help/chanserv/halfop
+hybserv/help/chanserv/noexpire
+hybserv/help/chanserv/index
+hybserv/help/chanserv/info
+hybserv/help/chanserv/invite
+hybserv/help/chanserv/list
+hybserv/help/chanserv/clearnoexp
+hybserv/help/chanserv/op
+hybserv/help/chanserv/resetlevels
+hybserv/help/chanserv/register
+hybserv/help/chanserv/unforbid
+hybserv/help/chanserv/status
+hybserv/help/chanserv/unban
+hybserv/help/chanserv/voice
+hybserv/help/chanserv/setpass
+hybserv/help/chanserv/clear
+hybserv/help/chanserv/identify
+hybserv/help/chanserv/drop
+@dirrm hybserv/help/memoserv
+@dirrm hybserv/help/seenserv
+@dirrm hybserv/help/operserv/dcc
+@dirrm hybserv/help/operserv
+@dirrm hybserv/help/nickserv/access
+@dirrm hybserv/help/nickserv/set
+@dirrm hybserv/help/nickserv
+@dirrm hybserv/help/statserv
+@dirrm hybserv/help/helpserv
+@dirrm hybserv/help/global
+@dirrm hybserv/help/chanserv/access
+@dirrm hybserv/help/chanserv/akick
+@dirrm hybserv/help/chanserv/level
+@dirrm hybserv/help/chanserv/set
+@dirrm hybserv/help/chanserv
+@dirrm hybserv/help
+@dirrm hybserv