summaryrefslogtreecommitdiff
path: root/net-irc/irc-server
diff options
context:
space:
mode:
Diffstat (limited to 'net-irc/irc-server')
-rw-r--r--net-irc/irc-server/Manifest8
-rw-r--r--net-irc/irc-server/files/2.10.3_p3-gentoo.patch11
-rw-r--r--net-irc/irc-server/files/ircd.confd10
-rw-r--r--net-irc/irc-server/files/ircd.rc30
-rw-r--r--net-irc/irc-server/irc-server-2.11.1_p1-r4.ebuild110
-rw-r--r--net-irc/irc-server/metadata.xml5
6 files changed, 174 insertions, 0 deletions
diff --git a/net-irc/irc-server/Manifest b/net-irc/irc-server/Manifest
new file mode 100644
index 000000000000..5d31311d45e0
--- /dev/null
+++ b/net-irc/irc-server/Manifest
@@ -0,0 +1,8 @@
+AUX 2.10.3_p3-gentoo.patch 475 SHA256 8f8202c7a4cbf9f4e5a697ab40582d1dd259e43ffd29c7d9001ddce8336a1057 SHA512 5ce98259c1b8666ca1df50f6c89004fc0c667d5e86355e632d97f1432ee9e4f16b75570b7bd17e954c51ea3385bcb8f3dd58a55e9d34ffcaabef0c5249ec2f6b WHIRLPOOL 4a929df57e7f373dd457322389e0efc7631613b056729769e68e524051311b08ac4c5d5c35ce9140958446dbc5a179addf68679e494ab1a28b087043771e5e60
+AUX ircd.confd 202 SHA256 f38d61bc0a4c6393ad47eadd165a1a6ccbe93dedb54e8eca959b029b764fba31 SHA512 a490883237ecef81be35278612d9cd1431a2ff597448a7c506ea4a6b8e9a9a595f043c9b5f601a47cd3c22ab453e6f79526aea2ec64c4f3ed5092e5f63d367bf WHIRLPOOL 21cb4dadb74723dfc4435bbfa842627249c63852ab59c972943391a7c12e61fdc92355e029f2c7c3cddb90d7ecacf39c4de9409ba2c0b567b8e221a08571662c
+AUX ircd.rc 663 SHA256 97b061e440e13df637482b2667d21f67e19a82370aa5112fd09f6fa863c038ce SHA512 f6b0ef2ff03632cfd31f23781745facba6f92d67f243682c0f63314932dca9bbff6aead430788fc9faa107f17bde500072d5291227cf51ccf4596bf8a9c2b347 WHIRLPOOL 430935c53664de5d9eae2c23a9db429113601e8e165e85d375cd65b78cadc2e49527f17cc42cfeecb5edb30a4ce16dd673d30faf38c022074e7e125b2d01deb3
+DIST irc2.11.1p1.tgz 770458 SHA256 29f83e82cd55f2e2f4362d95eae1da6b53dc1b7d05ff3f41be7b42e6dcbf2e1d SHA512 cc398ddd0129a044bb681504986f3d4d6f6e9b9b703495d62ec237c2e26a81250986336ae6076236eec7576eb0939ad931b45f09779e852cf69d101569c31c2c WHIRLPOOL eccdf4809446d2dbede0bb88928e2404a515684ef8e4b0870df00c892c70f49801edea93f458d301f99b351a705192799ed8716354961e5e19ab4b7e9bd6a0f5
+EBUILD irc-server-2.11.1_p1-r4.ebuild 2921 SHA256 801555abb42161651d643925380642c826a01db8d510bdf6b62798aac3bd8f64 SHA512 b9d6a482d0323834c90185d65aa91269c907865ad182203596f561a322c0c800d76047f7a97bc7c299cba7d1691e2a9e7eaeff584a52e01c4a6d01a90daf70a5 WHIRLPOOL 3758d4de4bc319f12641c27ec28141794c4e6010690ef99ac2b2cce1c5a390e10de0e7c0ff6c7fa67ec1c105f107cce858e933a835a7d9a2abb85203dc669885
+MISC ChangeLog 3668 SHA256 4607bf810888a04bf46ed0a91bc2dc062b7fe0b75ab017e306516651ed0ed844 SHA512 a49ce0c76ab657b87f5d040ba1a4263623a3ae75d4c9d1da8b70fbf053c6d4e11e1cc251dd2d86096161fc3ff2057318adcdc766cfbe3f6127350fb47d91fa35 WHIRLPOOL 7a5419de944a65cace4712a213666ea2be44d1e950f14f3a09fe67b0e31fde8462da7f163e867ecda4048fe46a0ee5b4525546b1e5b8253dd3029d5c1598c4d0
+MISC ChangeLog-2015 2664 SHA256 e4df6d456420718b51401780d0a9727519a2b634d5ae3f58c1347f67e29ad43e SHA512 ef22dbd41149d567638e7fcd1ce7652b237b92b73c28fca3964cb3c9b5bb838661edf04a128e80ef3af8ee91e988d2fe7b8542c099572e08b57cc887511c794b WHIRLPOOL fa38a038c74ce1494cd199ada1f38e5c0ad14423245cac9d5bdc9a6006436632fae25b7876acd721e7daaade18132991231ebb80c66c2d3361e87523505efb73
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-irc/irc-server/files/2.10.3_p3-gentoo.patch b/net-irc/irc-server/files/2.10.3_p3-gentoo.patch
new file mode 100644
index 000000000000..36f558a70470
--- /dev/null
+++ b/net-irc/irc-server/files/2.10.3_p3-gentoo.patch
@@ -0,0 +1,11 @@
+diff -ur irc2.10.3p3.orig/contrib/tkserv/tkserv.c irc2.10.3p3/contrib/tkserv/tkserv.c
+--- irc2.10.3p3.orig/contrib/tkserv/tkserv.c 2001-03-09 07:55:38.000000000 -0600
++++ irc2.10.3p3/contrib/tkserv/tkserv.c 2004-06-08 00:14:33.648900488 -0500
+@@ -549,6 +549,7 @@
+ case -1:
+ sendto_user("You are not allowed to tkline \"%s\".", host); break;
+ default:
++ break;
+ }
+
+ retv = retv < 0 ? 0 : retv; /* errors do not allow authorization */
diff --git a/net-irc/irc-server/files/ircd.confd b/net-irc/irc-server/files/ircd.confd
new file mode 100644
index 000000000000..19766668e76c
--- /dev/null
+++ b/net-irc/irc-server/files/ircd.confd
@@ -0,0 +1,10 @@
+# /etc/conf.d/ircd: configuration for /etc/init.d/ircd
+
+# User account to run ircd as.
+
+#IRCD_USER="ircd"
+
+# Put any additional options for ircd here.
+# See ircd(8) for more information.
+
+#IRCD_OPTS=""
diff --git a/net-irc/irc-server/files/ircd.rc b/net-irc/irc-server/files/ircd.rc
new file mode 100644
index 000000000000..0e3a05d5728f
--- /dev/null
+++ b/net-irc/irc-server/files/ircd.rc
@@ -0,0 +1,30 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+}
+
+IRCD_USER=${IRCD_USER:-ircd}
+
+checkconfig() {
+ if [ ! -e /etc/ircd/ircd.conf ] ; then
+ eerror "You need to create /etc/ircd/ircd.conf first."
+ eerror "An example can be found in /etc/ircd/ircd.conf.example"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return $?
+ ebegin "Starting ircd"
+ start-stop-daemon --start --quiet --chuid "${IRCD_USER}" --exec /usr/sbin/ircd -- ${IRCD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ircd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/ircd/ircd.pid
+ eend $?
+}
diff --git a/net-irc/irc-server/irc-server-2.11.1_p1-r4.ebuild b/net-irc/irc-server/irc-server-2.11.1_p1-r4.ebuild
new file mode 100644
index 000000000000..87e58f909ae3
--- /dev/null
+++ b/net-irc/irc-server/irc-server-2.11.1_p1-r4.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator user
+
+MY_P="irc${PV/_/}"
+
+DESCRIPTION="RFC compliant IRC server"
+HOMEPAGE="http://www.irc.org/"
+SRC_URI="ftp://ftp.irc.org/irc/server/${MY_P}.tgz
+ ftp://ftp.irc.org/irc/server/Old/irc$(get_version_component_range 1-2)/${MY_P}.tgz"
+
+# GPL-2 is for the init script, bug 426038.
+LICENSE="GPL-1 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="zlib ipv6"
+
+RDEPEND="sys-libs/ncurses:0
+ zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}
+ sys-apps/sed
+ sys-apps/grep"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}"/2.10.3_p3-gentoo.patch )
+
+pkg_setup() {
+ enewgroup ircd
+ enewuser ircd -1 -1 -1 ircd
+}
+
+src_configure () {
+ sed -i \
+ -e "s/^#undef\tOPER_KILL$/#define\tOPER_KILL/" \
+ -e "s/^#undef\tOPER_RESTART$/#define\tOPER_RESTART/" \
+ -e "s/^#undef TIMEDKLINES$/#define\tTIMEDKLINES\t60/" \
+ -e "s/^#undef\tR_LINES$/#define\tR_LINES/" \
+ -e "s/^#undef\tCRYPT_OPER_PASSWORD$/#define\tCRYPT_OPER_PASSWORD/" \
+ -e "s/^#undef\tCRYPT_LINK_PASSWORD$/#define\tCRYPT_LINK_PASSWORD/" \
+ -e "s/^#undef\tIRC_UID$/#define\tIRC_UID\t$IRCUID/" \
+ -e "s/^#undef\tIRC_GID$/#define\tIRC_GID\t$IRCGID/" \
+ -e "s/^#undef USE_SERVICES$/#define\tUSE_SERVICES/" \
+ "${S}"/support/config.h.dist \
+ || die "failed to sed definitions in config.h.dist"
+
+ if use zlib ; then
+ sed -i -e "s/^#undef\tZIP_LINKS$/#define\tZIP_LINKS/" \
+ "${S}"/support/config.h.dist \
+ || die "failed to sed ZIP_LINKS definition in config.h.dist"
+ fi
+
+ # The --mandir has single quotes around it, the $prefix is NOT
+ # interpolated into the string.
+ econf \
+ --sysconfdir=/etc/ircd \
+ --localstatedir=/var/run/ircd \
+ --with-logdir=/var/log/ircd \
+ --with-rundir=/var/run/ircd \
+ --mandir='${prefix}/share/man' \
+ $(use_with zlib) \
+ $(use_enable ipv6 ip6)
+}
+
+src_compile() {
+ cd $(support/config.guess) \
+ || die "failed to change into the source directory in src_compile"
+ emake ircd iauth chkconf ircd-mkpasswd ircdwatch tkserv
+}
+
+src_install() {
+ cd $(support/config.guess) \
+ || die "failed to change into the source directory in src_install"
+
+ emake \
+ prefix="${D}"/usr \
+ ircd_conf_dir="${D}"/etc/ircd \
+ ircd_var_dir="${D}"/var/run/ircd \
+ ircd_log_dir="${D}"/var/log/ircd \
+ install-server \
+ install-tkserv
+
+ fowners ircd:ircd /var/run/ircd
+ fowners ircd:ircd /var/log/ircd
+
+ cd ../doc || die "failed to change into the doc directory in src_install"
+
+ dodoc \
+ *-New alt-irc-faq Authors BUGS ChangeLog Etiquette \
+ iauth-internals.txt INSTALL.appendix INSTALL.* \
+ m4macros README RELEASE* rfc* SERVICE*
+
+ docinto Juped
+ dodoc Juped/Advertisement Juped/ChangeLog.* Juped/INSTALL
+
+ docinto Juped/US-Admin
+ dodoc Juped/US-Admin/Networking
+
+ docinto Nets
+ dodoc Nets/IRCNet
+
+ docinto Nets/Europe
+ dodoc Nets/Europe/*
+
+ newinitd "${FILESDIR}"/ircd.rc ircd
+ newconfd "${FILESDIR}"/ircd.confd ircd
+}
diff --git a/net-irc/irc-server/metadata.xml b/net-irc/irc-server/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-irc/irc-server/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>