pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/vobcopy import vobcopy-0.5.13, a tool to copy...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/05b811e5c841
branches:  trunk
changeset: 472314:05b811e5c841
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Thu Apr 08 14:17:57 2004 +0000

description:
import vobcopy-0.5.13, a tool to copy DVD .vob files to harddisk

diffstat:

 sysutils/vobcopy/DESCR            |   1 +
 sysutils/vobcopy/Makefile         |  20 ++++++++++
 sysutils/vobcopy/PLIST            |   3 +
 sysutils/vobcopy/distinfo         |   6 +++
 sysutils/vobcopy/patches/patch-aa |  72 +++++++++++++++++++++++++++++++++++++++
 sysutils/vobcopy/patches/patch-ab |  13 +++++++
 6 files changed, 115 insertions(+), 0 deletions(-)

diffs (139 lines):

diff -r 977b93ae80ec -r 05b811e5c841 sysutils/vobcopy/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/vobcopy/DESCR    Thu Apr 08 14:17:57 2004 +0000
@@ -0,0 +1,1 @@
+vobcopy copies DVD .vob files to harddisk.
diff -r 977b93ae80ec -r 05b811e5c841 sysutils/vobcopy/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/vobcopy/Makefile Thu Apr 08 14:17:57 2004 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/04/08 14:17:57 drochner Exp $
+#
+
+DISTNAME=      vobcopy-0.5.13
+CATEGORIES=    sysutils
+MASTER_SITES=  http://lpn.rnbhq.org/download/
+
+MAINTAINER=    packages%NetBSD.org@localhost
+HOMEPAGE=      http://lpn.rnbhq.org/projects/c/c.shtml
+COMMENT=       Copies DVD .vob files to harddisk
+
+ALL_TARGET=    vobcopy
+USE_BUILDLINK2=        yes
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/vobcopy ${PREFIX}/bin
+       ${INSTALL_DATA} ${WRKSRC}/vobcopy.1 ${PREFIX}/man/man1
+
+.include "../../multimedia/libdvdread/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 977b93ae80ec -r 05b811e5c841 sysutils/vobcopy/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/vobcopy/PLIST    Thu Apr 08 14:17:57 2004 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/04/08 14:17:57 drochner Exp $
+bin/vobcopy
+man/man1/vobcopy.1
diff -r 977b93ae80ec -r 05b811e5c841 sysutils/vobcopy/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/vobcopy/distinfo Thu Apr 08 14:17:57 2004 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/04/08 14:17:57 drochner Exp $
+
+SHA1 (vobcopy-0.5.13.tar.gz) = dc1f931ed636f8583ddf438c4e195a0f8acec363
+Size (vobcopy-0.5.13.tar.gz) = 48423 bytes
+SHA1 (patch-aa) = 22ad0630c7ea9687125374c15f3fbab1e5227933
+SHA1 (patch-ab) = 80ddf043d98773b4cc7c6af9aaa2cadc11a1b291
diff -r 977b93ae80ec -r 05b811e5c841 sysutils/vobcopy/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/vobcopy/patches/patch-aa Thu Apr 08 14:17:57 2004 +0000
@@ -0,0 +1,72 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/04/08 14:17:57 drochner Exp $
+
+--- dvd.c.orig 2004-02-26 02:14:15.000000000 +0100
++++ dvd.c      2004-02-26 12:36:40.000000000 +0100
+@@ -23,7 +23,7 @@
+ #include <unistd.h>
+ #include <ctype.h>
+ #include <sys/stat.h>
+-#if (defined(__unix__) || defined(unix)) && !defined(USG) || (defined(__APPLE__) && defined(__GNUC__))
++#if (defined(__unix__) || defined(unix)) && !defined(USG) || (defined(__APPLE__) && defined(__GNUC__)) || defined(__NetBSD__)
+ #include <sys/param.h>  
+ #include <sys/mount.h>
+ #endif
+@@ -56,9 +56,10 @@
+   int  filehandle = 0;
+   int  i = 0, last = 0;
+   int  bytes_read;
++  char help[2048];
+   
+   /* open the device */
+-  if ( !(filehandle = open(device, O_RDONLY)) )
++  if ( !(filehandle = open(device, O_RDONLY, 0)) )
+   {
+       /* open failed */
+       fprintf( stderr, "[Error] something wrong in dvd_name getting - please specify path as /cdrom or /dvd (mount point) or use -t\n");
+@@ -67,7 +68,7 @@
+   }
+   
+   /* seek to title of first track, which is at (track_no * 32768) + 40 */
+-  if ( 32808 != lseek( filehandle, 32808, SEEK_SET ) ) 
++  if ( 32768 != lseek( filehandle, 32768, SEEK_SET ) ) 
+   {
+       /* seek failed */
+       close( filehandle );
+@@ -77,13 +78,15 @@
+   }
+   
+   /* read title */
+-  if ( (bytes_read = read(filehandle, title, 32)) != 32) 
++  if ( (bytes_read = read(filehandle, help, 2048)) != 2048) 
+   {
+       close(filehandle);
+       fprintf( stderr, "[Error] something wrong in dvd_name getting - please specify path as /cdrom or /dvd (mount point) or use -t\n" );
+-      fprintf(stderr, "[Error] only read %d bytes instead of 32\n", bytes_read);
++      fprintf(stderr, "[Error] only read %d bytes instead of 2048\n", bytes_read);
+       return -1;
+   }
++
++  memcpy(title, help + 40, 32);
+   
+   /* make sure string is terminated */
+   title[32] = '\0';
+@@ -162,6 +165,9 @@
+        if( !strcmp( path, buf.f_mntonname ) )
+          {
+            mounted = TRUE;
++         strcpy(device, "/dev/r");
++         strcat(device, buf.f_mntfromname + 5);
++         return mounted;
+          }
+       }
+     else
+@@ -350,7 +356,8 @@
+             {
+               dvd_count++;
+               strcpy( path, mntbuf[i].f_mntonname );
+-              strcpy( device, mntbuf[i].f_mntfromname );
++            strcpy(device, "/dev/r");
++            strcat(device, mntbuf[i].f_mntfromname + 5);
+             }
+         }
+       if(dvd_count == 0)
diff -r 977b93ae80ec -r 05b811e5c841 sysutils/vobcopy/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/vobcopy/patches/patch-ab Thu Apr 08 14:17:57 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/04/08 14:17:57 drochner Exp $
+
+--- vobcopy.c.orig     2003-09-02 12:53:29.000000000 +0200
++++ vobcopy.c  2003-09-02 12:54:40.000000000 +0200
+@@ -62,7 +62,7 @@
+ #include <fcntl.h>
+ #include <unistd.h>
+ #include <dirent.h> /*for readdir*/
+-#if (defined(__unix__) || defined(unix)) && !defined(USG)  || (defined(__APPLE__) && defined(__GNUC__))
++#if (defined(__unix__) || defined(unix)) && !defined(USG)  || (defined(__APPLE__) && defined(__GNUC__)) || defined(__NetBSD__)
+ #include <sys/param.h>
+ #else
+ #include <sys/vfs.h>



Home | Main Index | Thread Index | Old Index