[Lunar-commits] <moonbase-other> telldus-core: TellStick driver/tools for home automation
Stefan Wold
ratler at lunar-linux.org
Sun Nov 3 01:51:36 CET 2013
commit acca72df2938e0bb80b83f4f0904d658843305c0
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Tue, 08 Oct 2013 10:19:55 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/acca72df2938e0bb80b83f4f0904d658843305c0
telldus-core: TellStick driver/tools for home automation
---
libs/telldus-core/BUILD | +4/-0
libs/telldus-core/DEPENDS | +3/-0
libs/telldus-core/DETAILS | +15/-0
libs/telldus-core/POST_INSTALL | +2/-0
libs/telldus-core/PRE_BUILD | +8/-0
libs/telldus-core/systemd.d/telldusd.service | +9/-0
6 files changed, 41 insertions(+)
--- /dev/null
+++ b/libs/telldus-core/BUILD
@@ -0,0 +1,4 @@
+add_priv_user tellstick:tellstick -G "tellstick,usb" -M -d /dev/null &&
+default_cmake_build &&
+chown tellstick:tellstick /var/state/telldus-core.conf &&
+chmod 644 /var/state/telldus-core.conf
--- /dev/null
+++ b/libs/telldus-core/DEPENDS
@@ -0,0 +1,3 @@
+depends cmake
+depends libftdi
+depends confuse
--- /dev/null
+++ b/libs/telldus-core/DETAILS
@@ -0,0 +1,15 @@
+ MODULE=telldus-core
+ VERSION=2.1.1
+ SOURCE=${MODULE}-${VERSION}.tar.gz
+ SOURCE_URL=http://download.telldus.se/TellStick/Software/telldus-core
+ SOURCE_VFY=sha1:2cd194caadcc919949987156e7affee8aef54a7b
+ WEB_SITE="http://telldus.se/"
+ ENTERED=20131008
+ UPDATED=20131008
+ SHORT="Driver and tools for controlling a Telldus Technologies TellStick"
+PSAFE=no
+
+cat <<EOF
+Driver and tools for controlling a Telldus Technologies TellStick
+used for home automation.
+EOF
--- /dev/null
+++ b/libs/telldus-core/POST_INSTALL
@@ -0,0 +1,2 @@
+# We should probably add a daemon-reload plugin for udev rules
+udevadm control --reload
--- /dev/null
+++ b/libs/telldus-core/PRE_BUILD
@@ -0,0 +1,8 @@
+default_pre_build &&
+
+# Add Missing header
+sedit '/^#else/a\\t#include <unistd.h>' common/Socket.h &&
+
+# Fix user and group
+sedit 's;plugdev;usb;' tdadmin/05-tellstick.rules &&
+sedit 's;plugdev;usb;;s;nobody;tellstick;' service/tellstick.conf
--- /dev/null
+++ b/libs/telldus-core/systemd.d/telldusd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Telldus TellStick daemon
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/telldusd
+
+[Install]
+WantedBy=multi-user.target
More information about the Lunar-commits
mailing list