aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/vobcopy
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2006-12-11 00:26:06 +0800
committerlioux <lioux@FreeBSD.org>2006-12-11 00:26:06 +0800
commit67635abe63f459f7d282a7b68e5576794877e54f (patch)
tree835399f1ce273f3038ea603832db0a5776ce38f4 /sysutils/vobcopy
parenta6c382faa3e825dab1fe80e965f08f51d1cb02d2 (diff)
downloadfreebsd-ports-gnome-67635abe63f459f7d282a7b68e5576794877e54f.tar.gz
freebsd-ports-gnome-67635abe63f459f7d282a7b68e5576794877e54f.tar.zst
freebsd-ports-gnome-67635abe63f459f7d282a7b68e5576794877e54f.zip
Update to 1.0.1
Diffstat (limited to 'sysutils/vobcopy')
-rw-r--r--sysutils/vobcopy/Makefile5
-rw-r--r--sysutils/vobcopy/distinfo6
-rw-r--r--sysutils/vobcopy/files/patch-dvd.c27
-rw-r--r--sysutils/vobcopy/files/patch-vobcopy.c30
-rw-r--r--sysutils/vobcopy/files/patch-vobcopy.h19
5 files changed, 33 insertions, 54 deletions
diff --git a/sysutils/vobcopy/Makefile b/sysutils/vobcopy/Makefile
index 01eeef74bb3a..92e7d049a900 100644
--- a/sysutils/vobcopy/Makefile
+++ b/sysutils/vobcopy/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= vobcopy
-PORTVERSION= 0.5.16
-PORTREVISION= 1
+PORTVERSION= 1.0.1
CATEGORIES= sysutils
MASTER_SITES= http://lpn.rnbhq.org/download/
@@ -52,8 +51,10 @@ post-patch:
-e 's|FreeBSD_Version|FreeBSD_version|' \
${WRKSRC}/dvd.c
# no such flag under FreeBSD
+# fdatasync(2) -> fsync(2)
@${REINPLACE_CMD} -E \
-e 's|O_LARGEFILE|0|' \
+ -e 's|fdatasync|fsync|g' \
${WRKSRC}/vobcopy.c
post-configure:
diff --git a/sysutils/vobcopy/distinfo b/sysutils/vobcopy/distinfo
index 9f5240b0bb4e..783e7469fa40 100644
--- a/sysutils/vobcopy/distinfo
+++ b/sysutils/vobcopy/distinfo
@@ -1,3 +1,3 @@
-MD5 (vobcopy-0.5.16.tar.bz2) = b36267dd8bc5b4aabb1ac1217fc8183b
-SHA256 (vobcopy-0.5.16.tar.bz2) = 08aa16c6cde587c1fc83c6a1942b89e885c260476d370105203e10d24e9c376f
-SIZE (vobcopy-0.5.16.tar.bz2) = 39087
+MD5 (vobcopy-1.0.1.tar.bz2) = 0fae0c80dbe3a9dd3d06aba54275cf8d
+SHA256 (vobcopy-1.0.1.tar.bz2) = aa6955b67324e27a78d8cadf9cd597ac1bd406a949e3144422c6542eeb94428a
+SIZE (vobcopy-1.0.1.tar.bz2) = 44094
diff --git a/sysutils/vobcopy/files/patch-dvd.c b/sysutils/vobcopy/files/patch-dvd.c
index 94bbfc9f0081..55e4ab6fdffa 100644
--- a/sysutils/vobcopy/files/patch-dvd.c
+++ b/sysutils/vobcopy/files/patch-dvd.c
@@ -1,11 +1,10 @@
---- dvd.c.orig Wed Dec 7 21:31:56 2005
-+++ dvd.c Wed Feb 1 22:23:15 2006
-@@ -692,28 +692,6 @@
- /* fprintf(stderr,"debug: vob_size: %lli\n",buf.st_size); */
- }
+--- dvd.c.orig Tue Dec 5 00:06:52 2006
++++ dvd.c Tue Dec 5 00:09:54 2006
+@@ -637,21 +637,6 @@
+ return ( off_t ) vob_size;
}
-- strcpy( stat_path, path_to_vobs3 );
-- strcat( stat_path, "_1.vob" );
+
+- sprintf( stat_path, "%s_1.vob", path_to_vobs3 );
- if( ( tmp_streamin1 = fopen( stat_path, "r" ) ) != NULL ) /*check if this path is correct */
- {
- fclose ( tmp_streamin1 );
@@ -14,18 +13,12 @@
- {
- /* adjust path for next subvob */
- subvob++;
-- strcpy( stat_path, path_to_vobs3 );
-- strcat( stat_path, "_" );
-- sprintf( temp1, "%d", subvob );
-- strcat( stat_path, temp1 );
-- strcat( stat_path, ".vob" );
--
+- sprintf( stat_path, "%s_%d.vob", path_to_vobs3, subvob );
- vob_size += buf.st_size;
--/* fprintf(stderr,"debug: vob_size: %lli\n",vob_size); */
--/* fprintf(stderr,"debug: vob_size: %lli\n",buf.st_size); */
- }
+- return ( off_t ) vob_size;
- }
-
- return ( off_t ) vob_size; /* think that (off_t) is not really needed here?
+ /*none of the above seemed to have caught it, so this is the error return */
+ return ( off_t ) 0; /* think that (off_t) is not really needed here?
as it is defined as off_t and the function is
- also defined as off_t */
diff --git a/sysutils/vobcopy/files/patch-vobcopy.c b/sysutils/vobcopy/files/patch-vobcopy.c
index bf0fe9e0d2ca..21a73a77f26b 100644
--- a/sysutils/vobcopy/files/patch-vobcopy.c
+++ b/sysutils/vobcopy/files/patch-vobcopy.c
@@ -1,5 +1,5 @@
---- vobcopy.c.orig Wed Dec 7 21:31:56 2005
-+++ vobcopy.c Sun Jan 8 10:47:02 2006
+--- vobcopy.c.orig Mon Dec 4 23:50:04 2006
++++ vobcopy.c Mon Dec 4 23:52:23 2006
@@ -146,6 +146,8 @@
#endif
@@ -9,29 +9,3 @@
/*
* the getopt part (getting the options from command line)
-@@ -1695,8 +1697,12 @@
- fprintf( stderr, "Used statvfs\n" );
- #endif
- temp1 = buf1.f_bavail;
-+#ifdef USE_STATFS
-+ temp2 = buf1.f_bsize;
-+#else
- /* On Solaris at least, f_bsize is not the actual block size -- lb */
- temp2 = buf1.f_frsize;
-+#endif
- sum = ( ( off_t )temp1 * ( off_t )temp2 );
- if( verbosity_level >= 1 )
- {
-@@ -1733,8 +1739,12 @@
- fprintf( stderr, "Used statvfs\n" );
- #endif
- temp1 = buf2.f_blocks;
-+#ifdef USE_STATFS
-+ temp2 = buf2.f_bsize;
-+#else
- /* On Solaris at least, f_bsize is not the actual block size -- lb */
- temp2 = buf2.f_frsize;
-+#endif
- sum = ( ( off_t )temp1 * ( off_t )temp2 );
- if( verbosity_level >= 1 )
- {
diff --git a/sysutils/vobcopy/files/patch-vobcopy.h b/sysutils/vobcopy/files/patch-vobcopy.h
index ed9511cd82b5..b0d24cc2a166 100644
--- a/sysutils/vobcopy/files/patch-vobcopy.h
+++ b/sysutils/vobcopy/files/patch-vobcopy.h
@@ -1,5 +1,5 @@
---- vobcopy.h.orig Wed Dec 7 21:32:10 2005
-+++ vobcopy.h Sun Jan 8 15:26:43 2006
+--- vobcopy.h.orig Mon Nov 13 19:57:24 2006
++++ vobcopy.h Mon Dec 4 23:57:12 2006
@@ -19,7 +19,6 @@
#if ( defined( __unix__ ) || defined( unix )) && !defined( USG )
@@ -8,7 +8,7 @@
#endif
#if defined( __GNUC__ ) && \
-@@ -32,6 +31,8 @@
+@@ -31,6 +30,8 @@
/* by some bugreport:*/
#if !( defined( BSD ) && ( BSD >= 199306 ) ) && !defined( sun )
#include <stdint.h>
@@ -17,7 +17,7 @@
#endif
/*for/from play_title.c*/
-@@ -67,24 +68,23 @@
+@@ -66,24 +67,23 @@
/* ////////// *BSD ////////// */
#if ( defined( BSD ) && ( BSD >= 199306 ) )
@@ -50,3 +50,14 @@
#include <sys/mount.h>
#define USE_STATFS_FOR_DEV
+@@ -170,7 +170,10 @@
+
+ #include "dvd.h"
+
++/* BSD already have off_t definition */
++#if !(defined(BSD) && (BSD >= 199306))
+ #define off_t __off64_t
++#endif
+
+ void usage(char *);
+ int add_end_slash( char * );