pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/cdrtools-ossdvd Initial import of cdrtools-os...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d5177cacb4c8
branches: trunk
changeset: 464900:d5177cacb4c8
user: wiz <wiz%pkgsrc.org@localhost>
date: Wed Dec 17 16:09:06 2003 +0000
description:
Initial import of cdrtools-ossdvd, a patched version of cdrtools
with DVD writing support.
diffstat:
sysutils/cdrtools-ossdvd/DESCR | 9 ++
sysutils/cdrtools-ossdvd/MESSAGE.SunOS | 9 ++
sysutils/cdrtools-ossdvd/MESSAGE.cdrecord.conf | 14 +++
sysutils/cdrtools-ossdvd/Makefile | 98 ++++++++++++++++++++++
sysutils/cdrtools-ossdvd/PLIST | 17 +++
sysutils/cdrtools-ossdvd/distinfo | 15 +++
sysutils/cdrtools-ossdvd/patches/patch-ac | 23 +++++
sysutils/cdrtools-ossdvd/patches/patch-ah | 40 +++++++++
sysutils/cdrtools-ossdvd/patches/patch-ai | 107 +++++++++++++++++++++++++
sysutils/cdrtools-ossdvd/patches/patch-aj | 25 +++++
sysutils/cdrtools-ossdvd/patches/patch-ba | 19 ++++
sysutils/cdrtools-ossdvd/patches/patch-bb | 19 ++++
sysutils/cdrtools-ossdvd/patches/patch-ca | 13 +++
sysutils/cdrtools-ossdvd/patches/patch-cb | 24 +++++
sysutils/cdrtools-ossdvd/patches/patch-cc | 13 +++
15 files changed, 445 insertions(+), 0 deletions(-)
diffs (truncated from 505 to 300 lines):
diff -r efdb5ccf17de -r d5177cacb4c8 sysutils/cdrtools-ossdvd/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/cdrtools-ossdvd/DESCR Wed Dec 17 16:09:06 2003 +0000
@@ -0,0 +1,9 @@
+Cdrecord allows you to burn CDs with a CD-R/CD-RW recorder. It
+works as a burn engine for several applications. Cdrecord supports
+CD recorders from many different vendors; all SCSI-3/mmc and
+ATAPI/mmc compliant drives should also work. Supported features
+include: IDE/ATAPI, parallel-port, and SCSI drives; audio CDs, data
+CDs, and mixed CDs; full multi-session support, CD-RWs (rewritable),
+TAO, DAO and human-readable error messages.
+
+This version is patched to also write DVDs.
diff -r efdb5ccf17de -r d5177cacb4c8 sysutils/cdrtools-ossdvd/MESSAGE.SunOS
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/cdrtools-ossdvd/MESSAGE.SunOS Wed Dec 17 16:09:06 2003 +0000
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE.SunOS,v 1.1.1.1 2003/12/17 16:09:07 wiz Exp $
+
+You will need to stop Solaris volume management before using
+${PKGNAME_NOREV}:
+
+ /etc/init.d/volmgt stop
+
+===========================================================================
diff -r efdb5ccf17de -r d5177cacb4c8 sysutils/cdrtools-ossdvd/MESSAGE.cdrecord.conf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/cdrtools-ossdvd/MESSAGE.cdrecord.conf Wed Dec 17 16:09:06 2003 +0000
@@ -0,0 +1,14 @@
+===========================================================================
+$NetBSD: MESSAGE.cdrecord.conf,v 1.1.1.1 2003/12/17 16:09:07 wiz Exp $
+
+Note: The location of the ${PKGNAME_NOREV} `defaults' file has been set to
+
+ ${CDRECORD_CONF}
+
+This is the pkgsrc standard config file location, NOT the ${PKGNAME_NOREV}
+standard location, which is /etc/default/cdrecord.
+
+The reason for this is that pkgsrc packages should not use configuration
+files outside ${LOCALBASE} unless they are explicitly set by the user.
+
+===========================================================================
diff -r efdb5ccf17de -r d5177cacb4c8 sysutils/cdrtools-ossdvd/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/cdrtools-ossdvd/Makefile Wed Dec 17 16:09:06 2003 +0000
@@ -0,0 +1,98 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/12/17 16:09:07 wiz Exp $
+
+DISTNAME= cdrtools-2.01a18
+PKGNAME= cdrtools-ossdvd-2.01.1.18
+WRKSRC= ${WRKDIR}/cdrtools-2.01
+CATEGORIES= sysutils
+MASTER_SITES= ftp://ftp.berlios.de/pub/cdrecord/alpha/
+
+PATCHFILES= cdrtools-2.01a18-ossdvd.patch.bz2
+PATCH_SITES= ftp://ftp.crashrecovery.org/pub/linux/cdrtools/
+PATCH_DIST_STRIP= -p1
+
+MAINTAINER= lukem%NetBSD.org@localhost
+HOMEPAGE= http://crashrecovery.org/oss-dvd.html
+COMMENT= Software for creating ISO9660 images and writing CDs/CD-RWs/DVDs
+
+CONFLICTS= mkisofs-[0-9]* cdrecord-* cdrtools-*
+
+.include "../../mk/bsd.prefs.mk"
+
+USE_BUILDLINK2= # defined
+USE_GMAKE= # defined
+TBL?= tbl
+
+.if ${LOCALBASE} != "/opt/schily"
+BUILDLINK_TRANSFORM= r:/opt/schily
+BUILDLINK_TRANSFORM+= r:/opt/schily
+.endif
+
+# avoid picking up a bad ${ARCH} during the build
+MAKE_ENV+= ARCH=""
+MAKE_ENV+= MAKEPROG="gmake"
+MAKE_ENV+= COPTX="${CFLAGS}"
+MAKE_ENV+= LDOPTX="${LDFLAGS}"
+
+# if we're using a gcc which is named gcc, we need to set CCOM=gcc
+# in MAKE_ENV so the make infrastructure picks the right options.
+.if !empty(CC:M*gcc*)
+MAKE_ENV+= CCOM="gcc"
+.endif
+
+# allow us to override the default /etc/default/cdrecord by patching
+# the documentation appropriately. Additionally, we also provide a
+# MESSAGE stating the reasons we do this, as required by the license.
+CDRECORD_CONF?= ${PKG_SYSCONFDIR}/cdrecord.conf
+
+.if ${CDRECORD_CONF} != "/etc/default/cdrecord"
+MESSAGE_SRC+= MESSAGE.cdrecord.conf
+MESSAGE_SUBST+= PKGNAME_NOREV=${PKGNAME_NOREV}
+MESSAGE_SUBST+= CDRECORD_CONF=${CDRECORD_CONF}
+.endif
+
+CDRECORD_CONF_FILES= cdrecord/defaults.c cdrecord/cdrecord.1
+CDRECORD_CONF_FILES+= readcd/readcd.1
+
+post-patch:
+ @cd ${WRKSRC}; for file in ${CDRECORD_CONF_FILES}; do \
+ ${MV} ${WRKSRC}/$$file ${WRKSRC}/$${file}.old && \
+ ${SED} -e 's|@CDRECORD_CONF@|${CDRECORD_CONF}|' \
+ ${WRKSRC}/$${file}.old > ${WRKSRC}/$$file; \
+ done
+
+do-configure:
+ cd ${WRKSRC}/RULES; \
+ for suffix in netbsd-cc.rul netbsd-gcc.rul; do \
+ if [ ! -f ${MACHINE}-$$suffix ]; then \
+ ${LN} -sf i386-$$suffix ${MACHINE}-$$suffix; \
+ fi; \
+ done
+
+post-build:
+ cd ${WRKSRC}; \
+ for file in cdda2wav/cdda2wav.1 mkisofs/mkisofs.8; do \
+ ${TBL} $${file} > $${file}.tmp; \
+ ${MV} -f $${file}.tmp $${file}; \
+ done
+
+do-install:
+ cd ${WRKSRC}/cdda2wav; \
+ ${INSTALL_PROGRAM} OBJ/*/cdda2wav ${PREFIX}/bin; \
+ ${INSTALL_MAN} cdda2wav.1 ${PREFIX}/man/man1
+ cd ${WRKSRC}/cdrecord; \
+ ${INSTALL_PROGRAM} OBJ/*/cdrecord ${PREFIX}/bin; \
+ ${INSTALL_MAN} cdrecord.1 ${PREFIX}/man/man1
+ cd ${WRKSRC}/mkisofs; \
+ ${INSTALL_PROGRAM} OBJ/*/mkisofs ${PREFIX}/bin; \
+ ${INSTALL_MAN} mkisofs.8 ${PREFIX}/man/man8
+ cd ${WRKSRC}/mkisofs/diag; \
+ for f in devdump isodump isoinfo isovfy; do \
+ ${INSTALL_PROGRAM} OBJ/*/$$f ${PREFIX}/bin; \
+ ${INSTALL_MAN} isoinfo.8 ${PREFIX}/man/man8/$$f.8; \
+ done
+ cd ${WRKSRC}/readcd; \
+ ${INSTALL_PROGRAM} OBJ/*/readcd ${PREFIX}/bin; \
+ ${INSTALL_MAN} readcd.1 ${PREFIX}/man/man1
+
+.include "../../mk/ossaudio.buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r efdb5ccf17de -r d5177cacb4c8 sysutils/cdrtools-ossdvd/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/cdrtools-ossdvd/PLIST Wed Dec 17 16:09:06 2003 +0000
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/17 16:09:07 wiz Exp $
+bin/cdda2wav
+bin/cdrecord
+bin/mkisofs
+bin/readcd
+bin/devdump
+bin/isodump
+bin/isoinfo
+bin/isovfy
+man/man1/cdda2wav.1
+man/man1/cdrecord.1
+man/man1/readcd.1
+man/man8/mkisofs.8
+man/man8/devdump.8
+man/man8/isodump.8
+man/man8/isoinfo.8
+man/man8/isovfy.8
diff -r efdb5ccf17de -r d5177cacb4c8 sysutils/cdrtools-ossdvd/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/cdrtools-ossdvd/distinfo Wed Dec 17 16:09:06 2003 +0000
@@ -0,0 +1,15 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/12/17 16:09:07 wiz Exp $
+
+SHA1 (cdrtools-2.01a18.tar.gz) = 2638f8d825ac03e45fd30aa2578dc7b83ad83849
+Size (cdrtools-2.01a18.tar.gz) = 1648542 bytes
+SHA1 (cdrtools-2.01a18-ossdvd.patch.bz2) = 0f052c327b13274fe9ad0585f2b78ecd5078f343
+Size (cdrtools-2.01a18-ossdvd.patch.bz2) = 7611 bytes
+SHA1 (patch-ac) = 0d9217924ed353b1c23bac1ffd8b2ee69eda8f47
+SHA1 (patch-ah) = 34ecab01125bcac2a28e295b198edce0de8b8777
+SHA1 (patch-ai) = 38f6bc8a9deee6861d5589dcf65dcd4968614457
+SHA1 (patch-aj) = e606fbd4fba068b96cc784d3a0f0ee0d7cf7a84a
+SHA1 (patch-ba) = 635f7584d125517309ae00919f5a7808b28ba127
+SHA1 (patch-bb) = 653956259faeb46106e243e543eb17eb25d5a371
+SHA1 (patch-ca) = 5dbc3d3f248781627b6d6100808c70db60e83bd4
+SHA1 (patch-cb) = c7060bce4ef117e55169a39eb0850a0b57de56c2
+SHA1 (patch-cc) = a14098dd14e0b58d3fed1167341a22167eea7c19
diff -r efdb5ccf17de -r d5177cacb4c8 sysutils/cdrtools-ossdvd/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/cdrtools-ossdvd/patches/patch-ac Wed Dec 17 16:09:06 2003 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/12/17 16:09:07 wiz Exp $
+
+--- include/btorder.h.orig Sun Jun 15 23:41:22 2003
++++ include/btorder.h
+@@ -28,6 +28,9 @@
+ #include <sys/types.h> /* try to load isa_defs.h on Solaris */
+ #define _INCL_SYS_TYPES_H
+ #endif
++#ifdef __NetBSD__
++#include <machine/endian.h>
++#endif
+
+ #ifndef _MCONFIG_H
+ #include <mconfig.h> /* load bit/byte-oder from xmconfig.h*/
+@@ -108,7 +111,7 @@ error Only one of _BIT_FIELDS_LTOH or _
+ # if defined(__ppc__) || defined(ppc) || defined(__ppc) || \
+ defined(__PPC) || defined(powerpc) || defined(__powerpc__)
+
+-# if defined(__BIG_ENDIAN__)
++# if defined(__BIG_ENDIAN__) || BYTE_ORDER == BIG_ENDIAN
+ # define _BIT_FIELDS_HTOL
+ # else
+ # define _BIT_FIELDS_LTOH
diff -r efdb5ccf17de -r d5177cacb4c8 sysutils/cdrtools-ossdvd/patches/patch-ah
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/cdrtools-ossdvd/patches/patch-ah Wed Dec 17 16:09:06 2003 +0000
@@ -0,0 +1,40 @@
+$NetBSD: patch-ah,v 1.1.1.1 2003/12/17 16:09:07 wiz Exp $
+
+--- cdda2wav/setuid.c.orig Thu Nov 21 16:12:35 2002
++++ cdda2wav/setuid.c Sat Nov 30 18:17:51 2002
+@@ -92,7 +92,7 @@
+
+ if (geteuid() == 0) return; /* nothing to do */
+
+-#if defined _POSIX_SAVED_IDS && defined (HAVE_SETEUID)
++#if defined (HAVE_SETEUID)
+ if (seteuid(effective_uid)) {
+ perror("seteuid in needroot()");
+ exit(PERM_ERROR);
+@@ -126,7 +126,7 @@
+ return;
+ if (geteuid() != 0) return; /* nothing to do */
+
+-#if defined _POSIX_SAVED_IDS && defined (HAVE_SETEUID)
++#if defined (HAVE_SETEUID)
+ if (seteuid(real_uid)) {
+ perror("seteuid in dontneedroot()");
+ exit(PERM_ERROR);
+@@ -186,7 +186,7 @@
+
+ if (getegid() == effective_gid) return; /* nothing to do */
+
+-#if defined _POSIX_SAVED_IDS && defined (HAVE_SETEGID)
++#if defined (HAVE_SETEGID)
+ if (setegid(effective_gid)) {
+ perror("setegid in needgroup()");
+ exit(PERM_ERROR);
+@@ -217,7 +217,7 @@
+ exit(INTERNAL_ERROR);
+ }
+ if (getegid() != effective_gid) return; /* nothing to do */
+-#if defined _POSIX_SAVED_IDS && defined (HAVE_SETEGID)
++#if defined (HAVE_SETEGID)
+ if (setegid(real_gid)) {
+ perror("setegid in dontneedgroup()");
+ exit(PERM_ERROR);
diff -r efdb5ccf17de -r d5177cacb4c8 sysutils/cdrtools-ossdvd/patches/patch-ai
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/cdrtools-ossdvd/patches/patch-ai Wed Dec 17 16:09:06 2003 +0000
@@ -0,0 +1,107 @@
+$NetBSD: patch-ai,v 1.1.1.1 2003/12/17 16:09:07 wiz Exp $
+
+--- libscg/scsi-bsd.c.orig Mon Oct 21 15:57:07 2002
++++ libscg/scsi-bsd.c Sat Nov 30 18:20:19 2002
+@@ -48,7 +48,7 @@
+ * 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.41"; /* The version for this transport*/
++LOCAL char _scg_trans_version[] = "scsi-bsd.c-1.41nb1"; /* The version for this transport*/
+
+ #define MAX_SCG 16 /* Max # of SCSI controllers */
+ #define MAX_TGT 16
+@@ -108,7 +108,7 @@
+ * return "schily" for the SCG_AUTHOR request.
+ */
+ case SCG_AUTHOR:
+- return (_scg_auth_schily);
++ return ("frueauf");
+ case SCG_SCCS_ID:
+ return (__sccsid);
+ }
+@@ -140,6 +140,15 @@
+ register int l;
+ register int nopen = 0;
+ char devname[64];
++#if defined(__NetBSD__)
++ struct scsi_addr mysaddr;
++#if defined(__i386__)
++ 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;
+@@ -166,6 +175,60 @@
Home |
Main Index |
Thread Index |
Old Index