Package Details: telldus-core 2.1.2-2

Git Clone URL: https://aur.archlinux.org/telldus-core.git (read-only)
Package Base: telldus-core
Description: TellStick application and library
Upstream URL: http://developer.telldus.se/wiki/TellStickInstallationSource
Licenses: GPL2
Submitter: ndreas
Maintainer: obiesmans
Last Packager: obiesmans
Votes: 4
Popularity: 0.000018
First Submitted: 2012-08-04 14:03
Last Updated: 2015-07-07 17:32

Required by (0)

Sources (4)

Latest Comments

rubaka commented on 2015-04-02 11:18

"patch" is also a dependency. Please update PKGBUILD.

Hexagon commented on 2015-03-05 21:41

Works great om RPI2, 'armv7h' could be added to arch=

tuusjr commented on 2014-10-29 22:52

Systemd complains that telldus.service is marked as executable. I guess it would be cleaner to remove the executable flag from that file then.

SciBoy commented on 2014-08-02 12:04

The problem I had was also the parallel compile make-flag (-j(n)). Please do what devjoa said and update the PKGBUILD.

obiesmans commented on 2014-07-01 00:13

Package updated, thanks to guzzard's contribution.

guzzard commented on 2014-06-30 19:41

version 2.1.2 available as of 2014-04-03. url: http://download.telldus.se/TellStick/Software/telldus-core/telldus-core-2.1.2.tar.gz

jrylander commented on 2014-01-31 22:01

I added 'armv7h' for use on a Beaglebone black. Seems to work. Tnx a million for your work!

devjoa commented on 2014-01-28 22:09

Hi, it would be great if you could add the following to the PKGBUILD, as I had problems with my -j5 make flag.
options=('!makeflags')

obiesmans commented on 2014-01-27 21:35

Just checked and it compiles properly on a newly installed system. is you system up to date ?
Could you post the build logs to a pastebin so I can have more information ?

SciBoy commented on 2014-01-27 08:21

I am unable to compile. I get:
make[2]: *** Ingen regel för att skapa målet ”client/libtelldus-core.so”, som behövs av ”tdtool/tdtool”. Stannar.

Which is swedish for: 'No rule for creating target "client/libtelldus-core.so", which is needed by "tdtool/tdtool". Stopping.'

Any ideas?

obiesmans commented on 2014-01-12 16:23

Oh, my bad, upstream uses 'plugdev' indeed. A previous maintainer of this package changed it to 'uucp' which is correct according to https://wiki.archlinux.org/index.php/Users_and_Groups.

I'll look into reloading udev rules as a post-install script.
Glad to see it's working for you, and thanks for the feedback on this package.

chrisq commented on 2014-01-12 16:12

Thanks, yes that helped.

FYI, the plugdev-group message comes from the telldusd binary, it is not referenced in any of my config files, so I think that too is from upstream.

My problem was partly caused by the udev not reloading its config after I installed the package, so ftdi_sio was loaded while tdadmin wasn't. I guess that would have been fixed by a reboot or udevadm control --reload-rules.

Thanks for all your help with this package :)

obiesmans commented on 2014-01-12 13:52

In short, telldusd should have sufficients rights to read/write on the /dev/whatever your tellstick is registered to.

This package ships with udev rules (/etc/udev/rules.d/05-tellstick.rules) that make sure you can control the stick with the 'uucp' (not 'plugdev') group ; this is an upstream choice.

Just in case, a few values from my own setup :
$ lsusb | grep -i telldus
Bus 001 Device 004: ID 1781:0c31 Multiple Vendors Telldus TellStick Duo
$ sudo lsof -p `pgrep telldusd` | grep -i '/dev'
telldusd 16248 root 9u CHR 189,3 0t0 68360 /dev/bus/usb/001/004
$ ls -lha /dev/bus/usb/001/004
crw-rw-r-- 1 root uucp 189, 3 Jan 12 14:29 /dev/bus/usb/001/004

I hope this helps.

chrisq commented on 2014-01-10 19:52

