summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-02-01 04:47:09 +0000
committerMike Frysinger <vapier@gentoo.org>2003-02-01 04:47:09 +0000
commit8d21bc30b99f7b6bac8e8f083257b891f15a7198 (patch)
treed3c4c692045c4a7cac3ea36bf33aa2d02d0f3459 /net-irc
parentAdded dependency on dev-tcltk/tls. (diff)
downloadgentoo-2-8d21bc30b99f7b6bac8e8f083257b891f15a7198.tar.gz
gentoo-2-8d21bc30b99f7b6bac8e8f083257b891f15a7198.tar.bz2
gentoo-2-8d21bc30b99f7b6bac8e8f083257b891f15a7198.zip
initial ebuild
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/unrealircd/ChangeLog8
-rw-r--r--net-irc/unrealircd/files/digest-unrealircd-3.1.5.11
-rw-r--r--net-irc/unrealircd/files/unrealircd-3.1.5.1-Config.patch29
-rw-r--r--net-irc/unrealircd/files/unrealircd.confd17
-rw-r--r--net-irc/unrealircd/files/unrealircd.rc22
-rw-r--r--net-irc/unrealircd/unrealircd-3.1.5.1.ebuild68
6 files changed, 145 insertions, 0 deletions
diff --git a/net-irc/unrealircd/ChangeLog b/net-irc/unrealircd/ChangeLog
new file mode 100644
index 000000000000..e13fc3439c3f
--- /dev/null
+++ b/net-irc/unrealircd/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-irc/unrealircd
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v 1.1 2003/02/01 04:47:09 vapier Exp $
+
+*unrealircd-3.1.5.1 (31 Jan 2003)
+
+ 31 Jan 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/net-irc/unrealircd/files/digest-unrealircd-3.1.5.1 b/net-irc/unrealircd/files/digest-unrealircd-3.1.5.1
new file mode 100644
index 000000000000..c501d9b2a3f6
--- /dev/null
+++ b/net-irc/unrealircd/files/digest-unrealircd-3.1.5.1
@@ -0,0 +1 @@
+MD5 d38463ee6c20fe7e5c0262abc86d2380 Unreal3.1.5.1-Valek.tar.gz 695183
diff --git a/net-irc/unrealircd/files/unrealircd-3.1.5.1-Config.patch b/net-irc/unrealircd/files/unrealircd-3.1.5.1-Config.patch
new file mode 100644
index 000000000000..1b4cfce018c6
--- /dev/null
+++ b/net-irc/unrealircd/files/unrealircd-3.1.5.1-Config.patch
@@ -0,0 +1,29 @@
+--- Config.orig 2003-01-31 22:32:22.000000000 -0500
++++ Config 2003-01-31 22:32:54.000000000 -0500
+@@ -21,7 +21,7 @@
+ SETUP=include/setup.h
+ OPTIONS_H=include/settings.h
+ OPTIONS=Settings
+-AUTO_CONFIG=""
++AUTO_CONFIG="-n"
+ #
+ STDLIBH=undef
+ STDDEFH=undef
+@@ -64,7 +64,7 @@
+ #
+ # Some reasonable defaults
+ #
+-DEFOPT="-O -g"
++DEFOPT="GENTOO_CFLAGS"
+ DEFCFLAGS="$DEFOPT"
+ DEFLIBS="none"
+ MKPASSWDLIBS="-lcrypt"
+@@ -73,7 +73,7 @@
+ IRCNET=""
+ NOSPOOF="1"
+ KLINE_ADDRESS=""
+-DPATH="$DIR"
++DPATH="/etc/unrealircd/"
+ SPATH="$DIR/src/ircd"
+ MODE_X=""
+ TRUEHUB=""
diff --git a/net-irc/unrealircd/files/unrealircd.confd b/net-irc/unrealircd/files/unrealircd.confd
new file mode 100644
index 000000000000..37135d437b66
--- /dev/null
+++ b/net-irc/unrealircd/files/unrealircd.confd
@@ -0,0 +1,17 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/files/unrealircd.confd,v 1.1 2003/02/01 04:47:09 vapier Exp $
+
+# user to run unrealircd as
+UNREALIRCD_USER="UserBah"
+
+# extra options to pass to unrealircd ...
+# useful if you want to specify conf files other
+# than the default
+#
+# [-f config]
+# [-h servername]
+# [-p portnumber]
+# [-x loglevel]
+# [-t] (to enable debug output)
+UNREALIRCD_OPTS=""
diff --git a/net-irc/unrealircd/files/unrealircd.rc b/net-irc/unrealircd/files/unrealircd.rc
new file mode 100644
index 000000000000..8de0dc468d84
--- /dev/null
+++ b/net-irc/unrealircd/files/unrealircd.rc
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/files/unrealircd.rc,v 1.1 2003/02/01 04:47:09 vapier Exp $
+
+depend() {
+ need net
+ use dns
+}
+
+start() {
+ ebegin "Starting unrealircd"
+ start-stop-daemon --start --quiet --exec /usr/bin/unrealircd \
+ --chuid ${UNREALIRCD_USER} -- ${UNREALIRCD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Shutting down unrealircd"
+ killall unrealircd
+ eend $?
+}
diff --git a/net-irc/unrealircd/unrealircd-3.1.5.1.ebuild b/net-irc/unrealircd/unrealircd-3.1.5.1.ebuild
new file mode 100644
index 000000000000..7bad67187e5c
--- /dev/null
+++ b/net-irc/unrealircd/unrealircd-3.1.5.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/unrealircd-3.1.5.1.ebuild,v 1.1 2003/02/01 04:47:09 vapier Exp $
+
+inherit eutils
+
+MY_P="Unreal${PV}"
+DESCRIPTION="aimed to be an advanced, not an easy IRCd"
+HOMEPAGE="http://www.unrealircd.com/"
+SRC_URI="http://www.gower.net/unrealircd/${MY_P}-Valek.tar.gz
+ ftp://unreal.secure-tech.net/${MY_P}-Valek.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="openssl"
+
+DEPEND="virtual/glibc
+ openssl? ( dev-libs/openssl )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A} && cd ${S}
+ rm -f .CHANGES.NEW .RELEASE.NOTES
+ epatch ${FILESDIR}/${P}-Config.patch
+
+ cp Config{,.orig}
+ sed -e "s:GENTOO_CFLAGS:${CFLAGS}:" \
+ Config.orig > Config
+}
+
+src_compile() {
+ ./Config || die "configure failed"
+ make || die "compiling failed"
+}
+
+src_install() {
+ newbin src/ircd unrealircd || die
+ newbin makeconf unrealircd-makeconf || die
+ newbin src/chkconf unrealircd-chkconf || die
+
+ insinto /etc/unrealircd
+ doins badwords.*.conf
+ insinto /etc/unrealircd/networks
+ doins networks/{template.network,unrealircd.conf}
+
+ dodoc doc/* Changes Donation Unreal.nfo dynconf ircdcron/*
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/unrealircd.rc unrealircd
+ insinto /etc/conf.d
+ newins ${FILESDIR}/unrealircd.confd unrealircd
+}
+
+pkg_postinst() {
+ einfo "UnrealIRCD will not run until you do a few things ..."
+ echo
+ einfo "Setup /etc/unrealircd/unrealircd.conf"
+ einfo " see /etc/unrealircd/template.network for more info"
+ einfo "Setup /etc/unrealircd/ircd.conf"
+ einfo " see /usr/share/doc/${PF}/example.conf.gz for more info"
+ echo
+ einfo "You can find example cron scripts here:"
+ einfo " /usr/share/doc/${PF}/ircd.cron"
+ einfo " /usr/share/doc/${PF}/ircdchk"
+ einfo "You can also use /etc/init.d/unrealircd to start at boot"
+}