summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDawid Węgliński <cla@gentoo.org>2007-12-25 12:30:32 +0000
committerDawid Węgliński <cla@gentoo.org>2007-12-25 12:30:32 +0000
commit64e0baed5fd7ca20890ea31e707e60dadab1f6a2 (patch)
tree17efee5327f4946dfd092a1ced7f08c2286d32b7 /net-irc/ircd-hybrid
parentMin version of setuptools needed. (diff)
downloadgentoo-2-64e0baed5fd7ca20890ea31e707e60dadab1f6a2.tar.gz
gentoo-2-64e0baed5fd7ca20890ea31e707e60dadab1f6a2.tar.bz2
gentoo-2-64e0baed5fd7ca20890ea31e707e60dadab1f6a2.zip
Version bump. Thanks to James Spahlinger (eagle-101 on irc) for patches
(Portage version: 2.1.3.19)
Diffstat (limited to 'net-irc/ircd-hybrid')
-rw-r--r--net-irc/ircd-hybrid/ChangeLog9
-rw-r--r--net-irc/ircd-hybrid/files/7.2.3-default-config.patch89
-rw-r--r--net-irc/ircd-hybrid/files/digest-ircd-hybrid-7.2.33
-rw-r--r--net-irc/ircd-hybrid/ircd-hybrid-7.2.3.ebuild158
4 files changed, 258 insertions, 1 deletions
diff --git a/net-irc/ircd-hybrid/ChangeLog b/net-irc/ircd-hybrid/ChangeLog
index 187906c5dead..42a4d1341b9a 100644
--- a/net-irc/ircd-hybrid/ChangeLog
+++ b/net-irc/ircd-hybrid/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-irc/ircd-hybrid
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/ircd-hybrid/ChangeLog,v 1.26 2007/05/21 10:29:30 welp Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ircd-hybrid/ChangeLog,v 1.27 2007/12/25 12:30:31 cla Exp $
+
+*ircd-hybrid-7.2.3 (25 Dec 2007)
+
+ 25 Dec 2007; Dawid Węgliński <cla@gentoo.org>
+ +files/7.2.3-default-config.patch, +ircd-hybrid-7.2.3.ebuild:
+ Version bump. Thanks to James Spahlinger <intelligent.nerd@gmail.com> for
+ patches.
21 May 2007; Peter Weller <welp@gentoo.org> ircd-hybrid-7.2.2.ebuild:
multilib-strict fix for amd64 - bug 178519
diff --git a/net-irc/ircd-hybrid/files/7.2.3-default-config.patch b/net-irc/ircd-hybrid/files/7.2.3-default-config.patch
new file mode 100644
index 000000000000..877e75c214c3
--- /dev/null
+++ b/net-irc/ircd-hybrid/files/7.2.3-default-config.patch
@@ -0,0 +1,89 @@
+diff -urN ircd-hybrid-7.2.3-orig/contrib/help/Makefile.in ircd-hybrid-7.2.3/contrib/help/Makefile.in
+--- ircd-hybrid-7.2.3-orig/contrib/help/Makefile.in 2006-07-17 06:31:27.000000000 +0000
++++ ircd-hybrid-7.2.3/contrib/help/Makefile.in 2006-09-02 16:30:28.000000000 +0000
+@@ -5,7 +5,7 @@
+ INSTALL_DATA= @INSTALL_DATA@
+ RM= @RM@
+
+-prefix= @prefix@
++prefix= ${DESTDIR}/usr/share/ircd-hybrid-7
+ exec_prefix= @execprefix@
+ datarootdir = $(DESTDIR)@datarootdir@
+ uhelpdir= ${prefix}/help/users
+diff -urN ircd-hybrid-7.2.3-orig/help/Makefile.in ircd-hybrid-7.2.3/help/Makefile.in
+--- ircd-hybrid-7.2.3-orig/help/Makefile.in 2006-07-17 06:31:26.000000000 +0000
++++ ircd-hybrid-7.2.3/help/Makefile.in 2006-09-02 16:32:19.000000000 +0000
+@@ -5,7 +5,7 @@
+ INSTALL_DATA = @INSTALL_DATA@
+ RM = @RM@
+
+-prefix = @prefix@
++prefix = ${DESTDIR}/usr/share/ircd-hybrid-7
+ exec_prefix = @execprefix@
+ datarootdir = $(DESTDIR)@datarootdir@
+ uhelpdir = ${prefix}/help/users
+@@ -23,12 +23,12 @@
+ install:
+ @echo installing help files...
+ -@if test ! -d $(prefix)/help; then \
+- echo "mkdir $(prefix)/help"; \
+- mkdir $(prefix)/help; \
+- echo "mkdir $(prefix)/help/users"; \
+- mkdir $(prefix)/help/users; \
+- echo "mkdir $(prefix)/help/opers"; \
+- mkdir $(prefix)/help/opers; \
++ echo "mkdir -p $(prefix)/help"; \
++ mkdir -p $(prefix)/help; \
++ echo "mkdir -p $(prefix)/help/users"; \
++ mkdir -p $(prefix)/help/users; \
++ echo "mkdir -p $(prefix)/help/opers"; \
++ mkdir -p $(prefix)/help/opers; \
+ fi
+ @for help in opers/*; do \
+ if [ -f $$help ]; then \
+diff -urN ircd-hybrid-7.2.3-orig/include/defaults.h ircd-hybrid-7.2.3/include/defaults.h
+--- ircd-hybrid-7.2.3-orig/include/defaults.h 2006-07-17 06:31:22.000000000 +0000
++++ ircd-hybrid-7.2.3/include/defaults.h 2006-09-02 16:37:04.000000000 +0000
+@@ -48,13 +48,13 @@
+ */
+
+ /* dirs */
+-#define DPATH IRCD_PREFIX
++#define DPATH IRCD_PREFIX
+ #define BINPATH IRCD_PREFIX "/bin/"
+-#define MSGPATH IRCD_PREFIX "/messages/"
+-#define ETCPATH IRCD_PREFIX "/etc"
+-#define LOGPATH IRCD_PREFIX "/logs"
+-#define MODPATH IRCD_PREFIX "/modules/"
+-#define AUTOMODPATH IRCD_PREFIX "/modules/autoload/"
++#define MSGPATH IRCD_PREFIX "/share/ircd-hybrid-7/messages/"
++#define ETCPATH "/etc/ircd"
++#define LOGPATH "/var/log/ircd"
++#define MODPATH IRCD_PREFIX "/lib/ircd-hybrid-7/modules/"
++#define AUTOMODPATH IRCD_PREFIX "/lib/ircd-hybrid-7/modules/autoload"
+
+ /* files */
+ #define SPATH BINPATH "/ircd" /* ircd executable */
+@@ -70,7 +70,7 @@
+ #define RKPATH ETCPATH "/rkline.conf"
+ #define MPATH ETCPATH "/ircd.motd" /* MOTD file */
+ #define LPATH LOGPATH "/ircd.log" /* ircd logfile */
+-#define PPATH ETCPATH "/ircd.pid" /* pid file */
++#define PPATH "/var/run/ircd/ircd.pid" /* pid file */
+ #define OPATH ETCPATH "/opers.motd" /* oper MOTD file */
+ #define LIPATH ETCPATH "/links.txt" /* cached links file */
+
+diff -urN ircd-hybrid-7.2.3-orig/modules/m_help.c ircd-hybrid-7.2.3/modules/m_help.c
+--- ircd-hybrid-7.2.3-orig/modules/m_help.c 2006-07-17 06:31:35.000000000 +0000
++++ ircd-hybrid-7.2.3/modules/m_help.c 2006-09-02 16:38:31.000000000 +0000
+@@ -36,8 +36,8 @@
+ #include "modules.h"
+ #include "irc_string.h"
+
+-#define HPATH IRCD_PREFIX "/help/opers"
+-#define UHPATH IRCD_PREFIX "/help/users"
++#define HPATH IRCD_PREFIX "/share/ircd-hybrid-7/help/opers"
++#define UHPATH IRCD_PREFIX "/share/ircd-hybrid-7/help/users"
+ #define HELPLEN 400
+
+ static void m_help(struct Client *, struct Client *, int, char *[]);
diff --git a/net-irc/ircd-hybrid/files/digest-ircd-hybrid-7.2.3 b/net-irc/ircd-hybrid/files/digest-ircd-hybrid-7.2.3
new file mode 100644
index 000000000000..061876a74852
--- /dev/null
+++ b/net-irc/ircd-hybrid/files/digest-ircd-hybrid-7.2.3
@@ -0,0 +1,3 @@
+MD5 683fe6e06635d870cfc211f360772f67 ircd-hybrid-7.2.3.tgz 1010625
+RMD160 58bec65da2492480b9a4e86777c6c19a4b568408 ircd-hybrid-7.2.3.tgz 1010625
+SHA256 67f043470abd6e92227244f5d64e53dea987c0151d832ba0d1428ebe41e04870 ircd-hybrid-7.2.3.tgz 1010625
diff --git a/net-irc/ircd-hybrid/ircd-hybrid-7.2.3.ebuild b/net-irc/ircd-hybrid/ircd-hybrid-7.2.3.ebuild
new file mode 100644
index 000000000000..6c6f5d7fbb0d
--- /dev/null
+++ b/net-irc/ircd-hybrid/ircd-hybrid-7.2.3.ebuild
@@ -0,0 +1,158 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ircd-hybrid/ircd-hybrid-7.2.3.ebuild,v 1.1 2007/12/25 12:30:31 cla Exp $
+
+inherit eutils multilib toolchain-funcs
+
+# Additional configuration options
+MAX_NICK_LENGTH=30
+MAX_CLIENTS=512
+MAX_TOPIC_LENGTH=390
+ENABLE_SMALL_NETWORK=0
+ENABLE_EFNET=0
+
+IUSE="debug ssl static zlib contrib"
+
+DESCRIPTION="IRCD-Hybrid - High Performance Internet Relay Chat"
+HOMEPAGE="http://ircd-hybrid.com/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~ppc ~x86"
+
+RDEPEND="
+ zlib? ( >=sys-libs/zlib-1.1.4-r2 )
+ ssl? ( >=dev-libs/openssl-0.9.7d )"
+
+DEPEND="${RDEPEND}
+ >=sys-devel/flex-2.5.4a-r5
+ >=sys-devel/bison-1.875
+ >=sys-devel/gettext-0.12.1"
+
+pkg_setup() {
+ enewgroup hybrid
+ enewuser hybrid -1 -1 -1 hybrid
+}
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/7.2.3-default-config.patch
+}
+
+src_compile() {
+ local myconf=""
+
+ ewarn
+ ewarn "Server administrators are encouraged to customize some variables in"
+ ewarn "the ebuild if actually deploying hybrid in an IRC network."
+ ewarn "The values below reflect a usable configuration but may not be"
+ ewarn "suitable for large networks in production environments."
+ ewarn
+ ewarn "To change the default settings below you must edit the ebuild."
+ ewarn
+ ewarn "Maximum nick length = ${MAX_NICK_LENGTH}"
+ ewarn " topic length = ${MAX_TOPIC_LENGTH}"
+ ewarn " number of clients = ${MAX_CLIENTS}"
+ ewarn
+
+ if [ ${ENABLE_SMALL_NETWORK} -eq 1 ]
+ then
+ einfo "Configuring for small networks."
+ myconf="${myconf} --enable-small-net"
+ else
+ myconf="${myconf} --disable-small-net"
+ fi
+ if [ ${ENABLE_EFNET} -eq 1 ]
+ then
+ einfo "Configuring for Efnet."
+ myconf="${myconf} --enable-efnet"
+ else
+ myconf="${myconf} --disable-efnet"
+ fi
+
+ epause 5
+
+ econf \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc/ircd \
+ --includedir=/usr/include \
+ --with-nicklen=${MAX_NICK_LENGTH} \
+ --with-topiclen=${MAX_TOPIC_LENGTH} \
+ --with-maxconn=${MAX_CLIENTS} \
+ $(use_enable zlib) \
+ $(use_enable ssl openssl) \
+ $(use_enable !static shared-modules) \
+ $(use_enable debug assert) \
+ ${myconf} \
+ || die "econf failed"
+ emake || die "emake failed"
+
+ # Build respond binary for using rsa keys instead of plain text oper passwords.
+ use ssl && $(tc-getCC) ${CFLAGS} -o respond tools/rsa_respond/respond.c -lcrypto
+
+ # Build contrib Modules if requested by useflag contrib
+ if use contrib; then
+ cd "${S}"/contrib
+ make || dir "make in contrib failed"
+ fi
+}
+
+src_install() {
+ dodir /usr/$(get_libdir)/ircd-hybrid-7
+ keepdir /var/run/ircd /var/log/ircd
+
+ make DESTDIR="${D}" install || die "make install failed"
+
+ insinto /usr/share/ircd-hybrid-7/messages
+ doins messages/*.lang || die "doins failed"
+
+ mv "${D}"/usr/{modules,$(get_libdir)/ircd-hybrid-7}
+ mv "${D}"/usr/bin/{,ircd-}mkpasswd
+ mv "${D}"/etc/ircd/{example,ircd}.conf
+
+ sed -i \
+ -e s:/usr/local/ircd/modules:/usr/$(get_libdir)/ircd-hybrid-7/modules: \
+ "${D}"/etc/ircd/ircd.conf
+
+ use ssl && dosbin "${S}"/respond
+
+ dodoc BUGS ChangeLog Hybrid-team RELNOTES TODO
+ docinto doc
+ dodoc doc/*.txt doc/server-version-info
+ docinto doc/technical
+ dodoc doc/technical/*
+
+ newinitd "${FILESDIR}"/init.d_ircd-7.2.1 ircd
+
+ # Install contrib Modules if requested by useflag contrib
+ if use contrib; then
+ cd "${S}"/contrib
+ make DESTDIR="${D}" install || die "make install contrib failed"
+ fi
+}
+
+pkg_postinst() {
+ chown -R hybrid:hybrid "${ROOT}"/etc/ircd "${ROOT}"/var/{log,run}/ircd
+ chmod 700 "${ROOT}"/etc/ircd "${ROOT}"/var/log/ircd
+
+ if use ssl
+ then
+ elog "To create an RSA keypair for crypted links execute:"
+ elog "emerge --config =${CATEGORY}/${PF}"
+ fi
+}
+
+pkg_config() {
+ einfo "Generating 2048 bit RSA keypair /etc/ircd/ircd.rsa."
+ einfo "The public key is stored in /etc/ircd/ircd.pub."
+
+ openssl genrsa -rand "${ROOT}"/var/run/random-seed -out "${ROOT}"/etc/ircd/ircd.rsa 2048
+ openssl rsa -in "${ROOT}"/etc/ircd/ircd.rsa -pubout -out "${ROOT}"/etc/ircd/ircd.pub
+
+ chown hybrid:hybrid "${ROOT}"/etc/ircd/ircd.rsa "${ROOT}"/etc/ircd/ircd.pub
+ chmod 600 "${ROOT}"/etc/ircd/ircd.rsa
+ chmod 644 "${ROOT}"/etc/ircd/ircd.pub
+
+ einfo "Update the RSA keypair in /etc/ircd/ircd.conf and /REHASH."
+}