public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/inspircd/, net-irc/inspircd/files/
Date: Wed,  4 Oct 2017 09:45:43 +0000 (UTC)	[thread overview]
Message-ID: <1507110323.3ea7dc6c0571ba1b675fd6db286b88df2041437d.monsieurp@gentoo> (raw)

commit:     3ea7dc6c0571ba1b675fd6db286b88df2041437d
Author:     Wade Cline <wadecline <AT> hotmail <DOT> com>
AuthorDate: Fri Sep 29 05:24:21 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Oct  4 09:45:23 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ea7dc6c

net-irc/inspircd: revbump to 2.0.24-r1.

* Install documentation with proper permissions, it was previously only
viewable by the root user.

* Remove --logfile option when starting the daemon via OpenRC, this prevents
double-logging when the user has configured logging by the more featureful
InspIRCd configuration file.

Closes: https://bugs.gentoo.org/617686
Closes: https://github.com/gentoo/gentoo/pull/5821

 net-irc/inspircd/files/inspircd-r3.confd           | 33 +++++++++++++++
 net-irc/inspircd/files/inspircd-r3.initd           | 48 ++++++++++++++++++++++
 ...rcd-2.0.24.ebuild => inspircd-2.0.24-r1.ebuild} | 20 ++++++---
 3 files changed, 96 insertions(+), 5 deletions(-)

diff --git a/net-irc/inspircd/files/inspircd-r3.confd b/net-irc/inspircd/files/inspircd-r3.confd
new file mode 100644
index 00000000000..af9b3fe15e2
--- /dev/null
+++ b/net-irc/inspircd/files/inspircd-r3.confd
@@ -0,0 +1,33 @@
+# Distributed under the terms of the GNU General Public License v2
+
+# Location of configuration file. Modify if you don't like the standard
+# one.
+#
+#INSPIRCD_CONFIGFILE="/etc/inspircd/inspircd.conf"
+
+# File used to store the PID file. Usually you won't need to touch it.
+# If you are changing PID file do not forget to set new PID file in
+# INSPIRCD_CONFIGFILE as well.
+#
+#INSPIRCD_PIDFILE="/run/inspircd/inspircd.pid"
+
+# User to run InspIRCd as
+#
+#INSPIRCD_USER="inspircd"
+#INSPIRCD_GROUP="inspircd"
+
+# You can use this configuration option to pass additional options to the
+# start-stop-daemon, see start-stop-daemon(8) for more details.
+# Per default we start InspIRCd without any output (quiet)
+# as user $INSPIRCD_USER and wait 1000ms after we have started the service
+# to ensure that the daemon is really up and running.
+#INSPIRCD_SSDARGS="--quiet --user \"${INSPIRCD_USER}\" --wait 1000"
+
+# The termination timeout (start-stop-daemon parameter "retry") ensures
+# that the service will be terminated within a given time (25 + 5 seconds
+# per default) when you are stopping the service.
+#INSPIRCD_TERMTIMEOUT="TERM/25/KILL/5"
+
+# Options to collectd
+# See `/usr/bin/inspircd --help` for more details
+#INSPIRCD_OPTS=""

diff --git a/net-irc/inspircd/files/inspircd-r3.initd b/net-irc/inspircd/files/inspircd-r3.initd
new file mode 100644
index 00000000000..4d8dac81936
--- /dev/null
+++ b/net-irc/inspircd/files/inspircd-r3.initd
@@ -0,0 +1,48 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+: ${INSPIRCD_USER:="inspircd"}
+: ${INSPIRCD_GROUP:="inspircd"}
+: ${INSPIRCD_CONFIGFILE:="/etc/inspircd/inspircd.conf"}
+: ${INSPIRCD_PIDFILE:="/run/inspircd/inspircd.pid"}
+: ${INSPIRCD_SSDARGS:="--quiet --wait 1000"}
+: ${INSPIRCD_TERMTIMEOUT:="TERM/25/KILL/5"}
+: ${INSPIRCD_OPTS:=""}
+
+command="/usr/bin/inspircd"
+command_args="${INSPIRCD_OPTS} --config \"${INSPIRCD_CONFIGFILE}\""
+command_user="${INSPIRCD_USER}"
+start_stop_daemon_args="${INSPIRCD_SSDARGS}"
+pidfile="${INSPIRCD_PIDFILE}"
+retry="${INSPIRCD_TERMTIMEOUT}"
+
+required_files="${INSPIRCD_CONFIGFILE}"
+
+name="InspIRCd"
+
+description="InspIRCd is a modular Internet Relay Chat (IRC) server."
+
+extra_commands="version"
+extra_started_commands="rehash"
+
+depend() {
+	use dns
+	provide ircd
+}
+
+start_pre() {
+	checkpath --directory --mode 0750 --owner ${INSPIRCD_USER}:${INSPIRCD_GROUP} "$(dirname "${INSPIRCD_PIDFILE}")"
+}
+
+rehash() {
+	ebegin "Rehashing InspIRCd"
+	start-stop-daemon --signal HUP --pidfile "${pidfile}"
+	eend $?
+}
+
+version() {
+	ebegin "Retrieve InspIRCd version"
+	${command} --version
+	eend $?
+}

