--- mythexport-1.0.6.orig/debian/config +++ mythexport-1.0.6/debian/config @@ -0,0 +1,13 @@ +#!/bin/sh -e + +. /usr/share/debconf/confmodule + +db_input high mythexport/warn || true +db_input high mythexport/dir || true +db_input high mythexport/user || true +db_input high mythexport/password || true +db_input high mythexport/host || true + +db_go + +exit 0 --- mythexport-1.0.6.orig/debian/copyright +++ mythexport-1.0.6/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by John Baab on +Mon, 4 February 2008 1:40:23 -0500 + +Author Copyright: + © 2008 John Baab + +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 + +The Debian packaging is © 2008, John Baab +and is licensed under the GPL-2, or (at your option) any later version. --- mythexport-1.0.6.orig/debian/compat +++ mythexport-1.0.6/debian/compat @@ -0,0 +1 @@ +6 --- mythexport-1.0.6.orig/debian/mythexport.cron.daily +++ mythexport-1.0.6/debian/mythexport.cron.daily @@ -0,0 +1,61 @@ +#!/usr/bin/perl -w +# mythexport_cleanup v1.0 +# By: John Baab +# Email: john.baab@gmail.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.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-1.0.6.orig/debian/postinst +++ mythexport-1.0.6/debian/postinst @@ -0,0 +1,57 @@ +#! /bin/sh + +#DEBHELPER# + +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 + configure) + . /usr/share/debconf/confmodule + + db_get mythexport/dir + dir="$RET" + + if [ ! -d "$dir" ]; then + mkdir -p $dir + fi + + chown mythtv:mythtv $dir + chmod 775 $dir + + ln -s $dir /usr/share/mythtv/mythexport/video + ln -s /root/.mythtv /var/www/.mythtv + ln -s /usr/share/mythtv/mythexport /var/www/mythexport + + if [ -e /etc/apache2/apache2.conf ]; then + a2ensite mythexport.conf >/dev/null || true + reload_apache + fi + + echo "dir=$dir" > /etc/mythtv/mythexport.cfg + + db_get mythexport/user + admin_username="$RET" + db_get mythexport/password + admin_password="$RET" + db_get mythexport/host + hostname="$RET" + + mysql -h$hostname -u$admin_username -p$admin_password mythconverg < /usr/share/mythtv/mythexport.sql + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac --- mythexport-1.0.6.orig/debian/changelog +++ mythexport-1.0.6/debian/changelog @@ -0,0 +1,52 @@ +mythexport (1.0.6-0ubuntu0.1) intrepid-proposed; urgency=low + + * Fixed ffmpeg codec naming issues. (LP: #297019) + + -- John Baab Wed, 26 November 2008 12:45:00 -0500 + +mythexport (1.0.6-0ubuntu1) jaunty; urgency=low + + * Fixed ffmpeg codec naming issues. + + -- John Baab 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 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 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 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 Tue, 22 April 2008 09:39:55 -0400 + +mythexport (1.0-0ubuntu1) hardy; urgency=low + + * Initial Release (LP: #191337). + + -- John Baab Sun, 10 Feb 2008 23:05:55 -0400 --- mythexport-1.0.6.orig/debian/manpages +++ mythexport-1.0.6/debian/manpages @@ -0,0 +1 @@ +mythexport.1 --- mythexport-1.0.6.orig/debian/postrm +++ mythexport-1.0.6/debian/postrm @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +case "$1" in + purge) + #These files may have been created during installation + rm -f /var/www/.mythtv + rm -f /var/www/mythexport + rm -f /etc/mythtv/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-1.0.6.orig/debian/install +++ mythexport-1.0.6/debian/install @@ -0,0 +1,2 @@ +etc/* /etc +usr/* /usr --- mythexport-1.0.6.orig/debian/prerm +++ mythexport-1.0.6/debian/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-1.0.6.orig/debian/rules +++ mythexport-1.0.6/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +include /usr/share/cdbs/1/rules/debhelper.mk + +BZR_REVISION+=51 +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-sourc --- mythexport-1.0.6.orig/debian/control +++ mythexport-1.0.6/debian/control @@ -0,0 +1,21 @@ +Source: mythexport +Section: misc +Priority: optional +Maintainer: Ubuntu MythTV Team +XSBC-Original-Maintainer: John Baab +Build-Depends: debhelper (>= 5.0.0), cdbs, po-debconf +XS-Vcs-Bzr: http://bazaar.launchpad.net/~mythbuntu/mythexport/rss +XS-Vcs-Browser: http://codebrowse.launchpad.net/~mythbuntu/mythexport/rss +Standards-Version: 3.8.0 +Homepage: http://www.mythbuntu.org + +Package: mythexport +Architecture: any +Pre-Depends: mythtv-backend | mythtv-database +Depends: ${shlibs:Depends}, perl, atomicparsley, libmyth-perl, libdbi-perl, libdbd-mysql-perl, debconf, apache2, libconfig-simple-perl, libxml-rss-perl, mysql-client, libavcodec-unstripped-51, libavdevice-unstripped-52, libavformat-unstripped-52, libavutil-unstripped-49, libpostproc-unstripped-51, libswscale-unstripped-0 +Description: Export MythTV recording to portable media players + MythExport is a script that can be added to MythTV as a User Job and used to + export recordings into a format playable on portable devices such as iPod + Video, iPod Touch, and PSP. 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-1.0.6.orig/debian/templates +++ mythexport-1.0.6/debian/templates @@ -0,0 +1,39 @@ +Template: mythexport/warn +Type: note +_Description: Additional install directions + Although this script can be run on its own, it is best used when + configured as a user job withing MythTv. + . + 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: root +_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 'root'. + +Template: mythexport/password +Type: password +_Description:MySQL Admin Password: + This information will be used to create a database and user for MythTV. + . + Unless you have explicitly changed the password on the MySQL server, leave + this blank. + +Template: mythexport/host +Type: string +Default: localhost +_Description: MySQL Server Location: + On what host does the MySQL server reside: --- mythexport-1.0.6.orig/debian/po/templates.pot +++ mythexport-1.0.6/debian/po/templates.pot @@ -0,0 +1,56 @@ +# 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 , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: mythexport@packages.debian.org\n" +"POT-Creation-Date: 2008-08-27 00:00-0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: note +#. Description +#: ../templates:1001 +msgid "Additional install directions" +msgstr "" + +#. Type: note +#. Description +#: ../templates:1001 +msgid "" +"Although this script can be run on its own, it is best used when configured " +"as a user job withing MythTv. You may also need a version of ffmpeg that is " +"not included in the default Ubuntu repositories." +msgstr "" + +#. Type: note +#. Description +#: ../templates:1001 +msgid "For more information please visit:" +msgstr "" + +#. Type: note +#. Description +#: ../templates:1001 +msgid "https://help.ubuntu.com/community/MythExport" +msgstr "" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "Export Recordings to:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "This is where you are currently, or plan to, export your recordings to." +msgstr "" --- mythexport-1.0.6.orig/debian/po/POTFILES.in +++ mythexport-1.0.6/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates