From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jan 26 20:50:24 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9686E16A4CF for ; Wed, 26 Jan 2005 20:50:24 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5A6443D1F for ; Wed, 26 Jan 2005 20:50:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0QKoNQS021396 for ; Wed, 26 Jan 2005 20:50:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0QKoNSY021395; Wed, 26 Jan 2005 20:50:23 GMT (envelope-from gnats) Resent-Date: Wed, 26 Jan 2005 20:50:23 GMT Resent-Message-Id: <200501262050.j0QKoNSY021395@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, Ulrich Spoerlein Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E38516A4CE for ; Wed, 26 Jan 2005 20:49:17 +0000 (GMT) Received: from wrzx35.rz.uni-wuerzburg.de (wrzx35.rz.uni-wuerzburg.de [132.187.3.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3E0543D1F for ; Wed, 26 Jan 2005 20:49:15 +0000 (GMT) (envelope-from q@uni.de) Received: from wrzx34.rz.uni-wuerzburg.de (wrzx34.rz.uni-wuerzburg.de [132.187.3.34]) by wrzx35.rz.uni-wuerzburg.de (Postfix) with ESMTP id BD25DE0E81 for ; Wed, 26 Jan 2005 21:49:14 +0100 (CET) Received: from virusscan (localhost [127.0.0.1]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id 9BE6AB1491 for ; Wed, 26 Jan 2005 21:49:14 +0100 (CET) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id 70AE2B143B for ; Wed, 26 Jan 2005 21:49:14 +0100 (CET) Received: from coyote.q.local (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 1C048D7F9D for ; Wed, 26 Jan 2005 21:49:14 +0100 (CET) Received: from roadrunner.q.local (roadrunner.q.local [192.168.0.148]) by coyote.q.local (8.13.1/8.13.1) with ESMTP id j0QKnDDb091324 for ; Wed, 26 Jan 2005 21:49:13 +0100 (CET) (envelope-from q@roadrunner.q.local) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.1/8.13.1) with ESMTP id j0QKnD2x032301 for ; Wed, 26 Jan 2005 21:49:13 +0100 (CET) (envelope-from q@roadrunner.q.local) Received: (from q@localhost) by roadrunner.q.local (8.13.1/8.13.1/Submit) id j0QKnDTl032300; Wed, 26 Jan 2005 21:49:13 +0100 (CET) (envelope-from q) Message-Id: <200501262049.j0QKnDTl032300@roadrunner.q.local> Date: Wed, 26 Jan 2005 21:49:13 +0100 (CET) From: Ulrich Spoerlein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/76728: [NEW PORT] multimedia/lxdvdrip: Command Line Tool to make a copy from a Video DVD X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 20:50:24 -0000 >Number: 76728 >Category: ports >Synopsis: [NEW PORT] multimedia/lxdvdrip: Command Line Tool to make a copy from a Video DVD >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jan 26 20:50:23 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Ulrich Spoerlein >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD roadrunner 5.3-STABLE FreeBSD 5.3-STABLE #9: Thu Dec 16 18:33:14 CET 2004 >Description: dvdrip is a Command Line Tool to make a copy from a Video DVD for private Use. It automates the process of Ripping, Authoring, Preview and Burning of a DVD. Features: - Automatic Selection of the longest Title - Automatic Calculation of Factor to Requant - Automatic Read of Volume-ID - Automatic Chapter Separation from Original - Ripping of Audiotracks in every Language - Selection of dts-Audiotracks as Default - Selection of two Subpicture-Tracks possible - Ripping and Re-Authoring - Preview of VOB-Files with mplayer or xine - Burning with growisofs or cdrecord-prodvd - All Program Parameters could be stored in a Config File as Program Defaults - All Paramaters can be overwritten on the fly at the Command Line - Program with english, french or german Messages - Rip of Subpicture-Tracks - Copy DVD < 4.7 GB with Menus; > 4.7 GB with vamps, without Menus. - Partial Copy: Copy selected Titles from a DVD (dvdunauthor/vamps) - High Quality Backup (1 DVD9 => 2 DVD5) - DVD with Menus for Title-, Audio- and Chapter Selection (dvdwizard) WWW: http://developer.berlios.de/projects/lxdvdrip/ Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- lxdvdrip-1.41.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # lxdvdrip # lxdvdrip/Makefile # lxdvdrip/distinfo # lxdvdrip/pkg-descr # lxdvdrip/files # lxdvdrip/files/patch-lxdvdrip.c # lxdvdrip/pkg-message # lxdvdrip/pkg-plist # echo c - lxdvdrip mkdir -p lxdvdrip > /dev/null 2>&1 echo x - lxdvdrip/Makefile sed 's/^X//' >lxdvdrip/Makefile << 'END-of-lxdvdrip/Makefile' X# New ports collection makefile for: multimedia/lxdvdrip X# Date created: 26.01.2005 X# Whom: Ulrich Spoerlein X# X# $FreeBSD$ X# X XPORTNAME= lxdvdrip XPORTVERSION= 1.41 XCATEGORIES= multimedia XMASTER_SITES= http://download.berlios.de/lxdvdrip/ XDISTNAME= ${PORTNAME}-${PORTVERSION}-3 XEXTRACT_SUFX= .tgz X XMAINTAINER= q@uni.de XCOMMENT= Command Line Tool to make a copy from a Video DVD X XLIB_DEPENDS= dvdread.3:${PORTSDIR}/multimedia/libdvdread X XWRKSRC= ${WRKDIR}/${PORTNAME} X Xdo-build: X @(cd ${WRKSRC}; ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \ X -ldvdread -lm -o lxdvdrip lxdvdrip.c) X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/lxdvdrip ${LOCALBASE}/bin X @${INSTALL_DATA} ${WRKSRC}/doc-pak/lxdvdrip.conf.* ${LOCALBASE}/etc X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X @cd ${WRKSRC}/doc-pak && ${CP} Changelog* README.* TODO freebsd.doc ${DOCSDIR} X.endif X Xpost-install: X @${SED} 's,%%LOCALBASE%%,${LOCALBASE},' pkg-message X X.include END-of-lxdvdrip/Makefile echo x - lxdvdrip/distinfo sed 's/^X//' >lxdvdrip/distinfo << 'END-of-lxdvdrip/distinfo' XMD5 (lxdvdrip-1.41-3.tgz) = bd325a8a4a5519a2146a2ca9ecfea3b3 XSIZE (lxdvdrip-1.41-3.tgz) = 456578 END-of-lxdvdrip/distinfo echo x - lxdvdrip/pkg-descr sed 's/^X//' >lxdvdrip/pkg-descr << 'END-of-lxdvdrip/pkg-descr' Xdvdrip is a Command Line Tool to make a copy from a Video DVD for private Use. XIt automates the process of Ripping, Authoring, Preview and Burning of a DVD. X XFeatures: X- Automatic Selection of the longest Title X- Automatic Calculation of Factor to Requant X- Automatic Read of Volume-ID X- Automatic Chapter Separation from Original X- Ripping of Audiotracks in every Language X- Selection of dts-Audiotracks as Default X- Selection of two Subpicture-Tracks possible X- Ripping and Re-Authoring X- Preview of VOB-Files with mplayer or xine X- Burning with growisofs or cdrecord-prodvd X- All Program Parameters could be stored in a Config File as Program Defaults X- All Paramaters can be overwritten on the fly at the Command Line X- Program with english, french or german Messages X- Rip of Subpicture-Tracks X- Copy DVD < 4.7 GB with Menus; > 4.7 GB with vamps, without Menus. X- Partial Copy: Copy selected Titles from a DVD (dvdunauthor/vamps) X- High Quality Backup (1 DVD9 => 2 DVD5) X- DVD with Menus for Title-, Audio- and Chapter Selection (dvdwizard) X XWWW: http://developer.berlios.de/projects/lxdvdrip/ END-of-lxdvdrip/pkg-descr echo c - lxdvdrip/files mkdir -p lxdvdrip/files > /dev/null 2>&1 echo x - lxdvdrip/files/patch-lxdvdrip.c sed 's/^X//' >lxdvdrip/files/patch-lxdvdrip.c << 'END-of-lxdvdrip/files/patch-lxdvdrip.c' X--- lxdvdrip.c.orig Wed Jan 12 23:31:49 2005 X+++ lxdvdrip.c Wed Jan 26 21:31:51 2005 X@@ -229,6 +229,11 @@ X #include X #include X #include X+#include X+#include X+#ifndef __FreeBSD__ X+#include X+#endif X #include X #include X #include X@@ -621,16 +626,19 @@ X // Gibt die Groesse einer Datei zurueck, ohne die stat Beschraenkung auf < 2 GB X long long filesize64 (char * szFileName) X { X+#ifdef __FreeBSD__ X+ struct stat buf; X+ X+ if (stat(szFileName, &buf) < 0) X+ return 0LL; X+ X+ return buf.st_size; X+#else X FILE * fp; X long long lSize; X char szBuffer[128]; X char szTempl[32] = "/tmp/groesse.lxdvdrip"; X-// FreeBSD hat fopen64 als Standard X-#ifdef _FREEBSD X- fp = (FILE*)fopen (szFileName, "rb"); X-#else X fp = (FILE*)fopen64 (szFileName, "rb"); X-#endif X if (!fp) X { X return (long long)0; X@@ -644,39 +652,28 @@ X system ("rm /tmp/groesse.lxdvdrip"); X lSize = atoll (szBuffer); X return lSize; X+#endif X } X X // Berechnet freien Festplattenplatz X long long calculate_discfree (char * szPfad, long lSprache) X { X- char szTempl[32] = "/tmp/lxdf.lxdvdrip"; X- char szBefehl[1024]; X+ struct statfs buf; X long long lGroesse=0; X- sprintf (szBefehl, "stat -f %s -c ", szPfad); X- strcat (szBefehl, "'%a %s' > "); X- strcat (szBefehl, szTempl); X- if (system (szBefehl) == 0) X+ X+ if (statfs(szPfad, &buf) < 0) X+ return 0; X+ X+ lGroesse = buf.f_bavail*buf.f_bsize; X+ X+ switch (lSprache) X { X- FILE * fTmp; X- long long lFrei; X- long long lBlockGroesse; X- fTmp = fopen(szTempl,"r"); X- if (fTmp) X- { X- fscanf (fTmp, "%lld %lld", &lFrei, &lBlockGroesse); X- fclose (fTmp); X- lGroesse = lFrei * lBlockGroesse; X- } X- system ("rm /tmp/lxdf.lxdvdrip"); X- switch (lSprache) X- { X- case 0: printf ("Frei in %s: %lld Bytes\n", szPfad, lGroesse); X- break; X- case 1: printf ("Free in %s: %lld Bytes\n", szPfad, lGroesse); X- break; X- case 2: printf ("Espace libre sur %s: %lld octets\n", szPfad, lGroesse); X- break; X- } X+ case 0: printf ("Frei in %s: %lld Bytes\n", szPfad, lGroesse); X+ break; X+ case 1: printf ("Free in %s: %lld Bytes\n", szPfad, lGroesse); X+ break; X+ case 2: printf ("Espace libre sur %s: %lld octets\n", szPfad, lGroesse); X+ break; X } X return lGroesse; X } END-of-lxdvdrip/files/patch-lxdvdrip.c echo x - lxdvdrip/pkg-message sed 's/^X//' >lxdvdrip/pkg-message << 'END-of-lxdvdrip/pkg-message' XTo use this program, copy one of X%%LOCALBASE%%/etc/lxdvdrip.conf.{DE,EN,FR} to X$HOME/.lxdvdrip.conf END-of-lxdvdrip/pkg-message echo x - lxdvdrip/pkg-plist sed 's/^X//' >lxdvdrip/pkg-plist << 'END-of-lxdvdrip/pkg-plist' Xbin/lxdvdrip Xetc/lxdvdrip.conf.DE Xetc/lxdvdrip.conf.EN Xetc/lxdvdrip.conf.FR X%%PORTDOCS%%%%DOCSDIR%%/Changelog.de X%%PORTDOCS%%%%DOCSDIR%%/Changelog.en X%%PORTDOCS%%%%DOCSDIR%%/Changelog.fr X%%PORTDOCS%%%%DOCSDIR%%/README.de X%%PORTDOCS%%%%DOCSDIR%%/README.dvdwizard.DE X%%PORTDOCS%%%%DOCSDIR%%/README.dvdwizard.EN X%%PORTDOCS%%%%DOCSDIR%%/README.dvdwizard.FR X%%PORTDOCS%%%%DOCSDIR%%/README.en X%%PORTDOCS%%%%DOCSDIR%%/README.fr X%%PORTDOCS%%%%DOCSDIR%%/TODO X%%PORTDOCS%%%%DOCSDIR%%/freebsd.doc X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-lxdvdrip/pkg-plist exit --- lxdvdrip-1.41.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: