pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/vobcopy Updated vobcopy to 0.5.14



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b4a2ee2bd83e
branches:  trunk
changeset: 504858:b4a2ee2bd83e
user:      martti <martti%pkgsrc.org@localhost>
date:      Tue Dec 27 10:19:16 2005 +0000

description:
Updated vobcopy to 0.5.14

0.5.14-rc1:
        lots of bug fixes for *bds, solaris and -tada- OSX!
        Quite some stuff should now work better on freebsd, openbsd and
        solaris since Takeshi Nakamura provided some patches. Also
        incorporated the fix the netbsd folks did when they incorporated
        0.5.13 into their ports collection. AND it seems that OSX now
        works (besides fink, which provided vobcopy for quite some time
        already). What is needed is dlcompat IIRC. Thanks to all for their help!

0.5.14-test1:
        changed dvd name getting function to what Jim Hatfield found works
        for freebsd
        Davide has a dvd which has names like this:
        VTS_01_2.VOB;?
        A new routine tries to remove the ;?.
        On OSX, getopt.h doesn't get found. /usr/include/getopt.h should do it

diffstat:

 sysutils/vobcopy/Makefile         |    6 +-
 sysutils/vobcopy/distinfo         |   10 +-
 sysutils/vobcopy/patches/patch-aa |  123 --------------------------------------
 sysutils/vobcopy/patches/patch-ab |   89 ---------------------------
 4 files changed, 7 insertions(+), 221 deletions(-)

diffs (250 lines):

diff -r e8f1b42095a6 -r b4a2ee2bd83e sysutils/vobcopy/Makefile
--- a/sysutils/vobcopy/Makefile Tue Dec 27 10:17:29 2005 +0000
+++ b/sysutils/vobcopy/Makefile Tue Dec 27 10:19:16 2005 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2005/04/11 21:47:30 tv Exp $
+# $NetBSD: Makefile,v 1.7 2005/12/27 10:19:16 martti Exp $
 #
 
-DISTNAME=      vobcopy-0.5.13
-PKGREVISION=   1
+DISTNAME=      vobcopy-0.5.14
+#PKGREVISION=  1
 CATEGORIES=    sysutils
 MASTER_SITES=  http://lpn.rnbhq.org/download/
 
diff -r e8f1b42095a6 -r b4a2ee2bd83e sysutils/vobcopy/distinfo
--- a/sysutils/vobcopy/distinfo Tue Dec 27 10:17:29 2005 +0000
+++ b/sysutils/vobcopy/distinfo Tue Dec 27 10:19:16 2005 +0000
@@ -1,7 +1,5 @@
-$NetBSD: distinfo,v 1.4 2005/09/06 08:10:59 abs Exp $
+$NetBSD: distinfo,v 1.5 2005/12/27 10:19:16 martti Exp $
 
