Compare commits

...
Sign in to create a new pull request.

34 commits

Author SHA1 Message Date
Adam Jackson
5d6b2c232e Package is retired 2013-01-15 10:53:58 -05:00
Dennis Gilmore
77cc359ac7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-21 21:13:08 -05:00
Dennis Gilmore
22840176f1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-14 01:40:57 -06:00
Matěj Cepl
d437087819 Add note about DLNA support to Summary (RH BZ# 593471). 2011-11-23 14:24:33 +01:00
Matěj Cepl
28d35c70c9 Rebuild against new libraries. 2011-07-30 22:05:32 +02:00
Adam Jackson
f5501bf1ac 101-ushare-upnp-build-fix.patch: Fix build against newer libupnp (#715648) 2011-07-06 09:53:07 -04:00
Dennis Gilmore
12a7b5103c - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-07 18:44:31 -06:00
Fedora Release Engineering
0e61bf563a dist-git conversion 2010-07-29 14:49:11 +00:00
Bill Nottingham
2e0fa2ef75 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:52:48 +00:00
Jesse Keating
6a6d356c00 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-27 06:40:00 +00:00
Jesse Keating
bd050ed2f0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-25 23:32:32 +00:00
Dave Jones
9c97c999c2 Don't trash the ircd pid file when shutting down ushare. 2008-12-18 18:44:34 +00:00
Eric Tanguy
df2a3ee738 *** empty log message *** 2008-03-16 09:17:16 +00:00
Eric Tanguy
d7fbe6dc61 *** empty log message *** 2008-03-09 10:17:31 +00:00
Eric Tanguy
0c0abb3727 *** empty log message *** 2008-02-13 19:26:35 +00:00
Eric Tanguy
387745bf57 *** empty log message *** 2008-02-02 16:24:25 +00:00
Eric Tanguy
5755346f2f *** empty log message *** 2007-11-18 17:25:14 +00:00
Eric Tanguy
dc194d00fa *** empty log message *** 2007-11-18 17:16:52 +00:00
Jesse Keating
3569bb5539 - Rebuild for selinux ppc32 issue. 2007-08-29 05:58:55 +00:00
Eric Tanguy
d413f694ea *** empty log message *** 2007-07-06 18:02:23 +00:00
Eric Tanguy
695a2ea9ee *** empty log message *** 2007-06-26 05:48:50 +00:00
Eric Tanguy
274456de23 *** empty log message *** 2007-05-05 18:42:17 +00:00
Eric Tanguy
4d605ba60a auto-import ushare-0.9.10-1 on branch devel from ushare-0.9.10-1.src.rpm 2007-02-27 19:18:03 +00:00
Eric Tanguy
1a80152aad *** empty log message *** 2007-02-18 09:54:14 +00:00
Eric Tanguy
593c90096c auto-import ushare-0.9.8-1 on branch devel from ushare-0.9.8-1.src.rpm 2006-12-13 19:43:37 +00:00
Eric Tanguy
b699773a27 *** empty log message *** 2006-08-28 17:45:34 +00:00
Eric Tanguy
2af0b20958 *** empty log message *** 2006-08-28 07:11:14 +00:00
Ville Skyttä
e1cfa89bb9 http://fedoraproject.org/wiki/Extras/Schedule/FC6MassRebuild 2006-08-27 21:13:31 +00:00
Eric Tanguy
b72f306585 auto-import ushare-0.9.7-2 on branch devel from ushare-0.9.7-2.src.rpm 2006-06-29 18:47:47 +00:00
Eric Tanguy
bc9ae9d723 auto-import ushare-0.9.7-1 on branch devel from ushare-0.9.7-1.src.rpm 2006-03-12 13:29:56 +00:00
Eric Tanguy
33f55b1c80 *** empty log message *** 2006-03-06 17:13:08 +00:00
Eric Tanguy
5a6c1637bd auto-import ushare-0.9.6-1 on branch devel from ushare-0.9.6-1.src.rpm 2006-02-19 17:16:12 +00:00
Eric Tanguy
69b01a39e3 auto-import ushare-0.9.5-6 on branch devel from ushare-0.9.5-6.src.rpm 2006-02-14 21:55:21 +00:00
Eric Tanguy
fd0d28a0fc auto-import ushare-0.9.5-5 on branch devel from ushare-0.9.5-5.src.rpm 2006-02-10 21:44:34 +00:00
7 changed files with 1 additions and 223 deletions

View file

@ -1 +0,0 @@
ushare-0.9.5.tar.bz2

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: ushare
# $Id$
NAME := ushare
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

1
dead.package Normal file
View file

@ -0,0 +1 @@
Package is retired

View file

@ -1 +0,0 @@
2f5371f84a17548988bdd4f0fbe781ff ushare-0.9.5.tar.bz2

View file

@ -1,36 +0,0 @@
--- ushare-0.9.5/src/buffer.c 2005-11-26 15:03:55.000000000 -0500
+++ ushare-0.9.5.p/src/buffer.c 2005-12-21 21:38:38.000000000 -0500
@@ -62,7 +62,7 @@
len = buffer->len + strlen (str);
if (len >= buffer->capacity)
{
- buffer->capacity = MIN (len, 2 * buffer->capacity);
+ buffer->capacity = MAX (len+1, 2 * buffer->capacity);
buffer->buf = realloc (buffer->buf, buffer->capacity);
}
@@ -74,14 +74,23 @@
buffer_appendf (struct buffer_t *buffer, const char *format, ...)
{
char str[BUFFER_DEFAULT_CAPACITY];
+ int size;
va_list va;
if (!buffer || !format)
return;
va_start (va, format);
- vsprintf (str, format, va);
- buffer_append (buffer, str);
+ if ((size = vsnprintf (str, BUFFER_DEFAULT_CAPACITY, format, va))
+ >= BUFFER_DEFAULT_CAPACITY)
+ {
+ char* dynstr = (char*) malloc (size+1);
+ vsnprintf (dynstr,size+1,format,va);
+ buffer_append (buffer, dynstr);
+ free (dynstr);
+ }
+ else
+ buffer_append (buffer, str);
va_end (va);
}

View file

@ -1,80 +0,0 @@
#!/bin/sh
#
# ushare This shell script takes care of starting and stopping ushare.
#
# chkconfig: - 75 25
# description: uShare UPnP A/V Media Server.
#
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
OPTIONS=""
prog=ushare
DESC="UPnP A/V Media Server"
[ -r "/etc/ushare.conf" ] && . /etc/ushare.conf
# abort if no shared directory is defined
[ -z "$USHARE_DIR" ] && exit 0
start() {
echo -n $"Starting $prog: "
daemon --user ushare $prog -D
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}
stop() {
echo -n $"Stopping $prog: "
killproc $prog
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog /var/run/ircd.pid
}
reload() {
echo -n $"Reloading $prog: "
killproc $prog -HUP
RETVAL=$?
echo
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status $prog
RETVAL=$?
;;
restart)
stop
start
;;
condrestart)
if [ -f /var/lock/subsys/$prog ]; then
stop
start
fi
;;
reload)
reload
;;
*)
echo $"Usage: $prog {start|stop|restart|condrestart|reload|status"
exit 1
esac
exit $RETVAL

