diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-24 12:43:14 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-24 12:43:14 +0200 |
commit | b9c037d3df111a852ce4463b28103f399f6ee5d7 (patch) | |
tree | cb52ee7126522869d91434d53945f2b4ca1ee98f /package/logitechmediaserver | |
parent | ca7285d21f49410b8ec5eb511d288630a4c9dec4 (diff) |
more lms stuff
Diffstat (limited to 'package/logitechmediaserver')
4 files changed, 47 insertions, 1 deletions
diff --git a/package/logitechmediaserver/Makefile b/package/logitechmediaserver/Makefile index 02382ca00..6d118f4e0 100644 --- a/package/logitechmediaserver/Makefile +++ b/package/logitechmediaserver/Makefile @@ -13,7 +13,7 @@ PKG_DEPENDS:= perl p5-xml-parser p5-dbi p5-ev p5-html-parser PKG_DEPENDS+= p5-json-xs p5-digest-sha1 p5-yaml-xs p5-sub-name PKG_DEPENDS+= p5-xml-parser-expat p5-time-hires p5-common-sense PKG_DEPENDS+= p5-types-serialiser p5-audio-scan p5-image-scale -PKG_DEPENDS+= p5-dbd-sqlite +PKG_DEPENDS+= p5-dbd-sqlite p5-tie-refhash PKG_BUILDDEP:= perl PKG_URL:= http://wiki.slimdevices.com/index.php/Logitech_Media_Server PKG_SITES:= http://downloads.slimdevices.com/LogitechMediaServer_v7.8.0/ diff --git a/package/logitechmediaserver/files/logitechmediaserver.init b/package/logitechmediaserver/files/logitechmediaserver.init new file mode 100644 index 000000000..86c3148b2 --- /dev/null +++ b/package/logitechmediaserver/files/logitechmediaserver.init @@ -0,0 +1,29 @@ +#!/bin/sh +#PKG logitechmediaserver +#INIT 80 + +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${logitechmediaserver:-NO}" = x"NO" && exit 0 + test x"$logitechmediaserver" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start + exec sh $0 start + ;; +start) + chown -R squeezeboxserver /opt/lms/prefs + perl /opt/lms/slimserver.pl + ;; +stop) + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? diff --git a/package/logitechmediaserver/files/logitechmediaserver.postinst b/package/logitechmediaserver/files/logitechmediaserver.postinst new file mode 100644 index 000000000..f2a322e79 --- /dev/null +++ b/package/logitechmediaserver/files/logitechmediaserver.postinst @@ -0,0 +1,6 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf logitechmediaserver NO +gid=$(get_next_gid) +add_group squeezeboxserver $gid +add_user squeezeboxserver $(get_next_uid) $gid /opt/lms diff --git a/package/logitechmediaserver/patches/patch-CPAN_DBD_SQLite_pm b/package/logitechmediaserver/patches/patch-CPAN_DBD_SQLite_pm new file mode 100644 index 000000000..a789ef49a --- /dev/null +++ b/package/logitechmediaserver/patches/patch-CPAN_DBD_SQLite_pm @@ -0,0 +1,11 @@ +--- logitechmediaserver-7.8.0-noCPAN.orig/CPAN/DBD/SQLite.pm 2014-03-27 21:15:44.000000000 +0100 ++++ logitechmediaserver-7.8.0-noCPAN/CPAN/DBD/SQLite.pm 2014-06-24 09:25:50.640509200 +0200 +@@ -10,7 +10,7 @@ use vars qw{$err $errstr $drh $sqlite_ve + use vars qw{%COLLATION}; + + BEGIN { +- $VERSION = '1.34_01'; ++ $VERSION = '1.42'; + @ISA = 'DynaLoader'; + + # Initialize errors |