Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

1
sysutils/vobcopy/DESCR Normal file
View File

@@ -0,0 +1 @@
vobcopy copies DVD .vob files to harddisk.

23
sysutils/vobcopy/Makefile Normal file
View File

@@ -0,0 +1,23 @@
# $NetBSD: Makefile,v 1.14 2012/10/23 19:51:29 asau Exp $
#
DISTNAME= vobcopy-1.2.0
CATEGORIES= sysutils
MASTER_SITES= http://lpn.rnbhq.org/download/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://lpn.rnbhq.org/projects/c/c.shtml
COMMENT= Copies DVD .vob files to harddisk
PKG_INSTALLATION_TYPES= overwrite pkgviews
BUILD_TARGET= vobcopy
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vobcopy ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/vobcopy.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../multimedia/libdvdread/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

3
sysutils/vobcopy/PLIST Normal file
View File

@@ -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

View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.12 2011/05/15 09:59:18 hans Exp $
SHA1 (vobcopy-1.2.0.tar.gz) = f48e84b225e79a5ad2e388230d8f6e2c5d754bff
RMD160 (vobcopy-1.2.0.tar.gz) = 6ce6f4b0f6bc136a20b689d03e672886e49b41c2
Size (vobcopy-1.2.0.tar.gz) = 68214 bytes
SHA1 (patch-aa) = 2417722599cd22c63190cc364a37ae9066d8d1e3
SHA1 (patch-ab) = 8babec083f656b3954d7bd1272a3b256c3aeb219
SHA1 (patch-ac) = 0a8e6ce70ab3b3556e9369579a59ebabd50d9a26

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-aa,v 1.8 2010/09/16 12:02:16 wiz Exp $
--- vobcopy.c.orig 2009-06-08 20:15:34.000000000 +0000
+++ vobcopy.c
@@ -52,7 +52,6 @@
#include "vobcopy.h"
-extern int errno;
char name[300];
bool overwrite_flag = FALSE;
bool overwrite_all_flag = FALSE;
@@ -2308,7 +2307,7 @@ char *safestrncpy(char *dest, const char
return strncpy(dest, src, n-1);
}
-#if defined(__APPLE__) && defined(__GNUC__) || defined(OpenBSD)
+#if defined(__APPLE__) && defined(__GNUC__) || defined(OpenBSD) || defined(__DragonFly__)
int fdatasync( int value )
{
return 0;

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-ab,v 1.7 2011/05/15 09:59:18 hans Exp $
--- dvd.c.orig 2009-06-08 22:15:34.000000000 +0200
+++ dvd.c 2011-05-15 12:46:00.612223980 +0200
@@ -23,7 +23,7 @@
*/
int get_dvd_name(const char *device, char *title)
{
-
+ int i = 0;
#if defined( __sun )
/* title is actually in the device name */
char *new_title;
@@ -31,7 +31,7 @@ int get_dvd_name(const char *device, cha
strncpy( title, new_title, sizeof(title)-1 );
#else
int filehandle = 0;
- int i = 0, last = 0;
+ int last = 0;
int bytes_read;
char tmp_buf[2048];
@@ -173,7 +173,7 @@ int get_device( char *path, char *device
if( !strcmp( path, buf.f_mntonname ) )
{
mounted = TRUE;
-#if defined(__FreeBSD__) && (__FreeBSD_Version > 500000)
+#if defined(__DragonFly__) || (defined(__FreeBSD__) && (__FreeBSD_Version > 500000))
strcpy(device, buf.f_mntfromname);
#else
strcpy(device, "/dev/r");

View File

@@ -0,0 +1,104 @@
$NetBSD: patch-ac,v 1.4 2010/09/16 12:02:16 wiz Exp $
--- vobcopy.h.orig 2009-06-08 20:15:39.000000000 +0000
+++ vobcopy.h
@@ -54,7 +54,11 @@
#include <sys/mnttab.h>
#include <sys/statvfs.h>
+#ifdef FALSE
+typedef int bool;
+#else
typedef enum { FALSE=0, TRUE=1 } bool;
+#endif
# if ( _FILE_OFFSET_BITS == 64 )
#define HAS_LARGEFILE 1
@@ -67,7 +71,6 @@ typedef enum { FALSE=0, TRUE=1 } bool;
/*#define off_t __off64_t THIS HERE BREAKS OSX 10.5 */
/* ////////// *BSD ////////// */
-#if ( defined( BSD ) && ( BSD >= 199306 ) )
#if !defined( __NetBSD__ ) || \
( defined( __NetBSD__) && ( __NetBSD_Version__ < 200040000 ) )
@@ -100,20 +103,23 @@ typedef enum { FALSE=0, TRUE=1 } bool;
#define GETMNTINFO_USES_STATVFS
# endif
-#endif
#if defined(__FreeBSD__)
#define USE_STATFS_FOR_DEV
#include <sys/statvfs.h>
-#else
+#elif !defined(__DragonFly__) && !defined(__NetBSD__)
#include <sys/vfs.h>
#endif
-# if !defined(OpenBSD)
+# if !defined(OpenBSD) && defined(O_LARGEFILE)
#define HAS_LARGEFILE 1
#endif
+#ifdef FALSE
+typedef int bool;
+#else
typedef enum { FALSE=0, TRUE=1 } bool;
+#endif
#else /* *BSD */
@@ -134,8 +140,10 @@ typedef enum { FALSE=0, TRUE=1 } bool;
#define GETMNTINFO_USES_STATFS 1
#define USE_GETMNTINFO 1
+#ifndef FALSE
#define FALSE 0
#define TRUE 1
+#endif
typedef int bool;
# endif
@@ -163,7 +171,11 @@ typedef int bool;
#define HAVE_GETOPT_LONG 1
#define HAS_LARGEFILE 1
+#ifdef FALSE
+typedef int bool;
+#else
typedef enum { FALSE=0, TRUE=1 } bool;
+#endif
#elif defined( __GLIBC__ )
@@ -174,13 +186,21 @@ typedef int bool;
#define HAVE_GETOPT_LONG 1
#define HAS_LARGEFILE 1
+#ifdef FALSE
+typedef int bool;
+#else
typedef enum { FALSE=0, TRUE=1 } bool;
+#endif
#else
/* ////////// For other cases ////////// */
+#ifdef FALSE
+typedef int bool;
+#else
typedef enum { FALSE=0, TRUE=1 } bool;
+#endif
#if defined( __USE_FILE_OFFSET64 )
# define HAS_LARGEFILE 1
@@ -232,6 +252,6 @@ char *safestrncpy(char *dest, const char
int check_progress( void ); /* this can be removed because the one below supersedes it */
int progressUpdate( int starttime, int cur, int tot, int force );
-#if defined(__APPLE__) && defined(__GNUC__)
+#if (defined(__APPLE__) && defined(__GNUC__)) || defined(__DragonFly__)
int fdatasync( int value );
#endif