summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/logitechmediaserver/Makefile2
-rw-r--r--package/logitechmediaserver/files/logitechmediaserver.init29
-rw-r--r--package/logitechmediaserver/files/logitechmediaserver.postinst6
-rw-r--r--package/logitechmediaserver/patches/patch-CPAN_DBD_SQLite_pm11
-rw-r--r--package/p5-tie-refhash/Makefile33
5 files changed, 80 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
diff --git a/package/p5-tie-refhash/Makefile b/package/p5-tie-refhash/Makefile
new file mode 100644
index 000000000..8565a3f86
--- /dev/null
+++ b/package/p5-tie-refhash/Makefile
@@ -0,0 +1,33 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= p5-tie-refhash
+PKG_VERSION:= 1.39
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 179d4d02924bd9716e2ffe585cbd36c8
+PKG_DESCR:= use references as hash keys
+PKG_SECTION:= dev/perl
+PKG_DEPENDS:= perl
+PKG_BUILDDEP:= perl
+PKG_SITES:= http://cpan.metacpan.org/authors/id/F/FL/FLORA/
+
+DISTFILES:= Tie-RefHash-${PKG_VERSION}.tar.gz
+WRKDIST= ${WRKDIR}/Tie-RefHash-${PKG_VERSION}
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,P5_TIE_REFHASH,p5-tie-refhash,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+include $(ADK_TOPDIR)/mk/perl.mk
+
+CONFIG_STYLE:= perl
+XAKE_FLAGS+= $(PERL_ENV)
+
+p5-tie-refhash-install:
+ $(INSTALL_DIR) $(IDIR_P5_TIE_REFHASH)$(PERL_SITEDIR)
+ $(CP) $(WRKINST)$(PERL_SITEDIR)/* \
+ $(IDIR_P5_TIE_REFHASH)$(PERL_SITEDIR)
+
+include ${ADK_TOPDIR}/mk/pkg-bottom.mk