Projects
Multimedia
mediatomb
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 5
View file
mediatomb.changes
Changed
@@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Oct 17 18:42:31 UTC 2011 - pascal.bleser@opensuse.org + +- fixes to init script when binary is not present +- require versioned backend + +------------------------------------------------------------------- Thu Jun 23 20:25:00 UTC 2011 - Manfred.Tremmel@iiv.de - included a patch to compile against new ffmpeg abi taken from
View file
mediatomb.spec
Changed
@@ -1,3 +1,4 @@ +# vim: set sw=4 ts=4 et: # Copyright (c) 2007-2010 oc2pus # This file and all modifications and additions to the pristine # package are under the same license as the package itself. @@ -50,7 +51,7 @@ Requires(pre): coreutils Requires(pre): grep Requires(pre): pwdutils -Requires: %{name}-dbbackend +Requires: %{name}-dbbackend = %{version} Requires: logrotate %description @@ -82,7 +83,7 @@ Requires: mysql Requires: %{name} = %{version} Conflicts: %{name}-sqlite -Provides: %{name}-dbbackend +Provides: %{name}-dbbackend = %{version} %description mysql MediaTomb - UPnP AV Mediaserver for Linux. @@ -112,7 +113,7 @@ Requires: sqlite Requires: %{name} = %{version} Conflicts: %{name}-mysql -Provides: %{name}-dbbackend +Provides: %{name}-dbbackend = %{version} %description sqlite MediaTomb - UPnP AV Mediaserver for Linux. @@ -135,8 +136,6 @@ This package contains a sqlite enabled binary. - - %prep %setup -q %{name}-%{version} %patch0 -p1 @@ -198,9 +197,10 @@ # --with-js-h=${jsincludedir}/unstable \ # --with-js-libs=${jslibdir}/sdk/lib/ \ -%__make %{?jobs:-j%{jobs}} +%__make %{?_smp_flags} + %makeinstall \ - INSTALL="install -p" + INSTALL="%__install -p" %__mv %{buildroot}%{_bindir}/mediatomb \ %{buildroot}%{_bindir}/mediatomb-sqlite @@ -241,7 +241,7 @@ EOF %clean -[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" +%{?buildroot:%__rm -rf "%{buildroot}"} %pre # create group if necessary @@ -284,22 +284,18 @@ mediatomb > /dev/null 2> /dev/null || : %post sqlite -if [ -e %{_bindir}/mediatomb ]; then - %__rm %{_bindir}/%{name} -fi -ln -s %{_bindir}/mediatomb-sqlite %{_bindir}/%{name} +%__rm -f "%{_bindir}/mediatomb" +%__ln_s "%{_bindir}/mediatomb-sqlite" "%{_bindir}/mediatomb" %postun sqlite -%__rm -f %{_bindir}/%{name} +%__rm -f "%{_bindir}/mediatomb" %post mysql -if [ -e %{_bindir}/mediatomb ]; then - %__rm %{_bindir}/%{name} -fi -ln -s %{_bindir}/mediatomb-mysql %{_bindir}/%{name} +%__rm -f "%{_bindir}/mediatomb" +%__ln_s "%{_bindir}/mediatomb-mysql" "%{_bindir}/mediatomb" %postun mysql -%__rm -f %{_bindir}/%{name} +%__rm -f "%{_bindir}/mediatomb" %files %defattr(-,root,root) @@ -326,4 +322,3 @@ %attr(0660,mediatomb,mediatomb) %{_localstatedir}/lib/%{name}/* %changelog -# vim: set sw=4 ts=4 et:
View file
rcmediatomb
Changed
@@ -38,11 +38,14 @@ # make sure to run it as $MT_USER MEDIATOMB="-d -u $MT_USER -g $MT_GROUP -P $MT_PIDFILE -l $MT_LOGFILE -m $MT_HOME -f $MT_CFGDIR -p $MT_PORT" -[ -f /usr/bin/mediatomb ] || exit 0 +test -x "/usr/bin/mediatomb" || { echo "/usr/bin/mediatomb not installed"; + if [ "$1" = "stop" ]; then exit 0; + else exit 5; fi; } + [ ${MT_INTERFACE} = "NOT_SET" ] && echo "Please edit /etc/mediatomb.conf and change \ the MT_INTERFACE variable to your network device (eth0, eth1, etc.)" && exit 0 -PATH=$PATH:/usr/bin:/usr/local/bin +PATH="$PATH:/usr/bin:/usr/local/bin" IFACE_IP=`ifconfig | grep -i "$MT_INTERFACE" -A 1|grep "inet addr"|cut -d " " -f 12|cut -d ":" -f 2`
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.