From aa073f64a5bf7dca38c52258e414ae9c10a9ca8c Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Sat, 4 Oct 2003 00:52:29 +0000 Subject: Initial Release --- net-irc/irc-server/ChangeLog | 10 ++ net-irc/irc-server/Manifest | 3 +- .../irc-server/files/digest-irc-server-2.10.3_p3 | 1 + net-irc/irc-server/files/ircd.rc | 17 +++ net-irc/irc-server/irc-server-2.10.3_p3.ebuild | 124 +++++++++++++++++++++ 5 files changed, 154 insertions(+), 1 deletion(-) create mode 100644 net-irc/irc-server/ChangeLog create mode 100644 net-irc/irc-server/files/digest-irc-server-2.10.3_p3 create mode 100644 net-irc/irc-server/files/ircd.rc create mode 100644 net-irc/irc-server/irc-server-2.10.3_p3.ebuild (limited to 'net-irc/irc-server') diff --git a/net-irc/irc-server/ChangeLog b/net-irc/irc-server/ChangeLog new file mode 100644 index 000000000000..5a2f40a86a2e --- /dev/null +++ b/net-irc/irc-server/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-irc/irc-server +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/irc-server/ChangeLog,v 1.1 2003/10/04 00:52:26 gregf Exp $ + +*irc-server-2.10.3_p3 (03 Oct 2003) + + 03 Oct 2003; Greg Fitzgerald irc-server-2.10.3_p3.ebuild, + files/ircd.rc: + Initial Release + diff --git a/net-irc/irc-server/Manifest b/net-irc/irc-server/Manifest index 3d8240ec3498..da51bab21a85 100644 --- a/net-irc/irc-server/Manifest +++ b/net-irc/irc-server/Manifest @@ -1,3 +1,4 @@ -MD5 7c99a2155bffaa04fbff8b5c17a40172 irc-server-2.10.3_p3.ebuild 3019 +MD5 e738757da7b0732cd751572b5628b8f5 irc-server-2.10.3_p3.ebuild 3256 +MD5 868be06178c3f8dde8325e2d323c32bc ChangeLog 369 MD5 11c6c72ebc4796aa655378f37a51cfa6 files/digest-irc-server-2.10.3_p3 60 MD5 6e86745a672407755d050a20b426dc8e files/ircd.rc 261 diff --git a/net-irc/irc-server/files/digest-irc-server-2.10.3_p3 b/net-irc/irc-server/files/digest-irc-server-2.10.3_p3 new file mode 100644 index 000000000000..9f651d97a3bf --- /dev/null +++ b/net-irc/irc-server/files/digest-irc-server-2.10.3_p3 @@ -0,0 +1 @@ +MD5 bec7916f39043609c528afac507a2e00 irc2.10.3p3.tgz 671722 diff --git a/net-irc/irc-server/files/ircd.rc b/net-irc/irc-server/files/ircd.rc new file mode 100644 index 000000000000..37ad5cc0e79f --- /dev/null +++ b/net-irc/irc-server/files/ircd.rc @@ -0,0 +1,17 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting ircd" + start-stop-daemon --start --quiet --exec /usr/sbin/ircd + eend ${?} +} + +stop() { + ebegin "Stopping ircd" + start-stop-daemon --stop --quiet --pidfile /var/run/ircd/ircd.pid + eend ${?} +} diff --git a/net-irc/irc-server/irc-server-2.10.3_p3.ebuild b/net-irc/irc-server/irc-server-2.10.3_p3.ebuild new file mode 100644 index 000000000000..5bc30bf72e60 --- /dev/null +++ b/net-irc/irc-server/irc-server-2.10.3_p3.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/irc-server/irc-server-2.10.3_p3.ebuild,v 1.1 2003/10/04 00:52:26 gregf Exp $ + +DESCRIPTION="RFC compliant IRC server" +HOMEPAGE="http://www.irc.org" +SRC_URI="ftp://ftp.irc.org/irc/server/irc2.10.3p3.tgz + ftp://ftp.funet.fi/pub/unix/irc/server/irc2.10.3p3.tgz" +LICENSE="GPL-1" +SLOT="0" + +# The only architecture I can test +KEYWORDS="x86" +IUSE="zlib ipv6" + +DEPEND="sys-libs/glibc + sys-libs/ncurses + zlib? ( sys-libs/zlib )" + +RDEPEND="sys-apps/sed + sys-apps/grep + sys-apps/textutils" + +S=${WORKDIR}/irc2.10.3p3 + +src_compile () { + + IRCUID=`grep ^ircd: /etc/passwd | cut -d : -f 3` + IRCGID=`grep ^ircd: /etc/group | cut -d : -f 3` + if [ -z "$IRCGID" ] + then + IRCGID=`grep ^ircd: /etc/passwd | cut -d : -f 4` + fi + + if [ -z "$IRCUID" ] + then + IRCUID=0 + until [ -z "`cut -d : -f 3 /etc/passwd | grep $IRCUID`" ] + do + IRCUID=$RANDOM + done + fi + + if [ -z "$IRCGID" ] + then + IRCGID=0 + until [ -z "`cut -d : -f 3 /etc/group | grep $IRCGID`" ] + do + IRCGID=$RANDOM + done + fi + + echo -n "$IRCUID" > ${T}/user + echo -n "$IRCGID" > ${T}/group + + cd ${S}/support + sed \ + -e "s/^#undef\tOPER_KILL$/#define\tOPER_KILL/" \ + -e "s/^#undef\tOPER_RESTART$/#define\tOPER_RESTART/" \ + -e "s/^#undef TIMEDKLINES$/#define\tTIMEDKLINES\t60/" \ + -e "s/^#undef\tR_LINES$/#define\tR_LINES/" \ + -e "s/^#undef\tCRYPT_OPER_PASSWORD$/#define\tCRYPT_OPER_PASSWORD/" \ + -e "s/^#undef\tCRYPT_LINK_PASSWORD$/#define\tCRYPT_LINK_PASSWORD/" \ + -e "s/^#undef\tIRC_UID$/#define\tIRC_UID\t$IRCUID/" \ + -e "s/^#undef\tIRC_GID$/#define\tIRC_GID\t$IRCGID/" \ + -e "s/^#undef USE_SERVICES$/#define\tUSE_SERVICES/" \ + config.h.dist > config.h.dist~ + mv -f config.h.dist~ config.h.dist + + use zlib && sed -e "s/^#undef\tZIP_LINKS$/#define\tZIP_LINKS/" config.h.dist > config.h.dist~ + mv -f config.h.dist~ config.h.dist + + cd .. + + use zlib && myconf="--with-zlib" || myconf="--without-zlib" + use ipv6 && myconf="$myconf --with-ip6" || myconf="$myconf --without-ip6" + + ./configure \ + --prefix=/usr \ + --host=i686-pc-linux-gnu \ + '--mandir=${prefix}/share/man' \ + --sysconfdir=/etc/ircd \ + --localstatedir=/var/run/ircd \ + --logdir=/var/log \ + $myconf || die + + cd `support/config.guess` + emake ircd iauth chkconf ircd-mkpasswd ircdwatch tkserv || die +} + +src_install() { + + cd `support/config.guess` + make \ + prefix=${D}/usr \ + ircd_conf_dir=${D}/etc/ircd \ + ircd_var_dir=${D}/var/run/ircd \ + ircd_log_dir=${D}/var/log \ + install-server install-tkserv || die + + fowners `cat ${T}/user`.`cat ${T}/group` /var/run/ircd + + cd ../doc + dodoc *-New alt-irc-faq Authors BUGS ChangeLog Etiquette example.conf \ + iauth-internals.txt INSTALL.appendix INSTALL.* LICENSE \ + m4macros README RELEASE* rfc* SERVICE* + docinto Juped + dodoc Juped/Advertisement Juped/ChangeLog.* Juped/INSTALL + docinto Juped/US-Admin + dodoc Juped/US-Admin/Networking + docinto Nets + dodoc Nets/IRCNet + docinto Nets/Europe + dodoc Nets/Europe/* + + exeinto /etc/init.d + newexe ${FILESDIR}/ircd.rc ircd + +} + +pkg_postinst() { + groupadd -g `cat ${T}/group` -o ircd + useradd -c "IRCd server user" -d /etc/ircd -g `cat ${T}/group` -o -s /bin/false -u `cat ${T}/user` ircd +} -- cgit v1.2.3-65-gdbad