diff --git a/net-irc/inspircd/inspircd-2.0.24.ebuild b/net-irc/inspircd/inspircd-2.0.24-r1.ebuild
similarity index 85%
rename from net-irc/inspircd/inspircd-2.0.24.ebuild
rename to net-irc/inspircd/inspircd-2.0.24-r1.ebuild
index d7604a18517..d3c92bdafc3 100644
--- a/net-irc/inspircd/inspircd-2.0.24.ebuild
+++ b/net-irc/inspircd/inspircd-2.0.24-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI="6"
 
-inherit toolchain-funcs user
+inherit toolchain-funcs user versionator
 
 DESCRIPTION="Inspire IRCd - The Stable, High-Performance Modular IRCd"
 HOMEPAGE="https://inspircd.github.com/"
@@ -27,6 +27,7 @@ RDEPEND="
 	tre? ( dev-libs/tre )"
 DEPEND="${RDEPEND}"
 
+DOCS=( docs/. )
 PATCHES=( "${FILESDIR}"/${P}-fix-path-builds.patch )
 
 pkg_setup() {
@@ -83,16 +84,17 @@ src_install() {
 	insinto "/usr/include/${PN}"
 	doins -r include/.
 
+	einstalldocs
+
 	diropts -o"${PN}" -g"${PN}" -m0700
 	dodir "/var/lib/${PN}"
 	dodir "/var/lib/${PN}/data"
 
-	newinitd "${FILESDIR}/${PN}-r2.initd" "${PN}"
-	newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+	newinitd "${FILESDIR}/${PN}-r3.initd" "${PN}"
+	newconfd "${FILESDIR}/${PN}-r3.confd" "${PN}"
 
 	keepdir "/var/log/${PN}"
 
-	dodoc -r docs/*
 	rm -r "${D%/}/etc/${PN}" || die
 	dodir "/etc/${PN}"
 	dodir "/etc/${PN}/aliases"
@@ -108,6 +110,14 @@ pkg_postinst() {
 		elog "/usr/share/doc/${PN}"
 		elog "Read the ${PN}.conf.example file carefully before "
 		elog "starting the service."
-		elog
 	fi
+	local pv=""
+	for pv in ${REPLACING_VERSIONS}; do
+		if ! version_is_at_least "2.0.24-r1" "${pv}"; then
+			elog "Starting with 2.0.24-r1 the daemon is no longer started"
+			elog "with the --logfile option and you are thus expected to define"
+			elog "logging in the InspIRCd configuration file if you want it."
+			break
+		fi
+	done
 }


             reply	other threads:[~2017-10-04  9:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-04  9:45 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-05-28  3:47 [gentoo-commits] repo/gentoo:master commit in: net-irc/inspircd/, net-irc/inspircd/files/ Sam James
2021-05-28  3:14 Sam James
2020-08-12 22:20 Thomas Deutschmann
2020-08-12 22:20 Thomas Deutschmann
2019-05-26 10:26 Michał Górny
2018-12-16 23:53 Andreas Sturmlechner
2017-11-29 23:19 Andreas Sturmlechner
2017-06-11  8:01 Michael Palimaka
2017-03-04  6:00 Michael Palimaka
2017-02-25 23:54 Thomas Deutschmann
2016-03-26  4:52 Ian Delaney
2016-01-25  9:00 Patrice Clement
2015-09-24  2:06 Ian Delaney
2015-09-18  3:40 Ian Delaney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1507110323.3ea7dc6c0571ba1b675fd6db286b88df2041437d.monsieurp@gentoo \
    --to=monsieurp@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox