From e4e0c9e36afec29cf3f5e4f24c2b085a12c7837f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Thu, 22 Jan 2015 19:36:10 +0100 Subject: Add scripts to replace shotwell-video-thumbnailer --- debian/changelog | 13 +++++++++++++ debian/replace_thumbnailer.sh | 21 +++++++++++++++++++++ debian/shotwell.README.Debian | 27 +++++++++++++++++++++++++++ debian/shotwell.examples | 1 + debian/shotwell.postrm | 15 +++++++++++++++ 5 files changed, 77 insertions(+) create mode 100755 debian/replace_thumbnailer.sh create mode 100644 debian/shotwell.README.Debian create mode 100644 debian/shotwell.examples create mode 100644 debian/shotwell.postrm diff --git a/debian/changelog b/debian/changelog index 08bbe5c..55b8d57 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,16 @@ +shotwell (0.20.2-2) UNRELEASED; urgency=medium + + * Add user scripts to replace shotwell-video-thumbnailer + if the thumbnailer is broken (Closes: #768637): + - New files: + + debian/shotwell.README.Debian + + debian/replace_thumbnailer.sh + + debian/shotwell.postrm + + debian/shotwell.examples + - Thanks to Teo Romera . + + -- Jörg Frings-Fürst Thu, 22 Jan 2015 18:03:59 +0100 + shotwell (0.20.2-1) unstable; urgency=medium * New upstream release (Closes: #769025). diff --git a/debian/replace_thumbnailer.sh b/debian/replace_thumbnailer.sh new file mode 100755 index 0000000..d70dec0 --- /dev/null +++ b/debian/replace_thumbnailer.sh @@ -0,0 +1,21 @@ +#! /bin/bash + +if [ -e /usr/lib/shotwell-video-thumbnailer.org ] ; then + echo ' /usr/lib/shotwell-video-thumbnailer.org exists!' + echo ' break' + exit 1 +fi + +echo '**** backup ****' +mv /usr/lib/shotwell-video-thumbnailer /usr/lib/shotwell-video-thumbnailer.org + +echo '**** install ffmpegthumbnailer ****' +apt-get install ffmpegthumbnailer -y + +echo '**** install new file ****' +touch /usr/lib/shotwell-video-thumbnailer +chmod --reference=/usr/lib/shotwell-video-thumbnailer.org /usr/lib/shotwell-video-thumbnailer + +echo '#! /bin/bash' >/usr/lib/shotwell-video-thumbnailer +echo '' >>/usr/lib/shotwell-video-thumbnailer +echo 'ffmpegthumbnailer -i "$1" -o - -c png' >>/usr/lib/shotwell-video-thumbnailer diff --git a/debian/shotwell.README.Debian b/debian/shotwell.README.Debian new file mode 100644 index 0000000..2d28b03 --- /dev/null +++ b/debian/shotwell.README.Debian @@ -0,0 +1,27 @@ +TROUBLESHOOTING +--------------- + +- video-thumbnailer + + On problems with the shotwell-video-thumbnailer you can + switch to the ffmpegthumnailer. Please run as root: + + 1. Backup /usr/lib/shotwell-video-thumbnailer: + * mv /usr/lib/shotwell-video-thumbnailer /usr/lib/shotwell-video-thumbnailer.org + + 2. Install ffmpegthumbnailer: + * apt-get install ffmpegthumbnailer + + 3. Create a new executable file: + * touch /usr/lib/shotwell-video-thumbnailer + * chmod --reference=/usr/lib/shotwell-video-thumbnailer.org /usr/lib/shotwell-video-thumbnailer + + 4. Write into the new file: + * echo "#! /bin/bash" >/usr/lib/shotwell-video-thumbnailer + * echo "ffmpegthumnailer -i \"$1\" -o -b -c png >>/usr/lib/shotwell-video-thumbnailer + + Or you can use the file replace_thumbnail.sh from the examples directory. + + Thank to Teo Romera + + \ No newline at end of file diff --git a/debian/shotwell.examples b/debian/shotwell.examples new file mode 100644 index 0000000..128a3c5 --- /dev/null +++ b/debian/shotwell.examples @@ -0,0 +1 @@ +debian/replace_thumbnailer.sh diff --git a/debian/shotwell.postrm b/debian/shotwell.postrm new file mode 100644 index 0000000..2dbce77 --- /dev/null +++ b/debian/shotwell.postrm @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +if [ "$1" = purge ]; then + + # + # remove backup files + # + if [ -e /usr/lib/shotwell-video-thumbnailer.org ] ; then + rm -f /usr/lib/shotwell-video-thumbnailer.org + fi +fi + +#DEBHELPER# -- cgit v1.2.3