1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="Palantir is a Linux-based streaming system designed to transmit live video, audio and data over a TCP/IP network, as well as to control remote devices."
8 HOMEPAGE="http://www.fastpath.it/products/palantir/index.php"
9 SRC_URI="http://www.fastpath.it/products/${PN}/pub/${P}.tgz"
16 DEPEND="media-libs/jpeg"
21 PALANTIR_USER="palantir"
22 PALANTIR_PIPE_PATH="/var/run/palantir/telmu_pipe"
26 epatch "${FILESDIR}/${PV}-makefile.patch"
27 sed -i -e "s#/usr/local/share/palantir/telmu_pipe#${PALANTIR_PIPE_PATH}#" "${S}/tools/set_sensor"
31 enewuser ${PALANTIR_USER}
35 export NAMED_PIPE="${PALANTIR_PIPE_PATH}"
36 emake || die "emake failed"
41 newbin tools/sysfeed palantir_sysfeed
42 newbin tools/set_sensor palantir_set_sensor
44 insinto /usr/share/${PN}
48 doins "${FILESDIR}/palantir.conf.sample"
51 touch "${D}/var/log/palantir.log"
53 dodir /var/run/palantir
54 mkfifo "${D}${NAMED_PIPE}"
55 fperms 0600 "${NAMED_PIPE}"
56 fowners ${PALANTIR_USER} "${NAMED_PIPE}" /var/log/palantir.log
58 newinitd "${FILESDIR}/palantir.init" palantir
60 dodoc doc/* README TODO
61 doman man/palantir.1 man/palantir.conf.5