diff options
author | Nathan Phillip Brink <binki@gentoo.org> | 2012-03-03 06:14:56 +0000 |
---|---|---|
committer | Nathan Phillip Brink <binki@gentoo.org> | 2012-03-03 06:14:56 +0000 |
commit | cd8ee4b923c5375273cadd5e9518e0aff7a18c9d (patch) | |
tree | e64e9e24ff037f7874ec60892121f3da22dd156a /net-irc | |
parent | Version bump. Explicity disable valgrind tests since they now require the git... (diff) | |
download | historical-cd8ee4b923c5375273cadd5e9518e0aff7a18c9d.tar.gz historical-cd8ee4b923c5375273cadd5e9518e0aff7a18c9d.tar.bz2 historical-cd8ee4b923c5375273cadd5e9518e0aff7a18c9d.zip |
Add net-irc/charybdis-3.3.0, a ratbox-based IRCd from atheme, for bug #340611.
Package-Manager: portage-2.2.0_alpha84-r1/cvs/Linux x86_64
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/charybdis/ChangeLog | 11 | ||||
-rw-r--r-- | net-irc/charybdis/Manifest | 27 | ||||
-rw-r--r-- | net-irc/charybdis/charybdis-3.3.0.ebuild | 95 | ||||
-rw-r--r-- | net-irc/charybdis/files/charybdis.confd | 7 | ||||
-rw-r--r-- | net-irc/charybdis/files/charybdis.initd | 39 | ||||
-rw-r--r-- | net-irc/charybdis/metadata.xml | 15 |
6 files changed, 194 insertions, 0 deletions
diff --git a/net-irc/charybdis/ChangeLog b/net-irc/charybdis/ChangeLog new file mode 100644 index 000000000000..536e56826bc7 --- /dev/null +++ b/net-irc/charybdis/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-irc/charybdis +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/charybdis/ChangeLog,v 1.12 2012/03/03 06:14:56 binki Exp $ + +*charybdis-3.3.0 (03 Mar 2012) + + 03 Mar 2012; Nathan Phillip Brink <binki@gentoo.org> +charybdis-3.3.0.ebuild, + +files/charybdis.confd, +files/charybdis.initd, +metadata.xml: + Add net-irc/charybdis-3.3.0, a ratbox-based IRCd from atheme, for bug + #340611. + diff --git a/net-irc/charybdis/Manifest b/net-irc/charybdis/Manifest new file mode 100644 index 000000000000..a2b4140c9f86 --- /dev/null +++ b/net-irc/charybdis/Manifest @@ -0,0 +1,27 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA512 + +AUX charybdis.confd 306 RMD160 45815d282560daa7b754ec3263157e5a4ba09a04 SHA1 0eea8ab0215763bf3d6598b44b4aa457a202b4e7 SHA256 feaf6a2f614d3018453470955d296b91a73c98fab18157da97effe11a305222c +AUX charybdis.initd 957 RMD160 5e3fd4da2cc4a0f0f9694ef80ebb56b43ec616d6 SHA1 d958b0291847a3bd983f141f7b56cfce39166e67 SHA256 b9c7f4b31449a0039a009dffa94d963d6bf6274fb5b5e0c7d3235a9b99c32d78 +DIST charybdis-3.3.0-patches.tar.bz2 10070 RMD160 fbae060723db80b10791d895ff479a0c22cb0c31 SHA1 4f99aaf3b6e28c4c10bfc7cc2f371f39c4d9984b SHA256 ec51bbd99dc8ee7b911bc232ae8e35c99f0d4b0b25562bc7991fbfe9dbe3ad28 +DIST charybdis-3.3.0.tbz2 1478877 RMD160 d969fe9f5c874ef9b5d503c960285248274ec06b SHA1 676f66d88403f61c0823a6a07f74fb63b742551c SHA256 b5feae88c031dee799144fbfde9d64f3ace4c979c337a1047677a17600dddab1 +EBUILD charybdis-3.3.0.ebuild 2600 RMD160 17d3b5fd2f69804f103c47f9f03a4827fa45da93 SHA1 c5769f601d7e634f09d66fa3ae6602ba9d505818 SHA256 5278ec2cac6206e9c28e8accdc8601965722b37cbd1f8461e04f18dfe093e947 +MISC ChangeLog 468 RMD160 38cde9f130058d25eb4aaa702cd283ff2e72524f SHA1 c169aab5683ab2b98bf8e8e3fc985e26cbedeb0c SHA256 7600c4e4fa0c401dac77d9ad6adf0d18cc8db9da8f7572ca2f31ea482d2c5d05 +MISC metadata.xml 426 RMD160 39dfdaac22e978996720ac7a5cc22183d7076a90 SHA1 7222823c715cc8107da9dfc542f585108a2ba6f1 SHA256 03d9cd0ac35f98fe2c0f74a135d20daead446b673b4d9d0d038f837546288325 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.14 (GNU/Linux) + +iQIcBAEBCgAGBQJPUbbtAAoJEHQ6UuhrqBBQ6AQQAIITuEx4/kjOnKrrYw3aBm/p +5veh+UvEVFaqabOw3SPJEtQjtPLZf9vBpS2XPBFa2mdYpqQ2YTpRCaZhl3wVlL51 +fAVPGQWJx9pfIHVHiF3o9z2vZngZbWHwOnY11djqF/MElvbBbVoHqrALBO2bbMJI +Y4KChpy1jBu7TeTeBOmKZIL2GSqTW2FxGIOSxnTxJOx+ty+4yyw7VJ/zlasnIROt +OsbY7GfqT+ja3EEg1sKuM2yy1Ru7b2oTJblk7GoFazUADzh5AkxsRwxnLMyBNzdy +Jr1sPdT2eNpkWIx4Pq2maHkGcLoXL7K0MLpCn9jK76q7gUFAXRTtLOWeVHj7rmQA +RCGgUhshDoZwnPyjnpilnur0xTyN/8/AswZalPVZOY6DuBECfQe3sTDzneRVisWC +GGVAmDDuki+gX8kaDtFHNHP+U2DcU+HApzGKwAj9903NoYlGBWxBzN0K0HKFx7Gu +pmx+368eRbgFDm3SkS+d1jtCkrl9gBlU54RR8szL/fLVqgkf4YQvfbLqrvBaeQgi +g+m/LR/VEFvpMdpIP1ca2SpY2Pbw1BDkyEDNjniDnNZ9RcaGBQ9Qlb1mnrAwG86e +zBNtkOsYZgkHcofA7Dnzn2eYKk1vOkgzoSE2zqQfOFNdNPquw5qRhSvm7ZUy4qTm +tCcVWL7iK/SOxWs8b/zS +=MqgM +-----END PGP SIGNATURE----- diff --git a/net-irc/charybdis/charybdis-3.3.0.ebuild b/net-irc/charybdis/charybdis-3.3.0.ebuild new file mode 100644 index 000000000000..b7f08b73f024 --- /dev/null +++ b/net-irc/charybdis/charybdis-3.3.0.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/charybdis/charybdis-3.3.0.ebuild,v 1.1 2012/03/03 06:14:56 binki Exp $ + +EAPI=4 + +inherit autotools eutils multilib user + +DESCRIPTION="The atheme project's IRCd based on ratbox" +HOMEPAGE="http://atheme.org/project/charybdis http://www.stack.nl/~jilles/irc/#charybdis" +SRC_URI="http://www.stack.nl/~jilles/irc/${P}.tbz2 + http://dev.gentoo.org/~binki/distfiles/${CATEGORY}/${PN}/${P}-patches.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() { + EPATCH_SUFFIX=patch epatch + + eautoreconf + + # 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/charybdis/: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=charybdis- \ + \ + --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 + + # charybdis ircd needs writing to its state (bandb) and log directories + fowners :charybdis /var/{lib,log}/${PN} + fperms 770 /var/{lib,log}/${PN} + + # ensure that charybdis can access but not modify its configuration + # while protecting it from others + fowners :charybdis /etc/${PN}{,/ircd.conf} + fperms 750 /etc/${PN} + fperms 640 /etc/${PN}/ircd.conf +} + +pkg_postinst() { + elog "All of the charybdis binaries in PATH have been prefixed with" + elog "'charybdis-' to prevent file collisions." +} diff --git a/net-irc/charybdis/files/charybdis.confd b/net-irc/charybdis/files/charybdis.confd new file mode 100644 index 000000000000..b57be192379f --- /dev/null +++ b/net-irc/charybdis/files/charybdis.confd @@ -0,0 +1,7 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/charybdis/files/charybdis.confd,v 1.1 2012/03/03 06:14:56 binki Exp $ + +# Specify any extra options to pass to charybdis +CHARYBDIS_OPTS="" diff --git a/net-irc/charybdis/files/charybdis.initd b/net-irc/charybdis/files/charybdis.initd new file mode 100644 index 000000000000..84e7fee0c92f --- /dev/null +++ b/net-irc/charybdis/files/charybdis.initd @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/charybdis/files/charybdis.initd,v 1.1 2012/03/03 06:14:56 binki Exp $ + +extra_started_commands="reload" + +depend() { + use dns net + provide ircd +} + +start() { + if ! [ -d /var/run/charybdis ]; then + ebegin "Creating /var/run/charybdis for ${SVCNAME}" + mkdir /var/run/charybdis \ + && chown :charybdis /var/run/charybdis \ + && chmod 770 /var/run/charybdis + eend $? + fi + + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec /usr/bin/charybdis-ircd \ + --user charybdis --pidfile /var/run/charybdis/ircd.pid \ + ${CHARYBDIS_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --pidfile /var/run/charybdis/ircd.pid + eend $? +} + +reload() { + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --signal HUP --pidfile /var/run/charybdis/ircd.pid + eend $? +} diff --git a/net-irc/charybdis/metadata.xml b/net-irc/charybdis/metadata.xml new file mode 100644 index 000000000000..4740cb09d293 --- /dev/null +++ b/net-irc/charybdis/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>net-irc</herd> + <maintainer> + <email>binki@gentoo.org</email> + <name>Nathan Phillip Brink</name> + </maintainer> + <maintainer> + <email>jdhore@gentoo.org</email> + </maintainer> + <use> + <flag name="largenet">Enable support/tweaks for large networks</flag> + </use> +</pkgmetadata> |