Skip to content

Commit

Permalink
Merge branch 'telldus-home-automation'
Browse files Browse the repository at this point in the history
  • Loading branch information
v4hn committed Nov 3, 2013
2 parents 398b2ba + 6806dff commit 29018f7
Show file tree
Hide file tree
Showing 15 changed files with 126 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devel/confuse/BUILD
@@ -0,0 +1,2 @@
OPTS+=" --enable-shared --disable-examples --disable-static"
default_build
4 changes: 4 additions & 0 deletions devel/confuse/DEPENDS
@@ -0,0 +1,4 @@
depends flex
depends libtool
depends pkgconfig
optional_depends gettext "--enable-nls" "--disable-nls" "for NLS support"
18 changes: 18 additions & 0 deletions 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
1 change: 1 addition & 0 deletions devel/libftdi/BUILD
@@ -0,0 +1 @@
default_cmake_build
5 changes: 5 additions & 0 deletions 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"
19 changes: 19 additions & 0 deletions 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
1 change: 1 addition & 0 deletions devel/libftdi1/BUILD
@@ -0,0 +1 @@
default_cmake_build
6 changes: 6 additions & 0 deletions 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"
19 changes: 19 additions & 0 deletions 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
5 changes: 5 additions & 0 deletions 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
3 changes: 3 additions & 0 deletions libs/telldus-core/DEPENDS
@@ -0,0 +1,3 @@
depends cmake
depends libftdi
depends confuse
18 changes: 18 additions & 0 deletions 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
2 changes: 2 additions & 0 deletions libs/telldus-core/POST_INSTALL
@@ -0,0 +1,2 @@
# We should probably add a daemon-reload plugin for udev rules
udevadm control --reload
14 changes: 14 additions & 0 deletions 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
9 changes: 9 additions & 0 deletions 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

0 comments on commit 29018f7

Please sign in to comment.