diff options
author | netchild <netchild@FreeBSD.org> | 2004-06-02 17:05:44 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2004-06-02 17:05:44 +0000 |
commit | 3498db94baf80e787d0c4ef7ff234869b1b14076 (patch) | |
tree | 0a9199c9590eab111c2dcdbef0ccf4a695ce273e /sysutils/cdrtools-devel | |
parent | e5c80d976226bf4c1958bed986f68c43756fb448 (diff) | |
download | FreeBSD-ports-3498db94baf80e787d0c4ef7ff234869b1b14076.zip FreeBSD-ports-3498db94baf80e787d0c4ef7ff234869b1b14076.tar.gz |
- Update to 2.01a30. For a list of changes please see:
ftp://ftp.berlios.de/pub/cdrecord/alpha/AN-2.01a30
- Add a workaround for the problem that cdda2wav doesn't use a page
aligned buffer for the SCSI transfers in paranoia mode. [1]
- Merge sysutils/mkisofs-devel into sysutils/cdrtools-devel as done
with the corresponding non-devel ports.
PR: 63775 [1]
Submitted by: marius
Diffstat (limited to 'sysutils/cdrtools-devel')
-rw-r--r-- | sysutils/cdrtools-devel/Makefile | 77 | ||||
-rw-r--r-- | sysutils/cdrtools-devel/distinfo | 4 | ||||
-rw-r--r-- | sysutils/cdrtools-devel/files/patch-cdda2wav::interface.c | 30 | ||||
-rw-r--r-- | sysutils/cdrtools-devel/pkg-descr | 30 | ||||
-rw-r--r-- | sysutils/cdrtools-devel/pkg-descr.mkisofs | 21 | ||||
-rw-r--r-- | sysutils/cdrtools-devel/pkg-plist | 24 | ||||
-rw-r--r-- | sysutils/cdrtools-devel/pkg-plist.mkisofs | 24 |
7 files changed, 99 insertions, 111 deletions
diff --git a/sysutils/cdrtools-devel/Makefile b/sysutils/cdrtools-devel/Makefile index e19c470..e20747a 100644 --- a/sysutils/cdrtools-devel/Makefile +++ b/sysutils/cdrtools-devel/Makefile @@ -5,36 +5,30 @@ # $FreeBSD$ # -PORTNAME?= cdrtools -CDRTLSVERSION= 2.01a29 -PORTVERSION?= ${CDRTLSVERSION} -PORTREVISION?= 0 -CATEGORIES?= sysutils audio +PORTNAME= cdrtools +PORTVERSION= 2.01a30 +CATEGORIES= sysutils audio MASTER_SITES= ftp://ftp.berlios.de/pub/cdrecord/alpha/ \ ftp://ftp.cs.tu-berlin.de/pub/misc/cdrecord/alpha/ -DISTNAME= cdrtools-${CDRTLSVERSION} MAINTAINER= marius@FreeBSD.org -COMMENT?= Cdrecord and other programs to extract and record CDs/CD-R[W]s +COMMENT= CD/CD-R[W] and ISO-9660 image creation and extraction tools -CONFLICTS?= cdrtools-[0-9]* +CONFLICTS= cdrtools-[0-9]* -.if defined(MKISOFS) +MAN1= cdda2wav.1 cdrecord.1 readcd.1 scgcheck.1 MAN8= isoinfo.8 mkisofs.8 MLINKS= isoinfo.8 devdump.8 isoinfo.8 isodump.8 isoinfo.8 isovfy.8 \ mkisofs.8 mkhybrid.8 -DOCS= README README.compression README.eltorito README.graft_dirs \ - README.hfs_boot README.hfs_magic README.hide README.joliet \ - README.macosx README.mkhybrid README.prep_boot README.rootinfo \ - README.session README.sort README.sparcboot README.sunx86boot -.else -MAN1= cdda2wav.1 cdrecord.1 readcd.1 scgcheck.1 DOCS= README README.ATAPI README.DiskT@2 README.FreeBSD README.WORM \ README.audio README.cdplus README.cdrw README.cdtext \ README.clone README.copy README.mkisofs README.multi \ README.raw README.rscsi README.sony README.verify CDDA2WAVDOCS= FAQ Frontends HOWTOUSE OtherProgs README THANKS TODO -.endif +MKISOFSDOCS= README README.compression README.eltorito README.graft_dirs \ + README.hfs_boot README.hfs_magic README.hide README.joliet \ + README.macosx README.mkhybrid README.prep_boot README.rootinfo \ + README.session README.sort README.sparcboot README.sunx86boot NO_LATEST_LINK= yes USE_BZIP2= yes @@ -43,14 +37,9 @@ USE_REINPLACE= yes MAKE_ENV= CCOM=${CC} LANG=C #CFLAGS+= -DSOURCE_MODIFIED WRKSRC= ${WRKDIR}/${DISTNAME:C/a(.+)$//} +PKGMESSAGE= ${WRKDIR}/pkg-message CDRTLSTARGET= ${ARCH}-freebsd-${CC} -.if defined(MKISOFS) -DOCSSRC= ${WRKSRC}/${PORTNAME} -PKGMESSAGE= "" -.else -DOCSSRC= ${WRKSRC} -PKGMESSAGE= ${WRKDIR}/pkg-message .if defined(WITH_RSCSI) PKGINSTALL= ${PKGDIR}/pkg-install.rscsi PLIST_SUB= RSCSI="" @@ -58,13 +47,12 @@ PKGNAMESUFFIX= -rscsi-devel .else PLIST_SUB= RSCSI="@comment " .endif -.endif PKGNAMESUFFIX?= -devel .include <bsd.port.pre.mk> pre-everything:: -.if !defined(MKISOFS) && !defined(WITH_RSCSI) +.if !defined(WITH_RSCSI) @${ECHO_MSG} "" @${ECHO_MSG} "You may use the following build option(s):" @${ECHO_MSG} "" @@ -88,15 +76,6 @@ post-extract: post-patch: @${RM} ${WRKSRC}/TARGETS/55scgskeleton ${WRKSRC}/TARGETS/85man -.if defined(MKISOFS) -.for i in 45libedc 45libparanoia 55cdda2wav 55cdrecord 55readcd 55rscsi \ - 55scgcheck - @${RM} ${WRKSRC}/TARGETS/${i} -.endfor -.else -.for i in 45libfile 45libhfs_iso 45libunls 55mkisofs 55mkisofs!@!diag - @${RM} ${WRKSRC}/TARGETS/${i} -.endfor .if !defined(WITH_RSCSI) @${RM} ${WRKSRC}/TARGETS/55rscsi .endif @@ -113,25 +92,20 @@ post-patch: # ${WRKSRC}/cdrecord/cdrecord.c @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message > \ ${WRKDIR}/pkg-message -.endif do-install: -.if defined(MKISOFS) - @${INSTALL_PROGRAM} ${WRKSRC}/mkisofs/OBJ/${CDRTLSTARGET}/mkisofs \ + @${INSTALL_PROGRAM} ${WRKSRC}/cdda2wav/OBJ/${CDRTLSTARGET}/cdda2wav \ + ${PREFIX}/bin + @${LN} -sf cdda2wav ${PREFIX}/bin/list_audio_tracks + @${INSTALL_PROGRAM} ${WRKSRC}/cdrecord/OBJ/${CDRTLSTARGET}/cdrecord \ ${PREFIX}/bin - @${LN} -sf mkisofs ${PREFIX}/bin/mkhybrid .for i in devdump isodebug isodump isoinfo isovfy @${INSTALL_PROGRAM} ${WRKSRC}/mkisofs/diag/OBJ/${CDRTLSTARGET}/${i} \ ${PREFIX}/bin .endfor - @${INSTALL_MAN} ${WRKSRC}/mkisofs/mkisofs.8 ${PREFIX}/man/man8 - @${INSTALL_MAN} ${WRKSRC}/mkisofs/diag/isoinfo.8 ${PREFIX}/man/man8 -.else - @${INSTALL_PROGRAM} ${WRKSRC}/cdda2wav/OBJ/${CDRTLSTARGET}/cdda2wav \ - ${PREFIX}/bin - @${LN} -sf cdda2wav ${PREFIX}/bin/list_audio_tracks - @${INSTALL_PROGRAM} ${WRKSRC}/cdrecord/OBJ/${CDRTLSTARGET}/cdrecord \ + @${INSTALL_PROGRAM} ${WRKSRC}/mkisofs/OBJ/${CDRTLSTARGET}/mkisofs \ ${PREFIX}/bin + @${LN} -sf mkisofs ${PREFIX}/bin/mkhybrid @${INSTALL_PROGRAM} ${WRKSRC}/readcd/OBJ/${CDRTLSTARGET}/readcd \ ${PREFIX}/bin .if defined(WITH_RSCSI) @@ -145,6 +119,8 @@ do-install: @${INSTALL_MAN} ${WRKSRC}/cdrecord/cdrecord.1 ${PREFIX}/man/man1 @${INSTALL_MAN} ${WRKSRC}/readcd/readcd.1 ${PREFIX}/man/man1 @${INSTALL_MAN} ${WRKSRC}/scgcheck/scgcheck.1 ${PREFIX}/man/man1 + @${INSTALL_MAN} ${WRKSRC}/mkisofs/mkisofs.8 ${PREFIX}/man/man8 + @${INSTALL_MAN} ${WRKSRC}/mkisofs/diag/isoinfo.8 ${PREFIX}/man/man8 @${INSTALL_DATA} ${WRKSRC}/cdrecord/cdrecord.dfl \ ${PREFIX}/etc/cdrecord.sample .if !exists(${PREFIX}/etc/cdrecord) @@ -156,23 +132,24 @@ do-install: @${INSTALL_DATA} ${WRKSRC}/rscsi/rscsi.dfl ${PREFIX}/etc/rscsi .endif .endif -.endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for i in ${DOCS} - @${INSTALL_DATA} ${DOCSSRC}/${i} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} .endfor -.if !defined(MKISOFS) @${MKDIR} ${DOCSDIR}/cdda2wav .for i in ${CDDA2WAVDOCS} - @${INSTALL_DATA} ${DOCSSRC}/cdda2wav/${i} ${DOCSDIR}/cdda2wav + @${INSTALL_DATA} ${WRKSRC}/cdda2wav/${i} ${DOCSDIR}/cdda2wav +.endfor + @${MKDIR} ${DOCSDIR}/mkisofs +.for i in ${MKISOFSDOCS} + @${INSTALL_DATA} ${WRKSRC}/mkisofs/${i} ${DOCSDIR}/mkisofs .endfor -.endif .endif post-install: -@if [ -f ${PKGINSTALL} ]; then ${SETENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL; fi - @if [ -f ${WRKDIR}/pkg-message ]; then ${CAT} ${WRKDIR}/pkg-message; fi + @${CAT} ${WRKDIR}/pkg-message .include <bsd.port.post.mk> diff --git a/sysutils/cdrtools-devel/distinfo b/sysutils/cdrtools-devel/distinfo index 2a36bd3..1b1b014 100644 --- a/sysutils/cdrtools-devel/distinfo +++ b/sysutils/cdrtools-devel/distinfo @@ -1,2 +1,2 @@ -MD5 (cdrtools-2.01a29.tar.bz2) = 7572841824c33499b7e99427cdfa450c -SIZE (cdrtools-2.01a29.tar.bz2) = 1396889 +MD5 (cdrtools-2.01a30.tar.bz2) = 59725afc2cca1bf51f63864794d7c9eb +SIZE (cdrtools-2.01a30.tar.bz2) = 1397817 diff --git a/sysutils/cdrtools-devel/files/patch-cdda2wav::interface.c b/sysutils/cdrtools-devel/files/patch-cdda2wav::interface.c index ba5d9bf..0e0f7f7 100644 --- a/sysutils/cdrtools-devel/files/patch-cdda2wav::interface.c +++ b/sysutils/cdrtools-devel/files/patch-cdda2wav::interface.c @@ -17,7 +17,33 @@ if (!S_ISCHR(statstruct->st_mode)) { fprintf(stderr, "%s is not a char device\n",pdev_name); exit(SYNTAX_ERROR); -@@ -593,9 +601,6 @@ +@@ -555,8 +563,25 @@ + } + dontneedgroup(); + dontneedroot(); ++#if defined (__FreeBSD__) ++ /* ++ * i_read_c_block(), used by paranoia_read_limited() for reading the ++ * data from the CD, doesn't use a page aligned buffer as required by ++ * FreeBSD for SCSI transfers (well, most OS do). Probably this should ++ * be dealt with in cdda_read() (called by i_read_c_block() with the ++ * unaligned buffer and in turn calls ReadCdRom() to do the actual read) ++ * but it seems like overkill to add yet another buffer (would make it ++ * 3 or so from do_read() to ReadCdRom() alone). Instead, limit the ++ * transfer size via the maximum for the sectors to read at once to a ++ * value that lets the data fit into a page (for FreeBSD the code below ++ * would set the maximum sectors to 27). ++ */ ++ if (global.nsectors > 26) ++ global.nsectors = 26; ++#else + if (global.nsectors > (unsigned) scg_bufsize(scgp, 3*1024*1024)/CD_FRAMESIZE_RAW) + global.nsectors = scg_bufsize(scgp, 3*1024*1024)/CD_FRAMESIZE_RAW; ++#endif + if (global.overlap >= global.nsectors) + global.overlap = global.nsectors-1; + +@@ -593,9 +618,6 @@ exit(RACE_ERROR); } #endif @@ -27,7 +53,7 @@ } return retval; } -@@ -888,6 +893,7 @@ +@@ -888,6 +910,7 @@ FatalError("No memory for SCSI structure.\n"); } scgp->silent = 0; diff --git a/sysutils/cdrtools-devel/pkg-descr b/sysutils/cdrtools-devel/pkg-descr index ca090d5..0218a49 100644 --- a/sysutils/cdrtools-devel/pkg-descr +++ b/sysutils/cdrtools-devel/pkg-descr @@ -1,15 +1,21 @@ -This package contains the following software: +The cdrtools software includes tools to create and/or extract +ISO-9660 filesystems, verify their integrity, and write them to +disc. -- cdda2wav (an digital CD audio extraction program) - -- cdrecord (a CD recording program) - -- readcd (a stripped down version of scgskeleton) - may be used to read data CD's, to write to DVD-RAM - and to copy Solaris boot CD's - -- scgcheck (checks and validates the ABI of libscg) - -- rscsi (daemon providing access to local SCSI-devices over the network) +This package contains the following programs: +- cdda2wav (an digital CD audio extraction program) +- cdrecord (a CD-R[W] recording program) +- devdump (dump a device or file in hex) +- isodebug (show debug info contained in an ISO-9660 image) +- isodump (dump a device or file based on ISO-9660) +- isoinfo (analyze or list an ISO-9660 image) +- isovfy (verify an ISO-9660 image) +- mkisofs (an ISO-9660 filesystem image creator) +- mkhybrid (an ISO-9660/HFS filesystem image creator) + Link to mkisofs. +- readcd (a data CD reading and recording program) + May be used to to write to DVD-RAM and to copy Solaris boot CD's. +- scgcheck (checks and validates the ABI of libscg) +- rscsi (daemon providing access to local SCSI-devices over the network) WWW: http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html diff --git a/sysutils/cdrtools-devel/pkg-descr.mkisofs b/sysutils/cdrtools-devel/pkg-descr.mkisofs deleted file mode 100644 index dd8933f..0000000 --- a/sysutils/cdrtools-devel/pkg-descr.mkisofs +++ /dev/null @@ -1,21 +0,0 @@ -This package contains the following software: - -- mkisofs (an ISO-9660 filesystem image creator) - It takes a snapshot of a given directory tree, and generates a binary - image which will correspond to an iso9660 filesystem when written to - a block device. - -- mkhybrid (an ISO-9660/HFS filesystem image creator) - Link to mkisofs - -- several diagnostic programs for ISO-9660 - - - devdump dump a device or file in hex - - - isodump dump a device or file based on ISO-9660 - - - isoinfo analyze or list an ISO-9660 image - - - isovfy verify an ISO-9660 image - -WWW: http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html diff --git a/sysutils/cdrtools-devel/pkg-plist b/sysutils/cdrtools-devel/pkg-plist index 8bf4fab..cf56655 100644 --- a/sysutils/cdrtools-devel/pkg-plist +++ b/sysutils/cdrtools-devel/pkg-plist @@ -1,6 +1,13 @@ bin/cdda2wav bin/cdrecord +bin/devdump +bin/isodebug +bin/isodump +bin/isoinfo +bin/isovfy bin/list_audio_tracks +bin/mkhybrid +bin/mkisofs bin/readcd bin/scgcheck %%RSCSI%%sbin/rscsi @@ -38,4 +45,21 @@ etc/cdrecord.sample %%PORTDOCS%%%%DOCSDIR%%/cdda2wav/THANKS %%PORTDOCS%%%%DOCSDIR%%/cdda2wav/TODO %%PORTDOCS%%@dirrm %%DOCSDIR%%/cdda2wav +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.compression +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.eltorito +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.graft_dirs +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.hfs_boot +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.hfs_magic +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.hide +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.joliet +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.macosx +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.mkhybrid +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.prep_boot +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.rootinfo +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.session +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.sort +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.sparcboot +%%PORTDOCS%%%%DOCSDIR%%/mkisofs/README.sunx86boot +%%PORTDOCS%%@dirrm %%DOCSDIR%%/mkisofs %%PORTDOCS%%@dirrm %%DOCSDIR%% diff --git a/sysutils/cdrtools-devel/pkg-plist.mkisofs b/sysutils/cdrtools-devel/pkg-plist.mkisofs deleted file mode 100644 index 6a6a2a1..0000000 --- a/sysutils/cdrtools-devel/pkg-plist.mkisofs +++ /dev/null @@ -1,24 +0,0 @@ -bin/devdump -bin/isodebug -bin/isodump -bin/isoinfo -bin/isovfy -bin/mkhybrid -bin/mkisofs -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/README.compression -%%PORTDOCS%%%%DOCSDIR%%/README.eltorito -%%PORTDOCS%%%%DOCSDIR%%/README.graft_dirs -%%PORTDOCS%%%%DOCSDIR%%/README.hfs_boot -%%PORTDOCS%%%%DOCSDIR%%/README.hfs_magic -%%PORTDOCS%%%%DOCSDIR%%/README.hide -%%PORTDOCS%%%%DOCSDIR%%/README.joliet -%%PORTDOCS%%%%DOCSDIR%%/README.macosx -%%PORTDOCS%%%%DOCSDIR%%/README.mkhybrid -%%PORTDOCS%%%%DOCSDIR%%/README.prep_boot -%%PORTDOCS%%%%DOCSDIR%%/README.rootinfo -%%PORTDOCS%%%%DOCSDIR%%/README.session -%%PORTDOCS%%%%DOCSDIR%%/README.sort -%%PORTDOCS%%%%DOCSDIR%%/README.sparcboot -%%PORTDOCS%%%%DOCSDIR%%/README.sunx86boot -%%PORTDOCS%%@dirrm %%DOCSDIR%% |