Update of /cvsroot/freevo/freevo/contrib/suse
In directory sc8-pr-cvs1:/tmp/cvs-serv19197/suse
Added Files:
README.SUSE freevo-1.4rc4-nodocs.patch
freevo-1.4rc4-nooptimise.patch freevo.daily freevo.init
freevo.spec freevo_record.init freevo_web.init
sysconfig.freevo
Log Message:
Checkin SuSE specific stuff (from James Oakley)
--- NEW FILE: README.SUSE ---
============================
Setting up Freevo under SUSE
============================
These are simple instructions. See http://www.freevo.org/ for more
information.
- Run 'freevo setup'
- Copy '/usr/share/doc/packages/freevo/local_conf.py.example' to
'/etc/freevo/local_conf.py' and edit for your desired configuration
- If you want tv listings run the appropriate tv_grab_xx for your locale with
the '--configure' option and set up TV_CHANNELS in
'/etc/freevo/local_conf.py'. If you want to grab listings every night edit
'/etc/sysconfig/freevo' and set FREEVO_UPDATE_XMLTV to 1
- If you want to use the webserver, setup WWW_PORT and WWW_USERS in
'/etc/freevo/local_conf.py' and run 'insserv freevo_web'
- If you want to use the record server run 'insserv freevo_record'
- If you want to run Freevo at boot run 'insserv lirc ; insserv freevo'. You
would only want to do this on a standalone box. If you do this you may have
to set some other settings in '/etc/sysconfig/freevo'
Happy Freevo'ing!
--- NEW FILE: freevo-1.4rc4-nodocs.patch ---
--- setup.py 2003-11-10 15:05:20.000000000 -0400
+++ setup.py 2003-11-10 20:13:37.000000000 -0400
@@ -28,19 +28,10 @@
print 'of Freevo. Please run ./autogen.sh first'
sys.exit(0)
-# add some files to Docs
-for f in ('BUGS', 'COPYING', 'ChangeLog', 'INSTALL', 'README'):
- data_files.append(('share/doc/freevo-%s' % version.__version__, ['%s' % f ]))
-data_files.append(('share/doc/freevo-%s' % version.__version__, ['Docs/CREDITS' ]))
-
# copy freevo_config.py to share/freevo. It's the best place to put it
# for now, but the location should be changed
data_files.append(('share/freevo', [ 'freevo_config.py' ]))
-# add docbook style howtos
-os.path.walk('./Docs/installation', docbook_finder, data_files)
-os.path.walk('./Docs/plugin_writing', docbook_finder, data_files)
-
# i18n support
i18n('freevo')
--- NEW FILE: freevo-1.4rc4-nooptimise.patch ---
--- freevo 2003-11-10 15:05:19.000000000 -0400
+++ freevo 2003-11-17 20:39:30.000000000 -0400
@@ -407,25 +407,11 @@
trap './freevo stop' 1 2 15
-# don't use -OO for Gentoo, it's hard to remove the pyo files
-# later (and it's a source for bugs
-if [ -e /etc/gentoo-release ]; then
- OPTIMZE=""
- if [ -e $FREEVO_PYTHON/main.pyo ]; then
- echo "WARNING: you have Python pyo files in your system. They may"
- echo "cause some bugs by using older version of some files."
- echo "Please run 'find $FREEVO_PYTHON/.. -name \\*.pyo | xargs rm'"
- echo
- fi
-else
- OPTIMZE="-OO"
-fi
-
if [ "$1" = "start" ]; then
shift
# Start the main freevo application
- $RUNAPP $PYTHON $OPTIMZE $FREEVO_PYTHON/main.py $@ > /dev/null 2>&1 &
+ $RUNAPP $PYTHON $FREEVO_PYTHON/main.py $@ > /dev/null 2>&1 &
echo $! > $PID_FILE
if [ `uname -s` != "FreeBSD" ]; then
--- NEW FILE: freevo.daily ---
#!/bin/sh
. /etc/sysconfig/freevo
if [ $FREEVO_UPDATE_XMLTV == 1 ] ; then
/usr/bin/freevo tv_grab
fi
--- NEW FILE: freevo.init ---
#! /bin/sh
#
# LSB init script for freevo
#
### BEGIN INIT INFO
# Provides: freevo
# Required-Start: $remote_fs lirc
# Required-Stop: $remote_fs
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start freevo
### END INIT INFO
FREEVO_BIN=/usr/bin/freevo
test -x $FREEVO_BIN || exit 5
FREEVO_CONFIG1=/etc/freevo/freevo.conf
test -r $FREEVO_CONFIG1 || exit 6
FREEVO_CONFIG2=/etc/freevo/local_conf.py
test -r $FREEVO_CONFIG2 || exit 6
FREEVO_SYSCONFIG=/etc/sysconfig/freevo
test -r $FREEVO_SYSCONFIG || exit 6
. $FREEVO_SYSCONFIG
PYTHON_BIN="/usr/bin/python2.3"
PIDFILE="/var/run/freevo"
LOGFILE="/var/log/freevo"
. /etc/rc.status
# Shell functions sourced from /etc/rc.status:
# rc_check check and set local and overall rc status
# rc_status check and set local and overall rc status
# rc_status -v ditto but be verbose in local rc status
# rc_status -v -r ditto and clear the local rc status
# rc_failed set local and overall rc status to failed
# rc_reset clear local rc status (overall remains)
# rc_exit exit appropriate to overall rc status
# First reset status of this service
rc_reset
case "$1" in
start)
echo -n "Starting Freevo"
if [ $FREEVO_SET_RTC == 1 ] ; then
/sbin/sysctl -w dev.rtc.max-user-freq=1024 > /dev/null
fi
if [ $FREEVO_KEYBOARD == 0 ] ; then
export SDL_NOKEYBOARD=true
fi
# There is no mouse support in Freevo
export SDL_NOMOUSE=true
export USER=root
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
startproc -l $LOGFILE -p $PIDFILE $FREEVO_BIN
# Remember status and be verbose
rc_status -v
;;
stop)
echo -n "Shutting down Freevo"
killproc -G -p $PIDFILE $PYTHON_BIN
# Remember status and be verbose
rc_status -v
;;
try-restart)
## Stop the service and if this succeeds (i.e. the
## service was running before), start it again.
$0 status >/dev/null && $0 restart
# Remember status and be quiet
rc_status
;;
restart)
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
$0 start
# Remember status and be quiet
rc_status
;;
force-reload|reload)
## Signal the daemon to reload its config. Most daemons
## do this on signal 1 (SIGHUP).
echo -n "Reload service Freevo"
$0 restart
rc_status -v
;;
status)
echo -n "Checking for service Freevo "
## Check status with checkproc(8), if process is running
## checkproc will return with exit status 0.
# Status has a slightly different for the status command:
# 0 - service running
# 1 - service dead, but /var/run/ pid file exists
# 2 - service dead, but /var/lock/ lock file exists
# 3 - service not running
checkproc -p $PIDFILE $PYTHON_BIN
rc_status -v
;;
*)
echo "Usage: $0
{start|stop|status|try-restart|restart|force-reload|reload|probe}"
exit 1
;;
esac
rc_exit
--- NEW FILE: freevo.spec ---
Name: freevo
Summary: A Linux PVR System
Version: 1.4
Release: 4
Source: %{name}-%{version}rc4.tar.gz
Source1: README.SUSE
Source2: freevo.daily
Source3: freevo.init
Source4: freevo_record.init
Source5: sysconfig.freevo
Source6: freevo_web.init
Patch: %{name}-1.4rc4-nodocs.patch
Patch1: %{name}-1.4rc4-nooptimise.patch
Copyright: GPL
Group: Development/Libraries/Python
URL: http://www.freevo.org/
BuildArchitectures: noarch
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
Requires: python python-mmpython python-imaging python-pygame
Requires: python-Twisted perl-xmltv MPlayer MPlayer-suite lirc
BuildRequires: python-devel python-mmpython python-imaging python-pygame
BuildRequires: python-Twisted
%description
Freevo is an open-source digital video jukebox (PVR, DVR) based on Linux.
Freevo can be used both for a standalone PVR computer with a TV+remote, as
well as on a regular desktop computer using the monitor and keyboard.
Authors:
--------
Krister Lagerstrom <[EMAIL PROTECTED]>
Aubin Paul <[EMAIL PROTECTED]>
Dirk Meyer <[EMAIL PROTECTED]>
Gustavo Sverzut Barbieri <[EMAIL PROTECTED]>
Rob Shortt <[EMAIL PROTECTED]>
Jason Ball <[EMAIL PROTECTED]>
Thomas Malt <[EMAIL PROTECTED]>
%prep
%setup -q -n %{name}-%{version}rc4
%patch
%patch1
%build
env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
%install
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
install -d -m 0755 $RPM_BUILD_ROOT/etc/freevo
install -d -m 1777 $RPM_BUILD_ROOT/var/cache/freevo
install -D -m 0755 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/freevo
install -D -m 0755 %{SOURCE3} $RPM_BUILD_ROOT/etc/init.d/freevo
install -D -m 0755 %{SOURCE4} $RPM_BUILD_ROOT/etc/init.d/freevo_record
install -D -m 0755 %{SOURCE6} $RPM_BUILD_ROOT/etc/init.d/freevo_web
install -d $RPM_BUILD_ROOT/usr/sbin
ln -sf ../../etc/init.d/freevo $RPM_BUILD_ROOT/usr/sbin/rcfreevo
ln -sf ../../etc/init.d/freevo_record $RPM_BUILD_ROOT/usr/sbin/rcfreevo_record
ln -sf ../../etc/init.d/freevo_web $RPM_BUILD_ROOT/usr/sbin/rcfreevo_web
install -D -m 0644 %{SOURCE5} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.freevo
cp %{SOURCE1} .
%suse_update_desktop_file -c -i freevo Freevo "Linux PVR" freevo Player Application
AudioVideo
%clean
rm -rf $RPM_BUILD_ROOT
%post
%{fillup_only}
echo "Please read /usr/share/doc/packages/freevo/README.SUSE for setup information"
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc BUGS COPYING ChangeLog FAQ INSTALL README TODO local_conf.py.example Docs
%doc README.SUSE
%dir /etc/freevo
%dir /var/cache/freevo
/etc/cron.daily/freevo
%config /etc/init.d/freevo
%config /etc/init.d/freevo_record
%config /etc/init.d/freevo_web
/var/adm/fillup-templates/sysconfig.freevo
/usr/sbin/rcfreevo
/usr/sbin/rcfreevo_record
/usr/sbin/rcfreevo_web
/usr/share/applications/*
%changelog
* Wed Nov 19 2003 - James Oakley <[EMAIL PROTECTED]> - 1.4-4
- Added webserver init script
* Mon Nov 17 2003 - James Oakley <[EMAIL PROTECTED]> - 1.4-3
- Init script fixes
- Desktop file
* Mon Nov 10 2003 - James Oakley <[EMAIL PROTECTED]> - 1.4-2
- Update to 1.4rc4
- Add sysconfig, README.SUSE, and init scripts
* Tue Oct 21 2003 - James Oakley <[EMAIL PROTECTED]> - 1.4-1
- Initial release
--- NEW FILE: freevo_record.init ---
#!/bin/bash
#
# boot script for the Freevo record server
#
### BEGIN INIT INFO
# Provides: freevo_record
# Required-Start: $network $remote_fs
# Required-Stop:
# Default-Start: 3 5
# Default-Stop:
# Description: Start the Freevo record server
### END INIT INFO
# Check Configuration
test -f /etc/freevo/local_conf.py || exit 6
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
FREEVO_BIN="/usr/bin/freevo"
PYTHON_BIN="/usr/bin/python2.3"
NAME="Freevo record server"
PIDFILE="/var/run/freevo_record.pid"
LOGFILE="/var/log/freevo_record.log"
test -f $FREEVO_BIN || exit 5
# Shell functions sourced from /etc/rc.status:
# rc_check check and set local and overall rc status
# rc_status check and set local and overall rc status
# rc_status -v ditto but be verbose in local rc status
# rc_status -v -r ditto and clear the local rc status
# rc_failed set local and overall rc status to failed
# rc_failed <num> set local and overall rc status to <num><num>
# rc_reset clear local rc status (overall remains)
# rc_exit exit appropriate to overall rc status
. /etc/rc.status
# First reset status of this service
rc_reset
case "$1" in
start)
echo -n "Starting $NAME"
startproc -l $LOGFILE -p $PIDFILE $FREEVO_BIN recordserver start
rc_status -v
;;
stop)
echo -n "Stopping $NAME"
killproc -G -p $PIDFILE $PYTHON_BIN
rc_status -v
;;
status)
checkproc -p $PIDFILE $PYTHON_BIN
rc_status -v
;;
restart)
$0 stop
sleep 3
$0 start
rc_status
;;
*)
echo "Usage: $0 {start|stop|status|restart}" >&2
exit 1
;;
esac
exit 0
--- NEW FILE: freevo_web.init ---
#!/bin/bash
#
# boot script for the Freevo web server
#
### BEGIN INIT INFO
# Provides: freevo_web
# Required-Start: $network $remote_fs
# Required-Stop:
# Default-Start: 3 5
# Default-Stop:
# Description: Start the Freevo web server
### END INIT INFO
# Check Configuration
test -f /etc/freevo/local_conf.py || exit 6
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
FREEVO_BIN="/usr/bin/freevo"
PYTHON_BIN="/usr/bin/python2.3"
NAME="Freevo web server"
PIDFILE="/var/run/freevo_web.pid"
LOGFILE="/var/log/freevo_web.log"
test -f $FREEVO_BIN || exit 5
# Shell functions sourced from /etc/rc.status:
# rc_check check and set local and overall rc status
# rc_status check and set local and overall rc status
# rc_status -v ditto but be verbose in local rc status
# rc_status -v -r ditto and clear the local rc status
# rc_failed set local and overall rc status to failed
# rc_failed <num> set local and overall rc status to <num><num>
# rc_reset clear local rc status (overall remains)
# rc_exit exit appropriate to overall rc status
. /etc/rc.status
# First reset status of this service
rc_reset
case "$1" in
start)
echo -n "Starting $NAME"
startproc -l $LOGFILE -p $PIDFILE $FREEVO_BIN webserver start
rc_status -v
;;
stop)
echo -n "Stopping $NAME"
killproc -G -p $PIDFILE $PYTHON_BIN
rc_status -v
;;
status)
checkproc -p $PIDFILE $PYTHON_BIN
rc_status -v
;;
restart)
$0 stop
sleep 3
$0 start
rc_status
;;
*)
echo "Usage: $0 {start|stop|status|restart}" >&2
exit 1
;;
esac
exit 0
--- NEW FILE: sysconfig.freevo ---
## Path: Applications/Freevo
## Description: Freevo video suite configuration
## Type: integer
## Default: 0
#
# Update XMLTV listings every night? XMLTV configuration must be setup in
# /etc/freevo/local_conf.py first. (Default: 0)
FREEVO_UPDATE_XMLTV=0
## Type: integer
## Default: 0
#
# Set up user RTC? This provides a performance improvement when running as a
# user. This only has an effect when running on startup (default: 0)
FREEVO_SET_RTC=0
## Type: integer
## Default: 1
#
# Do you want keyboard support? This only has an effect when running on
# startup. (Default: 1)
FREEVO_KEYBOARD=1
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog