Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-voip/openmcu/, net-voip/openmcu/files/
Date: Tue, 03 May 2016 17:35:47
Message-Id: 1462296345.bb94d05c01ebab43c21ae4d1dd06a03c0681ef62.wizardedit@gentoo
1 commit: bb94d05c01ebab43c21ae4d1dd06a03c0681ef62
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 17:25:34 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 17:25:45 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb94d05c
7
8 net-voip/openmcu: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/573846
11
12 Also:
13 * fixup conf.d header
14 * move to EAPI 6
15
16 Package-Manager: portage-2.2.26
17
18 net-voip/openmcu/files/openmcu.confd | 4 +-
19 net-voip/openmcu/files/openmcu.rc6 | 4 +-
20 net-voip/openmcu/openmcu-2.2.5-r1.ebuild | 75 ++++++++++++++++++++++++++++++++
21 3 files changed, 79 insertions(+), 4 deletions(-)
22
23 diff --git a/net-voip/openmcu/files/openmcu.confd b/net-voip/openmcu/files/openmcu.confd
24 index ad54bab..4ec4857 100644
25 --- a/net-voip/openmcu/files/openmcu.confd
26 +++ b/net-voip/openmcu/files/openmcu.confd
27 @@ -1,5 +1,5 @@
28 -#!/sbin/runscript
29 -# Copyright 1999-2004 Gentoo Foundation
30 +#/etc/conf.d/openmcu.confd
31 +# Copyright 1999-2016 Gentoo Foundation
32 # Distributed under the terms of the GNU General Public License v2
33 # $Id$
34
35
36 diff --git a/net-voip/openmcu/files/openmcu.rc6 b/net-voip/openmcu/files/openmcu.rc6
37 index 444d5bb..70f1673 100644
38 --- a/net-voip/openmcu/files/openmcu.rc6
39 +++ b/net-voip/openmcu/files/openmcu.rc6
40 @@ -1,5 +1,5 @@
41 -#!/sbin/runscript
42 -# Copyright 1999-2004 Gentoo Foundation
43 +#!/sbin/openrc-run
44 +# Copyright 1999-2016 Gentoo Foundation
45 # Distributed under the terms of the GNU General Public License v2
46 # $Id$
47
48
49 diff --git a/net-voip/openmcu/openmcu-2.2.5-r1.ebuild b/net-voip/openmcu/openmcu-2.2.5-r1.ebuild
50 new file mode 100644
51 index 0000000..458afbe
52 --- /dev/null
53 +++ b/net-voip/openmcu/openmcu-2.2.5-r1.ebuild
54 @@ -0,0 +1,75 @@
55 +# Copyright 1999-2016 Gentoo Foundation
56 +# Distributed under the terms of the GNU General Public License v2
57 +# $Id$
58 +
59 +EAPI=6
60 +
61 +inherit user
62 +
63 +MY_PN=h323plus-app
64 +MY_PV=1_23_0
65 +DESCRIPTION="Simple Multi Conference Unit using H.323"
66 +HOMEPAGE="http://www.h323plus.org/"
67 +SRC_URI="mirror://sourceforge/h323plus/${MY_PN}-v${MY_PV}.tar.gz"
68 +
69 +LICENSE="MPL-1.0 GPL-2"
70 +SLOT="0"
71 +KEYWORDS="~amd64 ~x86"
72 +IUSE=""
73 +
74 +DEPEND="net-libs/ptlib:=
75 + net-libs/h323plus:="
76 +RDEPEND="${DEPEND}"
77 +
78 +S=${WORKDIR}/applications/${PN}
79 +
80 +src_prepare() {
81 + # set path for various files
82 + eapply "${FILESDIR}"/${PN}-2.2.1-path.patch
83 +
84 + default
85 +}
86 +
87 +src_compile() {
88 + emake OPENH323DIR=/usr/share/openh323
89 +}
90 +
91 +src_install() {
92 + dosbin obj_*_*_*/${PN}
93 +
94 + keepdir /usr/share/${PN}/data /usr/share/${PN}/html
95 +
96 + # needed for daemon
97 + keepdir /var/log/${PN} /var/run/${PN}
98 +
99 + insinto /usr/share/${PN}/sounds
100 + doins *.wav
101 +
102 + insinto /etc/${PN}
103 + doins server.pem
104 + doins "${FILESDIR}"/${PN}.ini
105 +
106 + doman ${PN}.1
107 +
108 + dodoc ReadMe.txt
109 +
110 + newinitd "${FILESDIR}"/${PN}.rc6 ${PN}
111 + newconfd "${FILESDIR}"/${PN}.confd ${PN}
112 +}
113 +
114 +pkg_preinst() {
115 + enewgroup openmcu
116 + enewuser openmcu -1 -1 /dev/null openmcu
117 +}
118 +
119 +pkg_postinst() {
120 + einfo "Setting permissions..."
121 + chown -R openmcu:openmcu "${ROOT}"etc/openmcu
122 + chmod -R u=rwX,g=rX,o= "${ROOT}"etc/openmcu
123 + chown -R openmcu:openmcu "${ROOT}"var/{log,run}/openmcu
124 + chmod -R u=rwX,g=rX,o= "${ROOT}"var/{log,run}/openmcu
125 +
126 + echo
127 + elog "This patched version of openmcu stores it's configuration"
128 + elog "in \"/etc/openmcu/openmcu.ini\""
129 +}