Import regionset into the right place this time.
Original Log message: Import regionset. A simple tool for setting the region code on dvd drives. If you have a new dvd drive, sometimes they have no region set at all and won't play dvds until one is set. This solves that problem. ok okan@, looked over by a couple of others.
This commit is contained in:
parent
e2ef516bb5
commit
4ef53ca0cd
27
multimedia/regionset/Makefile
Normal file
27
multimedia/regionset/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2008/01/03 19:30:16 oga Exp $
|
||||
|
||||
COMMENT= set region on dvd drives
|
||||
|
||||
DISTNAME= regionset-0.1
|
||||
|
||||
CATEGORIES= multimedia
|
||||
|
||||
HOMEPAGE= http://linvdr.org/projects/regionset/
|
||||
MASTER_SITES= http://linvdr.org/download/regionset/
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB= c
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/regionset ${PREFIX}/bin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/regionset
|
||||
${INSTALL_DATA} ${WRKBUILD}/README ${PREFIX}/share/doc/regionset
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
5
multimedia/regionset/distinfo
Normal file
5
multimedia/regionset/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (regionset-0.1.tar.gz) = /qGOyuDAwim86rVrpG9GkQ==
|
||||
RMD160 (regionset-0.1.tar.gz) = IGH65zuLlIE1qRsz6qzXdZBQcwY=
|
||||
SHA1 (regionset-0.1.tar.gz) = xguXP0QogmQjTQe+H7QYtue/YaU=
|
||||
SHA256 (regionset-0.1.tar.gz) = rLbyriWXUPpNtbn3tkroPZ16xq2WsHDZdu8e8qZgptU=
|
||||
SIZE (regionset-0.1.tar.gz) = 17095
|
20
multimedia/regionset/patches/patch-Makefile
Normal file
20
multimedia/regionset/patches/patch-Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2008/01/03 19:30:16 oga Exp $
|
||||
--- Makefile.orig Thu Oct 30 12:29:49 2003
|
||||
+++ Makefile Thu Jan 3 16:13:02 2008
|
||||
@@ -6,14 +6,14 @@
|
||||
# cleanups by Mirko Dölle <cooper@linvdr.org>
|
||||
#
|
||||
|
||||
-CC = gcc -Wall
|
||||
+CC ?= gcc -Wall ${CFLAGS}
|
||||
MAKE = make
|
||||
|
||||
all: regionset
|
||||
.PHONY : all
|
||||
|
||||
regionset: regionset.c dvd_udf.h dvd_udf.c
|
||||
- $(CC) -o regionset regionset.c dvd_udf.c
|
||||
+ $(CC) $(CFLAGS) -o regionset regionset.c dvd_udf.c
|
||||
|
||||
.PHONY : clean
|
||||
clean:
|
12
multimedia/regionset/patches/patch-README
Normal file
12
multimedia/regionset/patches/patch-README
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-README,v 1.1.1.1 2008/01/03 19:30:16 oga Exp $
|
||||
--- README.orig Thu Jan 3 03:58:18 2008
|
||||
+++ README Thu Jan 3 03:58:35 2008
|
||||
@@ -53,7 +53,7 @@ The more, there absolutely definitively and in any cas
|
||||
Data CD or Data/Video DVD in the drive -- it does not matter if it's your
|
||||
favourite Windows CD, a video or a DVD with your last backup.
|
||||
|
||||
-By default, regionset will use /dev/dvd to find your DVD drive. You can
|
||||
+By default, regionset will use /dev/cd0c to find your DVD drive. You can
|
||||
adjust this by entering the path to the DVD device as first command line
|
||||
parameter (please absolute path!).
|
||||
|
23
multimedia/regionset/patches/patch-dvd_udf_c
Normal file
23
multimedia/regionset/patches/patch-dvd_udf_c
Normal file
@ -0,0 +1,23 @@
|
||||
$OpenBSD: patch-dvd_udf_c,v 1.1.1.1 2008/01/03 19:30:16 oga Exp $
|
||||
--- dvd_udf.c.orig Thu Jan 3 02:58:08 2008
|
||||
+++ dvd_udf.c Thu Jan 3 02:58:37 2008
|
||||
@@ -38,7 +38,7 @@
|
||||
#include <sys/stat.h>
|
||||
|
||||
#if defined(__OpenBSD__)
|
||||
-# include <sys/dvdio.h>
|
||||
+# include <sys/cdio.h>
|
||||
#elif defined(__linux__)
|
||||
# include <linux/cdrom.h>
|
||||
#else
|
||||
@@ -111,8 +111,8 @@ struct AD {
|
||||
#define GETN(p, n, target) memcpy(target, &data[p], n)
|
||||
|
||||
#ifdef DVD_AUTH
|
||||
- dvd_authinfo ai;
|
||||
- dvd_struct dvds;
|
||||
+ union dvd_authinfo ai;
|
||||
+ union dvd_struct dvds;
|
||||
int last_agid = 0;
|
||||
#endif
|
||||
|
21
multimedia/regionset/patches/patch-regionset_c
Normal file
21
multimedia/regionset/patches/patch-regionset_c
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-regionset_c,v 1.1.1.1 2008/01/03 19:30:16 oga Exp $
|
||||
--- regionset.c.orig Thu Jan 3 04:49:14 2008
|
||||
+++ regionset.c Thu Jan 3 04:50:12 2008
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <stdio.h>
|
||||
#include "dvd_udf.h"
|
||||
|
||||
-#define DEFAULTDEVICE "/dev/dvd"
|
||||
+#define DEFAULTDEVICE "/dev/cd0c"
|
||||
#define VERSION "0.1"
|
||||
|
||||
int main (int argc, char* argv[])
|
||||
@@ -39,7 +39,7 @@ int main (int argc, char* argv[])
|
||||
if (argc>1) err=UDFOpenDisc(argv[1]);
|
||||
else err=UDFOpenDisc(DEFAULTDEVICE);
|
||||
if (err<0) {
|
||||
- printf("ERROR: Could not open disc \"%s\"!\n",((argc>=1)?argv[1]:DEFAULTDEVICE));
|
||||
+ printf("ERROR: Could not open disc \"%s\"!\n",((argc>1)?argv[1]:DEFAULTDEVICE));
|
||||
printf("Ensure that there is any readable CD or DVD in the drive.\n");
|
||||
return 1;
|
||||
}
|
11
multimedia/regionset/pkg/DESCR
Normal file
11
multimedia/regionset/pkg/DESCR
Normal file
@ -0,0 +1,11 @@
|
||||
regionset allows you to check and set the region code of DVD drives.
|
||||
This program was part of the package "dvd_disc_20000215.tar.gz" from
|
||||
Convergence, which is no longer distributed because of the new German
|
||||
copyright law. (The package also contained some CSS and copying related
|
||||
tools.) regionset was separated and all CSS related stuff was removed.
|
||||
This program is needed by everyone with a new DVD drive that doesn't
|
||||
have a region code set, since the drive will only play Video DVDs when
|
||||
the region code has been set once.
|
||||
|
||||
regionset must have write privileges to the device in question in order
|
||||
to work.
|
4
multimedia/regionset/pkg/PLIST
Normal file
4
multimedia/regionset/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/01/03 19:30:16 oga Exp $
|
||||
bin/regionset
|
||||
share/doc/regionset/
|
||||
share/doc/regionset/README
|
Loading…
x
Reference in New Issue
Block a user