Przeglądaj źródła

forked-daapd: add version 22.0

Signed-off-by: Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
ejurgensen 10 lat temu
rodzic
commit
9ab6894c2f

+ 66
- 0
sound/forked-daapd/Makefile Wyświetl plik

@@ -0,0 +1,66 @@
1
+#
2
+# Copyright (C) 2006-2014 OpenWrt.org
3
+#
4
+# This is free software, licensed under the GNU General Public License v2.
5
+# See /LICENSE for more information.
6
+#
7
+
8
+include $(TOPDIR)/rules.mk
9
+
10
+PKG_NAME:=forked-daapd
11
+PKG_VERSION:=22.0
12
+PKG_RELEASE:=20141016
13
+PKG_REV:=61a4da215c05b621951aa3903d7d390fd1839537
14
+
15
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17
+PKG_SOURCE_PROTO:=git
18
+PKG_SOURCE_URL:=git://github.com/ejurgensen/forked-daapd.git
19
+PKG_SOURCE_VERSION:=$(PKG_REV)
20
+PKG_FIXUP:=autoreconf
21
+PKG_USE_MIPS16:=0
22
+PKG_INSTALL:=1
23
+
24
+PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
25
+PKG_LICENSE:=GPL-2.0
26
+PKG_LICENSE_FILES:=COPYING
27
+
28
+include $(INCLUDE_DIR)/package.mk
29
+
30
+define Package/forked-daapd
31
+SECTION:=sound
32
+CATEGORY:=Sound
33
+TITLE:=Improved iTunes (DAAP) server. Support for Apple Remote and AirPlay.
34
+URL:=https://github.com/ejurgensen/forked-daapd
35
+DEPENDS:=+libgpg-error +libgcrypt +libgdbm +zlib +libexpat +libunistring \
36
+	+libevent +libdaemon +libantlr3c +confuse +glib2 +alsa-lib +libffmpeg-full \
37
+	+mxml +libavl +avahi-daemon +libavahi-client +sqlite3-cli +libplist
38
+endef
39
+
40
+define Package/forked-daapd/conffiles
41
+/etc/forked-daapd.conf
42
+endef
43
+
44
+CONFIGURE_ARGS += \
45
+	--enable-itunes
46
+
47
+# Fix for libevent
48
+TARGET_CPPFLAGS += -I$(STAGING_DIR)/usr/include/libevent
49
+TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/libevent
50
+
51
+TARGET_CFLAGS += $(FPIC)
52
+TARGET_LDFLAGS += -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
53
+
54
+define Package/forked-daapd/install
55
+	$(INSTALL_DIR) $(1)/etc
56
+	$(INSTALL_DATA) ./files/forked-daapd.conf $(1)/etc/
57
+	$(INSTALL_DIR) $(1)/usr/lib
58
+	$(INSTALL_DIR) $(1)/usr/lib/forked-daapd
59
+	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/forked-daapd/* $(1)/usr/lib/forked-daapd/
60
+	$(INSTALL_DIR) $(1)/usr/sbin
61
+	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/forked-daapd $(1)/usr/sbin/
62
+	$(INSTALL_DIR) $(1)/etc/init.d
63
+	$(INSTALL_BIN) ./files/forked-daapd.init $(1)/etc/init.d/forked-daapd
64
+endef
65
+
66
+$(eval $(call BuildPackage,forked-daapd))

+ 139
- 0
sound/forked-daapd/files/forked-daapd.conf Wyświetl plik

@@ -0,0 +1,139 @@
1
+# A quick guide to configuring forked-daapd:
2
+#
3
+# For regular use, the most important setting to configure is "directories",
4
+# which should be the location of your media. Whatever user you have set as
5
+# "uid" must have read access to this location. Also make sure to add the user.
6
+# If the location is a network mount, please see the README.
7
+#
8
+# In all likelihood, that's all you need to do!
9
+
10
+general {
11
+	# Username
12
+	uid = "daapd"
13
+	logfile = "/var/log/forked-daapd.log"
14
+	# Database location
15
+	db_path = "/var/run/forked-daapd.db"
16
+	# Available levels: fatal, log, warning, info, debug, spam
17
+	loglevel = log
18
+	# Admin password for the non-existent web interface
19
+	admin_password = "unused"
20
+	# Enable/disable IPv6
21
+	ipv6 = no
22
+	# Location of DAAP cache
23
+	daapcache_path = "/var/run/daapcache.db"
24
+	# DAAP requests that take longer than this threshold (in msec) get their
25
+	# replies cached for next time. Set to 0 to disable caching.
26
+#	daapcache_threshold = 1000
27
+}
28
+
29
+# Library configuration
30
+library {
31
+	# Name of the library as displayed by the clients
32
+	# %h: hostname, %v: version
33
+	name = "My Music on %h"
34
+	# TCP port to listen on. Default port is 3689 (daap)
35
+	port = 3689
36
+	# Password for the library. Optional.
37
+#	password = ""
38
+
39
+	# Directories to index
40
+	directories = { "/srv/music" }
41
+
42
+	# Directories containing podcasts
43
+	# For each directory that is indexed the path is matched against these
44
+	# names. If there is a match all items in the directory are marked as 
45
+	# podcasts. Eg. if you index /srv/music, and your podcasts are in
46
+	# /srv/music/Podcasts, you can set this to "/Podcasts".
47
+	# (changing this setting only takes effect after rescan, see the README)
48
+	podcasts = { "/Podcasts" }
49
+
50
+	# Directories containing audiobooks
51
+	# For each directory that is indexed the path is matched against these
52
+	# names. If there is a match all items in the directory are marked as 
53
+	# audiobooks.
54
+	# (changing this setting only takes effect after rescan, see the README)
55
+	audiobooks = { "/Audiobooks" }
56
+
57
+	# Directories containing compilations (eg soundtracks)
58
+	# For each directory that is indexed the path is matched against these
59
+	# names. If there is a match all items in the directory are marked as 
60
+	# compilations.
61
+	# (changing this setting only takes effect after rescan, see the README)
62
+	compilations = { "/Compilations" }
63
+
64
+	# Compilations usually have many artists, and if you don't want every
65
+	# artist to be listed when artist browsing in Remote, you can set
66
+	# a single name which will be used for all music in the compilation dir
67
+	# (changing this setting only takes effect after rescan, see the README)
68
+	compilation_artist = "Various artists"
69
+
70
+	# There are 5 default playlists: "Library", "Music", "Movies", "TV Shows"
71
+	# and "Podcasts". Here you can change the names of these playlists.
72
+#	name_library    = "Library"
73
+#	name_music      = "Music"
74
+#	name_movies     = "Movies"
75
+#	name_tvshows    = "TV Shows"
76
+#	name_podcasts   = "Podcasts"
77
+#	name_audiobooks = "Audiobooks"
78
+
79
+	# Artwork file names (without file type extension)
80
+	# forked-daapd will look for jpg and png files with these base names
81
+#	artwork_basenames = { "artwork", "cover", "Folder" }
82
+
83
+	# File types the scanner should ignore
84
+	# Non-audio files will never be added to the database, but here you
85
+	# can prevent the scanner from even probing them. This might improve
86
+	# scan time. By default .db and .ini are ignored.
87
+#	filetypes_ignore = { ".db", ".ini" }
88
+
89
+	# Disable startup file scanning
90
+	# When forked-daapd starts it will do an initial file scan of your
91
+	# library (and then watch it for changes). If you are sure your library
92
+	# never changes while forked-daapd is not running, you can disable the
93
+	# initial file scan and save some system ressources. Disabling this scan
94
+	# may lead to forked-daapd's database coming out of sync with the
95
+	# library. If that happens read the instructions in the README on how
96
+	# to trigger a full rescan.
97
+#	filescan_disable = false
98
+
99
+	# Should iTunes metadata override ours?
100
+#	itunes_overrides = false
101
+
102
+	# Formats: mp4a, mp4v, mpeg, alac, flac, mpc, ogg, wma, wmal, wmav, aif, wav
103
+	# Formats that should never be transcoded
104
+#	no_transcode = { "alac", "mp4a" }
105
+	# Formats that should always be transcoded
106
+#	force_transcode = { "ogg", "flac" }
107
+}
108
+
109
+# Local audio output
110
+audio {
111
+	# Name - used in the speaker list in Remote
112
+	nickname = "OpenWrt"
113
+	# Audio device name for local audio output
114
+#	card = "default"
115
+	# Mixer channel to use for volume control - ALSA/Linux only
116
+	# If not set, PCM will be used if available, otherwise Master.
117
+#	mixer = ""
118
+}
119
+
120
+# AirPlay/Airport Express device settings
121
+# (make sure you get the capitalization of the device name right)
122
+#airplay "My AirPlay device" {
123
+	# forked-daapd's volume goes to 11! If that's more than you can handle
124
+	# you can set a lower value here
125
+#	max_volume = 11
126
+	# AirPlay password
127
+#	password = "s1kr3t"
128
+#}
129
+
130
+# Spotify settings (only have effect if Spotify enabled - see README/INSTALL)
131
+spotify {
132
+	# Directory where user settings should be stored (credentials)
133
+#	settings_dir = "/var/cache/forked-daapd/libspotify"
134
+	# Cache directory
135
+#	cache_dir = "/tmp"
136
+	# Set preferred bitrate for music streaming
137
+	# 0: No preference (default), 1: 96kbps, 2: 160kbps, 3: 320kbps
138
+#	bitrate = 0
139
+}

+ 15
- 0
sound/forked-daapd/files/forked-daapd.init Wyświetl plik

@@ -0,0 +1,15 @@
1
+#!/bin/sh /etc/rc.common
2
+# Copyright (C) 2014 OpenWrt.org
3
+
4
+START=99
5
+BIN=/usr/sbin/forked-daapd
6
+PID=/var/run/forked-daapd.pid
7
+SSD=start-stop-daemon
8
+
9
+start() {
10
+        $SSD -p $PID -S -x $BIN -- -P $PID
11
+}
12
+	
13
+stop() {
14
+        $SSD -p $PID -K -s SIGINT
15
+}

+ 14782
- 0
sound/forked-daapd/patches/010-include_pregen.patch
Plik diff jest za duży
Wyświetl plik