1 |
commit: adca6ff181c11c7221beeb543c9d71da102da1dc |
2 |
Author: Ian Whyman <thev00d00 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 27 21:59:09 2019 +0000 |
4 |
Commit: Ian Whyman <thev00d00 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 27 21:59:26 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adca6ff1 |
7 |
|
8 |
net-misc/gerbera: v1.3 Version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.58, Repoman-2.3.12 |
11 |
Signed-off-by: Ian Whyman <thev00d00 <AT> gentoo.org> |
12 |
|
13 |
net-misc/gerbera/Manifest | 1 + |
14 |
net-misc/gerbera/files/gerbera-1.3.0.config | 147 ++++++++++++++++++++++++++++ |
15 |
net-misc/gerbera/gerbera-1.3.0.ebuild | 101 +++++++++++++++++++ |
16 |
3 files changed, 249 insertions(+) |
17 |
|
18 |
diff --git a/net-misc/gerbera/Manifest b/net-misc/gerbera/Manifest |
19 |
index 9b5bf6263c1..227564a9a01 100644 |
20 |
--- a/net-misc/gerbera/Manifest |
21 |
+++ b/net-misc/gerbera/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST gerbera-1.2.0.tar.gz 2910704 BLAKE2B b0d0f52dcfbcefe09d96e6b63a73005fb069176fb42af16cf9a4729742988d5c5a0b68109ab50b93ba65ec604c3ced7a827fb75300d6c3409bdde77e18346589 SHA512 5472136b0605e4cc9645219ab9fbe9ae4240a4b80f52fc611456cef0336a7eac8136448132f30fab04655d4bdb0f85f5a37e92e2830ec976f71c6b294935e1dc |
24 |
+DIST gerbera-1.3.0.tar.gz 2799974 BLAKE2B b062b554552a58e3c71b18d189e4c1e6a59be4150ab3f2c22ba1e2186ca55a181a4037694e79803ebd5e877f3c75e55fe09665b06ec64374fe418082dc22fa7d SHA512 1afebd865a226ac13f82fb97381015d7875c1bebd9186e793acd8d715ac049e0502e60e4696a53b9d23d9dbccb4758889e1b3638fb53aeede3796c3264a01434 |
25 |
|
26 |
diff --git a/net-misc/gerbera/files/gerbera-1.3.0.config b/net-misc/gerbera/files/gerbera-1.3.0.config |
27 |
new file mode 100644 |
28 |
index 00000000000..4c41a27143c |
29 |
--- /dev/null |
30 |
+++ b/net-misc/gerbera/files/gerbera-1.3.0.config |
31 |
@@ -0,0 +1,147 @@ |
32 |
+<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd"> |
33 |
+ <!-- |
34 |
+ See http://gerbera.io or read the docs for more |
35 |
+ information on creating and using config.xml configration files. |
36 |
+ --> |
37 |
+ <server> |
38 |
+ <ui enabled="yes" show-tooltips="yes"> |
39 |
+ <accounts enabled="no" session-timeout="30"> |
40 |
+ <account user="gerbera" password="gerbera"/> |
41 |
+ </accounts> |
42 |
+ </ui> |
43 |
+ <name>Gerbera</name> |
44 |
+ <udn>uuid:f6344839-539b-4cb9-9a12-cab6bbb30fd9</udn> |
45 |
+ <home>/var/lib/gerbera<home> |
46 |
+ <webroot>/usr/share/gerbera/web</webroot> |
47 |
+ <!-- |
48 |
+ How frequently (in seconds) to send ssdp:alive advertisements. |
49 |
+ Minimum alive value accepted is: 62 |
50 |
+ |
51 |
+ The advertisement will be sent every (A/2)-30 seconds, |
52 |
+ and will have a cache-control max-age of A where A is |
53 |
+ the value configured here. Ex: A value of 62 will result |
54 |
+ in an SSDP advertisement being sent every second. |
55 |
+ --> |
56 |
+ <alive>1800</alive> |
57 |
+ <storage> |
58 |
+ <sqlite3 enabled="yes"> |
59 |
+ <database-file>gerbera.db</database-file> |
60 |
+ </sqlite3> |
61 |
+ <mysql enabled="no"> |
62 |
+ <host>localhost</host> |
63 |
+ <username>gerbera</username> |
64 |
+ <database>gerbera</database> |
65 |
+ </mysql> |
66 |
+ </storage> |
67 |
+ <protocolInfo extend="yes"/> |
68 |
+ <extended-runtime-options> |
69 |
+ <ffmpegthumbnailer enabled="no"> |
70 |
+ <thumbnail-size>128</thumbnail-size> |
71 |
+ <seek-percentage>5</seek-percentage> |
72 |
+ <filmstrip-overlay>yes</filmstrip-overlay> |
73 |
+ <workaround-bugs>no</workaround-bugs> |
74 |
+ <image-quality>8</image-quality> |
75 |
+ </ffmpegthumbnailer> |
76 |
+ <mark-played-items enabled="no" suppress-cds-updates="yes"> |
77 |
+ <string mode="prepend">*</string> |
78 |
+ <mark> |
79 |
+ <content>video</content> |
80 |
+ </mark> |
81 |
+ </mark-played-items> |
82 |
+ </extended-runtime-options> |
83 |
+ </server> |
84 |
+ <import hidden-files="no"> |
85 |
+ <scripting script-charset="UTF-8"> |
86 |
+ <common-script>/usr/share/gerbera/js/common.js</common-script> |
87 |
+ <playlist-script>/usr/share/gerbera/js/playlists.js</playlist-script> |
88 |
+ <virtual-layout type="builtin"> |
89 |
+ <import-script>/usr/share/gerbera/js/import.js</import-script> |
90 |
+ </virtual-layout> |
91 |
+ </scripting> |
92 |
+ <mappings> |
93 |
+ <extension-mimetype ignore-unknown="no"> |
94 |
+ <map from="mp3" to="audio/mpeg"/> |
95 |
+ <map from="ogx" to="application/ogg"/> |
96 |
+ <map from="ogv" to="video/ogg"/> |
97 |
+ <map from="oga" to="audio/ogg"/> |
98 |
+ <map from="ogg" to="audio/ogg"/> |
99 |
+ <map from="ogm" to="video/ogg"/> |
100 |
+ <map from="asf" to="video/x-ms-asf"/> |
101 |
+ <map from="asx" to="video/x-ms-asf"/> |
102 |
+ <map from="wma" to="audio/x-ms-wma"/> |
103 |
+ <map from="wax" to="audio/x-ms-wax"/> |
104 |
+ <map from="wmv" to="video/x-ms-wmv"/> |
105 |
+ <map from="wvx" to="video/x-ms-wvx"/> |
106 |
+ <map from="wm" to="video/x-ms-wm"/> |
107 |
+ <map from="wmx" to="video/x-ms-wmx"/> |
108 |
+ <map from="m3u" to="audio/x-mpegurl"/> |
109 |
+ <map from="pls" to="audio/x-scpls"/> |
110 |
+ <map from="flv" to="video/x-flv"/> |
111 |
+ <map from="mkv" to="video/x-matroska"/> |
112 |
+ <map from="mka" to="audio/x-matroska"/> |
113 |
+ <map from="dsf" to="audio/x-dsd"/> |
114 |
+ <map from="dff" to="audio/x-dsd"/> |
115 |
+ <map from="wv" to="audio/x-wavpack"/> |
116 |
+ <!-- Uncomment the line below for PS3 divx support --> |
117 |
+ <!-- <map from="avi" to="video/divx"/> --> |
118 |
+ <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 --> |
119 |
+ <!-- <map from="avi" to="video/avi"/> --> |
120 |
+ </extension-mimetype> |
121 |
+ <mimetype-upnpclass> |
122 |
+ <map from="audio/*" to="object.item.audioItem.musicTrack"/> |
123 |
+ <map from="video/*" to="object.item.videoItem"/> |
124 |
+ <map from="image/*" to="object.item.imageItem"/> |
125 |
+ <map from="application/ogg" to="object.item.audioItem.musicTrack"/> |
126 |
+ </mimetype-upnpclass> |
127 |
+ <mimetype-contenttype> |
128 |
+ <treat mimetype="audio/mpeg" as="mp3"/> |
129 |
+ <treat mimetype="application/ogg" as="ogg"/> |
130 |
+ <treat mimetype="audio/ogg" as="ogg"/> |
131 |
+ <treat mimetype="audio/x-flac" as="flac"/> |
132 |
+ <treat mimetype="audio/flac" as="flac"/> |
133 |
+ <treat mimetype="audio/x-ms-wma" as="wma"/> |
134 |
+ <treat mimetype="audio/x-wavpack" as="wv"/> |
135 |
+ <treat mimetype="image/jpeg" as="jpg"/> |
136 |
+ <treat mimetype="audio/x-mpegurl" as="playlist"/> |
137 |
+ <treat mimetype="audio/x-scpls" as="playlist"/> |
138 |
+ <treat mimetype="audio/x-wav" as="pcm"/> |
139 |
+ <treat mimetype="audio/L16" as="pcm"/> |
140 |
+ <treat mimetype="video/x-msvideo" as="avi"/> |
141 |
+ <treat mimetype="video/mp4" as="mp4"/> |
142 |
+ <treat mimetype="audio/mp4" as="mp4"/> |
143 |
+ <treat mimetype="video/x-matroska" as="mkv"/> |
144 |
+ <treat mimetype="audio/x-matroska" as="mka"/> |
145 |
+ <treat mimetype="audio/x-dsd" as="dsd"/> |
146 |
+ </mimetype-contenttype> |
147 |
+ </mappings> |
148 |
+ <online-content> |
149 |
+ <AppleTrailers enabled="no" refresh="43200" update-at-start="no" resolution="640"/> |
150 |
+ </online-content> |
151 |
+ </import> |
152 |
+ <transcoding enabled="no"> |
153 |
+ <mimetype-profile-mappings> |
154 |
+ <transcode mimetype="video/x-flv" using="vlcmpeg"/> |
155 |
+ <transcode mimetype="application/ogg" using="vlcmpeg"/> |
156 |
+ <transcode mimetype="audio/ogg" using="ogg2mp3"/> |
157 |
+ </mimetype-profile-mappings> |
158 |
+ <profiles> |
159 |
+ <profile name="ogg2mp3" enabled="no" type="external"> |
160 |
+ <mimetype>audio/mpeg</mimetype> |
161 |
+ <accept-url>no</accept-url> |
162 |
+ <first-resource>yes</first-resource> |
163 |
+ <accept-ogg-theora>no</accept-ogg-theora> |
164 |
+ <agent command="ffmpeg" arguments="-y -i %in -f mp3 %out"/> |
165 |
+ <buffer size="1048576" chunk-size="131072" fill-size="262144"/> |
166 |
+ </profile> |
167 |
+ <profile name="vlcmpeg" enabled="no" type="external"> |
168 |
+ <mimetype>video/mpeg</mimetype> |
169 |
+ <accept-url>yes</accept-url> |
170 |
+ <first-resource>yes</first-resource> |
171 |
+ <accept-ogg-theora>yes</accept-ogg-theora> |
172 |
+ <agent command="vlc" arguments="-I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit"/> |
173 |
+ <buffer size="14400000" chunk-size="512000" fill-size="120000"/> |
174 |
+ </profile> |
175 |
+ </profiles> |
176 |
+ </transcoding> |
177 |
+</config> |
178 |
+ |
179 |
|
180 |
diff --git a/net-misc/gerbera/gerbera-1.3.0.ebuild b/net-misc/gerbera/gerbera-1.3.0.ebuild |
181 |
new file mode 100644 |
182 |
index 00000000000..fcdb0195c5e |
183 |
--- /dev/null |
184 |
+++ b/net-misc/gerbera/gerbera-1.3.0.ebuild |
185 |
@@ -0,0 +1,101 @@ |
186 |
+# Copyright 1999-2019 Gentoo Authors |
187 |
+# Distributed under the terms of the GNU General Public License v2 |
188 |
+ |
189 |
+EAPI=6 |
190 |
+ |
191 |
+inherit cmake-utils eutils linux-info systemd tmpfiles user |
192 |
+ |
193 |
+if [[ ${PV} == 9999 ]]; then |
194 |
+ EGIT_REPO_URI="https://github.com/gerbera/${PN}.git" |
195 |
+ KEYWORDS="" |
196 |
+ SRC_URI="" |
197 |
+ inherit git-r3 |
198 |
+else |
199 |
+ SRC_URI="https://github.com/gerbera/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
200 |
+ KEYWORDS="~amd64 ~x86" |
201 |
+ S="${WORKDIR}/${P}" |
202 |
+fi |
203 |
+ |
204 |
+DESCRIPTION="UPnP Media Server (Based on MediaTomb)" |
205 |
+HOMEPAGE="https://github.com/gerbera/gerbera" |
206 |
+ |
207 |
+LICENSE="GPL-2" |
208 |
+SLOT="0" |
209 |
+IUSE="curl debug +exif exiv2 +ffmpeg ffmpegthumbnailer +javascript lastfm libav +magic mysql protocol-extensions systemd +taglib" |
210 |
+ |
211 |
+DEPEND=" |
212 |
+ !!net-misc/mediatomb |
213 |
+ >=net-libs/libupnp-1.8.3[ipv6,reuseaddr] |
214 |
+ >=dev-db/sqlite-3 |
215 |
+ dev-libs/expat |
216 |
+ mysql? ( dev-db/mysql-connector-c ) |
217 |
+ javascript? ( dev-lang/duktape ) |
218 |
+ taglib? ( >=media-libs/taglib-1.11 ) |
219 |
+ lastfm? ( >=media-libs/lastfmlib-0.4 ) |
220 |
+ exif? ( media-libs/libexif ) |
221 |
+ exiv2? ( media-gfx/exiv2 ) |
222 |
+ ffmpeg? ( |
223 |
+ libav? ( >=media-video/libav-10:0= ) |
224 |
+ !libav? ( >=media-video/ffmpeg-2.2:0= ) |
225 |
+ ) |
226 |
+ ffmpegthumbnailer? ( media-video/ffmpegthumbnailer ) |
227 |
+ curl? ( net-misc/curl net-misc/youtube-dl ) |
228 |
+ magic? ( sys-apps/file ) |
229 |
+ sys-apps/util-linux |
230 |
+ sys-libs/zlib |
231 |
+ virtual/libiconv |
232 |
+" |
233 |
+RDEPEND="${DEPEND}" |
234 |
+ |
235 |
+CONFIG_CHECK="~INOTIFY_USER" |
236 |
+ |
237 |
+pkg_setup() { |
238 |
+ linux-info_pkg_setup |
239 |
+ |
240 |
+ enewgroup ${PN} |
241 |
+ enewuser ${PN} -1 -1 /dev/null ${PN} |
242 |
+} |
243 |
+ |
244 |
+src_configure() { |
245 |
+ local mycmakeargs=( |
246 |
+ -DWITH_CURL="$(usex curl)" \ |
247 |
+ -DWITH_DEBUG="$(usex debug)" \ |
248 |
+ -DWITH_EXIF="$(usex exif)" \ |
249 |
+ -DWITH_EXIV2="$(usex exiv2)" \ |
250 |
+ -DWITH_AVCODEC="$(usex ffmpeg)" \ |
251 |
+ -DWITH_FFMPEGTHUMBNAILER="$(usex ffmpegthumbnailer)" \ |
252 |
+ -DWITH_JS="$(usex javascript)" \ |
253 |
+ -DWITH_LASTFM="$(usex lastfm)" \ |
254 |
+ -DWITH_MAGIC="$(usex magic)" \ |
255 |
+ -DWITH_MYSQL="$(usex mysql)" |
256 |
+ -DWITH_PROTOCOL_EXTENSIONS="$(usex protocol-extensions)" \ |
257 |
+ -DWITH_SYSTEMD="$(usex systemd)" \ |
258 |
+ -DWITH_TAGLIB="$(usex taglib)" \ |
259 |
+ -DWITH_INOTIFY=1 |
260 |
+ ) |
261 |
+ |
262 |
+ cmake-utils_src_configure |
263 |
+} |
264 |
+ |
265 |
+src_install() { |
266 |
+ cmake-utils_src_install |
267 |
+ |
268 |
+ newinitd "${FILESDIR}/${PN}-1.0.0.initd" "${PN}" |
269 |
+ newconfd "${FILESDIR}/${PN}-1.0.0.confd" "${PN}" |
270 |
+ |
271 |
+ insinto /etc/${PN} |
272 |
+ newins "${FILESDIR}/${P}.config" config.xml |
273 |
+ fperms 0640 /etc/${PN}/config.xml |
274 |
+ fowners root:gerbera /etc/${PN}/config.xml |
275 |
+ |
276 |
+ keepdir /var/lib/${PN} |
277 |
+ fowners ${PN}:${PN} /var/lib/${PN} |
278 |
+} |
279 |
+ |
280 |
+pkg_postinst() { |
281 |
+ if use mysql ; then |
282 |
+ elog "Gerbera has been built with MySQL support and needs" |
283 |
+ elog "to be configured before being started. By default" |
284 |
+ elog "SQLite will be used." |
285 |
+ fi |
286 |
+} |