I have made two ebuilds for telldus-core and telldus-gui. I have susessfully used them on one 64-bit gentoo core2duo computer, on one 32-bit gennto Asus eee 901 computer and on one virtualbox image with 32-bit gentoo.
First the delldus-core-2.1.1.ebuild with its two patch files:
telldus-core-2.1.1_fix_missing_include.patch
Code: Select all
--- common/Socket_unix.cpp.orig 2012-11-04 13:21:56.000000000 +0100
+++ common/Socket_unix.cpp 2012-11-04 13:21:56.000000000 +0100
@@ -7,6 +7,7 @@
#include <sys/socket.h>
#include <sys/un.h>
#include <math.h>
+#include <unistd.h>
#define BUFSIZE 512
Code: Select all
--- tdadmin/CMakeLists.txt.orig 2012-04-11 19:44:46.000000000 +0200
+++ tdadmin/CMakeLists.txt 2012-04-11 19:44:46.000000000 +0200
@@ -59,7 +59,7 @@
INSTALL(TARGETS tdadmin RUNTIME DESTINATION sbin)
IF (UNIX AND NOT APPLE)
- SET(UDEV_RULES_DIR "/etc/udev/rules.d" CACHE PATH "The directory where udev store its rules" )
+ SET(UDEV_RULES_DIR "/lib/udev/rules.d" CACHE PATH "The directory where udev store its rules" )
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/05-tellstick.rules
${CMAKE_BINARY_DIR}/parsed/05-tellstick.rules
Code: Select all
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-manager/openvas-manager-2.0.4.ebuild,v 1.2 2012/05/04 06:08:10 jdhore Exp $
EAPI="4"
RESTRICT="primaryuri"
inherit cmake-utils
DESCRIPTION="Cli for tellstick house automation transmitter/reciever"
HOMEPAGE="http://www.telldus.se/"
SRC_URI="http://download.telldus.se/TellStick/Software/telldus-core/${P}.tar.gz"
SLOT="0"
LICENSE="LGPL-2"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}
dev-embedded/libftdi
dev-libs/confuse
virtual/pkgconfig
dev-util/cmake"
src_prepare() {
epatch "${FILESDIR}"/telldus-core-2.1.1_fix_missing_include.patch
epatch "${FILESDIR}"/telldus-core-2.1.1_fix_wrong_udev_location.patch
}
src_configure() {
cmake-utils_src_configure
}
src_compile() {
cd "${CMAKE_BUILD_DIR}"
emake -j1 || die "make failed"
}
pkg_postinst() {
elog "Configure your devices by editing the /etc/tellstick.conf file"
elog "Start /usr/sbin/telldusd before use of service"
elog "Caution - the build does only work with -j1"
}
The telldus-gui-2.1.1.ebuild needs one patch file
telldus-gui-2.1.1_fix_missing_include.patch:
Code: Select all
--- 3rdparty/qtsingleapplication/src/qtlocalpeer.cpp.orig 2012-11-07 20:19:34.000000000 +0100
+++ 3rdparty/qtsingleapplication/src/qtlocalpeer.cpp 2012-11-07 20:19:09.000000000 +0100
@@ -48,6 +48,7 @@
#include "qtlocalpeer.h"
#include <QtCore/QCoreApplication>
#include <QtCore/QTime>
+#include <unistd.h>
#if defined(Q_OS_WIN)
#include <QtCore/QLibrary>
Code: Select all
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-manager/openvas-manager-2.0.4.ebuild,v 1.2 2012/05/04 06:08:10 jdhore Exp $
EAPI="4"
RESTRICT="primaryuri"
inherit cmake-utils
inherit qt4-r2
DESCRIPTION="Gui for tellstick house automation transmitter/reciever"
HOMEPAGE="http://www.telldus.se/"
SRC_URI="http://download.telldus.se/TellStick/Software/telldus-gui/${P}.tar.gz"
SLOT="0"
LICENSE="LGPL-2"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
RDEPEND="dev-util/telldus-core"
DEPEND="${RDEPEND}
virtual/pkgconfig
dev-util/cmake"
src_prepare() {
epatch "${FILESDIR}"/telldus-gui-2.1.1_fix_missing_include.patch
}
src_configure() {
qmake "${S}"/3rdparty/qt-components-desktop
cmake-utils_src_configure
}
src_compile() {
cd "${S}"/3rdparty/qt-components-desktop
emake -j1 || die "make failed"
cd "${CMAKE_BUILD_DIR}"
emake -j1 || die "make failed"
}
src_install() {
cd "${CMAKE_BUILD_DIR}"
emake DESTDIR="${D}" install || die "Install failed"
cd "${S}"/3rdparty/qt-components-desktop
qt4-r2_src_install
}
I start the delldusd daemon as root.