Irtrans Server

This commit is contained in:
geos_one 2007-05-01 16:55:50 +00:00
parent 0edb9d9806
commit 1c80092758
6 changed files with 102 additions and 0 deletions

View File

@ -0,0 +1,20 @@
AUX 80irtrans-server 62 RMD160 38cdbd2fe504413f8aea2464ca4c643ca2668072 SHA1 cd8b69ffb0cc7eccf0fdd752a6d0768dc3dd29a6 SHA256 5c3eb4a72fb7351c822e8e15ab2abf20dd67daff6ac9818f4090e14dd5ad85fa
MD5 b3507258c23454dfbfdaf9a1fb1c75a2 files/80irtrans-server 62
RMD160 38cdbd2fe504413f8aea2464ca4c643ca2668072 files/80irtrans-server 62
SHA256 5c3eb4a72fb7351c822e8e15ab2abf20dd67daff6ac9818f4090e14dd5ad85fa files/80irtrans-server 62
AUX irtrans-server.confd 312 RMD160 151927122a9b70a8bcca0f0fb6f7c0e327dc6bec SHA1 c86094081a74b41b550a3be3f4013520209906e6 SHA256 ffff7ff71e75349264f7d4447fadeff71c18df95a15fc8ba890460c6fe63327c
MD5 1c16f7f33ed333af77e501bb2a9d5640 files/irtrans-server.confd 312
RMD160 151927122a9b70a8bcca0f0fb6f7c0e327dc6bec files/irtrans-server.confd 312
SHA256 ffff7ff71e75349264f7d4447fadeff71c18df95a15fc8ba890460c6fe63327c files/irtrans-server.confd 312
AUX irtrans-server.initd 596 RMD160 1415af1f4d50a88a81b3a2f7165fb2ed04c8fb03 SHA1 f3d89b1492aea38edae6233d0747bbe5bc55de23 SHA256 e4058c772004f716d06afbc8336044d4aed2eafe9e3f49fbf02357c9edb8765b
MD5 5c76f26d3ae3a440f1753295c0166091 files/irtrans-server.initd 596
RMD160 1415af1f4d50a88a81b3a2f7165fb2ed04c8fb03 files/irtrans-server.initd 596
SHA256 e4058c772004f716d06afbc8336044d4aed2eafe9e3f49fbf02357c9edb8765b files/irtrans-server.initd 596
DIST irserver-src.tar.gz 121844 RMD160 fa3195c6e5605a0efd33e9fc605fb52422d79c9b SHA1 0a9967e3712ebad8b45a6f5cf6f556b85c6789df SHA256 412e33e593e9237876bad9a94f12a99b7e5177557be85731fe2400b4a96925ce
EBUILD irtrans-irserver-5.8.01.ebuild 996 RMD160 626cc2896d839da41b0f86d289392a206195d706 SHA1 040b11930481de6954e360ac93fe981ff2bfa32f SHA256 0ab47bb22c616465f2a6fdc5ace497245002f0037cfa5b1c61765411188148d7
MD5 33d54f2263b9b798119db3d70309cff8 irtrans-irserver-5.8.01.ebuild 996
RMD160 626cc2896d839da41b0f86d289392a206195d706 irtrans-irserver-5.8.01.ebuild 996
SHA256 0ab47bb22c616465f2a6fdc5ace497245002f0037cfa5b1c61765411188148d7 irtrans-irserver-5.8.01.ebuild 996
MD5 468370d5bf3aef4d72189d3f4bd04daa files/digest-irtrans-irserver-5.8.01 238
RMD160 6782fa98b5071f0f6631f5bbf88d57e4fb3faf10 files/digest-irtrans-irserver-5.8.01 238
SHA256 20099a65107178ad6aecd004f5697c2d0817a5f21e59d29c97ee0959aeefc44c files/digest-irtrans-irserver-5.8.01 238

View File

@ -0,0 +1,2 @@
PATH=/opt/irtrans/server/bin
ROOTPATH=/opt/irtrans/server/bin

View File

@ -0,0 +1,3 @@
MD5 29298133e45e3bcb58e66db9a12f5913 irserver-src.tar.gz 121844
RMD160 fa3195c6e5605a0efd33e9fc605fb52422d79c9b irserver-src.tar.gz 121844
SHA256 412e33e593e9237876bad9a94f12a99b7e5177557be85731fe2400b4a96925ce irserver-src.tar.gz 121844

View File

@ -0,0 +1,10 @@
# 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.
OPT="-daemon"
# LINUX Devices: /dev/ttyS0 - /dev/ttySn or /dev/ttyUSB0 - /dev/ttyUSBn for USB devices
IRDEVICE="/dev/ttyUSB0"

View File

@ -0,0 +1,21 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net
befor vdr
}
start() {
ebegin "Starting IRTrans"
eval start-stop-daemon --start --quiet --exec /opt/irtrans/server/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 --signal 2 --quiet --pidfile /var/run/irtrans/irserver.pid
eend $?
}

View File

@ -0,0 +1,46 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils flag-o-matic toolchain-funcs
MY_PV="${PV/_p/-}"
DESCRIPTION="IRTrans Server"
HOMEPAGE="http://www.irtrans.de"
SRC_URI="http://www.irtrans.de/download/Server/Linux/irserver-src.tar.gz"
LICENSE="Free"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND="virtual/libc"
RESTRICT="nomirror nostrip"
src_unpack() {
unpack ${A}
}
src_compile() {
cd ${WORKDIR}
append-flags -m32 -DLINUX -Icommon
einfo "CFLAGS=\"${CFLAGS}\""
emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" irserver || die "emake irserver failed"
}
src_install() {
into /opt/irtrans/server
dobin ${WORKDIR}/irserver
#dodoc ${WORKDIR}/${PN}-${MY_PV}/usr/share/doc/packages/${PN}/*
doenvd "${FILESDIR}"/80irtrans-server
newinitd "${FILESDIR}"/irtrans-server.initd irtrans-server
newconfd "${FILESDIR}"/irtrans-server.confd irtrans-server
}