1 |
commit: 97f03506d9dd795537f2af986aab17ea2f8e5d5a |
2 |
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com> |
3 |
AuthorDate: Tue Dec 11 08:44:08 2018 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 18 04:18:38 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97f03506 |
7 |
|
8 |
net-misc/igmpproxy: update pidfile handling |
9 |
|
10 |
Since IGMPProxy does not create a pid file by itself, |
11 |
the daemon needs to be started in foreground, to keep |
12 |
tracking of the correct pidfile with openrc and put it |
13 |
background. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/672842 |
16 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
17 |
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com> |
18 |
Closes: https://github.com/gentoo/gentoo/pull/10610 |
19 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
20 |
|
21 |
net-misc/igmpproxy/files/igmpproxy.initd-r1 | 12 ++++++++++++ |
22 |
net-misc/igmpproxy/igmpproxy-0.2.1-r2.ebuild | 25 +++++++++++++++++++++++++ |
23 |
2 files changed, 37 insertions(+) |
24 |
|
25 |
diff --git a/net-misc/igmpproxy/files/igmpproxy.initd-r1 b/net-misc/igmpproxy/files/igmpproxy.initd-r1 |
26 |
new file mode 100644 |
27 |
index 00000000000..c5f9e56536a |
28 |
--- /dev/null |
29 |
+++ b/net-misc/igmpproxy/files/igmpproxy.initd-r1 |
30 |
@@ -0,0 +1,12 @@ |
31 |
+#!/sbin/openrc-run |
32 |
+# Copyright 1999-2018 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+config="/etc/${RC_SVCNAME}.conf" |
36 |
+name="IGMPproxy" |
37 |
+pidfile="/run/${RC_SVCNAME}.pid" |
38 |
+ |
39 |
+command="/usr/sbin/igmpproxy" |
40 |
+command_args="${IGMPPROXY_OPTS} -n ${config}" |
41 |
+command_background="true" |
42 |
+required_files="${config}" |
43 |
|
44 |
diff --git a/net-misc/igmpproxy/igmpproxy-0.2.1-r2.ebuild b/net-misc/igmpproxy/igmpproxy-0.2.1-r2.ebuild |
45 |
new file mode 100644 |
46 |
index 00000000000..5583e140a41 |
47 |
--- /dev/null |
48 |
+++ b/net-misc/igmpproxy/igmpproxy-0.2.1-r2.ebuild |
49 |
@@ -0,0 +1,25 @@ |
50 |
+# Copyright 1999-2018 Gentoo Authors |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+ |
53 |
+EAPI=7 |
54 |
+ |
55 |
+inherit linux-info systemd |
56 |
+ |
57 |
+DESCRIPTION="A multicast routing daemon which uses IGMP forwarding" |
58 |
+HOMEPAGE="https://github.com/pali/igmpproxy" |
59 |
+SRC_URI="https://github.com/pali/igmpproxy/releases/download/${PV}/${P}.tar.gz" |
60 |
+ |
61 |
+KEYWORDS="~amd64 ~x86" |
62 |
+LICENSE="GPL-2+" |
63 |
+SLOT="0" |
64 |
+ |
65 |
+CONFIG_CHECK="~IP_MULTICAST ~IP_MROUTE" |
66 |
+ |
67 |
+src_install() { |
68 |
+ default |
69 |
+ |
70 |
+ newinitd "${FILESDIR}"/igmpproxy.initd-r1 igmpproxy |
71 |
+ systemd_dounit "${FILESDIR}"/"${PN}".service |
72 |
+ |
73 |
+ newconfd "${FILESDIR}"/igmpproxy.confd igmpproxy |
74 |
+} |