Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/wesnoth/files/, games-strategy/wesnoth/
Date: Thu, 31 May 2018 11:15:44
Message-Id: 1527765329.4e4ea8746ff0c79b77dc4326dcd67db3db7eed64.polynomial-c@gentoo
1 commit: 4e4ea8746ff0c79b77dc4326dcd67db3db7eed64
2 Author: Matija Skala <mskala <AT> gmx <DOT> com>
3 AuthorDate: Thu May 17 06:02:28 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu May 31 11:15:29 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e4ea874
7
8 games-strategy/wesnoth: new wesnothd.rc file for 1.14
9
10 Bug: https://bugs.gentoo.org/654440
11 Closes: https://github.com/gentoo/gentoo/pull/8440
12
13 games-strategy/wesnoth/files/wesnothd.rc-r1 | 23 ++++++++++++++++++++++
14 ...noth-1.14.1.ebuild => wesnoth-1.14.1-r1.ebuild} | 4 ++--
15 2 files changed, 25 insertions(+), 2 deletions(-)
16
17 diff --git a/games-strategy/wesnoth/files/wesnothd.rc-r1 b/games-strategy/wesnoth/files/wesnothd.rc-r1
18 new file mode 100644
19 index 00000000000..c1a0d9d2016
20 --- /dev/null
21 +++ b/games-strategy/wesnoth/files/wesnothd.rc-r1
22 @@ -0,0 +1,23 @@
23 +#!/sbin/openrc-run
24 +# Copyright 1999-2018 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +depend() {
28 + use net
29 +}
30 +
31 +start() {
32 + checkpath -q -d -m 0750 -o wesnoth:wesnoth /run/wesnothd
33 + ebegin "Starting wesnothd"
34 + start-stop-daemon --start --quiet -b -m \
35 + --pidfile /run/wesnothd/wesnothd.pid \
36 + -c wesnoth:wesnoth \
37 + --exec /usr/bin/wesnothd
38 + eend $?
39 +}
40 +
41 +stop() {
42 + ebegin "Stopping wesnothd"
43 + start-stop-daemon --stop --quiet --pidfile /run/wesnothd/wesnothd.pid
44 + eend $?
45 +}
46
47 diff --git a/games-strategy/wesnoth/wesnoth-1.14.1.ebuild b/games-strategy/wesnoth/wesnoth-1.14.1-r1.ebuild
48 similarity index 96%
49 rename from games-strategy/wesnoth/wesnoth-1.14.1.ebuild
50 rename to games-strategy/wesnoth/wesnoth-1.14.1-r1.ebuild
51 index 7372ade39d6..5a1f6c5af2e 100644
52 --- a/games-strategy/wesnoth/wesnoth-1.14.1.ebuild
53 +++ b/games-strategy/wesnoth/wesnoth-1.14.1-r1.ebuild
54 @@ -108,7 +108,7 @@ src_configure() {
55 src_install() {
56 DOCS="README.md changelog.md players_changelog.md" cmake-utils_src_install
57 if use dedicated || use server; then
58 - keepdir "/run/wesnothd"
59 - newinitd "${FILESDIR}"/wesnothd.rc wesnothd
60 + rmdir "${ED%/}/run/wesnothd" || die
61 + newinitd "${FILESDIR}"/wesnothd.rc-r1 wesnothd
62 fi
63 }