Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 2003 10:53:23 +0300 (EEST)
From:      Khamushkin Ilya <illya@space.kremenchug.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/54429: New port: irc/ircd-ru - An modern irc server with translation schemes and other useful features
Message-ID:  <20030713075323.334546FA@space.kremenchug.net>
Resent-Message-ID: <200307130810.h6D8AIgM024001@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         54429
>Category:       ports
>Synopsis:       New port: irc/ircd-ru - An modern irc server with translation schemes and other useful features
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 13 01:10:18 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Khamushkin Ilya
>Release:        FreeBSD 5.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD space.kremenchug.net 5.0-RELEASE FreeBSD 5.0-RELEASE #1: Mon May 12 20:15:32 EEST 2003 root@space.kremenchug.net:/usr/src/sys/i386/compile/SPACE-2003-05-12 i386


>Description:

A port of the ircd-RU IRC daemon.

 ircd-RU! is a modern and powerful IRC server 
 which is based on Bahamut-1.4.35, the DALnet IRC server software, 
 and supports translation schemes, 8-bit nicknames, 
 8-bit case-insensitive names processing 
 and lots of other useful features. 
 Check the ircd-RU! 
 Change Log for a full list of the features implemented 
 and ToDo for a list of features that are scheduled to implement.

WWW: http://www.ircd.ru/

>How-To-Repeat:

