summaryrefslogtreecommitdiff
path: root/package/squeezelite
diff options
context:
space:
mode:
Diffstat (limited to 'package/squeezelite')
-rw-r--r--package/squeezelite/Makefile9
-rw-r--r--package/squeezelite/files/squeezelite.init26
-rw-r--r--package/squeezelite/files/squeezelite.postinst4
3 files changed, 36 insertions, 3 deletions
diff --git a/package/squeezelite/Makefile b/package/squeezelite/Makefile
index ec06e3d04..f200cfee4 100644
--- a/package/squeezelite/Makefile
+++ b/package/squeezelite/Makefile
@@ -5,16 +5,19 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= squeezelite
PKG_VERSION:= 1.5
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 7605af4d64291495645f88575a564475
PKG_DESCR:= headless squeezebox emulator
PKG_SECTION:= multimedia
PKG_DEPENDS:= libflac alsa-lib libvorbis libmad
-PKG_DEPENDS+= libpthread librt
-PKG_BUILDDEP:= alsa-lib
+PKG_DEPENDS+= libpthread librt libfaad2
+PKG_BUILDDEP:= alsa-lib libmad flac libvorbis mpg123
+PKG_BUILDDEP+= faad2
PKG_URL:= http://code.google.com/p/squeezelite/
PKG_SITES:= http://openadk.org/distfiles/
+PKG_LIBC_DEPENDS:= eglibc glibc musl
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,SQUEEZELITE,squeezelite,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
diff --git a/package/squeezelite/files/squeezelite.init b/package/squeezelite/files/squeezelite.init
new file mode 100644
index 000000000..933b81ab5
--- /dev/null
+++ b/package/squeezelite/files/squeezelite.init
@@ -0,0 +1,26 @@
+#!/bin/sh
+#PKG squeezelite
+#INIT 60
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${squeezelite:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ /usr/bin/squeezelite $squeezelite_flags
+ ;;
+stop)
+ kill $(pgrep -f /usr/bin/squeezelite)
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "usage: $0 {start | stop | restart}"
+ exit 1
+esac
+exit $?
diff --git a/package/squeezelite/files/squeezelite.postinst b/package/squeezelite/files/squeezelite.postinst
new file mode 100644
index 000000000..e5d9c91ee
--- /dev/null
+++ b/package/squeezelite/files/squeezelite.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf squeezelite squeezelite NO
+add_rcconf squeezelite_flags squeezelite_flags "-z -a 160:5:0:0 -s 10.0.0.1"