# ChangeLog for net-irc/ircd-hybrid
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/ircd-hybrid/ChangeLog,v 1.18 2005/12/31 13:57:49 flameeyes Exp $
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ircd-hybrid/ChangeLog,v 1.19 2006/06/05 19:45:35 jokey Exp $
+
+*ircd-hybrid-7.2.1 (05 Jun 2006)
+
+ 05 Jun 2006; Markus Ullmann <jokey@gentoo.org> +files/init.d_ircd-7.2.1,
+ +files/7.2.1-default-config.patch, +ircd-hybrid-7.2.1.ebuild:
+ Version bump, thanks to Jan Boysen for providing the needed patch
31 Dec 2005; Diego Pettenò <flameeyes@gentoo.org>
ircd-hybrid-7.0.3.ebuild:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 a51d13575464cd3dac7aec3e077e3a42 ChangeLog 3198
+AUX 7.1.0-default-config.patch 1230 RMD160 a1a878bfc66babf0fd0ebd483068831de6e3cdd2 SHA1 4957595817bfa286589d2943397c77c16025faff SHA256 661e766f926eee089a3b003b2c6842f822737ee6697f8f0c710a2222b11307fb
MD5 2cc5330c07947c6e3ac113d1e1e8bc6b files/7.1.0-default-config.patch 1230
+RMD160 a1a878bfc66babf0fd0ebd483068831de6e3cdd2 files/7.1.0-default-config.patch 1230
+SHA256 661e766f926eee089a3b003b2c6842f822737ee6697f8f0c710a2222b11307fb files/7.1.0-default-config.patch 1230
+AUX 7.2.1-default-config.patch 4085 RMD160 a800997efc5e06f4381a170bf716fc61a67e42f2 SHA1 a49f1f432c6b8dc056c69d78f45e69de3add1170 SHA256 f03aae716c3759be4acb06b68faf7994a52b7e34e626f3b6c60aef274a797082
+MD5 9dcacf1baaf5ac029a47629a8b837899 files/7.2.1-default-config.patch 4085
+RMD160 a800997efc5e06f4381a170bf716fc61a67e42f2 files/7.2.1-default-config.patch 4085
+SHA256 f03aae716c3759be4acb06b68faf7994a52b7e34e626f3b6c60aef274a797082 files/7.2.1-default-config.patch 4085
+AUX conf.d_ircd 410 RMD160 f9f846fb4ca8288154fdf398bd30cfcff6004b03 SHA1 ff67892827909b610b94589c8b6fb6b9f7c37ace SHA256 51774ac286599ff3a6ea4d8cfef7b308681df4f30ba22029684cada79828b2df
MD5 d7fb2ea1489aabedba9a5ec2f160eb23 files/conf.d_ircd 410
+RMD160 f9f846fb4ca8288154fdf398bd30cfcff6004b03 files/conf.d_ircd 410
+SHA256 51774ac286599ff3a6ea4d8cfef7b308681df4f30ba22029684cada79828b2df files/conf.d_ircd 410
+AUX config-ipv4-7.0.3.diff 4227 RMD160 1f449d46082ac73f10b899f7eb64ed13cd0c0210 SHA1 40dd0ce61c6557bcabd5f1a9ee2c09f1bb67e4b5 SHA256 f9b76023969b3cc0d65b65ee92cd7dcf9e9d4f32dd75f642df0fb668b5a3d4b7
MD5 3fa170737a52ed587dfede306e503dcd files/config-ipv4-7.0.3.diff 4227
+RMD160 1f449d46082ac73f10b899f7eb64ed13cd0c0210 files/config-ipv4-7.0.3.diff 4227
+SHA256 f9b76023969b3cc0d65b65ee92cd7dcf9e9d4f32dd75f642df0fb668b5a3d4b7 files/config-ipv4-7.0.3.diff 4227
+AUX config-ipv6-7.0.3.diff 4227 RMD160 c8e31b5d3237a33645fb322020c9fd6dbb99f2d2 SHA1 a459a42a64cc74c70ca7b10dc32d0de124b6070f SHA256 7293cdfd9c0d7848cb2945f278900d5bdb27d7796a1094cf16fe09057e70ca9e
MD5 a60d0a00176f6ce75b380697db667e95 files/config-ipv6-7.0.3.diff 4227
-MD5 12b134810a484d2ec3480bd5cdf8be76 files/digest-ircd-hybrid-7.0.3 67
-MD5 be5e20539ebf85497a86bff5595ea2f6 files/digest-ircd-hybrid-7.1.0 67
-MD5 3ec327ab8324e319cc99f8f97c53bdd2 files/digest-ircd-hybrid-7.1.1 67
+RMD160 c8e31b5d3237a33645fb322020c9fd6dbb99f2d2 files/config-ipv6-7.0.3.diff 4227
+SHA256 7293cdfd9c0d7848cb2945f278900d5bdb27d7796a1094cf16fe09057e70ca9e files/config-ipv6-7.0.3.diff 4227
+AUX init.d_ircd 1439 RMD160 10e98de3851db7fc18ab094af7ac640dbef39757 SHA1 1fe2715f53a3699ff074d6c0bdeb383d6227430c SHA256 9e04ae608b03976d3a16680460b5b0f66b84f8b9875836f3ac5610fc41ae6c08
MD5 8950404b48f4f9a7455cf911bd1b94c1 files/init.d_ircd 1439
+RMD160 10e98de3851db7fc18ab094af7ac640dbef39757 files/init.d_ircd 1439
+SHA256 9e04ae608b03976d3a16680460b5b0f66b84f8b9875836f3ac5610fc41ae6c08 files/init.d_ircd 1439
+AUX init.d_ircd-7.1.0 662 RMD160 0e9cf9b36463c0a372e5bfd536f43dc4f6904703 SHA1 5d12daf7b3bf43af8bf5afcf64a58967f870037d SHA256 a1d5754d9345bd0dd20b3ad060ca3d511a7e11ace1cf73bdfd02cfb0baf0b1a9
MD5 d9588c0a65883956055e2b4481ec9a67 files/init.d_ircd-7.1.0 662
+RMD160 0e9cf9b36463c0a372e5bfd536f43dc4f6904703 files/init.d_ircd-7.1.0 662
+SHA256 a1d5754d9345bd0dd20b3ad060ca3d511a7e11ace1cf73bdfd02cfb0baf0b1a9 files/init.d_ircd-7.1.0 662
+AUX init.d_ircd-7.2.1 659 RMD160 e7e4f0a70b3e5e30f3f9a4d9b8ce99a4253a1c82 SHA1 659c5c75fceec377241ab94708f7761dd0230959 SHA256 40b5a4db885581e3a4feb7eb4bd345fddbf42780cf786dc47f69c554912bfd3c
+MD5 313433d7409e24138e20e384eb74498f files/init.d_ircd-7.2.1 659
+RMD160 e7e4f0a70b3e5e30f3f9a4d9b8ce99a4253a1c82 files/init.d_ircd-7.2.1 659
+SHA256 40b5a4db885581e3a4feb7eb4bd345fddbf42780cf786dc47f69c554912bfd3c files/init.d_ircd-7.2.1 659
+AUX ircd-hybrid-7.0.3.diff 2606 RMD160 e3f1d4cdc889beb128e506bdaffbcf5e285e7886 SHA1 7eba735571b90d62dcaaf46993d3785290a5af38 SHA256 124828810fe34e2f825f6e15b8660b679e3e14a5d7333dba9d3613d79f3ab4fe
MD5 8281bd4963f1a3b0168065602952946f files/ircd-hybrid-7.0.3.diff 2606
+RMD160 e3f1d4cdc889beb128e506bdaffbcf5e285e7886 files/ircd-hybrid-7.0.3.diff 2606
+SHA256 124828810fe34e2f825f6e15b8660b679e3e14a5d7333dba9d3613d79f3ab4fe files/ircd-hybrid-7.0.3.diff 2606
+DIST ircd-hybrid-7.0.3.tgz 1147557
+DIST ircd-hybrid-7.1.0.tgz 1218466
+DIST ircd-hybrid-7.1.1.tgz 1190396
+DIST ircd-hybrid-7.2.1.tgz 1013005 RMD160 c8f859f7e6e956c6d738641b1993423212fbd377 SHA1 c5683c1fac984d210a79a8742e9c2ef31a249db8 SHA256 66479aa1aaf6fbca79c90789e8dae1b04ffe66dbd2aba72e9906deebbb4e7938
+EBUILD ircd-hybrid-7.0.3.ebuild 10100 RMD160 f00a415cd22162c4431725b8b68b78c0fa8cb890 SHA1 420e06c1b0143d5b3b8fe84285355b70a697a2d9 SHA256 33f8c8ba9b87b37b1eed9f38e5ca2d82cc9892562226aae49c1b428afd80915b
MD5 94af7d9c90fe5412cbbaf172a628a565 ircd-hybrid-7.0.3.ebuild 10100
+RMD160 f00a415cd22162c4431725b8b68b78c0fa8cb890 ircd-hybrid-7.0.3.ebuild 10100
+SHA256 33f8c8ba9b87b37b1eed9f38e5ca2d82cc9892562226aae49c1b428afd80915b ircd-hybrid-7.0.3.ebuild 10100
+EBUILD ircd-hybrid-7.1.0.ebuild 4873 RMD160 28e075ff64143374024a0a9e604b4e583926fe08 SHA1 9c8ae046fb359bc278a0fffc0de619982589547f SHA256 417076e29109b4091a53615d8c826c13cb5341232fd23ce87ff6301d336c53ad
MD5 ef8d5a4a643df4fd25944866e827ec43 ircd-hybrid-7.1.0.ebuild 4873
+RMD160 28e075ff64143374024a0a9e604b4e583926fe08 ircd-hybrid-7.1.0.ebuild 4873
+SHA256 417076e29109b4091a53615d8c826c13cb5341232fd23ce87ff6301d336c53ad ircd-hybrid-7.1.0.ebuild 4873
+EBUILD ircd-hybrid-7.1.1.ebuild 3996 RMD160 fa0bd8086ac661002892f2a3710b250c72ad32f6 SHA1 7f416d527e2ae5efca079cf497b34a1ba17c82dd SHA256 2b8feaddd6c6dc1218c1a79d055bc30c2e10dcc12e9c30d8161d0fd8cdd33936
MD5 4239b9b0611d04c54373794cb77d8509 ircd-hybrid-7.1.1.ebuild 3996
+RMD160 fa0bd8086ac661002892f2a3710b250c72ad32f6 ircd-hybrid-7.1.1.ebuild 3996
+SHA256 2b8feaddd6c6dc1218c1a79d055bc30c2e10dcc12e9c30d8161d0fd8cdd33936 ircd-hybrid-7.1.1.ebuild 3996
+EBUILD ircd-hybrid-7.2.1.ebuild 4281 RMD160 517ab4171cd1d1f2ed1888b8c7f090d6e527de57 SHA1 9206172082d6bb6218092d43639d1a4ab31a19d8 SHA256 27c57d761263f4f755db117217f9ca187c31964629597b9f31af63037280ccbe
+MD5 b6539f96ffae86f9a18ff79bdee3cac7 ircd-hybrid-7.2.1.ebuild 4281
+RMD160 517ab4171cd1d1f2ed1888b8c7f090d6e527de57 ircd-hybrid-7.2.1.ebuild 4281
+SHA256 27c57d761263f4f755db117217f9ca187c31964629597b9f31af63037280ccbe ircd-hybrid-7.2.1.ebuild 4281
+MISC ChangeLog 3436 RMD160 986a8c196e1ac01cada41f68e17c5f4752dece6e SHA1 dea8b15025b827f89ec5d4aace93770529065ead SHA256 f79830565f3caf7987b94964ecc0c265658f679acf52fe5399d93fc659a4a849
+MD5 ca236a4f1771784994dc3b02d6311974 ChangeLog 3436
+RMD160 986a8c196e1ac01cada41f68e17c5f4752dece6e ChangeLog 3436
+SHA256 f79830565f3caf7987b94964ecc0c265658f679acf52fe5399d93fc659a4a849 ChangeLog 3436
+MISC metadata.xml 160 RMD160 279429d1df694561fc2b163cb81c09387b9d940c SHA1 97da1b72eecc5585c65717da08eaccc9bc1cf7cd SHA256 5e058419199e306612929b80a996e3d16c6b20de674a56bb60558d3d36524fe2
MD5 44c39c6ad372a8e5a5e7ee3311f703a7 metadata.xml 160
+RMD160 279429d1df694561fc2b163cb81c09387b9d940c metadata.xml 160
+SHA256 5e058419199e306612929b80a996e3d16c6b20de674a56bb60558d3d36524fe2 metadata.xml 160
+MD5 12b134810a484d2ec3480bd5cdf8be76 files/digest-ircd-hybrid-7.0.3 67
+RMD160 f3850223ba802a9a977c9e6e78642f4c12f78aed files/digest-ircd-hybrid-7.0.3 67
+SHA256 292af2335c7e41c743671550a62eca1a54c1c45060b0888fb13a92cb8dda697f files/digest-ircd-hybrid-7.0.3 67
+MD5 be5e20539ebf85497a86bff5595ea2f6 files/digest-ircd-hybrid-7.1.0 67
+RMD160 9930bf6b7ccdaef099bb925fe239cac54ae9e123 files/digest-ircd-hybrid-7.1.0 67
+SHA256 22c74aa913a726a4a238e96632c3e40147c799c0ecc275064d95d18ae559fbc1 files/digest-ircd-hybrid-7.1.0 67
+MD5 3ec327ab8324e319cc99f8f97c53bdd2 files/digest-ircd-hybrid-7.1.1 67
+RMD160 ba60b9ae24044c7a177c666bf5237dcf11a944d5 files/digest-ircd-hybrid-7.1.1 67
+SHA256 f48a02cd4b321295c8ad8daa145fef7a5137f2761d974b7b775353e6d6f8e462 files/digest-ircd-hybrid-7.1.1 67
+MD5 5ff254cea2c069a8dc2460725f8714b6 files/digest-ircd-hybrid-7.2.1 247
+RMD160 0dae654f897e9b4d7905f73484a868254a476333 files/digest-ircd-hybrid-7.2.1 247
+SHA256 6118a5504ddcda69e0c112f12398bc43cc38febe3c2351818658a4e598e42c7b files/digest-ircd-hybrid-7.2.1 247
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
+Version: GnuPG v1.4.3 (GNU/Linux)
-iD8DBQFDto5pAiZjviIA2XgRAkrjAKDnLqtBSGdR3Ke0UCyLbOEvahHHawCghXZi
-zPHhX0Y7qK1kO1Lhzyvqfys=
-=zV6A
+iD8DBQFEhInsz974XjDVpbkRAhclAJwJ48t0wDHd/MUpis/3rVK3QzKlggCgj7k9
+UGWk6VVBHx6YgG3XuNx4veE=
+=qtFu
-----END PGP SIGNATURE-----
--- /dev/null
+diff -urN ircd-hybrid-7.2.1.orig/contrib/Makefile.in ircd-hybrid-7.2.1/contrib/Makefile.in
+--- ircd-hybrid-7.2.1.orig/contrib/Makefile.in 2006-03-27 01:36:56.000000000 +0200
++++ ircd-hybrid-7.2.1/contrib/Makefile.in 2006-06-04 22:00:40.000000000 +0200
+@@ -17,7 +17,7 @@
+ INSTALL = @INSTALL@
+ INSTALL_DATA = @INSTALL_DATA@
+
+-prefix = $(DESTDIR)@prefix@
++prefix = $(DESTDIR)@prefix@/lib/ircd-hybrid-7
+
+ AUTOMODULEDIR = ${prefix}/modules
+
+diff -urN ircd-hybrid-7.2.1.orig/contrib/help/Makefile.in ircd-hybrid-7.2.1/contrib/help/Makefile.in
+--- ircd-hybrid-7.2.1.orig/contrib/help/Makefile.in 2006-03-27 01:36:56.000000000 +0200
++++ ircd-hybrid-7.2.1/contrib/help/Makefile.in 2006-06-04 21:49:59.000000000 +0200
+@@ -5,7 +5,7 @@
+ INSTALL_DATA= @INSTALL_DATA@
+ RM= @RM@
+
+-prefix= @prefix@
++prefix= ${DESTDIR}/usr/share/ircd-hybrid-7
+ exec_prefix= @execprefix@
+ uhelpdir= ${prefix}/help/users
+ ohelpdir= ${prefix}/help/opers
+diff -urN ircd-hybrid-7.2.1.orig/help/Makefile.in ircd-hybrid-7.2.1/help/Makefile.in
+--- ircd-hybrid-7.2.1.orig/help/Makefile.in 2006-03-27 01:36:55.000000000 +0200
++++ ircd-hybrid-7.2.1/help/Makefile.in 2006-06-04 21:58:23.000000000 +0200
+@@ -5,7 +5,7 @@
+ INSTALL_DATA= @INSTALL_DATA@
+ RM= @RM@
+
+-prefix= @prefix@
++prefix= ${DESTDIR}/usr/share/ircd-hybrid-7
+ exec_prefix= @execprefix@
+ uhelpdir= ${prefix}/help/users
+ ohelpdir= ${prefix}/help/opers
+@@ -22,12 +22,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.1.orig/include/defaults.h ircd-hybrid-7.2.1/include/defaults.h
+--- ircd-hybrid-7.2.1.orig/include/defaults.h 2006-03-27 01:36:51.000000000 +0200
++++ ircd-hybrid-7.2.1/include/defaults.h 2006-06-04 16:04:45.000000000 +0200
+@@ -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.1.orig/modules/m_help.c ircd-hybrid-7.2.1/modules/m_help.c
+--- ircd-hybrid-7.2.1.orig/modules/m_help.c 2006-03-27 01:37:02.000000000 +0200
++++ ircd-hybrid-7.2.1/modules/m_help.c 2006-06-04 16:07:18.000000000 +0200
+@@ -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 *[]);
--- /dev/null
+MD5 00901c5e2e9bf44ab37a28596af6608e ircd-hybrid-7.2.1.tgz 1013005
+RMD160 c8f859f7e6e956c6d738641b1993423212fbd377 ircd-hybrid-7.2.1.tgz 1013005
+SHA256 66479aa1aaf6fbca79c90789e8dae1b04ffe66dbd2aba72e9906deebbb4e7938 ircd-hybrid-7.2.1.tgz 1013005
--- /dev/null
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ircd-hybrid/files/init.d_ircd-7.2.1,v 1.1 2006/06/05 19:45:35 jokey Exp $
+
+opts="${opts} rehash"
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting IRCd-Hybrid7 daemon"
+ start-stop-daemon --start --quiet --chuid hybrid --exec /usr/bin/ircd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping IRCd-Hybrid7 daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/ircd/ircd.pid
+ eend $?
+}
+
+rehash() {
+ ebegin "Rehashing IRCd-Hybrid7 IPv4 daemon"
+ kill -s SIGHUP $(</var/run/ircd/ircd.pid)
+ eend $?
+}
--- /dev/null
+# Copyright 1999-2006 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.1.ebuild,v 1.1 2006/06/05 19:45:35 jokey Exp $
+
+inherit eutils 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="~x86 ~alpha ~amd64"
+
+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.1-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/lib/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,lib/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/lib/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
+ einfo "To create an RSA keypair for crypted links execute:"
+ einfo "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."
+}