OpenWrt Forum Archive

Topic: Logitech Media Server (aka SqueezeBox Server) on OpenWRT?

The content of this topic has been archived on 22 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

I'm want to build Logitech Media Server for OpenWRT. Wanted to know if anyone can give me some pointers or if someone already have a feed/makefile available.

I understand LMS would be too resource intensive for most router hardware, but my plan is to run it on a ARM device like the Pogoplug.

Nightly tarball is available here - http://downloads.slimdevices.com/nightly/?ver=7.8
Arch Linux AUR - https://aur.archlinux.org/packages/logitechmediaserver/

PKGBUILD content:

pkgname=logitechmediaserver
pkgver=7.7.3
pkgrel=2
pkgdesc='Streaming audio server supported by Logitech'
url='http://www.mysqueezebox.com/download'
license=('GPL' 'custom')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
makedepends=('nasm' 'yasm' 'rsync' 'subversion')
[[ $CARCH = x86_64 ]] && optdepends=('lib32-glibc: transcoding' 'lib32-gcc-libs: transcoding')
depends=('perl<5.19')
source=("http://downloads.slimdevices.com/LogitechMediaServer_v${pkgver}/logitechmediaserver-${pkgver}.tgz"
        'CPAN.upstream::svn+http://svn.slimdevices.com/repos/slim/7.7/trunk/vendor/CPAN/'
        'http://search.cpan.org/CPAN/authors/id/ … .19.tar.gz'
        'perl-recent.patch'
        'service')
sha1sums=('fbe93cef1b45551308142e23ba0dcded3c759ab7'
          'SKIP'
          '77a6a7e2893f93666a6ad1438efd17bf65bbbafc'
          '6c12a0ef5e2a4f8b00738a707ed13cf07ebe0c05'
          '734f84233fc7ab350b169f88aa5bb0cf3decad42')

install=install

prepare() {
    cd "${srcdir}/${pkgname}-${pkgver}"-*
    rm -r CPAN/arch Bin/{arm-linux,powerpc-linux,sparc-linux}
    cp ../Class-XSAccessor-1.19.tar.gz ../CPAN.upstream
    patch -p1 -i ../perl-recent.patch
    sed \
        -e 's/XSAccessor-1.05/XSAccessor-1.19/g' \
        -e '/RUN_TESTS=1/c RUN_TESTS=0' \
        -e 's/perl5.12/perl/g' \
        -e 's/5.12/5.18/g' \
        -i ../CPAN.upstream/buildme.sh
}

build() {
    cd "${srcdir}/CPAN.upstream"
    export CFLAGS=${CFLAGS//-O2/-Os}
    sh buildme.sh
    rm -f build/5.18/lib/perl5/*-linux-thread-multi/XML/Parser/Expat.pm
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"-*
    install -d "${pkgdir}"/{opt,usr/share/licenses}/"${pkgname}"
    cp -a * "${pkgdir}/opt/${pkgname}"
    cp -a ../CPAN.upstream/build/5.18/lib/perl5/*-linux-thread-multi/* "${pkgdir}/opt/${pkgname}/CPAN"
    ln -s /opt/"${pkgname}"/License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm644 ../service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
}

Any help or pointers is appreciated. Thanks

KK

Hi,

are you succeed by buiding this package for openwrt?
i have a wndr3700 with openwrt and also like to use LMS on it (i have several squeezebox boom).

thank you

LMS would simply be to big for a lot of routers. The ARM binary for Netgear ReadyNAS devices is over 20 MB. The WNDR3700 only has 8 MB of flash available. Next to that, you would also need quite a lot of RAM. LMS also maintains a database with metadata of all indexed media files, so that also needs some space and is updated frequently (which will wear out flash memory). So, for routers, this is a no-go.

Maybe, if you have a NAS device with OpenWRT on it, you could build LMS for it, but my guess is your hardware options would be pretty limited (I don't know the Pogoplug device). I would definately suggest a regular harddisk or SSD to install LMS on.

If you want to stream music/video from your router, you would be much better off with MiniDLNA. This still requires several MB of flash, but it is doable on devices with 8 MB of flash and at least 64 MB RAM (if the number of media files is limited - MiniDLNA keeps its database in RAM).

(Last edited by avbohemen on 2 Jun 2014, 11:44)

hi @rymn, sorry no luck yet. I managed to contact the author of the PKGBUILD but he had no experience with OpenWRT. Also as @avbohemen pointed out, there is no way LMS will run on a MIPS based router in any usable way.

LMS on the Pogoplug under Arch Linux isn't bad, but its a little sluggish navigating a large library though.

One day...

KK

The discussion might have continued from here.