summaryrefslogtreecommitdiff
path: root/app-misc/irtrans-irserver
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/irtrans-irserver')
-rw-r--r--app-misc/irtrans-irserver/Manifest6
-rw-r--r--app-misc/irtrans-irserver/files/irtrans-server.confd12
-rw-r--r--app-misc/irtrans-irserver/files/irtrans-server.initd21
-rw-r--r--app-misc/irtrans-irserver/irtrans-irserver-6.09.04.ebuild83
-rw-r--r--app-misc/irtrans-irserver/metadata.xml19
5 files changed, 141 insertions, 0 deletions
diff --git a/app-misc/irtrans-irserver/Manifest b/app-misc/irtrans-irserver/Manifest
new file mode 100644
index 000000000000..cf8f38340a5d
--- /dev/null
+++ b/app-misc/irtrans-irserver/Manifest
@@ -0,0 +1,6 @@
+AUX irtrans-server.confd 392 BLAKE2B b23c07dc308bcda49f49985b7d6c77c3391a959a142118a0a0a179eff567dfcc36770a1f485f77e3487e0c53227b266a429ecf3ce23a8917eee0966cec64af43 SHA512 daa586469db0aca543bfe97ffc90efd7f8ade94f0d186d9b91499e729dd6c72036c8e539e58898ef28d961a353530aefcc5821e447c9aaa6f35634da2c25867f
+AUX irtrans-server.initd 564 BLAKE2B 1ef6433ab6866ca5c3947737ec55a1a5bd129456aa3247d69005bf8b48ff2a139228ffdd1032dd9654528ffe77e369a8d8d796a8dc421f626cb8cb7a19519a1c SHA512 fb47c9d695e879e0db95fb5ae427b5d0248c65b6fa701408369c845cad1025cb913d85d68145fd69ad96ee65092b549384ee7e8135f095254840fd25ef7aa781
+DIST irserver-6.09.04.tar.gz 665809 BLAKE2B 1f336e34a3a79490266a762520083c74f79d34b2b8603a9d4b8e29347346c658c1723608627590d39ebb66bebe9886a4052376ade81704db3b2c1cccf229b87e SHA512 d63f8bc79c2a5a8050c5ac21b086be3826f66102dc2f111bf8084b57756c6bcd84615d1675781b26520c34f7a3e08726dbc4ae94dd4f4afc446383597c433399
+DIST irserver-src-6.09.04.tar.gz 200481 BLAKE2B 7eaffd5bb335dfcbe6f0716af57aa898d2cce1a984a2f050081bd71a9c63d5d1e5949fdebdcbbbee05c337141d0efe5c6ebcb937726ff9506a766f69ed8d2f58 SHA512 09c38066e64404808856a89a8451e41a6eb8a51b98635b1515fc07050f25b4552b9cc912bd9612c6746ba67cd9b1bb45f3d4871dfa820c9e9bd810ede20f28d6
+EBUILD irtrans-irserver-6.09.04.ebuild 2006 BLAKE2B 0add7e689507a9288a13fd1e728635c202587a0d9e5c8a03396a338c32b7109d37e862da59afea77745856fdcd8933db4b7a5c4adb563c933d4045ef1134c3fb SHA512 8e9d565c322ef914c68f2dabbadfd7b4b3bc78f72e196e27a75b0d7b348602e2eaf93bcb343ccb7e35c1bd2ecff217eccb42dcb287e0c1ed69fe7350a7e7dcb3
+MISC metadata.xml 540 BLAKE2B 3355962a1d9d6d94c207254ee0f49639ac55cba6504a4ecae2470c0df4d09189c3d00f76c6dffc554d13ebaa6d154040152a3169da166232ef4f2308c968e160 SHA512 9c1297f57d16730eba72da496f870d67aae2cca6a4c49da99e2f6bd4721f13c9208599b2a1a50ed8409ebb26f772a9906c5f9969f6e2f1f262592b0af2fa4b58
diff --git a/app-misc/irtrans-irserver/files/irtrans-server.confd b/app-misc/irtrans-irserver/files/irtrans-server.confd
new file mode 100644
index 000000000000..28e3f33aa043
--- /dev/null
+++ b/app-misc/irtrans-irserver/files/irtrans-server.confd
@@ -0,0 +1,12 @@
+# Config for irtrans-server
+
+# Controls which information is logged. Standard is loglevel 1.
+# Possible values are 0-4. 0=Nothing is logged. 4=debug output.
+LOGLEVEL="1"
+
+# Starts the irserver as a LINUX Service.
+# run '/usr/bin/irtrans --help' for all Parameters
+OPT="-daemon"
+
+# LINUX Devices: /dev/ttyS0 - /dev/ttySn or /dev/ttyUSB0 - /dev/ttyUSBn for USB devices
+IRDEVICE="/dev/ttyUSB0"
diff --git a/app-misc/irtrans-irserver/files/irtrans-server.initd b/app-misc/irtrans-irserver/files/irtrans-server.initd
new file mode 100644
index 000000000000..b500b7fe0f87
--- /dev/null
+++ b/app-misc/irtrans-irserver/files/irtrans-server.initd
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+ provide lirc
+}
+
+start() {
+ ebegin "Starting IRTrans"
+ eval start-stop-daemon --start --quiet --exec /usr/bin/irserver --pidfile /var/run/irtrans-irserver.pid \
+ -- -logfile /var/log/irserver.log -loglevel "${LOGLEVEL}" -pidfile /var/run/irtrans-irserver.pid "${OPT}" "${IRDEVICE}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping IRTrans"
+ start-stop-daemon --stop --quiet --pidfile /var/run/irtrans-irserver.pid
+ eend $?
+}
diff --git a/app-misc/irtrans-irserver/irtrans-irserver-6.09.04.ebuild b/app-misc/irtrans-irserver/irtrans-irserver-6.09.04.ebuild
new file mode 100644
index 000000000000..fb45aecdd9ac
--- /dev/null
+++ b/app-misc/irtrans-irserver/irtrans-irserver-6.09.04.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils flag-o-matic toolchain-funcs mono-env multilib
+
+RESTRICT="strip"
+
+DESCRIPTION="IRTrans Server"
+HOMEPAGE="http://www.irtrans.de"
+SRC_URI="http://ftp.disconnected-by-peer.at/irtrans/irserver-src-${PV}.tar.gz
+ http://ftp.disconnected-by-peer.at/irtrans/irserver-${PV}.tar.gz
+ http://www.irtrans.de/download/Server/Linux/irserver-src.tar.gz -> irserver-src-${PV}.tar.gz
+ http://www.irtrans.de/download/Server/Linux/irserver.tar.gz -> irserver-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~arm"
+IUSE="mono"
+
+RDEPEND="mono? ( >=dev-lang/mono-2.10.5 )"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ sed -e 's!^ODIRARM = .*!ODIRARM = n800!' -i makefile
+}
+
+src_compile() {
+ append-flags -DLINUX -DMEDIACENTER
+ append-ldflags --static
+
+ # Set sane defaults (arm target has no -D flags added)
+ irbuild=irserver_arm_noccf
+ irserver=irserver
+
+ # change variable by need
+ if use x86 ; then
+ irbuild=irserver
+ elif use amd64 ; then
+ irbuild=irserver64
+ irserver=irserver64
+ elif use arm ; then
+ irbuild=irserver_arm
+ fi
+
+ # Some output for bugreport
+ einfo "CFLAGS=\"${CFLAGS}\""
+ einfo "Build Target=\"${irbuild}\""
+ einfo "Build Binary=\"${irserver}\""
+
+ # Build
+ emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \
+ CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" "${irbuild}"
+}
+
+src_install() {
+ newbin "${WORKDIR}/${irserver}" irserver
+
+ keepdir /etc/irserver/remotes
+
+ docinto remotes
+ dodoc remotes/*
+
+ newinitd "${FILESDIR}"/irtrans-server.initd irtrans-server
+ newconfd "${FILESDIR}"/irtrans-server.confd irtrans-server
+
+ if use mono ; then
+ # Wrapper script to launch mono
+ make_wrapper irguiclient "mono /usr/$(get_libdir)/${PN}/GUIClient.exe"
+
+ insinto /usr/$(get_libdir)/${PN}/
+ exeinto /usr/$(get_libdir)/${PN}/
+
+ # The Libs and Translations
+ doins GUIClient/*.tra
+ doexe GUIClient/*.dll
+
+ # The actual executable
+ doexe GUIClient/*.exe
+ fi
+}
diff --git a/app-misc/irtrans-irserver/metadata.xml b/app-misc/irtrans-irserver/metadata.xml
new file mode 100644
index 000000000000..e8fda48bc222
--- /dev/null
+++ b/app-misc/irtrans-irserver/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mario.fetka@gmail.com</email>
+ <name>Mario Fetka</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>hd_brummy@gentoo.org</email>
+ <name>Joerg Bornkessel</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="mono">Enable mono support</flag>
+ </use>
+</pkgmetadata>