From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 07FEE138216 for ; Tue, 3 May 2016 00:02:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1264B21C076; Tue, 3 May 2016 00:02:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2CD02E087A for ; Tue, 3 May 2016 00:02:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4CA4E340A5C for ; Tue, 3 May 2016 00:02:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3B42D33A for ; Tue, 3 May 2016 00:02:26 +0000 (UTC) From: "Austin English" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Austin English" Message-ID: <1462232140.ef9efe522330d913ba859834be3fe30a0077b64c.wizardedit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/irc-server/, net-irc/irc-server/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-irc/irc-server/files/ircd.rc net-irc/irc-server/irc-server-2.11.1_p1-r3.ebuild X-VCS-Directories: net-irc/irc-server/ net-irc/irc-server/files/ X-VCS-Committer: wizardedit X-VCS-Committer-Name: Austin English X-VCS-Revision: ef9efe522330d913ba859834be3fe30a0077b64c X-VCS-Branch: master Date: Tue, 3 May 2016 00:02:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0eaf7830-c00f-4445-87b2-0c0f75bff25a X-Archives-Hash: 9a289b6f08e5c47b1bf5fba7daa9e4c1 commit: ef9efe522330d913ba859834be3fe30a0077b64c Author: Austin English gentoo org> AuthorDate: Mon May 2 23:27:18 2016 +0000 Commit: Austin English gentoo org> CommitDate: Mon May 2 23:35:40 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef9efe52 net-irc/irc-server: use #!/sbin/openrc-run instead of #!/sbin/runscript Gentoo-Bug: https://bugs.gentoo.org/573846 Package-Manager: portage-2.2.26 net-irc/irc-server/files/ircd.rc | 4 +- net-irc/irc-server/irc-server-2.11.1_p1-r3.ebuild | 103 ++++++++++++++++++++++ 2 files changed, 105 insertions(+), 2 deletions(-) diff --git a/net-irc/irc-server/files/ircd.rc b/net-irc/irc-server/files/ircd.rc index e048023..3a48660 100644 --- a/net-irc/irc-server/files/ircd.rc +++ b/net-irc/irc-server/files/ircd.rc @@ -1,5 +1,5 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ diff --git a/net-irc/irc-server/irc-server-2.11.1_p1-r3.ebuild b/net-irc/irc-server/irc-server-2.11.1_p1-r3.ebuild new file mode 100644 index 0000000..cf0b971 --- /dev/null +++ b/net-irc/irc-server/irc-server-2.11.1_p1-r3.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils versionator flag-o-matic 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" + +LICENSE="GPL-1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="zlib ipv6" + +RDEPEND="sys-libs/ncurses + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + sys-apps/sed + sys-apps/grep" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + enewgroup ircd + enewuser ircd -1 -1 -1 ircd +} + +src_prepare() { + eapply "${FILESDIR}"/2.10.3_p3-gentoo.patch + default +} + +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 + + use zlib && sed -i -e "s/^#undef\tZIP_LINKS$/#define\tZIP_LINKS/" "${S}"/support/config.h.dist + + 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) + emake ircd iauth chkconf ircd-mkpasswd ircdwatch tkserv +} + +src_install() { + cd $(support/config.guess) + + 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 + 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 +}