[Lunar-commits] <moonbase-other> Merge branch 'telldus-home-automation'
v4hn
me at v4hn.de
Sun Nov 3 01:51:37 CET 2013
commit 29018f7d74144d508f2817ee8a443d6ac305e545
Author: v4hn <me at v4hn.de>
Date: Sat, 02 Nov 2013 17:51:20 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/29018f7d74144d508f2817ee8a443d6ac305e545
Merge branch 'telldus-home-automation'
---
devel/confuse/BUILD | +2/-0
devel/confuse/DEPENDS | +4/-0
devel/confuse/DETAILS | +18/-0
devel/libftdi/BUILD | +1/-0
devel/libftdi/DEPENDS | +5/-0
devel/libftdi/DETAILS | +19/-0
devel/libftdi1/BUILD | +1/-0
devel/libftdi1/DEPENDS | +6/-0
devel/libftdi1/DETAILS | +19/-0
libs/telldus-core/BUILD | +5/-0
libs/telldus-core/DEPENDS | +3/-0
libs/telldus-core/DETAILS | +18/-0
libs/telldus-core/POST_INSTALL | +2/-0
libs/telldus-core/PRE_BUILD | +14/-0
libs/telldus-core/systemd.d/telldusd.service | +9/-0
15 files changed, 126 insertions(+)
--- /dev/null
+++ b/devel/confuse/BUILD
@@ -0,0 +1,2 @@
+OPTS+=" --enable-shared --disable-examples --disable-static"
+default_build
--- /dev/null
+++ b/devel/confuse/DEPENDS
@@ -0,0 +1,4 @@
+depends flex
+depends libtool
+depends pkgconfig
+optional_depends gettext "--enable-nls" "--disable-nls" "for NLS support"
--- /dev/null
+++ b/devel/confuse/DETAILS
@@ -0,0 +1,18 @@
+ MODULE=confuse
+ VERSION=2.7
+ SOURCE=${MODULE}-${VERSION}.tar.gz
+ SOURCE_URL=http://savannah.nongnu.org/download/confuse
+ SOURCE_VFY=sha1:b3f74f9763e6c9012476dbd323d083af4be34cad
+ WEB_SITE="http://www.nongnu.org/confuse/"
+ ENTERED=20131008
+ UPDATED=20131008
+ SHORT="A configuration file parser library"
+cat <<EOF
+libConfuse is a configuration file parser library, licensed under
+the terms of the ISC license, and written in C. It supports sections
+and (lists of) values (strings, integers, floats, booleans or other
+sections), as well as some other features (such as single/double-quoted
+strings, environment variable expansion, functions and nested include
+statements). It makes it very easy to add configuration file capability
+to a program using a simple API.
+EOF
--- /dev/null
+++ b/devel/libftdi/BUILD
@@ -0,0 +1 @@
+default_cmake_build
--- /dev/null
+++ b/devel/libftdi/DEPENDS
@@ -0,0 +1,5 @@
+depends libusb
+depends pkgconfig
+depends cmake
+optional_depends boost "-DFTDIPP=ON" "-DFTDIPP=OFF" "Build C++ binding library libftdi1++"
+optional_depends Python "-DPYTHON_BINDINGS=ON" "-DPYTHON_BINDINGS=OFF" "Build Python bindings"
--- /dev/null
+++ b/devel/libftdi/DETAILS
@@ -0,0 +1,19 @@
+ MODULE=libftdi
+ VERSION=0.20
+ SOURCE=${MODULE}-${VERSION}.tar.gz
+ SOURCE_URL=http://www.intra2net.com/en/developer/libftdi/download
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+ SOURCE_VFY=sha1:4bc6ce70c98a170ada303fbd00b8428d8a2c1aa2
+ WEB_SITE="http://www.intra2net.com/en/developer/libftdi/"
+ ENTERED=20131008
+ UPDATED=20131008
+ SHORT="Userspace access to FTDI USB interface chips"
+cat <<EOF
+libFTDI is an open source library to talk to FTDI chips: FT232BM,
+FT245BM, FT2232C, FT2232D, FT245R and FT232H including the popular
+bitbang mode. The library is linked with your program in userspace,
+no kernel driver required.
+
+libFTDI works perfectly with Linux, Windows, MacOS X and BSD variants
+thanks to libusb.
+EOF
--- /dev/null
+++ b/devel/libftdi1/BUILD
@@ -0,0 +1 @@
+default_cmake_build
--- /dev/null
+++ b/devel/libftdi1/DEPENDS
@@ -0,0 +1,6 @@
+depends libusb
+depends pkgconfig
+depends cmake
+optional_depends boost "-DFTDIPP=ON" "-DFTDIPP=OFF" "Build C++ binding library libftdi1++"
+optional_depends Python "-DPYTHON_BINDINGS=ON" "-DPYTHON_BINDINGS=OFF" "Build Python bindings"
+optional_depends confuse "-DFTDI_EEPROM=ON" "-DFTDI_EEPROM=OFF" "Build ftdi_eeprom"
--- /dev/null
+++ b/devel/libftdi1/DETAILS
@@ -0,0 +1,19 @@
+ MODULE=libftdi1
+ VERSION=1.0
+ SOURCE=${MODULE}-${VERSION}.tar.bz2
+ SOURCE_URL=http://www.intra2net.com/en/developer/libftdi/download
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+ SOURCE_VFY=sha1:5be76cfd7cd36c5291054638f7caf4137303386f
+ WEB_SITE="http://www.intra2net.com/en/developer/libftdi/"
+ ENTERED=20131008
+ UPDATED=20131008
+ SHORT="Userspace access to FTDI USB interface chips"
+cat <<EOF
+libFTDI is an open source library to talk to FTDI chips: FT232BM,
+FT245BM, FT2232C, FT2232D, FT245R and FT232H including the popular
+bitbang mode. The library is linked with your program in userspace,
+no kernel driver required.
+
+libFTDI works perfectly with Linux, Windows, MacOS X and BSD variants
+thanks to libusb.
+EOF
--- /dev/null
+++ b/libs/telldus-core/BUILD
@@ -0,0 +1,5 @@
+add_priv_group usb &&
+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,18 @@
+ MODULE=telldus-core
+ VERSION=2.1.1
+ SOURCE=${MODULE}-${VERSION}.tar.gz
+ SOURCE2=$MODULE-2.1.1-do-not-overwrite-configs.patch
+ SOURCE_URL=http://download.telldus.se/TellStick/Software/telldus-core
+ SOURCE2_URL=$PATCH_URL
+ SOURCE_VFY=sha1:2cd194caadcc919949987156e7affee8aef54a7b
+ SOURCE2_VFY=sha1:6bbd9357f7302b24c7d427d55fc4f5f9d9e47d5c
+ 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,14 @@
+default_pre_build &&
+
+# Do not overwrite configs if exist
+patch_it $SOURCE2 1 &&
+
+# 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 &&
+
+# Fix udev rules dir
+sedit '/UDEV_RULES_DIR/s;/etc;/usr/lib;' tdadmin/CMakeLists.txt
--- /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