summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Horelick <jdhore@gentoo.org>2012-03-03 06:48:53 +0000
committerJeff Horelick <jdhore@gentoo.org>2012-03-03 06:48:53 +0000
commit2ff58e283b1a5b92e0bd470899faecbc42dee564 (patch)
treeceb09f02f6e039864206195e24647c4af6570237 /net-irc
parentAdd missing patch, reported by floppym. (diff)
downloadhistorical-2ff58e283b1a5b92e0bd470899faecbc42dee564.tar.gz
historical-2ff58e283b1a5b92e0bd470899faecbc42dee564.tar.bz2
historical-2ff58e283b1a5b92e0bd470899faecbc42dee564.zip
Add net-irc/shadowircd-6.3.2.1, an IRCd based on charybdis, but adds several useful features.
Package-Manager: portage-2.2.0_alpha89/cvs/Linux i686
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/shadowircd/ChangeLog11
-rw-r--r--net-irc/shadowircd/Manifest6
-rw-r--r--net-irc/shadowircd/files/shadowircd.confd6
-rw-r--r--net-irc/shadowircd/files/shadowircd.initd38
-rw-r--r--net-irc/shadowircd/metadata.xml16
-rw-r--r--net-irc/shadowircd/shadowircd-6.3.2.1.ebuild89
6 files changed, 166 insertions, 0 deletions
diff --git a/net-irc/shadowircd/ChangeLog b/net-irc/shadowircd/ChangeLog
new file mode 100644
index 000000000000..6331113dd80f
--- /dev/null
+++ b/net-irc/shadowircd/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-irc/shadowircd
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/shadowircd/ChangeLog,v 1.1 2012/03/03 06:48:53 jdhore Exp $
+
+*shadowircd-6.3.2.1 (03 Mar 2012)
+
+ 03 Mar 2012; Jeff Horelick <jdhore@gentoo.org> +files/shadowircd.confd,
+ +files/shadowircd.initd, +metadata.xml, +shadowircd-6.3.2.1.ebuild:
+ Add net-irc/shadowircd-6.3.2.1, an IRCd based on charybdis, but adds several
+ useful features.
+
diff --git a/net-irc/shadowircd/Manifest b/net-irc/shadowircd/Manifest
new file mode 100644
index 000000000000..0c6c150c218b
--- /dev/null
+++ b/net-irc/shadowircd/Manifest
@@ -0,0 +1,6 @@
+AUX shadowircd.confd 195 RMD160 b2e8a5aa84ddd72b7146011a66c76a41b15e1c7b SHA1 0feff3f846e1ac736bf7283237148246ce0faced SHA256 1e59efec6f10b4dcc6f72709804c45f3baaca7032fc4c89a9d4798a9e1fa5dde
+AUX shadowircd.initd 855 RMD160 d17bd3b565b6ff561ac1ecf019b6a1fb338b20ff SHA1 b7210335f2ee17dc8397f980a663a92c9991353f SHA256 a61030a5587ec2e1fa7cab8ba81ea5633ef6b15b5f69d53d8f7c2441a7b452b3
+DIST shadowircd-6.3.2.1.tar.bz2 1536682 RMD160 343de94547391c274788a16e70f5814be1aab9e6 SHA1 4593b18731b403bd08b796bcf33c6d7c56ba54bb SHA256 c98d7860821fb8bd9f22330da23b77c934a46bb5545f53874342113e74bf758c
+EBUILD shadowircd-6.3.2.1.ebuild 2322 RMD160 931cbdfcc85c1daf88c175e37583449dea338034 SHA1 fe4619bb0a883058bcc15ca7305d5a3d070734c5 SHA256 49824a3ee96d74e3c9257121ad745618d12e08dc1749155cefab733990408ed0
+MISC ChangeLog 487 RMD160 e25996585cbdb3f3f658779dc7cd71b7732c2e2f SHA1 6eccf8093894bf1eb4835fc26107b028d465c3c1 SHA256 d140827198dbcbc49944d7ed22d6260fe0a049bd3e97f42608e7e977e80c810a
+MISC metadata.xml 454 RMD160 74574a759b654080639d151963c5b61fa77be993 SHA1 a5db35666e96526cd7b14659ca128f9a280a035b SHA256 658e92ecdf1b3acafaeb55ca6c7906471bc508fc3973f76a54feb653f0045668
diff --git a/net-irc/shadowircd/files/shadowircd.confd b/net-irc/shadowircd/files/shadowircd.confd
new file mode 100644
index 000000000000..021816bde288
--- /dev/null
+++ b/net-irc/shadowircd/files/shadowircd.confd
@@ -0,0 +1,6 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Specify any extra options to pass to shadowircd
+SHADOWIRCD_OPTS=""
diff --git a/net-irc/shadowircd/files/shadowircd.initd b/net-irc/shadowircd/files/shadowircd.initd
new file mode 100644
index 000000000000..6c5b0cd89f69
--- /dev/null
+++ b/net-irc/shadowircd/files/shadowircd.initd
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+extra_started_commands="reload"
+
+depend() {
+ use dns net
+ provide ircd
+}
+
+start() {
+ if ! [ -d /var/run/shadowircd ]; then
+ ebegin "Creating /var/run/shadowircd for ${SVCNAME}"
+ mkdir /var/run/shadowircd \
+ && chown :shadowircd /var/run/shadowircd \
+ && chmod 770 /var/run/shadowircd
+ eend $?
+ fi
+
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --exec /usr/bin/shadowircd-ircd \
+ --user shadowircd --pidfile /var/run/shadowircd/ircd.pid \
+ ${CHARYBDIS_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --pidfile /var/run/shadowircd/ircd.pid
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading ${SVCNAME}"
+ start-stop-daemon --signal HUP --pidfile /var/run/shadowircd/ircd.pid
+ eend $?
+}
diff --git a/net-irc/shadowircd/metadata.xml b/net-irc/shadowircd/metadata.xml
new file mode 100644
index 000000000000..5de3966e73e4
--- /dev/null
+++ b/net-irc/shadowircd/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-irc</herd>
+ <maintainer>
+ <email>jdhore@gentoo.org</email>
+ <name>Jeff Horelick</name>
+ </maintainer>
+ <maintainer>
+ <email>binki@gentoo.org</email>
+ <name>Nathan Phillip Brink</name>
+ </maintainer>
+ <use>
+ <flag name="largenet">Enable support/tweaks for large networks</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-irc/shadowircd/shadowircd-6.3.2.1.ebuild b/net-irc/shadowircd/shadowircd-6.3.2.1.ebuild
new file mode 100644
index 000000000000..5df5918df3ce
--- /dev/null
+++ b/net-irc/shadowircd/shadowircd-6.3.2.1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils multilib user
+
+DESCRIPTION="An IRCd based on charybdis that adds several useful features"
+HOMEPAGE="http://shadowircd.net"
+SRC_URI="http://shadowircd.net/downloads/${P}.tar.bz2"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug +ipv6 largenet ssl zlib profile"
+
+RDEPEND="ssl? ( dev-libs/openssl )
+ zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}
+ virtual/yacc
+ sys-devel/flex"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 "${EPREFIX}"/usr ${PN}
+}
+
+src_prepare() {
+ # Fill the example configuration file with proper paths.
+ sed -i \
+ -e "s:path =.*modules:path = \"$(get_libdir)/${PN}/modules:g" \
+ -e "s:etc/:../etc/${PN}/:g" \
+ -e "s:logs/:../var/log/shadowircd/:g" \
+ -e "s:test\.\(cert\|key\):ssl.\1:g" \
+ doc/example.conf \
+ doc/reference.conf \
+ || die
+}
+
+src_configure() {
+ econf \
+ ac_cv_prog_cc_g=no \
+ $(use_enable debug assert soft) \
+ $(use_enable debug iodebug) \
+ $(use_enable ipv6) \
+ $(use_enable !largenet small-net) \
+ $(use_enable profile) \
+ $(use_enable ssl openssl) \
+ $(use_enable zlib) \
+ --with-program-prefix=shadowircd- \
+ \
+ --enable-fhs-paths \
+ --sysconfdir="${EPREFIX}"/etc/${PN} \
+ --libdir="${EPREFIX}"/usr/"$(get_libdir)"/${PN} \
+ --with-logdir="${EPREFIX}"/var/log/${PN} \
+ --with-moduledir="${EPREFIX}"/usr/"$(get_libdir)"/${PN}/modules \
+ --with-rundir="${EPREFIX}"/var/run
+}
+
+src_install() {
+ default
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+
+ insinto etc/${PN}
+ newins doc/reference.conf ircd.conf
+
+ keepdir var/{lib,log}/${PN}
+
+ # Ensure that if `make install' created /var/run/${PN}, we still
+ # force the initscript to create that directory.
+ rm -rf "${D}"/var/run || die
+
+ # shadowircd needs writing to its state (bandb) and log directories
+ fowners :shadowircd /var/{lib,log}/${PN}
+ fperms 770 /var/{lib,log}/${PN}
+
+ # ensure that shadowircd can access but not modify its configuration
+ # while protecting it from others
+ fowners :shadowircd /etc/${PN}{,/ircd.conf}
+ fperms 750 /etc/${PN}
+ fperms 640 /etc/${PN}/ircd.conf
+}
+
+pkg_postinst() {
+ elog "All of the shadowircd binaries in PATH have been prefixed with"
+ elog "'shadowircd-' to prevent file collisions."
+}