net-voip/openmcu: use #!/sbin/openrc-run instead of #!/sbin/runscript
authorAustin English <wizardedit@gentoo.org>
Tue, 3 May 2016 17:25:34 +0000 (12:25 -0500)
committerAustin English <wizardedit@gentoo.org>
Tue, 3 May 2016 17:25:45 +0000 (12:25 -0500)
Gentoo-Bug: https://bugs.gentoo.org/573846

Also:
* fixup conf.d header
* move to EAPI 6

Package-Manager: portage-2.2.26

net-voip/openmcu/files/openmcu.confd
net-voip/openmcu/files/openmcu.rc6
net-voip/openmcu/openmcu-2.2.5-r1.ebuild [new file with mode: 0644]

index ad54babfabce9faf550e7e62e71d835196957dad..4ec485757e7846cbfbe9a12ce33f40ce82748715 100644 (file)
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
+#/etc/conf.d/openmcu.confd
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
index 444d5bbe793b6248005bfeca76c40562ca4286bd..70f16736e43f4f5547fa82e1d4ee105babc707a1 100644 (file)
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2004 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-voip/openmcu/openmcu-2.2.5-r1.ebuild b/net-voip/openmcu/openmcu-2.2.5-r1.ebuild
new file mode 100644 (file)
index 0000000..458afbe
--- /dev/null
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit user
+
+MY_PN=h323plus-app
+MY_PV=1_23_0
+DESCRIPTION="Simple Multi Conference Unit using H.323"
+HOMEPAGE="http://www.h323plus.org/"
+SRC_URI="mirror://sourceforge/h323plus/${MY_PN}-v${MY_PV}.tar.gz"
+
+LICENSE="MPL-1.0 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="net-libs/ptlib:=
+       net-libs/h323plus:="
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/applications/${PN}
+
+src_prepare() {
+       # set path for various files
+       eapply "${FILESDIR}"/${PN}-2.2.1-path.patch
+
+       default
+}
+
+src_compile() {
+       emake OPENH323DIR=/usr/share/openh323
+}
+
+src_install() {
+       dosbin obj_*_*_*/${PN}
+
+       keepdir /usr/share/${PN}/data /usr/share/${PN}/html
+
+       # needed for daemon
+       keepdir /var/log/${PN} /var/run/${PN}
+
+       insinto /usr/share/${PN}/sounds
+       doins *.wav
+
+       insinto /etc/${PN}
+       doins server.pem
+       doins "${FILESDIR}"/${PN}.ini
+
+       doman ${PN}.1
+
+       dodoc ReadMe.txt
+
+       newinitd "${FILESDIR}"/${PN}.rc6 ${PN}
+       newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}
+
+pkg_preinst() {
+       enewgroup openmcu
+       enewuser openmcu -1 -1 /dev/null openmcu
+}
+
+pkg_postinst() {
+       einfo "Setting permissions..."
+       chown -R openmcu:openmcu "${ROOT}"etc/openmcu
+       chmod -R u=rwX,g=rX,o=   "${ROOT}"etc/openmcu
+       chown -R openmcu:openmcu "${ROOT}"var/{log,run}/openmcu
+       chmod -R u=rwX,g=rX,o=   "${ROOT}"var/{log,run}/openmcu
+
+       echo
+       elog "This patched version of openmcu stores it's configuration"
+       elog "in \"/etc/openmcu/openmcu.ini\""
+}