diff options
Diffstat (limited to 'net-irc/ultimate/ultimate-2.8.8.ebuild')
-rw-r--r-- | net-irc/ultimate/ultimate-2.8.8.ebuild | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/net-irc/ultimate/ultimate-2.8.8.ebuild b/net-irc/ultimate/ultimate-2.8.8.ebuild new file mode 100644 index 000000000000..85a7f103013f --- /dev/null +++ b/net-irc/ultimate/ultimate-2.8.8.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/ultimate/ultimate-2.8.8.ebuild,v 1.1 2004/07/17 12:27:10 swegener Exp $ + +inherit eutils + +MY_P="${P/ultimate-/Ultimate}" +DESCRIPTION="And IRCd server based on DALnet's DreamForge IRCd." +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" +RESTRICT="nomirror" +HOMEPAGE="http://www.shadow-realm.org/" + +KEYWORDS="~x86 ~sparc ~ppc" +SLOT="0" +LICENSE="GPL-2" +IUSE="debug" + +RDEPEND="virtual/libc" +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +S="${WORKDIR}/${MY_P}" + +[ -z "${localhost}" ] && localhost="localhost" + +src_unpack() { + einfo "To change the settings of your Ultimate ircd server please" + einfo "edit the ${S}/config/ircd.init file." + + einfo "To change the domain name of your server, edit the localhost in" + einfo "ultimage-${PV}.ebuild. Otherwise it will default to localhost." + + unpack ${A} ; cd ${S} + cp Makefile.dist Makefile + sed -i \ + -e "s:XCFLAGS=:XCFLAGS=${CFLAGS}:g" \ + -e "s:IRCDLIBS=:IRCDLIBS=-lcrypt -lresolv:g" \ + -e "s:IRCDDIR=/usr/local/lib/ircd:IRCDDIR=/usr/lib/ircd:g" \ + -e "s:MANDIR=/usr/local/man:MANDIR=/usr/share/man:g" \ + Makefile || die "sed Makefile failed" + + cp ${FILESDIR}/setup.h ${S}/include/setup.h + + # This is supposed to be generated by ./configure + ( + echo "#define MYOSNAME \"`uname -a`\"" + echo "#define DPATH \"/etc/ultimateircd\"" + echo "#define SPATH \"/usr/sbin/ircd\"" + echo "#define NICKLEN 30" + echo "#define LISTEN_SIZE 5" + echo "#define MAXSENDQLENGTH 3000000" + echo "#define BUFFERPOOL (6 * MAXSENDQLENGTH)" + echo "#define MAXCONNECTIONS 1024" + echo "#define NICKNAMEHISTORYLENGTH 500" + echo "#define CRYPT_OPER_PASSWORD 1" + echo "#undef CRYPT_LINK_PASSWORD" + echo "#undef UNIXPORT" + echo "#define NOSPOOF 1" + echo "#define NOSPOOF_SEED01 0x08101979" + echo "#define NOSPOOF_SEED02 0x97910180" + echo "#define DOMAINNAME \"localhost\"" + echo "#define GLIBC2_x" + ) >>${S}/include/settings.h + + epatch ${FILESDIR}/Ultimate-2.8.7-gentoo.patch + + use debug && \ + sed -i \ + -e "s:#undef DEBUGMODE:#define DEBUGMODE:g" config.h +} + +src_compile() { + emake || die "Make failed" +} + +src_install() { + newbin src/ircd ultimate-ircd + newbin ${S}/makeconf ultimate-makeconf + + dodir /etc/ultimateircd + insinto /etc/ultimateircd + doins doc/example.conf + mv ${D}/etc/ultimateircd/example.conf ${D}/etc/ultimateircd/ircd.conf + + doins config/ircd.channels config/ircd.ini config/ircd.klines + doins config/ircd.quotes + + dodir /etc/ultimateircd/networks + insinto /etc/ultimateircd/networks + doins config/networks/*.network + + exeinto /etc/init.d + newexe ${FILESDIR}/ultimateircd.rc ultimateircd + + exeinto /etc/conf.d + newexe ${FILESDIR}/ultimateircd.conf ultimateircd + + dodoc crypt/crypter ircdcron/ircd.cron ircdcron/ircdchk +} |