From d856532ebdf89e8e47dddeecc812d3d941edefc3 Mon Sep 17 00:00:00 2001 From: Rosa Date: Wed, 1 Feb 2012 19:43:30 +0400 Subject: [PATCH] Automatic import for version 1.0.20 --- .abf.yml | 2 + initscript | 81 +++++++++++++++++++++++++++++ minidlna.1 | 86 +++++++++++++++++++++++++++++++ minidlna.conf | 47 +++++++++++++++++ minidlna.conf.5 | 134 ++++++++++++++++++++++++++++++++++++++++++++++++ minidlna.spec | 103 +++++++++++++++++++++++++++++++++++++ 6 files changed, 453 insertions(+) create mode 100644 .abf.yml create mode 100755 initscript create mode 100644 minidlna.1 create mode 100644 minidlna.conf create mode 100644 minidlna.conf.5 create mode 100644 minidlna.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..f3fac5b --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + "minidlna_1.0.20_src.tar.gz": dadc604af00d6b0fdd1145ce2dfe79e774215df0 diff --git a/initscript b/initscript new file mode 100755 index 0000000..bd1edad --- /dev/null +++ b/initscript @@ -0,0 +1,81 @@ +#!/bin/sh +# +# minidlna: DLNA media server +# +# chkconfig: 3457 54 02 +# description: This is a DLNA/UPnP-AV media server. +# +# processname: minidlna +# pidfile: /var/run/minidlna.pid +### BEGIN INIT INFO +# Provides: haldaemon +# Required-Start: +# Required-Stop: +# Should-Start: acpid +# Default-Start: 3 4 5 7 +# Short-Description: DLNA media server +# Description: The MiniDLNA daemon is an UPnP-A/V and DLNA service which +# serves multimedia content to compatible clients on the network. +### END INIT INFO + +# Sanity checks. +[ -x /usr/sbin/minidlna ] || exit 0 + +# Source function library. +. /etc/init.d/functions + +# so we can rearrange this easily +processname=minidlna +servicename=minidlna + +RETVAL=0 + +start() { + gprintf "Starting $servicename: " + daemon --check $servicename $processname + RETVAL=$? + echo + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename +} + +stop() { + gprintf "Stopping $servicename: " + + killproc $servicename -TERM + RETVAL=$? + echo + if [ $RETVAL -eq 0 ]; then + rm -f /var/lock/subsys/$servicename + rm -f /var/run/$servicename.pid + fi +} + +# See how we were called. +case "$1" in + start) + start + ;; + stop) + stop + ;; + status) + status $processname + RETVAL=$? + ;; + restart) + stop + sleep 3 + start + ;; + condrestart) + if [ -f /var/lock/subsys/$servicename ]; then + stop + sleep 3 + start + fi + ;; + *) + gprintf "Usage: %s {start|stop|status|restart|condrestart}\n" "$0" + ;; +esac +exit $RETVAL diff --git a/minidlna.1 b/minidlna.1 new file mode 100644 index 0000000..d647ff3 --- /dev/null +++ b/minidlna.1 @@ -0,0 +1,86 @@ +.\" Man page for minidlna +.\" +.\" Copyright (C) 2010 Benoît Knecht +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.Dd October 19, 2010 +.Dt MINIDLNA \&1 "General Commands Manual" +.Os Debian +.Sh NAME +.Nm minidlna +.Nd lightweight DLNA/UPnP-AV server +.Sh SYNOPSIS +.Nm +.Op Fl f Ar config_file +.Op Fl d +.Op Fl a listening_ip +.Op Fl p Ar port +.Op Fl s Ar serial +.Op Fl m Ar model_number +.Op Fl t Ar notify_interval +.Op Fl P Ar pid_filename +.Op Fl w Ar url +.Op Fl R +.Pp +.Nm +.Op Fl h \*[Ba] Fl V +.Sh DESCRIPTION +The +.Nm +daemon is a DLNA/UPnP-AV server sharing media files (video, music and pictures) +to clients on your network. Clients are typically multimedia players such as +vlc, totem and xbmc, and devices such as portable media players, smartphones, +televisions, video game entertainment systems and blu-ray players. +.Sh OPTIONS +All the options below +.Pq except Fl f +can also be set in a configuration file +.Pq see Xr minidlna.conf 5 . +.Bl -tag -width Ds +.It Fl a Ar listening_ip +IP address the daemon should be listening on. +.It Fl d +Activate debug mode (do not daemonize). +.It Fl f Ar config_file +Specify the location of the configuration file. Uses +.Pa /etc/minidlna.conf +by default. +.It Fl h +Show help and exit. +.It Fl m Ar model_number +Model number the daemon will report to clients in its XML description. +.It P Ar pid_filename +PID file to use; the default is +.Pa /var/run/minidlna.pid . +.It Fl p Ar port +Port number to listen on; the default is port 80. +.It Fl R +Forces a full rescan of the media files. +.It Fl s Ar serial +Serial number the daemon will report to clients in its XML description. +.It Fl t Ar notify_interval +Notify interval, in seconds; defaults to 895 seconds. +.It Fl V +Show the program version and exit. +.It Fl w Ar url +Sets the presentation url; the default is http address. +.El +.Sh FILES +.Bl -tag -width Ds -compact +.It Pa /etc/minidlna.conf +Default system-wide configuration file. See +.Xr minidlna.conf 5 +for details on the syntax. +.El +.Sh SEE ALSO +.Xr minidlna.conf 5 diff --git a/minidlna.conf b/minidlna.conf new file mode 100644 index 0000000..51c9b23 --- /dev/null +++ b/minidlna.conf @@ -0,0 +1,47 @@ +# port for HTTP (descriptions, SOAP, media transfer) traffic +port=8200 + +# network interface to bind to (this is the only interface that will serve files) +network_interface=eth0 + +# set this to the directory you want scanned. +# * if have multiple directories, you can have multiple media_dir= lines +# * if you want to restrict a media_dir to a specific content type, you +# can prepend the type, followed by a comma, to the directory: +# + "A" for audio (eg. media_dir=A,/home/jmaggard/Music) +# + "V" for video (eg. media_dir=V,/home/jmaggard/Videos) +# + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures) +media_dir=/srv/media + +# set this if you want to customize the name that shows up on your clients +#friendly_name=My DLNA Server + +# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache +#db_dir=/var/cache/minidlna + +# this should be a list of file names to check for when searching for album art +# note: names should be delimited with a forward slash ("/") +album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg + +# set this to no to disable inotify monitoring to automatically discover new files +# note: the default is yes +inotify=yes + +# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO +enable_tivo=no + +# set this to strictly adhere to DLNA standards. +# * This will allow server-side downscaling of very large JPEG images, +# which may hurt JPEG serving performance on (at least) Sony DLNA products. +strict_dlna=no + +# default presentation url is http address on port 80 +#presentation_url=http://www.mylan/index.php + +# notify interval in seconds. default is 895 seconds. +notify_interval=900 + +# serial and model number the daemon will report to clients +# in its XML description +serial=12345678 +model_number=1 diff --git a/minidlna.conf.5 b/minidlna.conf.5 new file mode 100644 index 0000000..72db3fc --- /dev/null +++ b/minidlna.conf.5 @@ -0,0 +1,134 @@ +.\" Man page for minidlna.conf +.\" +.\" This man page is based on the comments in the default configuration file +.\" shipped with the minidlna source. Consequently, it is licensed under the +.\" GPLv2. +.\" +.\" Copyright (C) 2009 Justin Maggard +.\" Copyright (C) 2010 Benoît Knecht +.\" +.\" This package is free software; you can redistribute it and/or modify +.\" it under the terms of the GNU General Public License version 2 as +.\" published by the Free Software Foundation. +.\" +.\" This package is distributed in the hope that it will be useful, +.\" but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this program. If not, see +.\" +.\" On Debian systems, the complete text of the GNU General +.\" Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". +.Dd 22 October, 2010 +.Dt MINIDLNA.CONF \&5 "File Formats Manual" +.Os Debian +.Sh NAME +.Nm minidlna.conf +.Nd MiniDLNA server configuration file +.Sh SYNOPSIS +.Nm /etc/minidlna.conf +.Sh DESCRIPTION +.Xr minidlna 1 +reads configuration options from the system-wide configuration file +.Pa /etc/minidlna.conf , +or the file specified with +.Fl f +on the command line. The file contains keyword-argument pairs, one per line. +Lines starting with +.Ql # +and empty lines are interpreted as comments. +.Pp +The possible +keywords and their meanings are as follows: +.Bl -tag -width Ds +.It Cm album_art_names +List of filenames to check for when searching for album art cache, separated by +forward slashes +.Pq Ql / . +.It Cm db_dir +Path to the directory +.Nm minidlna +should use to store its database and album art cache. Uses +.Pa /var/lib/minidlna +by default. +.It Cm enable_tivo +Set to +.Ql yes +to enable support for streaming JPEG and mp3 files to a TiVo supporting HMO. +Set to +.Ql no +otherwise. +.It Cm friendly_name +Customize the name that the +.Nm minidlna +server sends to clients. +.It Cm inotify +Set to +.Ql yes +to enable inotify monitoring of the files under +.Cm media_dir +to automatically discover new files. Set to +.Ql no +to disable inotify. +.It Cm log_dir +Path to the directory where the log file should be stored. Defaults to +.Pa /var/log . +.It Cm media_dir +Path to the directory containing the media files the +.Nm minidlna +server should share. Use this option several times if you have more than one +directory to share. To restrict a path to one specific media type, you can use +the following syntax: the letter +.Ql A , +.Ql V +or +.Ql P , +followed by a comma +.Pq Ql \&, +followed by the path. The meaning of the first letter is as follows: +.Bl -bullet -offset indent -compact +.It +.Ql A +for audio files; +.It +.Ql V +for video files; +.It +.Ql P +for image files. +.El +For example, if you want to include only video files located under the +.Pa /opt/media/videos +directory, you would use +.Cm media_dir=V,/opt/media/videos . +.It Cm model_number +Set the model number reported to clients. +.It Cm network_interface +Network interface to bind to. +.It Cm notify_interval +Set the notify interval, in seconds. The default is 895 seconds. +.It Cm port +Port for HTTP traffic. Defaults to port 80. +.It Cm presentation_url +.\" TODO: Needs a better description. +Define the presentation URL. +.It Cm serial +Set the serial number reported to clients. +.It Cm strict_dlna +Set to +.Ql yes +to strictly adhere to DLNA standards. This will allow server-side downscaling +of very large JPEG images, which may hurt JPEG serving performance on (at +least) Sony DLNA products. Set to +.Ql no +otherwise. +.El +.Sh FILES +.Bl -tag -width Ds +.It Pa /etc/minidlna.conf +System-wide default configuration file. +.El +.Sh SEE ALSO +.Xr minidlna 1 diff --git a/minidlna.spec b/minidlna.spec new file mode 100644 index 0000000..f2a8475 --- /dev/null +++ b/minidlna.spec @@ -0,0 +1,103 @@ +Name: minidlna +Version: 1.0.20 +Release: %mkrel 1 +Summary: A DLNA/UPnP-AV compliant media server +URL: http://sourceforge.net/projects/minidlna/ +Group: Networking/Other +License: GPL +Source: minidlna_%{version}_src.tar.gz +Source1: initscript +Source2: minidlna.conf +Source3: minidlna.1 +Source4: minidlna.conf.5 +# Local patches +# Selected patches from development tree +#Patch100: +# Selected patches from upstream patch tracker +#Patch200: +BuildRequires: libflac-devel libid3tag-devel libexif-devel libjpeg-devel +BuildRequires: libsqlite3-devel libffmpeg-devel libvorbis-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully +compliant with DLNA/UPnP-AV clients. MiniDLNA serves multimedia content +such as music, video and pictures to compatible clients on the network. + +See http://www.upnp.org/ for more details on UPnP +and http://www.dlna.org/ for mode details on DLNA. + +%prep +%setup -q + +./genconfig.sh +sed -i -e 's!^\(#define OS_NAME\).*!\1 "%{product_vendor}"! + s!^\(#define OS_VERSION\).*!\1 "%{product_version}"! + s!^\(#define OS_URL\).*!\1 "http://www.mandriva.com/"! + s!^\(#define DEFAULT_DB_PATH\).*!\1 "/var/cache/%{name}"! + s!^\(#define DEFAULT_LOG_PATH\).*!\1 "/var/log"!' config.h + +%build +%make + +%install +rm -rf %{buildroot} +install -m 755 -D %{_sourcedir}/initscript %{buildroot}%{_initrddir}/minidlna +install -m 644 -D %{_sourcedir}/minidlna.conf \ + %{buildroot}%{_sysconfdir}/minidlna.conf +install -m 755 -D minidlna %{buildroot}%{_sbindir}/minidlna +install -m 644 -D %{_sourcedir}/minidlna.1 \ + %{buildroot}%{_mandir}/man1/minidlna.1 +install -m 644 -D %{_sourcedir}/minidlna.conf.5 \ + %{buildroot}%{_mandir}/man5/minidlna.conf.5 + +%clean +rm -rf %{buildroot} + +%post +%_post_service minidlna + +%preun +%_preun_service minidlna + +%files +%defattr(0644,root,root,0755) +%doc README +%attr(755,-,-) %{_sbindir}/minidlna +%attr(755,-,-) %{_initrddir}/minidlna +%config(noreplace) %{_sysconfdir}/minidlna.conf +%{_mandir}/man1/minidlna.1* +%{_mandir}/man5/minidlna.conf.5* + + +%changelog +* Mon Jul 04 2011 Claudio Matsuoka 1.0.20-1mdv2011.0 ++ Revision: 688671 +- new upstream release 1.0.20 + * Fix a crash bug when scanning MPEG-TS files with odd packet sizes + * Fix AVI file streaming on Samsung A-Series TV's + * Improve support for the NETGEAR Digital Entertainer Live (EVA2000) + * Add support for multiple network interfaces + * Add subtitle support for LG TV's and Blu-Ray players + * Fix some minor coding issues found by cppcheck + * Add client adaptation support for Toshiba Regza TV's + * Send known audio-only devices straight to the Music section on root request + * Add client adaptation support for Roku SoundBridge audio clients + * Improve Sony client adaptation to allow support for more file types + * Add support for reading tags from MP4 video files with recent lavf versions + * Add support for Samsung's GetFeatureList method + +* Wed Jan 26 2011 Claudio Matsuoka 1.0.18.2-3 ++ Revision: 633000 +- send to release repository + +* Sun Jan 23 2011 Claudio Matsuoka 1.0.18.2-2 ++ Revision: 632427 +- apply upstream patch to specify log directory +- set configuration file as noreplace +- add manual pages written by Beno?\195?\174t Knecht for Debian + +* Sat Jan 22 2011 Claudio Matsuoka 1.0.18.2-1 ++ Revision: 632299 +- imported package minidlna +