Also it seems like I lack permissions when running telldusd, what user= and group= values should I use in tellstick.conf with this package?
When setting group/user=root, running tdadmin manually and telldusd --nodaemon everything works.
Any ideas?

chrisq commented on 2014-01-10 18:45

Hi, it seems like it depends on the group plugdev, but it is not created, so the daemon fails. I could of course just add this group, but it should probably be the responsibility of the package right?

[root@puppeteer ~]# telldusd --nodaemon
telldusd daemon starting up
Group plugdev could not be found

obiesmans commented on 2014-01-09 20:56

Chriq: Should be fixed now. Good luck with your lights !

chrisq commented on 2014-01-08 23:52

obiesmans: Great, thank you for the quick reply.
I won't be living in darkness for long then :)

obiesmans commented on 2014-01-08 19:14

Chrisq> Fails me me too an a brand new install. Looks like it doesn't link with -pthreads. I am working on fixing this right now.

chrisq commented on 2014-01-08 17:37

Build fails, have I overlooked anything obvious?

Linking CXX shared library libtelldus-core.so
[ 96%] Built target telldus-core
Linking CXX executable tdtool
../client/libtelldus-core.so: undefined reference to `pthread_create'
../client/libtelldus-core.so: undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
tdtool/CMakeFiles/tdtool.dir/build.make:89: recipe for target 'tdtool/tdtool' failed
make[2]: *** [tdtool/tdtool] Error 1
CMakeFiles/Makefile2:228: recipe for target 'tdtool/CMakeFiles/tdtool.dir/all' failed
make[1]: *** [tdtool/CMakeFiles/tdtool.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

obiesmans commented on 2013-12-14 21:11

This did not compile against latest libftdi. I adopted the package an reverted to libftdi-compat for now.

kimrasmussen commented on 2013-11-19 14:21

The current PKGBUILD doesn't work as it doesn't define a package() function.

Here is a fixed version:

# Maintainer: Andreas Johansson <stdin dot se>
# Contributor: Peter Hultqvist <endnode dot se>
pkgname=telldus-core
pkgver=2.1.1
pkgrel=3
pkgdesc="TellStick application and library"
arch=('i686' 'x86_64' 'armv6h')
url="http://developer.telldus.se/wiki/TellStickInstallationSource"
license=('GPL2')
depends=('libftdi' 'confuse')
makedepends=('gcc' 'make' 'cmake')
backup=('etc/tellstick.conf')
source=(
http://download.telldus.se/TellStick/Software/${pkgname}/${pkgname}-${pkgver}.tar.gz
arch-config.patch
arch-sbin-fix.patch
telldusd
telldus.service
unistd-include.patch
)
md5sums=(
'5f1dfc03b500671caeb54bfa9f50b9ce'
'86c42cd98dece16a9ad17eac2f2b3cb3'
'49d8bef2c157dde2f222b7c46c6538fd'
'53a57c8500f95482814e95a7e0226e29'
'2c03c9a95afd4f694f3fed193b8f4811'
'145389c5405261540b8522278616cc6f'
)

build()
{
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 < ${srcdir}/arch-config.patch
patch -p1 < ${srcdir}/arch-sbin-fix.patch
patch -p1 < ${srcdir}/unistd-include.patch
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
}

package()
{
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="$pkgdir/" install
install -D -m0755 "${srcdir}/telldusd" "${pkgdir}/etc/rc.d/telldusd" || return 1
install -D -m0755 "${srcdir}/telldus.service" "${pkgdir}/etc/systemd/system/telldus.service" || return 1
}

jonaz commented on 2013-01-01 17:42

Working fine on a raspberry pi now that armv6h is in the PKGBUILD. I used this systemd service:

/etc/systemd/system/telldus.service (enable using: systemctl enable telldus.service)

# Telldusd service unit file
#
[Unit]
Description=Telldus-core service telldusd
After=syslog.target network.target

[Service]
Type=forking
ExecStart=/usr/sbin/telldusd
ExecStop=/bin/kill -HUP $MAINPID
PIDFile=/var/run/telldusd.pid
KillMode=process

[Install]
WantedBy=multi-user.target