Update of /cvsroot/freevo/freevo/contrib/debian
In directory sc8-pr-cvs1:/tmp/cvs-serv24148
Modified Files:
BUILDING freevo.config freevo.postinst freevo.templates rules
Added Files:
init.d
Log Message:
Added an init script, and a debconf question to ask the user if they
want to have freevo start up on boot. By default, it puts Freevo at the
tail of the bootup sequence so it will wait for the other scripts to
load. This is obviously important if you need to initialize your TV, or
start X or something before your load Freevo.
--- NEW FILE: init.d ---
#! /bin/sh
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/freevo
NAME=freevo
DESC=freevo
test -x $DAEMON || exit 0
# Include freevo defaults if available
if [ -f /etc/freevo/boot_config ] ; then
. /etc/freevo/boot_config
fi
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
$DAEMON start
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
$DAEMON stop
echo "$NAME."
;;
restart)
echo -n "Restarting $DESC: "
$DAEMON stop
sleep 1
$DAEMON start
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart}" >&2
exit 1
;;
esac
exit 0
Index: BUILDING
===================================================================
RCS file: /cvsroot/freevo/freevo/contrib/debian/BUILDING,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** BUILDING 24 Oct 2003 15:58:36 -0000 1.4
--- BUILDING 25 Oct 2003 14:44:02 -0000 1.5
***************
*** 1,8 ****
! If you want to build your own package, you need to move this 'debian/'
folder into the root of the freevo source package. There, you can run
debbuild as usual.
! Currently, there are some things missing:
!
! 1. No init.d script, though the one in the boot/ directory works nicely
! on my system
--- 1,7 ----
! If you want to build your own package, you need to symlink this 'debian/'
folder into the root of the freevo source package. There, you can run
debbuild as usual.
! Just go into $FREEVO_ROOT and type:
! ln -sf ./contrib/debian .
! debuild --rootcmd=fakeroot
Index: freevo.config
===================================================================
RCS file: /cvsroot/freevo/freevo/contrib/debian/freevo.config,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** freevo.config 25 Oct 2003 14:26:28 -0000 1.1
--- freevo.config 25 Oct 2003 14:44:02 -0000 1.2
***************
*** 10,13 ****
--- 10,14 ----
db_input high freevo/norm || true
db_input high freevo/chanlist || true
+ db_input medium freevo/start_on_boot || true
db_endblock
db_go || true
Index: freevo.postinst
===================================================================
RCS file: /cvsroot/freevo/freevo/contrib/debian/freevo.postinst,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** freevo.postinst 25 Oct 2003 14:26:28 -0000 1.2
--- freevo.postinst 25 Oct 2003 14:44:02 -0000 1.3
***************
*** 34,37 ****
--- 34,39 ----
fi
if [ ! -f $LIRCRC ]; then echo "Make sure you run 'freevo makelircrc'
after the package is installed"; fi
+ db_get freevo/start_on_boot
+ if [ "$RET" = "true" ]; then update-rc.d freevo defaults 99; fi
;;
esac
Index: freevo.templates
===================================================================
RCS file: /cvsroot/freevo/freevo/contrib/debian/freevo.templates,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** freevo.templates 25 Oct 2003 14:26:28 -0000 1.1
--- freevo.templates 25 Oct 2003 14:44:02 -0000 1.2
***************
*** 25,26 ****
--- 25,34 ----
Set the channel list (set of tuning frequencies) that most closely
matches yours.
+
+ Template: freevo/start_on_boot
+ Type: boolean
+ Default: false
+ Description: Should freevo start automatically on bootup?
+ Freevo can be started as a daemon using init scripts. If you're
+ building a standalone box, this is probably what you want to
+ have it come up seamlessly.
Index: rules
===================================================================
RCS file: /cvsroot/freevo/freevo/contrib/debian/rules,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** rules 25 Oct 2003 14:26:28 -0000 1.9
--- rules 25 Oct 2003 14:44:02 -0000 1.10
***************
*** 69,73 ****
dh_installmenu
dh_installchangelogs
! db_installdebconf
dh_python
dh_link
--- 69,74 ----
dh_installmenu
dh_installchangelogs
! dh_installdebconf
! dh_installinit --noscripts
dh_python
dh_link
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog