aboutsummaryrefslogtreecommitdiffstats
path: root/net-irc
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-01-06 21:57:47 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2010-01-06 22:01:01 +0100
commit48a262a0b5d6b447ff28a80029be02bc53a5cfce (patch)
tree0efacb8a0e882c449068becee84e67d01b74a341 /net-irc
parent0d077b6b8fdd152e12407e72cbab6b1d612fa725 (diff)
downloadoverlay-48a262a0b5d6b447ff28a80029be02bc53a5cfce.tar.gz
overlay-48a262a0b5d6b447ff28a80029be02bc53a5cfce.tar.xz
overlay-48a262a0b5d6b447ff28a80029be02bc53a5cfce.zip
added ircu ebuild
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/ircu/Manifest4
-rw-r--r--net-irc/ircu/files/ircu.conf.d3
-rw-r--r--net-irc/ircu/files/ircu.init.d17
-rw-r--r--net-irc/ircu/ircu-2.10.12.12.ebuild65
4 files changed, 89 insertions, 0 deletions
diff --git a/net-irc/ircu/Manifest b/net-irc/ircu/Manifest
new file mode 100644
index 0000000..1fc286a
--- /dev/null
+++ b/net-irc/ircu/Manifest
@@ -0,0 +1,4 @@
+AUX ircu.conf.d 52 RMD160 c33101f725aee5de72d064ca0de717053e12b708 SHA1 e42666c2cbf59fa9b2649ebd7d4187f811be0e89 SHA256 4d7eaa838dd6452143a529b49e1155a2329be78733c83f58b772c12b65a9200a
+AUX ircu.init.d 339 RMD160 ea007ca4cc5e5a378059c0ff4825d671ab8ac015 SHA1 6dba2dc8c3c565fb7a183abbdb68b7cdb42ef763 SHA256 9454740a1f5b5d14059102ab103c6b4a3637e42dcfa42dfc7a2ee047e69e53ba
+DIST ircu2.10.12.12.tar.gz 1013342 RMD160 263155d56ae96556b971aed40eed97ac56501224 SHA1 1b4876d7de2d31bb515b1f6dcb35a12b28ab81d9 SHA256 2af01cde1f09b99638aaaf0f2d82e2b2e2f78ef2e110b34a7e3391c45b1a6988
+EBUILD ircu-2.10.12.12.ebuild 1649 RMD160 99c636f14f3735028f66a3153f6f0a35d864c713 SHA1 d3964415553249610d7e72fb6bd0ec29a7d4201b SHA256 7b41b68a8f7b17292ba56c40ac51e9ec82e58f97cf2f46baa1f7e91013b0b52d
diff --git a/net-irc/ircu/files/ircu.conf.d b/net-irc/ircu/files/ircu.conf.d
new file mode 100644
index 0000000..b5a0e88
--- /dev/null
+++ b/net-irc/ircu/files/ircu.conf.d
@@ -0,0 +1,3 @@
+# Config file for /etc/init.d/icru
+
+IRCU_UID="ircu"
diff --git a/net-irc/ircu/files/ircu.init.d b/net-irc/ircu/files/ircu.init.d
new file mode 100644
index 0000000..6b6ca78
--- /dev/null
+++ b/net-irc/ircu/files/ircu.init.d
@@ -0,0 +1,17 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ircu-ircd"
+ start-stop-daemon --start --quiet --chuid ${IRCU_UID} --exec /usr/bin/ircu-ircd
+ eend $? "Failed to start ircu-ircd"
+}
+
+stop() {
+ ebegin "Stopping ircu-ircd"
+ start-stop-daemon --stop --quiet --exec /usr/bin/ircu-ircd
+ eend $? "Failed to stop ircu-ircd"
+}
diff --git a/net-irc/ircu/ircu-2.10.12.12.ebuild b/net-irc/ircu/ircu-2.10.12.12.ebuild
new file mode 100644
index 0000000..b630a40
--- /dev/null
+++ b/net-irc/ircu/ircu-2.10.12.12.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Undernet IRC Server Development"
+HOMEPAGE="http://coder-com.undernet.org/"
+SRC_URI="mirror://sourceforge/undernet-ircu/${PN}${PVR}.tar.gz"
+S="${WORKDIR}/${PN}${PVR}"
+
+LICENSE="GPL-1"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+IUSE="debug"
+
+src_compile() {
+ # by more gentle by setting the max connections
+ # than the configure script by unternet
+ MAXFD=$(ulimit -Sn)
+ MAXCON=${IRCD_MAX_CONNECTIONS:-$(($MAXFD-4))}
+
+ if [ -z "${IRCD_MAX_CONNECTIONS}" ]; then
+ ewarn "This ircd will allow ${MAXCON} connections."
+ ewarn "You could change this by setting IRCD_MAX_CONNECTIONS in you make.conf."
+ fi
+
+ econf \
+ --with-symlink=ircu-ircd \
+ --with-dpath=/etc/ircu \
+ --with-cpath=/etc/ircu/ircd.conf \
+ --with-lpath=/var/log/ircu/ircu.log \
+ --with-maxcon=${MAXCON} \
+ $(use_enable debug) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ newbin ircd/ircd ircu-ircd || die "newbin failed"
+ newman doc/ircd.8 ircu-ircd.8 || die "newman failed"
+
+ insinto /etc/ircu
+ newins doc/example.conf ircd.conf.sample || die "doins failed"
+
+ newinitd ${FILESDIR}/ircu.init.d ircu || die "newinitd failed"
+ newconfd ${FILESDIR}/ircu.conf.d ircu || die "newconfd failed"
+
+ keepdir /var/log/ircu
+
+ dodoc \
+ INSTALL* LICENSE README* RELEASE.NOTES doc/readme.* \
+ doc/p10.html doc/features.txt doc/Authors \
+ || die "dodoc failed"
+}
+
+pkg_postinst() {
+ enewuser ircu
+ chown ircu ${ROOT}/var/log/ircu
+
+ elog
+ elog "A sample config file can be found at /etc/ircu/ircd.conf.sample"
+ elog
+}