Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'telldus-home-automation'
- Loading branch information
Showing
15 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
OPTS+=" --enable-shared --disable-examples --disable-static" | ||
default_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
depends flex | ||
depends libtool | ||
depends pkgconfig | ||
optional_depends gettext "--enable-nls" "--disable-nls" "for NLS support" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
default_cmake_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
default_cmake_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
depends cmake | ||
depends libftdi | ||
depends confuse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# We should probably add a daemon-reload plugin for udev rules | ||
udevadm control --reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Unit] | ||
Description=Telldus TellStick daemon | ||
|
||
[Service] | ||
Type=forking | ||
ExecStart=/usr/sbin/telldusd | ||
|
||
[Install] | ||
WantedBy=multi-user.target |