-SHA1 (vobcopy-0.5.13.tar.gz) = dc1f931ed636f8583ddf438c4e195a0f8acec363
-RMD160 (vobcopy-0.5.13.tar.gz) = 5512f0f16b02775b06971d04058fd98e69aa422e
-Size (vobcopy-0.5.13.tar.gz) = 48423 bytes
-SHA1 (patch-aa) = 2ba3b61645cd499175d0e2d9d1063b4b621caadd
-SHA1 (patch-ab) = a2c0c73863a235b9d65b8fa96017b2b2eff87ab8
+SHA1 (vobcopy-0.5.14.tar.gz) = d4d7c6c5ed4380e4a57e82f561892ad7fba9593b
+RMD160 (vobcopy-0.5.14.tar.gz) = 47887e9897b1217e3841fd239cfaa2f2973cb9f5
+Size (vobcopy-0.5.14.tar.gz) = 44420 bytes
diff -r e8f1b42095a6 -r b4a2ee2bd83e sysutils/vobcopy/patches/patch-aa
--- a/sysutils/vobcopy/patches/patch-aa Tue Dec 27 10:17:29 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,123 +0,0 @@
-$NetBSD: patch-aa,v 1.3 2005/09/06 08:11:00 abs Exp $
-
---- dvd.c.orig 2004-03-26 19:53:10.000000000 +0100
-+++ dvd.c      2004-04-22 16:27:45.000000000 +0200
-@@ -23,9 +23,18 @@
- #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>  
-+#define USE_GETMNTINFO
-+#if !defined(__NetBSD__) || (__NetBSD_Version__ < 299000900)
- #include <sys/mount.h>
-+#define USE_STATFS_FOR_DEV
-+#define GETMNTINFO_USES_STATFS
-+#else
-+#include <sys/statvfs.h>
-+#define USE_STATVFS_FOR_DEV
-+#define GETMNTINFO_USES_STATVFS
-+#endif
- #endif
- #include "vobcopy.h"
- #if (defined(__sun__))
-@@ -61,9 +70,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");
-@@ -72,7 +82,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 );
-@@ -82,13 +92,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';
-@@ -138,9 +150,12 @@
-   char  *k;
-   bool  mounted = FALSE;
-   int mntcheck;
--#if ( defined( BSD ) && ( BSD >= 199306 ) ) || ( defined( __APPLE__ ) && defined( __GNUC__ ) )
-+#ifdef USE_STATFS_FOR_DEV
-   struct statfs buf;
- #endif
-+#ifdef USE_STATVFS_FOR_DEV
-+  struct statvfs buf;
-+#endif
- 
- 
-   /* the string should have no trailing / */
-@@ -166,12 +181,19 @@
-     /*
-      *look through /etc/mtab to see if it's actually mounted
-      */
--#if ( defined( BSD ) && ( BSD >= 199306 ) )  || ( defined( __APPLE__ ) && defined( __GNUC__ ) )
-+#if defined(USE_STATFS_FOR_DEV) || defined(USE_STATVFS_FOR_DEV)
-+#ifdef USE_STATFS_FOR_DEV
-     if( !statfs( path, &buf ) )
-+#else
-+    if( !statvfs( path, &buf ) )
-+#endif
-       {
-        if( !strcmp( path, buf.f_mntonname ) )
-          {
-            mounted = TRUE;
-+         strcpy(device, "/dev/r");
-+         strcat(device, buf.f_mntfromname + 5);
-+         return mounted;
-          }
-       }
-     else
-@@ -366,9 +388,13 @@
- /* returns <0 if error                            */
- int get_device_oyo( char *path, char *device )
- { /*oyo*/
--#if (defined(BSD) && (BSD >= 199306)) || (defined(__APPLE__) && defined(__GNUC__))
-+#ifdef USE_GETMNTINFO
-   int i, n, dvd_count = 0;
-+#ifdef GETMNTINFO_USES_STATFS
-   struct statfs *mntbuf;
-+#else
-+  struct statvfs *mntbuf;
-+#endif
- 
-   if( ( n = getmntinfo( &mntbuf, MNT_WAIT ) ) > 0 )
-     {
-@@ -378,7 +404,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 e8f1b42095a6 -r b4a2ee2bd83e sysutils/vobcopy/patches/patch-ab
--- a/sysutils/vobcopy/patches/patch-ab Tue Dec 27 10:17:29 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,89 +0,0 @@
-$NetBSD: patch-ab,v 1.3 2005/09/06 08:11:00 abs Exp $
-
---- vobcopy.c.orig     2004-03-26 19:53:10.000000000 +0100
-+++ vobcopy.c  2004-04-22 15:54:46.000000000 +0200
-@@ -63,20 +63,22 @@
- #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>
- #endif
- #include <dvdread/dvd_reader.h>
- /* for solaris, but is also present in linux */
--#if (defined(BSD) && (BSD >= 199306)) ||(defined(__APPLE__) && defined(__GNUC__))
-+#if (defined(BSD) && (BSD >= 199306) && !defined(__NetBSD__)) ||(defined(__APPLE__) && defined(__GNUC__)) || (defined(__NetBSD__) && (__NetBSD_Version__ < 299000900))
- /* I don't know if *BSD have getopt-long... please tell me! */
- //#define HAVE_GETOPT_LONG
- #include <sys/mount.h>
-+#define USE_STATFS
- #else
- #if (defined(__linux__))
- #include <sys/statfs.h> 
-+#define USE_STATFS
- #define HAVE_GETOPT_LONG
- #else
- #include <sys/statvfs.h> 
-@@ -143,14 +145,6 @@
-   bool              quiet_flag = FALSE;
-   struct stat       buf;
- 
--  /**
--   * This case here has to be examined for every system vobcopy shall run under
--   */
--#if defined( __linux__ ) || ( defined( BSD ) && ( BSD >= 199306 )) || (defined (__APPLE__) && defined(__GNUC__))
--  struct statfs     buf1;
--#elif !defined(__sun__)
--  struct statvfs    buf1;
--#endif
-   dvd_reader_t      *dvd = NULL;
-   dvd_file_t        *dvd_file;
-   extern char       *optarg;
-@@ -354,7 +348,7 @@
- 
- #if defined( __USE_FILE_OFFSET64 ) || ( defined( BSD ) && ( BSD >= 199306 ) ) || (defined (__APPLE__) && defined(__GNUC__))
-         case'l': /*large file output*/
--          max_filesize_in_blocks = 4500000000000000; 
-+          max_filesize_in_blocks = 4500000000000000LL; 
-         /* 2^63 / 2048 (not exactly) */
-         large_file_flag = TRUE;
-         break;
-@@ -1702,7 +1696,7 @@
- off_t freespace_getter( char *path, int verbosity_level )
- {
- 
--#if defined( __linux__ ) || ( defined( BSD ) && ( BSD >= 199306 ) ) || (defined (__APPLE__) && defined(__GNUC__))
-+#ifdef USE_STATFS
-   struct statfs     buf1;
- #else 
-   struct statvfs    buf1; 
-@@ -1710,7 +1704,7 @@
- /*   ssize_t temp1, temp2; */
-   long temp1, temp2;
-   off_t sum;
--#if defined( __linux__ ) || ( defined( BSD ) && ( BSD >= 199306 ) ) || (defined (__APPLE__) && defined(__GNUC__))
-+#ifdef USE_STATFS
-   statfs( path, &buf1 );
-   if( verbosity_level >= 1 )
-     fprintf( stderr, "Used the linux statfs\n" );
-@@ -1739,7 +1733,7 @@
- off_t usedspace_getter( char *path, int verbosity_level )
- {
- 
--#if defined( __linux__ ) || ( defined( BSD ) && ( BSD >= 199306 ) ) || (defined (__APPLE__) && defined(__GNUC__))
-+#ifdef USE_STATFS
-   struct statfs     buf2;
- #else 
-   struct statvfs    buf2; 
-@@ -1747,7 +1741,7 @@
- /*   ssize_t temp1, temp2; */
-   long temp1, temp2;
-   off_t sum;
--#if defined( __linux__ ) || ( defined( BSD ) && ( BSD >= 199306 ) ) || (defined (__APPLE__) && defined(__GNUC__))
-+#ifdef USE_STATFS
-   statfs( path, &buf2 );
-   if( verbosity_level >= 1 )
-     fprintf( stderr, "Used the linux statfs\n" );



Home | Main Index | Thread Index | Old Index