From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 7 19:20:05 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2311610656D6 for ; Tue, 7 Sep 2010 19:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DA57F8FC26 for ; Tue, 7 Sep 2010 19:20:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o87JK4oA045899 for ; Tue, 7 Sep 2010 19:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o87JK41i045896; Tue, 7 Sep 2010 19:20:04 GMT (envelope-from gnats) Resent-Date: Tue, 7 Sep 2010 19:20:04 GMT Resent-Message-Id: <201009071920.o87JK41i045896@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kuan-Chung Chiu Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD29310656BE for ; Tue, 7 Sep 2010 19:17:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 819A18FC15 for ; Tue, 7 Sep 2010 19:17:56 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o87JHuwu018260 for ; Tue, 7 Sep 2010 19:17:56 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o87JHuHH018239; Tue, 7 Sep 2010 19:17:56 GMT (envelope-from nobody) Message-Id: <201009071917.o87JHuHH018239@www.freebsd.org> Date: Tue, 7 Sep 2010 19:17:56 GMT From: Kuan-Chung Chiu To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/150361: [patch] provide script to bind with nautilus for multimedia/ffmpegthumbnailer X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2010 19:20:05 -0000 >Number: 150361 >Category: ports >Synopsis: [patch] provide script to bind with nautilus for multimedia/ffmpegthumbnailer >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 07 19:20:04 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Kuan-Chung Chiu >Release: 9.0-CURRENT >Organization: N/A >Environment: FreeBSD Elizabeth.twbbs.org 9.0-CURRENT FreeBSD 9.0-CURRENT #8 r212185: Sun Sep 5 04:42:26 CST 2010 root@elizabeth.twbbs.org:/usr/obj/usr/src/sys/ELIZABETH amd64 >Description: Provide a script that user can easily bind ffmpegthumbnailer with nautilus >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN ffmpegthumbnailer.orig/Makefile ffmpegthumbnailer/Makefile --- ffmpegthumbnailer.orig/Makefile 2010-09-08 02:56:40.000000000 +0800 +++ ffmpegthumbnailer/Makefile 2010-09-08 03:03:53.000000000 +0800 @@ -29,4 +29,7 @@ MAN1= ffmpegthumbnailer.1 +post-install: + @${CAT} ${PKGMESSAGE} + .include diff -ruN ffmpegthumbnailer.orig/files/bind-nautilus.sh ffmpegthumbnailer/files/bind-nautilus.sh --- ffmpegthumbnailer.orig/files/bind-nautilus.sh 1970-01-01 08:00:00.000000000 +0800 +++ ffmpegthumbnailer/files/bind-nautilus.sh 2010-09-08 03:13:45.000000000 +0800 @@ -0,0 +1,14 @@ +#!/bin/sh + +type="application@x-extension-webm video/3gpp video/3gpp2 video@avi \ +video@flv video@mkv video@mp4 video@mpeg video@ogg video@quicktime video@webm \ +video@x-avi video@x-flv video@x-m4v video@x-matroska video@x-mkv video@x-mp4 \ +video@x-mpeg video@x-ms-asf video@x-ms-wmv video@x-ms-wvx video@x-msvideo \ +video@x-msvideo@avi video@x-theora@ogg video@x-theora@ogv video@x-webm" + +cmd="/usr/bin/ffmpegthumbnailer -s %s -i %i -o %o -f" + +for i in $type; do +gconftool-2 -s "/desktop/gnome/thumbnailers/$i/command" -t string "$cmd" +gconftool-2 -s "/desktop/gnome/thumbnailers/$i/enable" -t boolean "true" +done diff -ruN ffmpegthumbnailer.orig/pkg-message ffmpegthumbnailer/pkg-message --- ffmpegthumbnailer.orig/pkg-message 1970-01-01 08:00:00.000000000 +0800 +++ ffmpegthumbnailer/pkg-message 2010-09-08 03:05:56.000000000 +0800 @@ -0,0 +1,3 @@ +For Gnome user: + If you wish to bind this with nautilus, see files/bind-nautilus.sh + >Release-Note: >Audit-Trail: >Unformatted: