# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # ripit-dagrab # ripit-dagrab/files # ripit-dagrab/files/md5 # ripit-dagrab/pkg # ripit-dagrab/pkg/COMMENT # ripit-dagrab/pkg/DESCR # ripit-dagrab/pkg/PLIST # ripit-dagrab/patches # ripit-dagrab/patches/patch-aa # ripit-dagrab/Makefile # echo c - ripit-dagrab mkdir -p ripit-dagrab > /dev/null 2>&1 echo c - ripit-dagrab/files mkdir -p ripit-dagrab/files > /dev/null 2>&1 echo x - ripit-dagrab/files/md5 sed 's/^X//' >ripit-dagrab/files/md5 << 'END-of-ripit-dagrab/files/md5' XMD5 (ripit-1.5.tar.gz) = ad796d63c258a68de7edc800bfc67e9b END-of-ripit-dagrab/files/md5 echo c - ripit-dagrab/pkg mkdir -p ripit-dagrab/pkg > /dev/null 2>&1 echo x - ripit-dagrab/pkg/COMMENT sed 's/^X//' >ripit-dagrab/pkg/COMMENT << 'END-of-ripit-dagrab/pkg/COMMENT' XA perl-script frontend for encoding audio CDs to MP3 files (ATAPI) END-of-ripit-dagrab/pkg/COMMENT echo x - ripit-dagrab/pkg/DESCR sed 's/^X//' >ripit-dagrab/pkg/DESCR << 'END-of-ripit-dagrab/pkg/DESCR' Xripit X----- X Xripit is a small front-end program written in perl for ripping, Xencoding & tagging MP3s. It is a console program that needs no user Xintervention. It requires dagrab, bladeenc and xmcd (for CDDB access). X XWWW: http://www.netcomuk.co.uk/~squinn/ripit.html X XThis version has been modified from the original 'ripit' port to use Xdagrab (/usr/ports/audio/dagrab) to rip the tracks, for those of us (unfortunate Xenough) who own ATAPI CD-ROM drives. (Some drives produce nothing but noise when ripping with cdd; Xit's probably an endianness issue. X XOriginal script by Simon Quinn Xcdd version by Donald Burr <dburr@pobox.com> Xdagrab version by Matt Storch <idiotsavant@mail.com> X X END-of-ripit-dagrab/pkg/DESCR echo x - ripit-dagrab/pkg/PLIST sed 's/^X//' >ripit-dagrab/pkg/PLIST << 'END-of-ripit-dagrab/pkg/PLIST' Xbin/ripit.pl END-of-ripit-dagrab/pkg/PLIST echo c - ripit-dagrab/patches mkdir -p ripit-dagrab/patches > /dev/null 2>&1 echo x - ripit-dagrab/patches/patch-aa sed 's/^X//' >ripit-dagrab/patches/patch-aa << 'END-of-ripit-dagrab/patches/patch-aa' X*** ripit.pl.orig Mon Aug 2 18:48:31 1999 X--- ripit.pl Wed Apr 19 13:30:39 2000 X*************** X*** 18,24 **** X # --device - CDROM device to rip from X # X # Version 1.5 01/08/99 - Simon Quinn X! # X # Usage: ripit.pl [--halt] [--bitrate rate] X # [--year year] [--device cddevice] [start_track] X #################################################################### X--- 18,32 ---- X # --device - CDROM device to rip from X # X # Version 1.5 01/08/99 - Simon Quinn X! # Version 1.5db 09/09/99 - Donald Burr <dburr@pobox.com> X! # Modified to use cdd instead of tosha, for those of us X! # (unfortunate enough) who have ATAPI/IDE CD-ROMs. Tested X! # on FreeBSD with the FreeBSD cdd port (/usr/ports/audio/cdd), X! # YMMV if you are using a different OS. X! # Version 1.5ms 04/19/2000 - Matt Storch <idiotsavant@mail.com> X! # Modified again to use dagrab instead of cdd, because some X! # drives return only noise when using cdd (probably an endianness X! # issue). Also does not require sox. X # Usage: ripit.pl [--halt] [--bitrate rate] X # [--year year] [--device cddevice] [start_track] X #################################################################### X*************** X*** 26,35 **** X # User configurable variables X # X X! $cddev = "/dev/cdrom"; # CD Audio device X! $outputdir = "/dosc/cdrip/"; # Where the MP3s should go X $bitrate = 160; # Bitrate for MP3s X! $encoder = 1; # 0 - Bladeenc, 1 - Lame X X $use_underscore = 0; # Use _ instead of spaces in filenames (1 yes, 0 no) X X--- 34,45 ---- X # User configurable variables X # X X! # Note: devices must be specified this way (strip the leading '/dev/' X! # and the trailing partition letter) because this is the way cdd wants it. X! $cddev = "acd0"; # CD Audio device X! $outputdir = "~/mp3/"; # Where the MP3s should go X $bitrate = 160; # Bitrate for MP3s X! $encoder = 0; # 0 - Bladeenc, 1 - Lame X X $use_underscore = 0; # Use _ instead of spaces in filenames (1 yes, 0 no) X X*************** X*** 44,50 **** X X ####################################################################### X # No User configurable parameters below here X! ####################################################################### X X require "flush.pl"; X use Getopt::Long; X--- 54,60 ---- X X ####################################################################### X # No User configurable parameters below here X! ###################################################################### X X require "flush.pl"; X use Getopt::Long; X*************** X*** 173,181 **** X X system("rm $tocfile >/dev/null 2>&1"); X X! system("cda -dev $cddev on >/dev/null 2>&1") ; X! system("cda -dev $cddev toc >$tocfile") ; X! system("cda -dev $cddev off >/dev/null 2>&1") ; X X if ( ! -r $tocfile ) { die "$tocfile is missing"; } X } X--- 183,191 ---- X X system("rm $tocfile >/dev/null 2>&1"); X X! system("cda -dev /dev/r${cddev}c on >/dev/null 2>&1") ; X! system("cda -dev /dev/r${cddev}c toc >$tocfile") ; X! system("cda -dev /dev/r${cddev}c off >/dev/null 2>&1") ; X X if ( ! -r $tocfile ) { die "$tocfile is missing"; } X } X*************** X*** 208,214 **** X X # Get the artist and album X if ($recnum eq 2) { X! $_ =~ s/[;:*#?|><"]//g; # Strip dodgey chars X $_ =~ s/`/'/g; X if (/\//) { X $artist = substr($_, 0, rindex($_, "/")); X--- 218,224 ---- X X # Get the artist and album X if ($recnum eq 2) { X! $_ =~ s/[;:*#?|><"()]//g; # Strip dodgey chars X $_ =~ s/`/'/g; X if (/\//) { X $artist = substr($_, 0, rindex($_, "/")); X*************** X*** 236,242 **** X # with Track 01, Track 02 etc. Otherwise use the CDDB track info X X if (substr($_,1,2) >=1 && substr($_,1,2) <= 99 && substr($_,3,1) eq ' ') { X! $_ =~ s/[;:*#?|><"]//g; # Strip dodgey chars, NB different to above X $_ =~ s/`/'/g; # Change ` to ' to avoid problems later X $_ =~ s/\//-/g; # Change / to - to avoid problems later X if ($nocddbinfo == 0) { X--- 246,252 ---- X # with Track 01, Track 02 etc. Otherwise use the CDDB track info X X if (substr($_,1,2) >=1 && substr($_,1,2) <= 99 && substr($_,3,1) eq ' ') { X! $_ =~ s/[;:*#?|><"()]//g; # Strip dodgey chars, NB different to above X $_ =~ s/`/'/g; # Change ` to ' to avoid problems later X $_ =~ s/\//-/g; # Change / to - to avoid problems later X if ($nocddbinfo == 0) { X*************** X*** 327,342 **** X $riptrackname = &get_trackname($_, $tracklist[$_ - 1]); X $riptrackno = $_; X X &printflush(RIPLOG,"Ripping $tracklist[$_ - 1]...\n"); X X! if (system("cdparanoia -d $cddev $riptrackno \"$riptrackname.rip\"")) { X! &printflush(RIPLOG,"cdparanoia failed on $tracklist[$_ - 1]\n"); X! die "cdparanoia failed on $tracklist[$_ - 1]"; X } X X- # Rename rip file to a wav for encoder X- rename "$riptrackname.rip","$riptrackname.wav"; X- X &printflush(RIPLOG,"Rip complete $tracklist[$_ - 1]\n"); X X # Start the Encoder in the background. but only once X--- 337,350 ---- X $riptrackname = &get_trackname($_, $tracklist[$_ - 1]); X $riptrackno = $_; X X+ print "Ripping track $tracklist[$_ - 1]...\n"; X &printflush(RIPLOG,"Ripping $tracklist[$_ - 1]...\n"); X X! if (system("dagrab -d /dev/r${cddev}c -f \"$riptrackname.wav\" $riptrackno >/dev/null")) { X! &printflush(RIPLOG,"dagrab failed on $tracklist[$_ - 1]\n"); X! die "dagrab failed on $tracklist[$_ - 1]"; X } X X &printflush(RIPLOG,"Rip complete $tracklist[$_ - 1]\n"); X X # Start the Encoder in the background. but only once X*************** X*** 367,373 **** X print "\nMP3 Encoding track ".$ncount." of ".($#seltrack + 1)."\n"; X &printflush(RIPLOG,"Encoding $tracklist[$_ - 1]...\n"); X X! # Keep looping until the file appears, ie wait for cdparanoia X # timeout after 30 minutes X $x=0; X while( ! -r "$riptrackname.wav" ){ X--- 375,381 ---- X print "\nMP3 Encoding track ".$ncount." of ".($#seltrack + 1)."\n"; X &printflush(RIPLOG,"Encoding $tracklist[$_ - 1]...\n"); X X! # Keep looping until the file appears, ie wait for cdd X # timeout after 30 minutes X $x=0; X while( ! -r "$riptrackname.wav" ){ END-of-ripit-dagrab/patches/patch-aa echo x - ripit-dagrab/Makefile sed 's/^X//' >ripit-dagrab/Makefile << 'END-of-ripit-dagrab/Makefile' X# New ports collection makefile for: ripit-atapi X# Date created: 9 Sep 1999 X# Whom: Donald Burr <dburr@FreeBSD.ORG> X# X# $FreeBSD: ports/audio/ripit-atapi/Makefile,v 1.3 2000/04/08 21:24:20 mharo Exp $ X# X XPORTNAME= ripit-dagrab XPORTVERSION= 1.5 XCATEGORIES= audio XMASTER_SITES= http://www.initio.no/~oyvindmo/distfiles/ XDISTNAME= ripit-1.5 X XMAINTAINER= idiotsavant@mail.com X XRUN_DEPENDS= bladeenc:${PORTSDIR}/audio/bladeenc \ X dagrab:${PORTSDIR}/audio/dagrab \ X cda:${PORTSDIR}/audio/xmcd X XNO_BUILD= yes XUSE_PERL5= yes X Xdo-install: X @ ${INSTALL_SCRIPT} ${WRKSRC}/ripit.pl ${PREFIX}/bin X X.include <bsd.port.mk> END-of-ripit-dagrab/Makefile exit
I wonder if we could do a real repo-COPY (not a repo-move :) of the existing ripit-atapi port and patch against this. This keeps the history :) > XThis version has been modified from the original 'ripit' port to use > Xdagrab (/usr/ports/audio/dagrab) to rip the tracks, for those of us (unfortunate > Xenough) who own ATAPI CD-ROM drives. (Some drives produce nothing but noise when ripping with cdd; This is true, i had no luck with the ripit-atapi port myself, too. Alex -- I need a new ~/.sig.
Responsible Changed From-To: freebsd-ports->sada I'm handling this.
State Changed From-To: open->feedback Same as PR:18150.
State Changed From-To: feedback->closed No objections ware presented.