View file

@ -1,84 +0,0 @@
Summary: UPnP (TM) A/V Media Server
Name: ushare
Version: 0.9.5
Release: 4%{?dist}
License: GPL
Group: Applications/Multimedia
URL: http://ushare.geexbox.org/
Source: http://ushare.geexbox.org/releases/%{name}-%{version}.tar.bz2
Source1:ushare.init
Patch0: ushare-0.9.5-buffer.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libupnp-devel
Requires(pre): fedora-usermgmt
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/service, /sbin/chkconfig
Requires(postun): /sbin/service
%description
uShare is a UPnP (TM) A/V Media Server. It implements the server
component that provides UPnP media devices with information on
available multimedia files. uShare uses the built-in http server
of libupnp to stream the files to clients.
%prep
%setup -q
%patch0 -p1
%build
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
%makeinstall
%{__rm} -rf %{buildroot}%{_sysconfdir}/init.d
%{__install} -m 0755 -D %{SOURCE1} %{buildroot}%{_initrddir}/ushare
%{__mkdir_p} %{buildroot}%{_var}/lib/ushare
%find_lang %{name}
%clean
rm -rf %{buildroot}
%pre
%{_sbindir}/fedora-useradd 21 -s /sbin/nologin -M -r -d %{_var}/lib/ushare \
-c "ushare service account" ushare &>/dev/null || :
%post
/sbin/chkconfig --add ushare
%preun
if [ $1 -eq 0 ]; then
/sbin/service ushare stop &>/dev/null || :
/sbin/chkconfig --del ushare
fi
%postun
if [ $1 -ge 1 ]; then
/sbin/service ushare condrestart &>/dev/null || :
fi
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/ushare
%config(noreplace) %{_sysconfdir}/ushare.conf
%{_initrddir}/ushare
%{_mandir}/man1/*
%attr(770,ushare,ushare) %dir %{_var}/lib/ushare/
%changelog
* Tue Dec 27 2005 Eric Tanguy 0.9.5-4
- Use %find_lang macro instead of %{_datadir}/locale/*
* Tue Dec 27 2005 Eric Tanguy 0.9.5-3
- Drop "Requires: libupnp"
- replace %{_sysconfdir}/ushare.conf by %config(noreplace) %{_sysconfdir}/ushare.conf
* Tue Dec 27 2005 Eric Tanguy 0.9.5-2
- add patch for buffer
* Tue Dec 27 2005 Eric Tanguy 0.9.5-1
- First build