adding bemused server from #3208
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10559 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3c641afa29
commit
04700f92b7
60
utils/bemused/Makefile
Normal file
60
utils/bemused/Makefile
Normal file
@ -0,0 +1,60 @@
|
||||
#
|
||||
# Copyright (C) 2008 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
# $Id$
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=bemused-mpd
|
||||
PKG_VERSION:=r047
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://download.origo.ethz.ch/bemused-lnx-mpdhack/382
|
||||
PKG_MD5SUM:=f40715812d59d2ab1bd93f96c5e8818b
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/bemusedlinuxserver
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
DEPENDS:=+bluez-libs +glib1 +mpd +libstdcpp
|
||||
TITLE:=Bemused linux server
|
||||
URL:=http://bemused-lnx-mpdhack.origo.ethz.ch/
|
||||
endef
|
||||
|
||||
define Package/bemusedlinuxserver/description
|
||||
Bemused is a system which allows you to control your music collection
|
||||
from your phone, using Bluetooth.
|
||||
This is the MPD hack version.
|
||||
Check http://jamse.sourceforge.net/ for a mobile phone client.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS) " \
|
||||
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
||||
INCL="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include" \
|
||||
MYLIBS="-lbluetooth -lglib"
|
||||
$(STRIP) $(PKG_BUILD_DIR)/bemusedlinuxserver
|
||||
endef
|
||||
|
||||
define Package/bemusedlinuxserver/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bemusedlinuxserver $(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/etc
|
||||
$(INSTALL_CONF) ./files/bemused.conf $(1)/etc/bemused.conf
|
||||
$(INSTALL_CONF) ./files/bemused-bookmarks $(1)/etc/bemused-bookmarks
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/bemused.init $(1)/etc/init.d/bemused
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,bemusedlinuxserver))
|
8
utils/bemused/files/bemused-bookmarks
Normal file
8
utils/bemused/files/bemused-bookmarks
Normal file
@ -0,0 +1,8 @@
|
||||
# Bemused stream file
|
||||
# This is quite a simple format file
|
||||
# Stream Title = URL
|
||||
#
|
||||
# IMPORTANT: stream name MUST contain the ".mp3" extension, else jamse will not display the file!
|
||||
|
||||
UnitedBreaks.mp3 = http://74.52.13.138:8000
|
||||
nubreaks.mp3 = http://208.100.38.52:8419
|
48
utils/bemused/files/bemused.conf
Normal file
48
utils/bemused/files/bemused.conf
Normal file
@ -0,0 +1,48 @@
|
||||
# bemused config file Version 1.73 (no changes since 1.71)
|
||||
# lines with a # at the beinning are for comments and not readen by the bemusedserver
|
||||
# You only need to set up options which have no default and which ware not optinal
|
||||
|
||||
# this is a mpd-hack version by michu@neophob.com
|
||||
# just for information: "xmms" means "mpd"!
|
||||
|
||||
# Path to mpd (if mpd is in path only mpd) (default is mpd)
|
||||
xmmsdir=/usr/local/bin/mpd
|
||||
|
||||
# channel for what the serial port service is registered (with sdptool look in README) (default 10)
|
||||
# example:
|
||||
# root@OpenWrt:~# sdptool browse
|
||||
# Inquiring ...
|
||||
# <...>
|
||||
# Service Name: COM 1
|
||||
# Service RecHandle: 0x10005
|
||||
# Service Class ID List:
|
||||
# "Serial Port" (0x1101)
|
||||
# Protocol Descriptor List:
|
||||
# "L2CAP" (0x0100)
|
||||
# "RFCOMM" (0x0003)
|
||||
# Channel: 3 <<<
|
||||
# Language Base Attr List:
|
||||
# code_ISO639: 0x656e
|
||||
# encoding: 0x6a
|
||||
# base_offset: 0x100
|
||||
channel=3
|
||||
|
||||
# directorys where the mp3s are. If more than one seperate them by a m semicolon (must be set)
|
||||
# point this directory to the mpd music directory!
|
||||
mp3dir=/
|
||||
|
||||
# whether to autostart mpd when the server is started (0 (no) or 1 (yes)) (default=1)
|
||||
# THIS OPTION IS NOT SUPPORTED!
|
||||
# autostartxmms=0
|
||||
|
||||
# bookmarks file for URLs of net radio stations (optional)
|
||||
bookmarkfile=/etc/bemused-bookmarks
|
||||
|
||||
# speed setting for fast forward and rewind. time for every jump in milliseconds 10000 is default
|
||||
#fastforbackspeed=10000
|
||||
|
||||
# set to 1 to use connection over TCP/IP (for bluetooth pan or maybe LAN oder internet) set to 0 for normal rfcomm bluetooth (default)
|
||||
#tcp=1
|
||||
|
||||
# port to use if you set tcp to 1 for your incomming TCP/IP Connection. (default is 7654 and at the moment the only one useable by the client on the phone)
|
||||
#tcpport=7654
|
13
utils/bemused/files/bemused.init
Normal file
13
utils/bemused/files/bemused.init
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2008 OpenWrt.org
|
||||
START=95
|
||||
|
||||
start() {
|
||||
/usr/sbin/bemusedlinuxserver -d
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall bemusedlinuxserver
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user