>Fix:
--- ircd-ru.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ircd-ru
#	ircd-ru/files
#	ircd-ru/files/ircd.sh
#	ircd-ru/Makefile
#	ircd-ru/distinfo
#	ircd-ru/pkg-descr
#	ircd-ru/pkg-message
#	ircd-ru/pkg-plist
#	ircd-ru/pkg-install
#
echo c - ircd-ru
mkdir -p ircd-ru > /dev/null 2>&1
echo c - ircd-ru/files
mkdir -p ircd-ru/files > /dev/null 2>&1
echo x - ircd-ru/files/ircd.sh
sed 's/^X//' >ircd-ru/files/ircd.sh << 'END-of-ircd-ru/files/ircd.sh'
X#!/bin/sh
X
X# Start or stop ircd
X
XPREFIX=/usr/local/ircd-RU
X
Xcase "$1" in
Xstart)
X	su ircd -c ${PREFIX}/bin/ircd || echo -n 'ircd '
X	;;
Xstop)
X	killall ircd || echo -n 'ircd '
X	;;
X*)
X	echo "Usage: `basename $0` {start|stop}" >&2
X	;;
Xesac
X
Xexit 0
END-of-ircd-ru/files/ircd.sh
echo x - ircd-ru/Makefile
sed 's/^X//' >ircd-ru/Makefile << 'END-of-ircd-ru/Makefile'
X# New ports collection makefile for:	ircd-ru
X# Date Created:				2003.07.11
X# Whom:					Khamushkin Ilya <ilya@ircd.ru>
X
XPORTNAME=	ircd-ru
XPORTVERSION=	1.0.6
XPORTREVISION=	04
XDISTNAME=	ircd-RU-${PORTVERSION}-${PORTREVISION}-stable
XCATEGORIES=	irc
XMASTER_SITES=	http://www.ircd.ru/pub/ircd-RU/
XEXTRACT_SUFX=	.tar.bz2
X
XPREFIX=		/usr/local/ircd-RU
XNO_MTREE=	yes
X
XUSE_BZIP2=	yes
XMAINTAINER=	ilya@ircd.ru
XCOMMENT=	An irc daemon with translation schemes and other useful features
X
XGNU_CONFIGURE=	yes
X
Xpre-build:
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "NOTE:"
X	@${ECHO_MSG} " Edit ${WRKSRC}/include/config.h for specific settings "
X	@${ECHO_MSG} ""
X
Xpre-install:
X	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
X
Xpost-install:
X	@ln -s ${PREFIX}/bin/ircd /usr/local/bin/ircd
X	@cp ${MASTERDIR}/files/ircd.sh /usr/local/etc/rc.d
X	@${CHOWN} -R ircd:ircd ${PREFIX}
X
X.include <bsd.port.mk>
END-of-ircd-ru/Makefile
echo x - ircd-ru/distinfo
sed 's/^X//' >ircd-ru/distinfo << 'END-of-ircd-ru/distinfo'
XMD5 (ircd-RU-1.0.6-04-stable.tar.bz2) = 55ba93b0ecd8808100fe873d8516923e
END-of-ircd-ru/distinfo
echo x - ircd-ru/pkg-descr
sed 's/^X//' >ircd-ru/pkg-descr << 'END-of-ircd-ru/pkg-descr'
XA port of the ircd-RU IRC daemon.
X
X ircd-RU! is a modern and powerful IRC server 
X which is based on Bahamut-1.4.35, the DALnet IRC server software, 
X and supports translation schemes, 8-bit nicknames, 
X 8-bit case-insensitive names processing 
X and lots of other useful features. 
X Check the ircd-RU! 
X Change Log for a full list of the features implemented 
X and ToDo for a list of features that are scheduled to implement.
X
XWWW: http://www.ircd.ru/
X
X- Khamushkin Ilya <ilya@ircd.ru>
END-of-ircd-ru/pkg-descr
echo x - ircd-ru/pkg-message
sed 's/^X//' >ircd-ru/pkg-message << 'END-of-ircd-ru/pkg-message'
Xircd-RU has now been installed.
X
XYou should now edit /usr/local/ircd-RU/etc/ircd.conf
X to suit your needs.
X (cp example.conf ircd.conf; vi ircd.conf)
X
XYou may then start the server by running:
X /usr/local/etc/rc.d/ircd.sh start
END-of-ircd-ru/pkg-message
echo x - ircd-ru/pkg-plist
sed 's/^X//' >ircd-ru/pkg-plist << 'END-of-ircd-ru/pkg-plist'
Xbin/ircd
Xbin/mkpasswd
Xcodepages/cp1251.cp
Xcodepages/cp866.cp
Xcodepages/iso8859-5.cp
Xcodepages/koi8-f.cp
Xcodepages/koi8-r.cp
Xcodepages/translit.cp
Xdoc/README.Ilines
Xdoc/opers.txt
Xdoc/ru_RU.KOI8-R/FAQ.ircd-RU
Xdoc/ru_RU.KOI8-R/README.ircd-RU
Xetc/example.conf
Xetc/example.motd
Xetc/example.smotd
Xetc/kline.conf
Xetc/ru_RU.CP1251/example.motd
Xetc/ru_RU.CP1251/example.smotd
Xetc/ru_RU.KOI8-R/example.conf
X@dirrm bin
X@dirrm codepages
X@dirrm doc/ru_RU.KOI8-R
X@dirrm doc
X@dirrm etc/ru_RU.CP1251
X@dirrm etc/ru_RU.KOI8-R
X@dirrm modules
X@dirrm var/run
X@dirrm var/log
X@dirrm var
X@unexec rm /usr/local/etc/rc.d/ircd.sh
X@unexec rm /usr/local/bin/ircd
END-of-ircd-ru/pkg-plist
echo x - ircd-ru/pkg-install
sed 's/^X//' >ircd-ru/pkg-install << 'END-of-ircd-ru/pkg-install'
X#!/bin/sh
X
X# This script is a modified copy of the pkg-install script 
X# from the original ircd-hybrid port.
X
Xif [ "x$2" != "xPRE-INSTALL" ]; then
X	exit 0;
Xfi
X
Xask() {
X	local question default answer
X
X	question=$1
X	default=$2
X	if [ -z "${BATCH}" ]; then
X		read -p "${question} [${default}]? " answer
X	fi
X	if [ x${answer} = x ]; then
X		answer=${default}
X	fi
X	echo ${answer}
X}
X
Xyesno() {
X	local dflt question answer
X
X	question=$1
X	dflt=$2
X	while :; do
X		answer=$(ask "${question}" "${dflt}")
X		case "${answer}" in
X		[Yy]*)          return 0;;
X		[Nn]*)          return 1;;
X		esac
X		echo "Please answer yes or no."
X	done
X}
X
Xif ! which -s pw ; then
X	cat <<EOF
XYour system does not include the "pw" utility.  You should upgrade
Xto a newer version of FreeBSD.  Without "pw" this script will not
Xrun.
XEOF
X	exit 1
Xfi
X
Xuid=72
Xuser=ircd
Xgid=$uid
Xgroup=$user
Xgecos="Russian IRC daemon" 
Xshell="/bin/sh"
Xhome="/nonexistent"
X
Xecho ""
Xif pw groupshow $group 2> /dev/null ; then
X	echo "You already have a group \"$group\", so I will use it."
Xelse
X	if pw groupshow $gid 2> /dev/null ; then
X		echo "You already have a gid \"$gid\".  Please create a user \"$group\""
X		echo "with a default group of \"$group\"."
X		exit 1
X	fi
X	echo "You need a group \"$group\"."
X	if which -s pw && yesno "Would you like me to create it" y; then
X		pw groupadd $group -g $gid || exit
X		echo "Done."
X	else
X		echo "Please create it, and try again."
X		if ! pw usershow $user 2> /dev/null ; then
X			echo "While you're at it, please create a user \"$user\""
X			echo 'too, with a default group of "$group".'
X		fi
X		exit 1
X	fi
Xfi
X
Xif pw usershow $user 2> /dev/null ; then
X	echo "You already have a user \"$user\", so I will use it."
Xelse
X        if pw usershow $uid 2> /dev/null ; then
X                echo "You already have a uid \"$uid\".  Please create a user \"ircd\""
X                echo "with a default group of \"$group\"."
X                exit 1
X        fi
X	echo "You need a user \"$user\"."
X	if which -s pw && yesno "Would you like me to create it" y; then
X		pw useradd $user -g $group -u $uid -h - -d $home \
X			-s "$shell" -c "$gecos" || exit
X		echo "Done."
X	else
X		echo "Please create it, and try again."
X		exit 1
X	fi
Xfi
END-of-ircd-ru/pkg-install
exit

--- ircd-ru.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030713075323.334546FA>