[pkg-freevo-commits] r143 - in packages/freevo/tags: . 1.8.1-3 1.8.1-3/debian
mennucc1 at alioth.debian.org
mennucc1 at alioth.debian.org
Sat Oct 25 12:02:32 UTC 2008
Author: mennucc1
Date: 2008-10-25 12:02:32 +0000 (Sat, 25 Oct 2008)
New Revision: 143
Added:
packages/freevo/tags/1.8.1-3/
packages/freevo/tags/1.8.1-3/debian/changelog
packages/freevo/tags/1.8.1-3/debian/freevo.postinst
Removed:
packages/freevo/tags/1.8.1-3/debian/changelog
packages/freevo/tags/1.8.1-3/debian/freevo.postinst
Log:
tag 1.8.1-3
Copied: packages/freevo/tags/1.8.1-3 (from rev 141, packages/freevo/trunk)
Property changes on: packages/freevo/tags/1.8.1-3
___________________________________________________________________
Name: svn:mergeinfo
+
Deleted: packages/freevo/tags/1.8.1-3/debian/changelog
===================================================================
--- packages/freevo/trunk/debian/changelog 2008-10-20 21:37:17 UTC (rev 141)
+++ packages/freevo/tags/1.8.1-3/debian/changelog 2008-10-25 12:02:32 UTC (rev 143)
@@ -1,204 +0,0 @@
-freevo (1.8.1-3) unstable; urgency=low
-
- * freevo does not work with python 2.3 ; set
- XS-Python-Version: >= 2.4
- accordingly. Thanks Mark Whitis (Closes: 493802)
-
- --
-
-freevo (1.8.1-2) unstable; urgency=low
-
- * [INTL:es] Spanish debconf templates translation,
- thanks to Ignacio Mondino (Closes: #489962)
- * Suggest ttf-liberation | ttf-mscorefonts-installer
- thanks Thijs Kinkhorst (Closes: #490040)
- * fix restart_freevo_encodingserver
- thanks Sam Couter (Closes: #496270)
- * update standards version to 3.8.0.0 (no changes)
-
- -- A Mennucc1 <mennucc1 at debian.org> Wed, 01 Oct 2008 21:31:45 +0200
-
-freevo (1.8.1-0.1) unstable; urgency=low
-
- * Non-maintainer upload.
- * Fix bashism in /bin/sh script (Closes: #489590)
-
- -- Matthew Johnson <mjj29 at debian.org> Sun, 24 Aug 2008 11:25:10 +0000
-
-freevo (1.8.1-0) unstable; urgency=high
-
- * New upstream release.
- * Fix crash at startup on amd64, by depending on newer python-pygame,
- thanks to Julien Danjou (Closes: #480309).
- * Drop dependency on ttf-bitstream-vera,
- thanks to Luigi Toscano (Closes: #483772).
- * [INTL:ru] Russian debconf templates translation,
- thanks to Yuri Kozlov (Closes: #484327).
-
- -- A Mennucc1 <mennucc1 at debian.org> Wed, 04 Jun 2008 20:54:12 +0200
-
-freevo (1.8.0-3) unstable; urgency=low
-
- * add dependency on "console-tools | kbd",
- thanks to Michael Schutte (Closes: #476156).
- * specify --shell to start services,
- thanks to Geoff Simmons (Closes: #476832).
- * [INTL:fr] French debconf templates translation,
- thanks to Steve Petruzzello (Closes: #477776).
- * [INTL:cz] Czech translation of freevo debconf messages,
- thanks to Miroslav Kure (Closes: #480381).
-
- -- A Mennucc1 <mennucc1 at debian.org> Sat, 17 May 2008 22:50:52 +0200
-
-freevo (1.8.0-2) unstable; urgency=low
-
- * [INTL:pt] Updated Portuguese translation for debconf messages, thanks
- to Traduz - Portuguese Translation Team (Closes: #472863).
- * readd dependency on "python-xml" , thanks to rUrek
- (Closes: #472916) and reopens 468586.
- * add slice encoding patches from SVN
-
- -- A Mennucc1 <mennucc1 at debian.org> Sat, 29 Mar 2008 12:05:59 +0100
-
-freevo (1.8.0-1) unstable; urgency=low
-
- [ Georg W. Leonhardt ]
- * New upstream release
- * Update freevo.templates for correct creation of template.pot
- * Fill out required fields in debian/po/template.pot
- * [INTL:fr] French debconf templates translation",
- thanks to Steve Petruzzello (Closes: #470242).
- * [INTL:pt] Updated Portuguese translation for debconf messages,
- thanks to Traduz - Portuguese Translation Team (Closes: #469927).
- * [INTL:de] initial German debconf translation,
- thanks to Helge Kreutzmann (Closes: #470819).
- * Correct a little typo in README.debian
- * Add debian/srcipts and move freevo.wrapper, freevo+log
- into them for a better clearness
- * Add freevo-doc.install and debian/rules: Use DEB_DH_INSTALL_ARGS
- instead rm for exclusion off copyright files
- * Add conflict freevo-common to package freevo-data for users
- they upgrade from geole.info
- * Change my e-mail address
- * Corrected some lintian warnings
-
- [ A Mennucc1 ]
-
- * Add versioned dependency on kaa-base 0.4.0
- * Bug fix: "python-xml removal: please drop/replace (build)
- dependencies", thanks to Matthias Klose (Closes: #468586).
- * Convert record_schedule.xml in freevo.postinst.
-
- -- A Mennucc1 <mennucc1 at debian.org> Tue, 25 Mar 2008 14:34:07 +0100
-
-freevo (1.8.0~rc1-1) unstable; urgency=low
-
- * added /usr/share/doc/freevo/README.Debian.gz
- with a lot of explanations (you should read that!)
- * standard version to 3.7.3.0 and debian/control review
- * correct typos in templates, and avoid asking things twice
- * added many debconf questions re: data dirs, services to start...
- * do not run 'freevo cache' in postinst (it takes ~ 40min)
- * corrected most lintian warnings
- * added /etc/init.d scripts
- * fixed all permissions, so that services run as 'freevo' user
- * rename .deb from freevo-common to freevo-data
-
- [Georg W. Leonhardt]
- * New upstream release
- * Add debian/freevo-common.linda-overrides and update debian/rules because
- ethopool.ttf are free
- * Bump versions off kaa-* dependencies
- * Add initial manpage
- * Add debian/watch
- * Cleaning freevo.dir and remove freevo-common.dir
- * Replace shipit vera*.tff / dejavu*.ttf with symlinks against system fonts
- * debian/control: Add dependencies for ttf-bitstream-vera and ttf-dejavu
-
- -- A Mennucc1 <mennucc1 at debian.org> Thu, 24 Jan 2008 22:57:16 +0100
-
-freevo (1.7.3-1) UNRELEASED; urgency=low
-
- * New upstream release
- * Add ucf support for automated handling of python_local.conf
- * Extend templates, postinst and config to set paths of multimedia
- files in python_local.conf and update german translation
- * Refresh nocheck patch
- * Add local_conf.py.example patch for bump version 5.17 to 5.2
-
- -- Georg W. Leonhardt <repo at geole.info> Sun, 26 Aug 2007 19:28:45 +0200
-
-freevo (1.7.2-3) UNRELEASED; urgency=low
-
- * Clean/update rules, freevo.install, freevo.desktop
- * Remove freevo-doc.install
- * Add freevo.xpm
-
- -- Georg W. Leonhardt <repo at geole.info> Wed, 4 Jul 2007 14:19:32 +0200
-
-freevo (1.7.2-2) UNRELEASED; urgency=low
-
- * Move README and TODO to usr/share/doc/freevo
- * Change typo in control: Conflicts: python-lirc > Conflicts: freevo-lirc
- in packages freevo-lirc
- * Remove local_conf.py.patch from debian/patches
-
- -- Georg W. Leonhardt <repo at geole.info> Tue, 3 Jul 2007 11:03:28 +0200
-
-freevo (1.7.2-1) UNRELEASED; urgency=low
-
- * New upstream release
- * Change build system to CDBS with pycentral
-
- -- Georg W. Leonhardt <repo at geole.info> Sun, 1 Jul 2007 18:56:04 +0200
-
-freevo (1.7.1-1) UNRELEASED; urgency=low
-
- * New upstream release.
- * Add dependency debconf for package freevo
- * Add dependency python for package freevo
- * Add long descrition for package freevo-lirc
- * Add Section: doc for package freevo-doc
- * Add aquafusion icon licence to copyright and exclude file from deb
- * Change Replaces: to Conflicts:
- * Update freevo.templates
-
- -- Georg W. Leonhardt <repo at geole.info> Fri, 11 May 2007 19:33:28 +0200
-
-freevo (1.7.0-3) UNRELEASED; urgency=low
-
- * add dh_installinit for freevo/web/record server
- * remove temporaly uncomplete ucf support
- * change entries into freevo.templates
-
- -- Georg W. Leonhardt <repo at geole.info> Mon, 16 Apr 2007 16:51:41 +0200
-
-freevo (1.7.0-2) UNRELEASED; urgency=low
-
- * add ucf (not complete)
- * add new entries into freevo.templates
-
- -- Georg W. Leonhardt <repo at geole.info> Thu, 09 Mar 2007 19:23:31 +0100
-
-freevo (1.7.0-1) UNRELEASED; urgency=low
-
- * New upstream release.
- * Set dh_compat to 5
- * Replace python-mmpython with python-kaa*
- * Add separeted packages for python-freevo, freevo-lirc, freevo-doc
- * Add german translation for debconf
-
- -- Georg W. Leonhardt <repo at geole.info> Wed, 07 Mar 2007 17:19:26 +0100
-
-freevo (1.6.0-1) UNRELEASED; urgency=low
-
- [ Cyril Lacoux (Yack) ]
- * New upstream release. (Closes: #398937)
- * Added support for pysupport
- * Changed all dependencie from python2.3-module to python-module
-
- [ Julien Danjou ]
- * Add quilt support
-
- -- Julien Danjou <acid at debian.org> Mon, 20 Nov 2006 12:05:49 +0100
-
Copied: packages/freevo/tags/1.8.1-3/debian/changelog (from rev 142, packages/freevo/trunk/debian/changelog)
===================================================================
--- packages/freevo/tags/1.8.1-3/debian/changelog (rev 0)
+++ packages/freevo/tags/1.8.1-3/debian/changelog 2008-10-25 12:02:32 UTC (rev 143)
@@ -0,0 +1,207 @@
+freevo (1.8.1-3) unstable; urgency=low
+
+ * freevo does not work with python 2.3 ; set
+ XS-Python-Version: >= 2.4
+ accordingly. Thanks Mark Whitis (Closes: 493802)
+ * declare an encoding in /etc/freevo/debconf.py , otherwise
+ Python 2.5 will crash on accented chars.
+ Thanks to Florian Hatat. (Closes: 503370)
+
+ -- A Mennucc1 <mennucc1 at debian.org> Sat, 25 Oct 2008 13:44:14 +0200
+
+freevo (1.8.1-2) unstable; urgency=low
+
+ * [INTL:es] Spanish debconf templates translation,
+ thanks to Ignacio Mondino (Closes: #489962)
+ * Suggest ttf-liberation | ttf-mscorefonts-installer
+ thanks Thijs Kinkhorst (Closes: #490040)
+ * fix restart_freevo_encodingserver
+ thanks Sam Couter (Closes: #496270)
+ * update standards version to 3.8.0.0 (no changes)
+
+ -- A Mennucc1 <mennucc1 at debian.org> Wed, 01 Oct 2008 21:31:45 +0200
+
+freevo (1.8.1-0.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix bashism in /bin/sh script (Closes: #489590)
+
+ -- Matthew Johnson <mjj29 at debian.org> Sun, 24 Aug 2008 11:25:10 +0000
+
+freevo (1.8.1-0) unstable; urgency=high
+
+ * New upstream release.
+ * Fix crash at startup on amd64, by depending on newer python-pygame,
+ thanks to Julien Danjou (Closes: #480309).
+ * Drop dependency on ttf-bitstream-vera,
+ thanks to Luigi Toscano (Closes: #483772).
+ * [INTL:ru] Russian debconf templates translation,
+ thanks to Yuri Kozlov (Closes: #484327).
+
+ -- A Mennucc1 <mennucc1 at debian.org> Wed, 04 Jun 2008 20:54:12 +0200
+
+freevo (1.8.0-3) unstable; urgency=low
+
+ * add dependency on "console-tools | kbd",
+ thanks to Michael Schutte (Closes: #476156).
+ * specify --shell to start services,
+ thanks to Geoff Simmons (Closes: #476832).
+ * [INTL:fr] French debconf templates translation,
+ thanks to Steve Petruzzello (Closes: #477776).
+ * [INTL:cz] Czech translation of freevo debconf messages,
+ thanks to Miroslav Kure (Closes: #480381).
+
+ -- A Mennucc1 <mennucc1 at debian.org> Sat, 17 May 2008 22:50:52 +0200
+
+freevo (1.8.0-2) unstable; urgency=low
+
+ * [INTL:pt] Updated Portuguese translation for debconf messages, thanks
+ to Traduz - Portuguese Translation Team (Closes: #472863).
+ * readd dependency on "python-xml" , thanks to rUrek
+ (Closes: #472916) and reopens 468586.
+ * add slice encoding patches from SVN
+
+ -- A Mennucc1 <mennucc1 at debian.org> Sat, 29 Mar 2008 12:05:59 +0100
+
+freevo (1.8.0-1) unstable; urgency=low
+
+ [ Georg W. Leonhardt ]
+ * New upstream release
+ * Update freevo.templates for correct creation of template.pot
+ * Fill out required fields in debian/po/template.pot
+ * [INTL:fr] French debconf templates translation",
+ thanks to Steve Petruzzello (Closes: #470242).
+ * [INTL:pt] Updated Portuguese translation for debconf messages,
+ thanks to Traduz - Portuguese Translation Team (Closes: #469927).
+ * [INTL:de] initial German debconf translation,
+ thanks to Helge Kreutzmann (Closes: #470819).
+ * Correct a little typo in README.debian
+ * Add debian/srcipts and move freevo.wrapper, freevo+log
+ into them for a better clearness
+ * Add freevo-doc.install and debian/rules: Use DEB_DH_INSTALL_ARGS
+ instead rm for exclusion off copyright files
+ * Add conflict freevo-common to package freevo-data for users
+ they upgrade from geole.info
+ * Change my e-mail address
+ * Corrected some lintian warnings
+
+ [ A Mennucc1 ]
+
+ * Add versioned dependency on kaa-base 0.4.0
+ * Bug fix: "python-xml removal: please drop/replace (build)
+ dependencies", thanks to Matthias Klose (Closes: #468586).
+ * Convert record_schedule.xml in freevo.postinst.
+
+ -- A Mennucc1 <mennucc1 at debian.org> Tue, 25 Mar 2008 14:34:07 +0100
+
+freevo (1.8.0~rc1-1) unstable; urgency=low
+
+ * added /usr/share/doc/freevo/README.Debian.gz
+ with a lot of explanations (you should read that!)
+ * standard version to 3.7.3.0 and debian/control review
+ * correct typos in templates, and avoid asking things twice
+ * added many debconf questions re: data dirs, services to start...
+ * do not run 'freevo cache' in postinst (it takes ~ 40min)
+ * corrected most lintian warnings
+ * added /etc/init.d scripts
+ * fixed all permissions, so that services run as 'freevo' user
+ * rename .deb from freevo-common to freevo-data
+
+ [Georg W. Leonhardt]
+ * New upstream release
+ * Add debian/freevo-common.linda-overrides and update debian/rules because
+ ethopool.ttf are free
+ * Bump versions off kaa-* dependencies
+ * Add initial manpage
+ * Add debian/watch
+ * Cleaning freevo.dir and remove freevo-common.dir
+ * Replace shipit vera*.tff / dejavu*.ttf with symlinks against system fonts
+ * debian/control: Add dependencies for ttf-bitstream-vera and ttf-dejavu
+
+ -- A Mennucc1 <mennucc1 at debian.org> Thu, 24 Jan 2008 22:57:16 +0100
+
+freevo (1.7.3-1) UNRELEASED; urgency=low
+
+ * New upstream release
+ * Add ucf support for automated handling of python_local.conf
+ * Extend templates, postinst and config to set paths of multimedia
+ files in python_local.conf and update german translation
+ * Refresh nocheck patch
+ * Add local_conf.py.example patch for bump version 5.17 to 5.2
+
+ -- Georg W. Leonhardt <repo at geole.info> Sun, 26 Aug 2007 19:28:45 +0200
+
+freevo (1.7.2-3) UNRELEASED; urgency=low
+
+ * Clean/update rules, freevo.install, freevo.desktop
+ * Remove freevo-doc.install
+ * Add freevo.xpm
+
+ -- Georg W. Leonhardt <repo at geole.info> Wed, 4 Jul 2007 14:19:32 +0200
+
+freevo (1.7.2-2) UNRELEASED; urgency=low
+
+ * Move README and TODO to usr/share/doc/freevo
+ * Change typo in control: Conflicts: python-lirc > Conflicts: freevo-lirc
+ in packages freevo-lirc
+ * Remove local_conf.py.patch from debian/patches
+
+ -- Georg W. Leonhardt <repo at geole.info> Tue, 3 Jul 2007 11:03:28 +0200
+
+freevo (1.7.2-1) UNRELEASED; urgency=low
+
+ * New upstream release
+ * Change build system to CDBS with pycentral
+
+ -- Georg W. Leonhardt <repo at geole.info> Sun, 1 Jul 2007 18:56:04 +0200
+
+freevo (1.7.1-1) UNRELEASED; urgency=low
+
+ * New upstream release.
+ * Add dependency debconf for package freevo
+ * Add dependency python for package freevo
+ * Add long descrition for package freevo-lirc
+ * Add Section: doc for package freevo-doc
+ * Add aquafusion icon licence to copyright and exclude file from deb
+ * Change Replaces: to Conflicts:
+ * Update freevo.templates
+
+ -- Georg W. Leonhardt <repo at geole.info> Fri, 11 May 2007 19:33:28 +0200
+
+freevo (1.7.0-3) UNRELEASED; urgency=low
+
+ * add dh_installinit for freevo/web/record server
+ * remove temporaly uncomplete ucf support
+ * change entries into freevo.templates
+
+ -- Georg W. Leonhardt <repo at geole.info> Mon, 16 Apr 2007 16:51:41 +0200
+
+freevo (1.7.0-2) UNRELEASED; urgency=low
+
+ * add ucf (not complete)
+ * add new entries into freevo.templates
+
+ -- Georg W. Leonhardt <repo at geole.info> Thu, 09 Mar 2007 19:23:31 +0100
+
+freevo (1.7.0-1) UNRELEASED; urgency=low
+
+ * New upstream release.
+ * Set dh_compat to 5
+ * Replace python-mmpython with python-kaa*
+ * Add separeted packages for python-freevo, freevo-lirc, freevo-doc
+ * Add german translation for debconf
+
+ -- Georg W. Leonhardt <repo at geole.info> Wed, 07 Mar 2007 17:19:26 +0100
+
+freevo (1.6.0-1) UNRELEASED; urgency=low
+
+ [ Cyril Lacoux (Yack) ]
+ * New upstream release. (Closes: #398937)
+ * Added support for pysupport
+ * Changed all dependencie from python2.3-module to python-module
+
+ [ Julien Danjou ]
+ * Add quilt support
+
+ -- Julien Danjou <acid at debian.org> Mon, 20 Nov 2006 12:05:49 +0100
+
Deleted: packages/freevo/tags/1.8.1-3/debian/freevo.postinst
===================================================================
--- packages/freevo/trunk/debian/freevo.postinst 2008-10-20 21:37:17 UTC (rev 141)
+++ packages/freevo/tags/1.8.1-3/debian/freevo.postinst 2008-10-25 12:02:32 UTC (rev 143)
@@ -1,175 +0,0 @@
-#!/bin/sh -e
-
-DAEMON=/usr/bin/freevo
-
-action="$1"
-
-#These variables affect how freevo works, if you want to really set
-# those, put them in /etc/default/freevo . See also /etc/freevo/debconf.sh
-unset OS_LOGDIR FREEVO_LOGDIR OS_STATICDIR FREEVO_STATICDIR OS_CACHEDIR FREEVO_CACHEDIR FREEVO_SHARE FREEVO_CONTRIB FREEVO_SCRIPT FREEVO_CONFIG DISPLAY LD_PRELOAD SDL_VIDEODRIVER FREEVO_LOCALE FREEVO_PYTHON
-
-. /etc/default/freevo
-
-. /usr/share/debconf/confmodule
-db_version 2.0
-
-write_freevo_conf() {
- db_get freevo/display
- display="$RET"
- db_get freevo/geometry
- geometry="$RET"
- db_get freevo/norm
- norm="$RET"
- db_get freevo/chanlist
- chanlist="$RET"
- $DAEMON.real setup --geometry="$geometry" \
- --display="$display" \
- --tv="$norm" \
- --chanlist="$chanlist" \
- --sysfirst > /dev/null
-}
-
-create_dir() {
- if test ! -e "$1" ; then
- echo "Creating $2 directory $1 for freevo" 1>&2
- mkdir --parents "$1"
- #these two may fail if the dir is in a VFAT mount
- chown freevo:freevo "$1" || true
- chmod 775 "$1" || true
- else
- if test ! -d "$1" ; then
- echo "WARNING: freevo $2 directory should be $1 , " 1>&2
- echo " but this latter exists and is not a directory - freevo will malfunction" 1>&2
- else
- : #TODO may check permissions and ownership
- : # maybe using find "$1" -maxdepth 0 -printf '%u' | grep -qx freevo
- fi
- fi
- su --shell /bin/sh freevo -c "touch \"$1\"/.placeholder" || {
- echo "WARNING: 'freevo' user cannot create files in $2 directory $1 , " 1>&2
- echo " freevo will malfunction " 1>&2 ; }
-}
-
-
-write_local_conf() {
- create_dir $FREEVO_CACHEDIR cache
- create_dir $FREEVO_LOGDIR log
- create_dir $FREEVO_STATICDIR static
-
- db_get freevo/title_video
- title_video="$RET"
- db_get freevo/path_to_video
- path_to_video="$RET"
- create_dir "$RET" video
-
- db_get freevo/title_audio
- title_audio="$RET"
- db_get freevo/path_to_audio
- path_to_audio="$RET"
- create_dir "$RET" audio
-
- db_get freevo/title_image
- title_image="$RET"
- db_get freevo/path_to_image
- path_to_image="$RET"
- create_dir "$RET" image
-
- db_get freevo/path_to_recordings
- path_to_recordings="$RET"
- create_dir "$RET" recordings
-
- uid=`id -u freevo`
- gid=`id -g freevo`
- uidgid () { echo "${1}_UID=$uid" ; echo "${1}_GID=$gid" ; }
- (
- exec > /etc/freevo/debconf.py
- echo '#This file is automatically generated by the freevo Debian package'
- echo '#To change these values, run "dpkg-reconfigure freevo"'
- echo '#To override or add to these values, edit /etc/freevo/local_conf.py'
- echo "VIDEO_ITEMS = [ ('$title_video', '$path_to_video') ]"
- echo "AUDIO_ITEMS = [ ('$title_audio', '$path_to_audio') ]"
- echo "IMAGE_ITEMS = [ ('$title_image', '$path_to_image') ]"
- echo "TV_RECORD_DIR = '$path_to_recordings'"
- uidgid COMMDETECTSERVER
- uidgid ENCODINGSERVER
- uidgid RECORDSERVER
- uidgid RSSSERVER
- uidgid WEBSERVER
- echo "#note that FREEVO_UID and FREEVO_GID exist only in Debian code"
- uidgid FREEVO
- )
-
- db_get freevo/services
- services=",$RET ,"
-
- (
- exec > /etc/freevo/debconf.sh
- echo '#This file is automatically generated by the freevo Debian package'
- echo '#To change these values, run "dpkg-reconfigure freevo"'
- echo '#To override or add to these values, edit /etc/default/freevo'
- uidgid FREEVO
- for s in xserver recordserver encodingserver webserver rssserver ; do
- S=`echo $s | tr 'a-z' 'A-Z'`
- case "$services" in
- *$s*) echo "START_FREEVO_${S}=1" ;;
- *) echo "START_FREEVO_${S}=0" ;;
- esac
- done
- )
-
- LOCAL_CONF=/etc/freevo/local_conf.py
- [ -r $LOCAL_CONF ] || cp $LOCAL_CONF.example $LOCAL_CONF
-
-}
-
-freevo_cache() {
- su --shell /bin/sh freevo -c '$DAEMON.real cache'
- find $FREEVO_CACHEDIR -type f -print0 | xargs -0 chmod 0664
- find $FREEVO_CACHEDIR -type d -print0 | xargs -0 chmod 0775
-}
-
-update_record_schedule () {
- a=${FREEVO_STATICDIR}/record_schedule.xml
- if test -r $a ; then
- t=`tempfile`
- echo "Freevo: upgrading $a. (Log in $t)" 1>&2
- ( exec > $t 2> $t
- mv $a $a~oldformat
- invoke-rc.d freevo_recordserver stop
- su --shell /bin/sh freevo -c "freevo convert_favorites $a~oldformat"
- invoke-rc.d freevo_recordserver start
- su --shell /bin/sh freevo -c "freevo schedulefavorites"
- )
- fi
-}
-
-case "$1" in
- configure)
- # creating group
- if ! getent group freevo >/dev/null; then
- addgroup --system freevo
- fi
-
- # creating user
- if ! getent passwd freevo > /dev/null ; then
- echo "Adding user 'freevo'." 1>&2
- adduser --ingroup freevo --quiet --home /home/freevo \
- --disabled-login --system freevo
- fi
- for a in cdrom audio plugdev ; do
- adduser --quiet freevo $a
- done
-
- write_freevo_conf
- write_local_conf
- update_record_schedule
-
- ;;
- abort-upgrade) ;;
- *)
- echo "postinst called with unknown argument \`$1'" >&2
- exit 1
- ;;
-esac
-
-#DEBHELPER#
Copied: packages/freevo/tags/1.8.1-3/debian/freevo.postinst (from rev 142, packages/freevo/trunk/debian/freevo.postinst)
===================================================================
--- packages/freevo/tags/1.8.1-3/debian/freevo.postinst (rev 0)
+++ packages/freevo/tags/1.8.1-3/debian/freevo.postinst 2008-10-25 12:02:32 UTC (rev 143)
@@ -0,0 +1,176 @@
+#!/bin/sh -e
+
+DAEMON=/usr/bin/freevo
+
+action="$1"
+
+#These variables affect how freevo works, if you want to really set
+# those, put them in /etc/default/freevo . See also /etc/freevo/debconf.sh
+unset OS_LOGDIR FREEVO_LOGDIR OS_STATICDIR FREEVO_STATICDIR OS_CACHEDIR FREEVO_CACHEDIR FREEVO_SHARE FREEVO_CONTRIB FREEVO_SCRIPT FREEVO_CONFIG DISPLAY LD_PRELOAD SDL_VIDEODRIVER FREEVO_LOCALE FREEVO_PYTHON
+
+. /etc/default/freevo
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+write_freevo_conf() {
+ db_get freevo/display
+ display="$RET"
+ db_get freevo/geometry
+ geometry="$RET"
+ db_get freevo/norm
+ norm="$RET"
+ db_get freevo/chanlist
+ chanlist="$RET"
+ $DAEMON.real setup --geometry="$geometry" \
+ --display="$display" \
+ --tv="$norm" \
+ --chanlist="$chanlist" \
+ --sysfirst > /dev/null
+}
+
+create_dir() {
+ if test ! -e "$1" ; then
+ echo "Creating $2 directory $1 for freevo" 1>&2
+ mkdir --parents "$1"
+ #these two may fail if the dir is in a VFAT mount
+ chown freevo:freevo "$1" || true
+ chmod 775 "$1" || true
+ else
+ if test ! -d "$1" ; then
+ echo "WARNING: freevo $2 directory should be $1 , " 1>&2
+ echo " but this latter exists and is not a directory - freevo will malfunction" 1>&2
+ else
+ : #TODO may check permissions and ownership
+ : # maybe using find "$1" -maxdepth 0 -printf '%u' | grep -qx freevo
+ fi
+ fi
+ su --shell /bin/sh freevo -c "touch \"$1\"/.placeholder" || {
+ echo "WARNING: 'freevo' user cannot create files in $2 directory $1 , " 1>&2
+ echo " freevo will malfunction " 1>&2 ; }
+}
+
+
+write_local_conf() {
+ create_dir $FREEVO_CACHEDIR cache
+ create_dir $FREEVO_LOGDIR log
+ create_dir $FREEVO_STATICDIR static
+
+ db_get freevo/title_video
+ title_video="$RET"
+ db_get freevo/path_to_video
+ path_to_video="$RET"
+ create_dir "$RET" video
+
+ db_get freevo/title_audio
+ title_audio="$RET"
+ db_get freevo/path_to_audio
+ path_to_audio="$RET"
+ create_dir "$RET" audio
+
+ db_get freevo/title_image
+ title_image="$RET"
+ db_get freevo/path_to_image
+ path_to_image="$RET"
+ create_dir "$RET" image
+
+ db_get freevo/path_to_recordings
+ path_to_recordings="$RET"
+ create_dir "$RET" recordings
+
+ uid=`id -u freevo`
+ gid=`id -g freevo`
+ uidgid () { echo "${1}_UID=$uid" ; echo "${1}_GID=$gid" ; }
+ (
+ exec > /etc/freevo/debconf.py
+ echo '# -*- coding: utf-8 -*-'
+ echo '#This file is automatically generated by the freevo Debian package'
+ echo '#To change these values, run "dpkg-reconfigure freevo"'
+ echo '#To override or add to these values, edit /etc/freevo/local_conf.py'
+ echo "VIDEO_ITEMS = [ ('$title_video', '$path_to_video') ]"
+ echo "AUDIO_ITEMS = [ ('$title_audio', '$path_to_audio') ]"
+ echo "IMAGE_ITEMS = [ ('$title_image', '$path_to_image') ]"
+ echo "TV_RECORD_DIR = '$path_to_recordings'"
+ uidgid COMMDETECTSERVER
+ uidgid ENCODINGSERVER
+ uidgid RECORDSERVER
+ uidgid RSSSERVER
+ uidgid WEBSERVER
+ echo "#note that FREEVO_UID and FREEVO_GID exist only in Debian code"
+ uidgid FREEVO
+ )
+
+ db_get freevo/services
+ services=",$RET ,"
+
+ (
+ exec > /etc/freevo/debconf.sh
+ echo '#This file is automatically generated by the freevo Debian package'
+ echo '#To change these values, run "dpkg-reconfigure freevo"'
+ echo '#To override or add to these values, edit /etc/default/freevo'
+ uidgid FREEVO
+ for s in xserver recordserver encodingserver webserver rssserver ; do
+ S=`echo $s | tr 'a-z' 'A-Z'`
+ case "$services" in
+ *$s*) echo "START_FREEVO_${S}=1" ;;
+ *) echo "START_FREEVO_${S}=0" ;;
+ esac
+ done
+ )
+
+ LOCAL_CONF=/etc/freevo/local_conf.py
+ [ -r $LOCAL_CONF ] || cp $LOCAL_CONF.example $LOCAL_CONF
+
+}
+
+freevo_cache() {
+ su --shell /bin/sh freevo -c '$DAEMON.real cache'
+ find $FREEVO_CACHEDIR -type f -print0 | xargs -0 chmod 0664
+ find $FREEVO_CACHEDIR -type d -print0 | xargs -0 chmod 0775
+}
+
+update_record_schedule () {
+ a=${FREEVO_STATICDIR}/record_schedule.xml
+ if test -r $a ; then
+ t=`tempfile`
+ echo "Freevo: upgrading $a. (Log in $t)" 1>&2
+ ( exec > $t 2> $t
+ mv $a $a~oldformat
+ invoke-rc.d freevo_recordserver stop
+ su --shell /bin/sh freevo -c "freevo convert_favorites $a~oldformat"
+ invoke-rc.d freevo_recordserver start
+ su --shell /bin/sh freevo -c "freevo schedulefavorites"
+ )
+ fi
+}
+
+case "$1" in
+ configure)
+ # creating group
+ if ! getent group freevo >/dev/null; then
+ addgroup --system freevo
+ fi
+
+ # creating user
+ if ! getent passwd freevo > /dev/null ; then
+ echo "Adding user 'freevo'." 1>&2
+ adduser --ingroup freevo --quiet --home /home/freevo \
+ --disabled-login --system freevo
+ fi
+ for a in cdrom audio plugdev ; do
+ adduser --quiet freevo $a
+ done
+
+ write_freevo_conf
+ write_local_conf
+ update_record_schedule
+
+ ;;
+ abort-upgrade) ;;
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
More information about the Pkg-freevo-commits
mailing list