--- mythexport-2.2.4.orig/debian/changelog +++ mythexport-2.2.4/debian/changelog @@ -0,0 +1,282 @@ +mythexport (2.2.4-0ubuntu5) xenial; urgency=medium + + * Bump libav dependency: libavcodec-extra-56 -> libavcodec-extra. + + -- Colin Watson <cjwatson@ubuntu.com> Wed, 20 Apr 2016 13:31:28 +0100 + +mythexport (2.2.4-0ubuntu4) utopic; urgency=medium + + * Bump libav dependency: libavcodec-extra-55 -> libavcodec-extra-56. + + -- Colin Watson <cjwatson@ubuntu.com> Fri, 05 Sep 2014 03:00:51 +0100 + +mythexport (2.2.4-0ubuntu3) utopic; urgency=medium + + * Bump libav dependencies: libavcodec-extra-54 -> libavcodec-extra-55, and + drop libavdevice-extra-53, libavformat-extra-54, libavutil-extra-52, and + libswscale-extra-2 since none of those are built by libav 10. + + -- Colin Watson <cjwatson@ubuntu.com> Mon, 07 Jul 2014 16:16:26 +0100 + +mythexport (2.2.4-0ubuntu2) trusty; urgency=medium + + * Bump libav dependencies: libavcodec-extra-53 -> libavcodec-extra-54, + libavformat-extra-53 -> libavformat-extra-54, libavutil-extra-51 -> + libavutil-extra-52, and drop libpostproc-extra-52 since there is no + longer a libpostproc-extra-* in the archive. + + -- Colin Watson <cjwatson@ubuntu.com> Mon, 03 Feb 2014 16:28:56 +0000 + +mythexport (2.2.4-0ubuntu1) precise; urgency=low + + * usr/bin/mythexport-daemon + - Fixed bug where file extension gets truncated (LP: #688049) + - Remove extra ffmpeg files left behind (LP: #734103) + * usr/share/mythexport/configs + - s/ffmpeg/avconv/g; + - adjusted for latest presets and flags + * debian/mythexport.postinst + - Fixed issue where broken symlinks break installation (LP: #806519) + - MySQL failures will now fail gracefully + - Allow database names other than mythconverg (LP: #920210) + * debian/mythexport.templates + - Added template for MySQL failure + * debian/mythexport.config + - Allow database names other than mythconverg (LP: #920210) + * debian/control + - Updated dependencies + - s/ffmpeg/libav-tools/ + + -- John Baab <rhpot1991@ubuntu.com> Fri, 09 Mar 2012 15:39:09 -0500 + +mythexport (2.2.3-0ubuntu1) natty; urgency=low + + [ John Baab ] + * Added link to file on file page, useful for manual downloads. + * Fixed an issue where delete period and podcast name were ignored (LP: #663314) + + -- John Baab <rhpot1991@ubuntu.com> Tue, 26 Apr 2011 01:03:24 -0500 + +mythexport (2.2.2-0ubuntu1) maverick; urgency=low + + [ John Baab ] + * debian/mythexport.config and debian/mythexport.templates + - Added warning about new configuration + * usr/bin/mythexport-daemon + - Fixed issue with OTG exports (LP #598439) + - Added lockfile, to keep mythtv-backend informed of the job status (LP: #596251) + - Removed commented out code from past release + * usr/bin/mythexport_addjob + - Added lockfile, to keep mythtv-backend informed of the job status (LP: #596251) + * usr/share/mythtv/mythexport.sql + - Changed param column to longtext (LP #647908) + * usr/share/mythtv/mythexport/otg.cgi + - Fixed issue where old configuration file was still in use (LP: #652322) + * usr/share/mythtv/mythexport/otg_job.cgi + - Renamed variable, no longer using "block" from old configuration + * usr/share/mythtv/mythexport/setup.cgi + - Fixed issue where form was submitting to the wrong page (LP: #652322) + - Changed configuration input to radio buttons + * usr/share/mythtv/mythexport/save_system_setup.cgi + - Fixed typo + * usr/share/mythtv/mythexport/otg.cgi + - Fixed issue where old configuration file was still in use + * usr/share/mythtv/mythexport/setupsave.cgi + - Removed debugging line + * debial/rules: + - Synced BZR_REVISION + + [ Angel Abad ] + * debian/rules: Fix typo in TARFILE rule (LP: #654088) + + -- John Baab <rhpot1991@ubuntu.com> Sun, 03 Oct 2010 22:46:48 -0400 + +mythexport (2.2.1-0ubuntu2) maverick; urgency=low + + * debian/control: update dependency from libavutil-extra-49 to + libavutil-extra-50. This allow the mythexport package to be installable. + + -- Fabrice Coutadeur <fabricesp@ubuntu.com> Thu, 23 Sep 2010 21:20:56 +0200 + +mythexport (2.2.1-0ubuntu1) maverick; urgency=low + + [ John Baab ] + * Added link to baablogic.net for additional configs. + * Added version number to configs and web interface. + * Modified config notes to include link for Medibuntu. + + [ Mario Limonciello ] + * Update vcs-bzr to be on ~mythbuntu-dev. + + -- John Baab <rhpot1991@ubuntu.com> Wed, 15 Sep 2010 20:41:11 -0400 + +mythexport (2.2.0-0ubuntu2) maverick; urgency=low + + * Fixed issue reading from mysql.txt (LP: #617828) + * Fixed config files being overwritten on upgrade (LP: #507019) + + -- John Baab <rhpot1991@ubuntu.com> Wed, 18 Aug 2010 10:56:08 -0400 + +mythexport (2.2.0-0ubuntu1) maverick; urgency=low + + * FFe (LP: #617570). + * Added HTML5 streaming page to web interface. + * New device config method. + + -- John Baab <rhpot1991@ubuntu.com> Fri, 13 Aug 2010 01:53:54 -0400 + +mythexport (2.1.5-0ubuntu1) lucid; urgency=low + + * Modified help link to point at new wiki page. + * Fixed cgi permission issue. (LP: #560379) + * Adjusted ffmpeg lines to match current ffmpeg args. (LP: #373359) + * Tweaked web UI options to avoid bad settings. + * Added regex to remove whitespace when saving config. (LP: #393492) + + -- John Baab <rhpot1991@ubuntu.com> Sat, 10 Apr 2010 19:00:18 -0400 + +mythexport (2.1.4-0ubuntu1) lucid; urgency=low + + * Added extra ffmpeg check to daemon + * Added android and cowon choices + * Fixed dependencies for libmythtv-perl rename (LP: #548551). + * Fixed misplaced aspect ratio (LP: #500224). + * Fixed bug where AP is run on non mp4 files (LP: #501279). + * Adjusted ffmpeg lines to produce better mp3 videos for itunes. + + -- John Baab <rhpot1991@ubuntu.com> Sun, 28 Mar 2010 19:39:18 -0400 + +mythexport (2.1.3-0ubuntu1) karmic; urgency=low + + * Replaced libfaac with libmp3lame, we can't do aac in Karmic. + + -- John Baab <john.baab@gmail.com> Sat, 24 Oct 2009 18:37:30 -0400 + +mythexport (2.1.2-0ubuntu1) karmic; urgency=low + + * Added starting values div to web interface. + * Fixed commercial removal. + * Modified daemon to retry MythTV connection before failing. + * Fixed SQL error that occurs on installation (LP: #443158). + * Fixed archos ffmpeg line (LP: #393457). + * Fixed AP avi errors (LP: #393609). + * Fixed read only export directory issue (LP: #220087). + + -- John Baab <john.baab@gmail.com> Mon, 05 Oct 2009 01:06:33 -0400 + +mythexport (2.1.1-0ubuntu2) karmic; urgency=low + + * Fixed ffmpeg dependencies (LP: #427508). + * Made changes to postinst for MCC. + * Fixed postrm file directory issue (LP: #397691). + * Fixed mysql empty password issue (LP: #395827). + + -- John Baab <john.baab@gmail.com> Thu, 27 Aug 2009 01:45:00 -0400 + +mythexport (2.0-0ubuntu1) jaunty; urgency=low + + * Adjusted init priority so the MythTV backend is started first + * Fixed XML styling + * Modified init script for easier debugging + * Fixed error where SSL connection would point to http files + * Fixed RSS mime type issue + * Fixed invalid RSS data + * Fixed init script issue + * Fixed connection issue in daemon + * debian/mythexport.postinst + - Chmod config.xml if it exists + + -- John Baab <john.baab@gmail.com> Tue, 07 Apr 2009 02:06:15 -0400 + +mythexport (1.99.3-0ubuntu1) jaunty; urgency=low + + * debian/rules: + - Added missing dependency libhtml-template-perl + * debian/mythexport.postinst,mythexport.postrm + - Moved configs + * Moved configs in daemon and cgi pages + * Fixed issue where only the first userjob was updated + + -- John Baab <john.baab@gmail.com> Wed, 11 Mar 2009 09:22:55 -0400 + +mythexport (1.99.2-0ubuntu1) jaunty; urgency=low + + * Fixed ffmpeg changed flags + * debian/control: + - Modified dependencies, naming changed from intrepid to jaunty + + -- John Baab <john.baab@gmail.com> Wed, 04 Mar 2009 16:43:25 -0500 + +mythexport (1.99.1-0ubuntu1) jaunty; urgency=low + + * Fixed init script issues + * Fixed aspect not being saved + * Fixed installation error + * Fixed AJAX issue on RSS page + * Cleaned up daemon logging + + -- John Baab <john.baab@gmail.com> Tue, 24 Feb 2009 21:49:28 -0500 + +mythexport (1.99-0ubuntu1) jaunty; urgency=low + + * FFe (LP: #332222). + * Main script is now a daemon. + * Added file maintenance functionality. + * Added "On The Go" functionality. + * Added new web interface for management. + * Fixed symlink errors on installation (LP: #330624). + + -- John Baab <john.baab@gmail.com> Thu, 19 Feb 2009 22:41:15 -0500 + +mythexport (1.0.7-0ubuntu1) jaunty; urgency=low + + * Added MythImport binary (LP: #328882). + + -- John Baab <john.baab@gmail.com> Sun, 15 Feb 2009 11:50:49 -0500 + +mythexport (1.0.6-0ubuntu1) jaunty; urgency=low + + * Fixed ffmpeg codec naming issues. + + -- John Baab <john.baab@gmail.com> Wed, 26 November 2008 12:45:00 -0500 + +mythexport (1.0.5-0ubuntu1) jaunty; urgency=low + + * Fixed ffmpeg bug (LP: #297019). + * Fixed whitespace in file bug (LP: #288184). + * Fixed reverse proxy bug (thanks to smalcolm) (LP: #288186). + * Fixed install bug (LP: #282498). + * Fixed archos aspect bug (LP: #297016) + + -- John Baab <john.baab@gmail.com> Wed, 11 November 2008 07:30:00 -0500 + +mythexport (1.0.3-0ubuntu1) intrepid; urgency=low + + * Fixed videoless recording bug (LP: #271409). + * Fixed illegal character bug (LP: #260393). + * Fixed RSS grouping bug (LP: #271407). + + -- John Baab <john.baab@gmail.com> Wed, 17 September 2008 01:30:00 -0500 + +mythexport (1.0.2-0ubuntu2) intrepid; urgency=low + + * Fixed dependency bug (LP: #262873). + * Added RSS, cron clean up support and a new device (LP: #261883). + + -- John Baab <john.baab@gmail.com> Fri, 29 August 2008 10:57:00 -0500 + +mythexport (1.0.1-0ubuntu1) intrepid; urgency=low + + * Added get-orig-source rule to debian/rules + * Added vcs info to debian/control + * Fixed bug: recording is pulled from the incorrect dir (LP: #220884) + * Fixed bug: ipod mpeg4/xvid did not get an aspect (LP: #220881) + * Added new device archos + + -- John Baab <john.baab@gmail.com> Tue, 22 April 2008 09:39:55 -0400 + +mythexport (1.0-0ubuntu1) hardy; urgency=low + + * Initial Release (LP: #191337). + + -- John Baab <john.baab@gmail.com> Sun, 10 Feb 2008 23:05:55 -0400 --- mythexport-2.2.4.orig/debian/compat +++ mythexport-2.2.4/debian/compat @@ -0,0 +1 @@ +7 --- mythexport-2.2.4.orig/debian/control +++ mythexport-2.2.4/debian/control @@ -0,0 +1,29 @@ +Source: mythexport +Section: misc +Priority: optional +Maintainer: Ubuntu MythTV Team <ubuntu-mythtv@lists.ubuntu.com> +XSBC-Original-Maintainer: John Baab <rhpot1991@ubuntu.com> +Build-Depends: debhelper (>= 7.0.0), cdbs, po-debconf +XS-Vcs-Bzr: http://bazaar.launchpad.net/~mythbuntu-dev/mythexport/ubuntu +XS-Vcs-Browser: http://codebrowse.launchpad.net/~mythbuntu-dev/mythexport/ubuntu +Standards-Version: 3.9.2 +Homepage: http://www.mythbuntu.org + +Package: mythexport +Architecture: any +Pre-Depends: mythtv-database +Depends: ${misc:Depends}, ${shlibs:Depends}, perl, atomicparsley, libmythtv-perl, libdbi-perl, libdbd-mysql-perl, debconf, apache2, libhtml-template-perl, libconfig-simple-perl, libxml-rss-perl, libproc-daemon-perl, libproc-pid-file-perl, liblog-dispatch-perl, libxml-writer-perl, mysql-client, libavcodec-extra, libav-tools +Description: Export MythTV recording to portable media players + MythExport is a Perl daemon that can be used with MythTV to export recordings + into a format playable on portable devices such as iPod Video, iPod Touch, PSP, + and other devices. Besides converting your recordings, this script also grabs data + from the MythTV MySQL database and injects it as iTunes data into the exported video + so that it will show up correctly on your iPod. MythExport may also be used to take + your recordings "On The Go" and provides a RSS feed to all exported recordings. + +Package: mythimport +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, perl, libmythtv-perl, debconf, mysql-client, mythtv-backend | mythtv-database +Description: Import On The Go recordings from MythExport + MythImport is a script that can be used to import recordings into an + On The Go backend. --- mythexport-2.2.4.orig/debian/copyright +++ mythexport-2.2.4/debian/copyright @@ -0,0 +1,30 @@ +This package was debianized by John Baab <john.baab@gmail.com> on +Thu, 12 February 2009 1:40:23 -0500 + +Copyright: + Copyright 2009 John Baab <john.baab@gmail.com> + +Upstream Author: + Copyright 2009 John Baab <john.baab@gmail.com> + +License: + + This Package is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian & Ubuntu systems, a complete copy of the GPL can be found under +/usr/share/common-licenses/GPL-3 + +The Debian packaging is Copyright 2009, John Baab <john.baab@gmail.com> +and is licensed under the GPL-3, or (at your option) any later version. --- mythexport-2.2.4.orig/debian/mythexport.config +++ mythexport-2.2.4/debian/mythexport.config @@ -0,0 +1,35 @@ +#!/bin/sh -e + +. /usr/share/debconf/confmodule + +db_input high mythexport/warn || true +db_input high mythexport/configs || true + +if [ -e /etc/default/mythexport-install ]; then + db_set mythexport/dir `grep "dir = " /etc/default/mythexport-install | perl -p -e 's/dir\s=\s//'` +fi + +if which mysql >/dev/null; then + if echo "show databases;" | mysql --defaults-file=/etc/mysql/debian.cnf >/dev/null 2>&1; then + db_set mythexport/user "debian-sys-maint" + db_set mythexport/password "" + else + if [ -e /etc/mythtv/mysql.txt ]; then + db_set mythexport/user `grep "^DBUserName=" /etc/mythtv/mysql.txt | perl -p -e 's/DBUserName=//'` + db_set mythexport/password `grep "^DBPassword=" /etc/mythtv/mysql.txt | perl -p -e 's/DBPassword=//'` + db_set mythexport/host `grep "^DBHostName=" /etc/mythtv/mysql.txt | perl -p -e 's/DBHostName=//'` + db_set mythexport/dbname `grep "^DBName=" /etc/mythtv/mysql.txt | perl -p -e 's/DBName=//'` + else + db_input high mythexport/user || true + db_input high mythexport/password || true + db_input high mythexport/host || true + db_input high mythexport/dbname || true + fi + fi +fi + +db_input high mythexport/dir || true + +db_go + +exit 0 --- mythexport-2.2.4.orig/debian/mythexport.cron.daily +++ mythexport-2.2.4/debian/mythexport.cron.daily @@ -0,0 +1,61 @@ +#!/usr/bin/perl +# mythexport_cleanup v1.0 +# By: John Baab +# Email: rhpot1991@ubuntu.com +# Purpose: Script for exporting mythtv recordings into formats used by portable devices. +# Requirements: perl and the DBI & DBD::mysql modules, MythTV perl bindings +# +# License: +# +# This Package is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This package is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this package; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# +# On Debian & Ubuntu systems, a complete copy of the GPL can be found under +# /usr/share/common-licenses/GPL-2, or (at your option) any later version + +use DBI; +use DBD::mysql; +use Config::Simple; +use MythTV; + +use strict; + +my $connect = undef; + +my $cfg = new Config::Simple(); +$cfg->read('/etc/mythtv/mythexport/mythexport.cfg') || die "cannot read config file: /etc/mythtv/mythexport/mythexport.cfg"; + +my $dir = $cfg->param("dir"); +$dir =~ s/\/$//; + +my $myth = new MythTV(); +# connect to database +$connect = $myth->{'dbh'}; + +# find the old recordings +my $query = "SELECT id, file FROM mythexport WHERE delDate < NOW()"; +my $query_handle = $connect->prepare($query); +$query_handle->execute() || die "Unable to query mythexport table"; + +while ( my ($id,$file) = $query_handle->fetchrow_array() ) { + #remove file + my $location = "$dir\/$file"; + unlink($location); + + #remove db entry + my $query2 = "DELETE FROM mythexport WHERE id=?"; + my $query_handle2 = $connect->prepare($query2); + $query_handle2->execute($id) || die "Unable to delete entries from the mythexport table"; +} + --- mythexport-2.2.4.orig/debian/mythexport.init +++ mythexport-2.2.4/debian/mythexport.init @@ -0,0 +1,87 @@ +#! /bin/sh + +### BEGIN INIT INFO +# Provides: mythexport +# Required-Start: $local_fs $remote_fs $network +# Required-Stop: $local_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start/Stop the MythExport Daemon. +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/bin/mythexport-daemon +NAME="mythexport" +COMMAND=/usr/bin/perl +ARGS="" +DESC="MythExport Daemon" + +test -x $DAEMON || exit 0 + +. /lib/lsb/init-functions + +set -e + +USER=mythtv +USER_HOME=$(grep ^$USER /etc/passwd | awk -F : '{print $6}') +RUNDIR=/var/run/mythtv +NICE=0 + +mkdir -p $RUNDIR +chown -R $USER $RUNDIR + +unset DISPLAY +unset SESSION_MANAGER + +case "$1" in + start) + if [ -e $RUNDIR/$NAME.pid ]; then + PIDDIR=/proc/$(cat $RUNDIR/$NAME.pid) + if [ -d ${RUNDIR} -a "$(readlink -f ${PIDDIR}/exe)" = "${COMMAND}" ]; then + log_success_msg "$DESC already started; use restart instead." + exit 0 + else + log_success_msg "Removing stale PID file $RUNDIR/$NAME" + rm -f $RUNDIR/$NAME.pid + fi + fi + log_daemon_msg "Starting $DESC: $NAME " + start-stop-daemon --start --pidfile $RUNDIR/$NAME.pid \ + --chuid $USER --nicelevel $NICE --exec $COMMAND --startas $DAEMON $ARGS + log_end_msg $? + ;; + stop) + log_daemon_msg "Stopping $DESC: $NAME " + start-stop-daemon --stop --oknodo --pidfile $RUNDIR/$NAME.pid \ + --chuid $USER --exec $COMMAND --startas $DAEMON $ARGS + log_end_msg $? + test -e $RUNDIR/$NAME.pid && rm $RUNDIR/$NAME.pid + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC: $NAME " + start-stop-daemon --stop --oknodo --pidfile $RUNDIR/$NAME.pid \ + --chuid $USER --exec $COMMAND --startas $DAEMON $ARGS + sleep 3 + start-stop-daemon --start --pidfile $RUNDIR/$NAME.pid \ + --chuid $USER --nicelevel $NICE --exec $COMMAND --startas $DAEMON $ARGS + log_end_msg $? + ;; + status) + # We want to maintain backward compatibility with Hardy, + # so we're not going to use status_of_proc() + pidofproc -p $RUNDIR/$NAME.pid $DAEMON >/dev/null && status=0 || status=$? + if [ $status -eq 0 ]; then + log_success_msg "$NAME is running" + else + log_failure_msg "$NAME is not running" + fi + exit $status + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload|status}" >&2 + exit 2 + ;; +esac + +exit 0 --- mythexport-2.2.4.orig/debian/mythexport.install +++ mythexport-2.2.4/debian/mythexport.install @@ -0,0 +1,5 @@ +etc/* /etc +usr/bin/mythexport-daemon /usr/bin +usr/bin/mythexport_addjob /usr/bin +usr/share/mythtv/* /usr/share/mythtv +usr/share/mythexport/* /usr/share/mythexport --- mythexport-2.2.4.orig/debian/mythexport.manpages +++ mythexport-2.2.4/debian/mythexport.manpages @@ -0,0 +1 @@ +mythexport.1 --- mythexport-2.2.4.orig/debian/mythexport.postinst +++ mythexport-2.2.4/debian/mythexport.postinst @@ -0,0 +1,123 @@ +#! /bin/sh -e + +reload_apache() +{ + if apache2ctl configtest 2>/dev/null; then + invoke-rc.d apache2 force-reload || true + else + echo "Your apache2 configuration is broken, so we're not restarting it for you." + fi +} + +#Used to fail at some point but not abort postinst +fail_database() { + echo "Failed to create or modify database (incorrect MySQL username/password?)" >&2 + echo "Verify /etc/mythtv/mysql.txt then try:" >&2 + echo "sudo dpkg-reconfigure mythexport" >&2 + + db_input high mythexport/mysql_error || true + db_set mythexport/password "" + exit 0 +} + +case "$1" in + configure) + . /usr/share/debconf/confmodule + + db_get mythexport/dir + dir="$RET" + + if [ -n $dir ]; then + mkdir -p $dir + + chown mythtv:mythtv $dir || true + chmod 775 $dir || true + + if [ ! -e /usr/share/mythtv/mythexport/video ]; then + # remove broken symlink if it exists + if [ -h /usr/share/mythtv/mythexport/video ]; then + rm /usr/share/mythtv/mythexport/video + fi + ln -s $dir /usr/share/mythtv/mythexport/video + fi + fi + + mkdir -p /var/www/.mythtv + mkdir -p /home/mythtv/.mythtv + + if [ ! -e /var/www/.mythtv/config.xml ]; then + ln -s /etc/mythtv/config.xml /var/www/.mythtv/config.xml + fi + if [ ! -e /home/mythtv/.mythtv/config.xml ]; then + ln -s /etc/mythtv/config.xml /home/mythtv/.mythtv/config.xml + fi + if [ ! -e /var/www/mythexport ]; then + ln -s /usr/share/mythtv/mythexport /var/www/mythexport + fi + + if [ -e /etc/mythtv/config.xml ]; then + chown www-data:mythtv /etc/mythtv/config.xml + fi + mkdir -p /etc/mythtv/mythexport + chmod 775 /etc/mythtv/mythexport + chown www-data:www-data /etc/mythtv/mythexport + + if [ -e /etc/mythtv/mythexport.cfg ]; then + mv -f /etc/mythtv/mythexport.cfg /etc/mythtv/mythexport/mythexport.cfg + elif [ ! -e /etc/mythtv/mythexport/mythexport.cfg ]; then + touch /etc/mythtv/mythexport/mythexport.cfg + chmod 644 /etc/mythtv/mythexport/mythexport.cfg + chown www-data:www-data /etc/mythtv/mythexport/mythexport.cfg + echo "dir=$dir" > /etc/mythtv/mythexport/mythexport.cfg + fi + + if [ -e /etc/mythtv/mythexport_settings.cfg ]; then + mv -f /etc/mythtv/mythexport_settings.cfg /etc/mythtv/mythexport/mythexport_settings.cfg + chmod 644 /etc/mythtv/mythexport/mythexport_settings.cfg + chown www-data:www-data /etc/mythtv/mythexport/mythexport_settings.cfg + fi + + db_get mythexport/user + admin_username="$RET" + db_get mythexport/password + admin_password="$RET" + db_get mythexport/host + hostname="$RET" + + if [ "$admin_username" = "debian-sys-maint" ]; then + SECURITY_INFO="--defaults-file=/etc/mysql/debian.cnf" + else + if [ -n $admin_password ]; then + admin_password="-p$admin_password" + fi + + SECURITY_INFO="--host=\"$hostname\" --user=\"$admin_username\" $admin_password" + fi + + db_get mythexport/dbname + dbname="$RET" + + if ! mysql $SECURITY_INFO $dbname < /usr/share/mythtv/mythexport.sql >/dev/null 2>&1; then + fail_database + fi + + if [ -e /etc/apache2/apache2.conf ]; then + a2ensite mythexport.conf >/dev/null || true + reload_apache + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +db_set mythexport/password "" +exit 0 --- mythexport-2.2.4.orig/debian/mythexport.postrm +++ mythexport-2.2.4/debian/mythexport.postrm @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +case "$1" in + purge) + #These files may have been created during installation + rm -rf /var/www/.mythtv + rm -rf /var/www/mythexport + rm -rf /etc/mythtv/mythexport + rm -f /etc/mythtv/mythexport/mythexport.cfg +;; + + remove|upgrade|abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- mythexport-2.2.4.orig/debian/mythexport.prerm +++ mythexport-2.2.4/debian/mythexport.prerm @@ -0,0 +1,43 @@ +#!/bin/sh + +set -e + +reload_apache() +{ + if apache2ctl configtest 2>/dev/null; then + invoke-rc.d apache2 force-reload || true + else + echo "Your apache2 configuration is broken, so we're not restarting it for you." + fi +} + +case "$1" in + remove|purge) + + #Disable site + if [ -e /etc/apache2/apache2.conf ]; then + a2dissite mythexport.conf >/dev/null || true + reload_apache + fi + + #Remove links created during postinst + CLEANUP="/usr/share/mythtv/mythexport/" + for item in `ls ${CLEANUP}` + do + rm -rf ${CLEANUP}/${item} + done + ;; + + upgrade|abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- mythexport-2.2.4.orig/debian/mythexport.templates +++ mythexport-2.2.4/debian/mythexport.templates @@ -0,0 +1,57 @@ +Template: mythexport/warn +Type: note +_Description: Additional install directions + MythExport can now be completely setup via the web interface, + just browse to http://localhost/mythexport + . + For more information please visit: + . + https://help.ubuntu.com/community/MythExport + +Template: mythexport/dir +Type: string +Default: /var/lib/mythtv/mythexport/ +_Description: Export Recordings to: + This is where you are currently, or plan to, export your + recordings to. + +Template: mythexport/user +Type: string +Default: mythtv +_Description:MySQL Admin Account: + This information will be used to create a database and user for MythTV. + . + Unless you have explicitly changed this on the MySQL server, and + understand MySQL's privilege system, use the default of 'mythtv' or 'root'. + +Template: mythexport/password +Type: password +_Description:MySQL Admin Password: + This information will be used to create a database and user for MythTV. + +Template: mythexport/host +Type: string +Default: localhost +_Description: MySQL Server Location: + On what host does the MySQL server reside: + +Template: mythexport/dbname +Type: string +Default: mythconverg +_Description: Database which holds MythTV data: + Which database holds MythTV data: + +Template: mythexport/configs +Type: note +_Description: Changes in configuration files + MythExport's configuration files have changed, + For more information please visit: + . + https://help.ubuntu.com/community/MythExport + +Template: mythexport/mysql_error +Type: note +_Description: Failed to create or modify database (incorrect MySQL username/password?) + Verify /etc/mythtv/mysql.txt then try: + . + sudo dpkg-reconfigure mythexport --- mythexport-2.2.4.orig/debian/mythimport.install +++ mythexport-2.2.4/debian/mythimport.install @@ -0,0 +1 @@ +usr/bin/mythimport /usr/bin --- mythexport-2.2.4.orig/debian/mythimport.manpages +++ mythexport-2.2.4/debian/mythimport.manpages @@ -0,0 +1 @@ +mythimport.1 --- mythexport-2.2.4.orig/debian/po/POTFILES.in +++ mythexport-2.2.4/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] mythexport.templates --- mythexport-2.2.4.orig/debian/po/templates.pot +++ mythexport-2.2.4/debian/po/templates.pot @@ -0,0 +1,103 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: mythexport@packages.debian.org\n" +"POT-Creation-Date: 2009-02-15 13:21-0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: note +#. Description +#: ../mythexport.templates:1001 +msgid "Additional install directions" +msgstr "" + +#. Type: note +#. Description +#: ../mythexport.templates:1001 +msgid "" +"Although this script can be run on its own, it is best used when configured " +"as a user job withing MythTv." +msgstr "" + +#. Type: note +#. Description +#: ../mythexport.templates:1001 +msgid "For more information please visit:" +msgstr "" + +#. Type: note +#. Description +#: ../mythexport.templates:1001 +msgid "https://help.ubuntu.com/community/MythExport" +msgstr "" + +#. Type: string +#. Description +#: ../mythexport.templates:2001 +msgid "Export Recordings to:" +msgstr "" + +#. Type: string +#. Description +#: ../mythexport.templates:2001 +msgid "This is where you are currently, or plan to, export your recordings to." +msgstr "" + +#. Type: string +#. Description +#: ../mythexport.templates:3001 +msgid "MySQL Admin Account:" +msgstr "" + +#. Type: string +#. Description +#. Type: password +#. Description +#: ../mythexport.templates:3001 ../mythexport.templates:4001 +msgid "This information will be used to create a database and user for MythTV." +msgstr "" + +#. Type: string +#. Description +#: ../mythexport.templates:3001 +msgid "" +"Unless you have explicitly changed this on the MySQL server, and understand " +"MySQL's privilege system, use the default of 'root'." +msgstr "" + +#. Type: password +#. Description +#: ../mythexport.templates:4001 +msgid "MySQL Admin Password:" +msgstr "" + +#. Type: password +#. Description +#: ../mythexport.templates:4001 +msgid "" +"Unless you have explicitly changed the password on the MySQL server, leave " +"this blank." +msgstr "" + +#. Type: string +#. Description +#: ../mythexport.templates:5001 +msgid "MySQL Server Location:" +msgstr "" + +#. Type: string +#. Description +#: ../mythexport.templates:5001 +msgid "On what host does the MySQL server reside:" +msgstr "" --- mythexport-2.2.4.orig/debian/rules +++ mythexport-2.2.4/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +include /usr/share/cdbs/1/rules/debhelper.mk + +BZR_REVISION+=105 +BZR_BRANCH+=http://bazaar.launchpad.net/~mythbuntu/$(DEB_SOURCE_PACKAGE)/trunk +TARFILE+=$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz + +get-orig-source:: + bzr export -r $(BZR_REVISION) $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) $(BZR_BRANCH) + tar czf $(CURDIR)/../$(TARFILE) $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) --exclude debian + rm -rf $(CURDIR)/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) + +../$(TARFILE):: get-orig-source