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
+5
View File
@@ -0,0 +1,5 @@
Dvdrtools is a fork of cdrtools, with the primary goal of supporting
writable DVD drives.
The original version of the DVD driver was written by Nicolae Mihalache.
It is presently being developed by bero@gnu.org using a Pioneer DVR-A03 DVD
writer; any other MMC compliant hardware is likely to work.
+6
View File
@@ -0,0 +1,6 @@
===========================================================================
$NetBSD: MESSAGE,v 1.2 2006/01/05 23:29:05 wiz Exp $
To create DVD filesystem images, you will probably need mkisofs,
which is contained in pkgsrc/sysutils/cdrtools.
===========================================================================
+33
View File
@@ -0,0 +1,33 @@
# $NetBSD: Makefile,v 1.19 2012/10/23 19:50:59 asau Exp $
DISTNAME= dvdrtools-${VERSION}
PKGNAME= ${DISTNAME:S/dvdrtools/dvdrecord/}
PKGREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://freesoftware.fsf.org/download/dvdrtools/dvdrtools.pkg/${VERSION}/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.nongnu.org/dvdrtools/
COMMENT= This program allows you to create DVDs on a DVD-Recorder
VERSION= 0.1.5
GNU_CONFIGURE= yes
# Override wrong usage of AC_DEFINE_UNQUOTED:
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
LIBS.SunOS+= -lsocket
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && exists(/usr/include/sys/pset.h)
LIBS.NetBSD+= -lrt
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cdrecord/dvdrecord ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/cdrecord/dvdrecord.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/bsd.pkg.mk"
+3
View File
@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2003/01/17 13:53:11 toshii Exp $
bin/dvdrecord
man/man1/dvdrecord.1
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.7 2005/02/24 13:40:52 agc Exp $
SHA1 (dvdrtools-0.1.5.tar.bz2) = 7cab32797e10ca7ddfab226c4463a1d275fe513b
RMD160 (dvdrtools-0.1.5.tar.bz2) = ca39253f7bc553b147dadce1c608f577e97fe320
Size (dvdrtools-0.1.5.tar.bz2) = 1166308 bytes
SHA1 (patch-aa) = 6463dd7852df43089724976c75a24ea41d9a66bc
SHA1 (patch-ab) = 39b5cf16f3f1c8d191b0de6b25ff8bb2c5eba2da
SHA1 (patch-ac) = 4fe2505adb6ac24a859dc88cc86f91e9bf28f7da
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-aa,v 1.2 2003/01/31 11:02:29 abs Exp $
--- Makefile.in.orig Wed Jan 1 14:32:41 2003
+++ Makefile.in
@@ -133,8 +133,7 @@ target_os = @target_os@
target_vendor = @target_vendor@
SRCDIR = $(shell pwd)
-SUBDIRS = libdeflt librscg libscg libschily cdrecord cdda2wav \
- libhfs_iso libfile libunls mkisofs readcd video
+SUBDIRS = libdeflt librscg libscg libschily cdrecord
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+107
View File
@@ -0,0 +1,107 @@
$NetBSD: patch-ab,v 1.2 2005/01/10 15:48:07 hamajima Exp $
--- libscg/scsi-bsd.c.orig Tue Jan 29 17:23:22 2002
+++ libscg/scsi-bsd.c
@@ -48,7 +48,7 @@ static char __sccsid[] =
* Choose your name instead of "schily" and make clear that the version
* string is related to a modified source.
*/
-LOCAL char _scg_trans_version[] = "scsi-bsd.c-1.40"; /* The version for this transport*/
+LOCAL char _scg_trans_version[] = "scsi-bsd.c-1.40nb1"; /* The version for this transport*/
#define MAX_SCG 16 /* Max # of SCSI controllers */
#define MAX_TGT 16
@@ -108,7 +108,7 @@ scgo_version(scgp, what)
* return "schily" for the SCG_AUTHOR request.
*/
case SCG_AUTHOR:
- return (_scg_auth_schily);
+ return ("frueauf");
case SCG_SCCS_ID:
return (__sccsid);
}
@@ -130,6 +130,15 @@ scgo_open(scgp, device)
register int l;
register int nopen = 0;
char devname[64];
+#if defined(__NetBSD__)
+ struct scsi_addr mysaddr;
+#if defined(__i386__) || defined(__amd64__)
+ char slicename[] = "d"; /* i386 is special */
+#else
+ char slicename[] = "c"; /* this is what the rest uses */
+#endif
+ char *myslicename = slicename;
+#endif
if (busno >= MAX_SCG || tgt >= MAX_TGT || tlun >= MAX_LUN) {
errno = EINVAL;
@@ -156,6 +165,60 @@ scgo_open(scgp, device)
if ((device != NULL && *device != '\0') || (busno == -2 && tgt == -2))
goto openbydev;
+
+/*
+ * I know of no method in NetBSD to probe the scsibus and get the mapping
+ * busnumber,target,lun --> devicename.
+ *
+ * Because of this implement a true bruteforce hack to find
+ * out what cdroms there are.
+ *
+ * Note that this method only finds cd0-cd7. Anything higher
+ * than this needs additional tweaks.
+ *
+ * Feel free to implement this cleanly if you have better knowledge.
+ * Until then this helps to get -scanbus und thus xcdroast working :-)
+ *
+ */
+#if defined(__NetBSD__)
+ if (busno >= 0 && tgt >= 0 && tlun >= 0) {
+ for (l=0; l < MAX_LUN ; l++) {
+ sprintf(devname, "/dev/rcd%d%s", l, myslicename);
+ f = open(devname, O_RDWR);
+ if (f >= 0) {
+ if (ioctl(f, SCIOCIDENTIFY, &mysaddr) < 0) {
+ close(f);
+ errno = EINVAL;
+ return (0);
+ }
+ if (busno == SADDR_BUS(mysaddr) && tgt == SADDR_TARGET(mysaddr) && tlun == SADDR_LUN(mysaddr)) {
+ scglocal(scgp)->scgfiles[busno][tgt][tlun] = f;
+ return(1);
+ }
+ } else goto openbydev;
+ }
+ } else for (l=0; l < MAX_LUN ; l++) {
+ sprintf(devname, "/dev/rcd%d%s", l, myslicename);
+ f = open(devname, O_RDWR);
+ if (f >= 0) {
+ if (ioctl(f, SCIOCIDENTIFY, &mysaddr) < 0) {
+ close(f);
+ errno = EINVAL;
+ return (0);
+ }
+ scg_scsibus(scgp) = busno = SADDR_BUS(mysaddr);
+ scg_target(scgp) = tgt = SADDR_TARGET(mysaddr);
+ if ((tlun >= 0) && (tlun != SADDR_LUN(mysaddr))) {
+ close(f);
+ errno = EINVAL;
+ return (0);
+ }
+ scg_lun(scgp) = tlun = SADDR_LUN(mysaddr);
+ if (scg_setup(scgp, f, busno, tgt, tlun))
+ nopen++;
+ }
+ }
+#else /* not __NetBSD__ */
if (busno >= 0 && tgt >= 0 && tlun >= 0) {
js_snprintf(devname, sizeof(devname),
@@ -192,6 +255,7 @@ scgo_open(scgp, device)
}
}
}
+#endif /* end of not __NetBSD__ */
/*
* Could not open /dev/su-* or got dev=devname:b,l,l / dev=devname:@,l
* We do the apropriate tests and try our best.
+25
View File
@@ -0,0 +1,25 @@
$NetBSD: patch-ac,v 1.1 2003/09/19 17:49:17 mycroft Exp $
--- cdrecord/scsi_cdr.c.orig 2003-06-01 16:10:01.000000000 +0000
+++ cdrecord/scsi_cdr.c 2003-09-01 03:10:45.000000000 +0000
@@ -263,6 +263,12 @@
EXPORT int request_sense(SCSI *scgp)
{
+
+ #ifdef __NetBSD__
+ /* request sense already done by kernel */
+ scg_prsense((Uchar *)scgp->scmd->u_sense.cmd_sense,
+ scgp->scmd->sense_count);
+ #else
char sensebuf[CCS_SENSE_LEN];
register struct scg_cmd *scmd = scgp->scmd;
@@ -282,6 +288,7 @@
if (scg_cmd(scgp) < 0)
return (-1);
scg_prsense((Uchar *)sensebuf, CCS_SENSE_LEN - scg_getresid(scgp));
+#endif
return (0);
}