--- yaret-2.1.0.orig/debian/README.Debian +++ yaret-2.1.0/debian/README.Debian @@ -0,0 +1,14 @@ +YaRET for Debian +---------------- + +If you do not want to normalize, you can specify the option +--normalize=no_normalize + +If you do not want to encode, you can specify the option --encoder=wav + +Lame or oggenc are the recommended encoders, but both they and 'bladeenc' +and 'flac' are supported. Additionally if you are using flac 1.1 or higher +please look at /usr/share/yaret/flac_cushion.pl for getting YaRET to add +comments to flac files. + + -- Marco Nenciarini , Fri, 11 Jun 2004 13:17:53 +0200 --- yaret-2.1.0.orig/debian/changelog +++ yaret-2.1.0/debian/changelog @@ -0,0 +1,61 @@ +yaret (2.1.0-5.1) unstable; urgency=medium + + * Non-maintainer upload. + * Bumped DH level to 10. (Closes: #817742) + * Used wrap-and-sort. + * debian/control: + - Added Homepage field. + - Bumped Standards-Version to 3.9.8. + - Removed the leading article from short description. + + -- Joao Eriberto Mota Filho Wed, 12 Oct 2016 22:28:47 -0300 + +yaret (2.1.0-5) unstable; urgency=low + + * Changed build system to cdbs. + * Never store the pid of a new child process if it is already + terminated. Thanks to Ken Neighbors for + the patch. (Closes: #309617) + * Check for pending alarm before going to sleep. Thanks to + Ken Neighbors for the patch. + + -- Marco Nenciarini Sat, 4 Mar 2006 21:59:50 +0100 + +yaret (2.1.0-4) unstable; urgency=low + + * Updated FSF address in the copyright files + * Bump Standards-Version to 3.6.2.0; no changes required + * Configured sensible-editor as default editor for CDDB data. + (Closes: #299255) + * Never use white color to print informations, this solves 'white on + white' issue if you use a white background (as gnome do as default) + * Better handle temporary files calling CDDB editor in order to allow + use of programs that doesn't allow editing of /dev/fd/ files. + + -- Marco Nenciarini Fri, 20 Jan 2006 17:38:34 +0100 + +yaret (2.1.0-3) unstable; urgency=low + + * Updated some commented entry in /usr/share/yaret/dot-yaretrc + * Corrected typo in /usr/share/yaret/oggdec_vorbiscomment_cushion.pl + + -- Marco Nenciarini Fri, 7 Jan 2005 12:39:42 +0100 + +yaret (2.1.0-2) unstable; urgency=low + + * Changed Architecture specification from 'any' to 'all' in + debian/control: this is a perl script! + * Modified debian/rules in order to build the package in binay-indep + target. + * Added debian/watch file. + + -- Marco Nenciarini Mon, 23 Aug 2004 16:01:30 +0200 + +yaret (2.1.0-1) unstable; urgency=low + + * Initial Release. + * Closes: #253836: ITP: yaret -- A console tool to turn CDs into + encoded music + + -- Marco Nenciarini Fri, 11 Jun 2004 16:57:22 +0200 + --- yaret-2.1.0.orig/debian/compat +++ yaret-2.1.0/debian/compat @@ -0,0 +1 @@ +10 --- yaret-2.1.0.orig/debian/control +++ yaret-2.1.0/debian/control @@ -0,0 +1,24 @@ +Source: yaret +Section: sound +Priority: optional +Maintainer: Marco Nenciarini +Build-Depends-Indep: cdbs, debhelper (>= 10), quilt +Standards-Version: 3.9.8 +Homepage: http://www.nongnu.org/yaret + +Package: yaret +Architecture: all +Depends: cdparanoia | cdda2wav, + libappconfig-perl, + libaudio-cd-perl, + vorbis-tools | flac, + ${misc:Depends}, + ${perl:Depends} +Description: console tool to turn CDs into encoded music + YaRET is a Perl script that automates the ripping, normalization, and + encoding of CDs. It supports CDDB very well via the Perl Audio::CD + module, and also can work with your favorite ripper/normalizer/encoder + (e.g., cdparanoia, cdda2wav, normalize, etc.) It supports useful + features like multiple concurrent encoders and an easy to use + configuration file that lets you customize YaRET to your taste (such as + file naming based on the CDDB information). --- yaret-2.1.0.orig/debian/copyright +++ yaret-2.1.0/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Marco Nenciarini on +Fri, 11 Jun 2004 13:17:53 +0200. + +It was downloaded from http://savannah.nongnu.org/download/yaret/ + +Upstream Authors: Adam Luter , + Marco Nenciarini + +Copyright: + + YaRET -- Yet another Ripper-Encoder-Tagger + + Copyright (c) 2004 by Marco Nenciarini + and by Adam Luter + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in /usr/share/common-licenses/GPL'. --- yaret-2.1.0.orig/debian/dirs +++ yaret-2.1.0/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/yaret --- yaret-2.1.0.orig/debian/docs +++ yaret-2.1.0/debian/docs @@ -0,0 +1,2 @@ +README +TODO --- yaret-2.1.0.orig/debian/patches/101_sensible-editor.patch +++ yaret-2.1.0/debian/patches/101_sensible-editor.patch @@ -0,0 +1,44 @@ +Index: yaret-2.1.0/yaret +=================================================================== +--- yaret-2.1.0.orig/yaret 2006-03-05 12:35:29.000000000 +0100 ++++ yaret-2.1.0/yaret 2006-03-05 12:37:41.000000000 +0100 +@@ -33,9 +33,10 @@ + # also install Debian packages: libcdaudio0 libcdaudio0-dev + # The remaining seem to be installed by default: + use POSIX qw(:sys_wait_h); +-use File::Temp qw(tempfile); ++use File::Temp; + use Fcntl qw(F_SETFD); + use File::Path; ++use IO::File; + + ######################################## + # Optional Modules (Loaded later) +@@ -785,20 +786,18 @@ + + sub edit_cddb { + my $editor; +- for my $test ($ENV{EDITOR}, "/usr/bin/jove", "/usr/bin/pico", "/bin/vi") { ++ for my $test ("/usr/bin/sensible-editor", $ENV{EDITOR}, "/usr/bin/jove", "/usr/bin/pico", "/usr/bin/vi") { + ($editor = $test, last) if defined $test and -e $test; + } +- my $fh = tempfile(DIR=>$root_work); +- dump_cddb_file $fh; +- # fnctl makes sure the filehandle $fh does not closed when we execute +- # the editor +- fcntl $fh, F_SETFD, 0; +- $? = system $editor, "/dev/fd/".fileno($fh); ++ my $tfile = new File::Temp(TEMPLATE=>'yaretXXXX', DIR=>$root_work, SUFFIX=>'.tmp'); ++ dump_cddb_file $tfile; ++ $tfile->close; ++ $? = system $editor, "$tfile"; + die sprintc $ERROR, "Could not run editor ($editor) [$?]" + if ($?); +- seek $fh, 0, 0; ++ my $fh = new IO::File("< $tfile"); + read_cddb_file $fh, 1; # 1 means overwrite previous information in memory +- close $fh; ++ $fh->close; + } + + sub confirm_cddb { --- yaret-2.1.0.orig/debian/patches/102_no-white-text.patch +++ yaret-2.1.0/debian/patches/102_no-white-text.patch @@ -0,0 +1,13 @@ +Index: yaret-2.1.0/yaret +=================================================================== +--- yaret-2.1.0.orig/yaret 2006-03-05 12:37:41.000000000 +0100 ++++ yaret-2.1.0/yaret 2006-03-05 12:38:36.000000000 +0100 +@@ -394,7 +394,7 @@ + my ($NORM, $INFO, $START, $DONE, $ERROR, $ALERT); + sub set_color_themes { + $NORM=$RESET; +- $INFO=$BOLD.$WHITE; ++ $INFO=$RESET.$BOLD; + $START=$BOLD.$GREEN; + $DONE=$BOLD.$CYAN; + $ERROR=$BOLD.$RED; --- yaret-2.1.0.orig/debian/patches/103_contrib-typo.patch +++ yaret-2.1.0/debian/patches/103_contrib-typo.patch @@ -0,0 +1,13 @@ +Index: yaret-2.1.0/contrib/oggdec_vorbiscomment_cushion.pl +=================================================================== +--- yaret-2.1.0.orig/contrib/oggdec_vorbiscomment_cushion.pl 2006-03-05 12:24:54.000000000 +0100 ++++ yaret-2.1.0/contrib/oggdec_vorbiscomment_cushion.pl 2006-03-05 12:39:00.000000000 +0100 +@@ -25,7 +25,7 @@ + album=$album + artist=$artist + tracknumber=$tracknum +-gerne=$genre ++genre=$genre + year=$year + EOF"; + exit 0; --- yaret-2.1.0.orig/debian/patches/104_dead-child.patch +++ yaret-2.1.0/debian/patches/104_dead-child.patch @@ -0,0 +1,29 @@ +Index: yaret-2.1.0/yaret +=================================================================== +--- yaret-2.1.0.orig/yaret 2006-03-05 12:38:36.000000000 +0100 ++++ yaret-2.1.0/yaret 2006-03-05 12:39:25.000000000 +0100 +@@ -441,6 +441,7 @@ + my %date; # start and end dates + my %workfile; # these files are removed if we die suddenly + my %kid; # keeps track of our children ++my %dead; # keeps track of dead children + my %skip_track; # which tracks to skip + my $cd; # Audio::CD interface to CD + my $cd_info; # Audio::CD::Info object +@@ -460,6 +461,7 @@ + sub kid_killer { + while ((my $deadone = waitpid(-1, WNOHANG)) > 0) { + delete $kid{$deadone}; ++ ++$dead{$deadone}; + } + } + +@@ -852,7 +854,7 @@ + pipe $read, $write; + if ( my $pid = fork ) { # I am the parent + close $write; +- $kid{$pid}{$type} = $read; ++ $kid{$pid}{$type} = $read unless $dead{$pid}; + return [$pid, $read]; + } else { # I am the child + $0 = "$0 - ($type)"; --- yaret-2.1.0.orig/debian/patches/105_alarm.patch +++ yaret-2.1.0/debian/patches/105_alarm.patch @@ -0,0 +1,69 @@ +Index: yaret-2.1.0/yaret +=================================================================== +--- yaret-2.1.0.orig/yaret 2006-03-05 12:39:25.000000000 +0100 ++++ yaret-2.1.0/yaret 2006-03-05 12:39:55.000000000 +0100 +@@ -449,6 +449,7 @@ + my $track = {}; # traslated Audio::CD::Info->tracks + my %status; # holds the filehandles to read status from + my $grand_dad = 1; # are we the main parent? ++my $alarm = 0; # set to 1 when an alarm signal is received + + sub kill_all { + kill "SIGINT" => keys %kid; +@@ -466,7 +467,7 @@ + } + + sub set_default_signals { +- $SIG{ALRM} = sub{};#'IGNORE'; ++ $SIG{ALRM} = sub { $alarm = 1 }; + $SIG{CHLD} = \&kid_killer; + $SIG{INT} = \&kill_all; + $SIG{TERM} = \&kill_all; +@@ -1065,7 +1066,8 @@ + send_message($parent, type=>'startup'); + my @found; + do { +- sleep; ++ sleep unless $alarm; ++ $alarm = 0; + my $glob = make_filename "*", $settings{from_name}; + @found = glob($glob); + $workfile{$_} = 1 for @found; +@@ -1119,7 +1121,9 @@ + printc $INFO, "Waiting for work: \u$settings{name}\n"; + send_message($parent, type=>'startup'); + do { +- sleep, check_message; ++ sleep unless $alarm; ++ $alarm = 0; ++ check_message; + my $glob = make_filename "*", $settings{from_name}; + my $track_regex = make_filename '(\\d+)', $settings{from_name}; + $track_regex = '^'.$track_regex.'$'; +@@ -1148,7 +1152,11 @@ + $my_kid{$filename} = make_kid $settings{name}."_kid", $settings{sub_call}, $track_num, %settings; + } + } while $done < keys %{$track}; +- (sleep, check_message) until kid_done $settings{name}."_kid"; ++ until (kid_done $settings{name}."_kid") { ++ sleep unless $alarm; ++ $alarm = 0; ++ check_message; ++ }; + } + + sub send_signal { +@@ -1329,8 +1337,11 @@ + $status{group}{$encoder} = 'encoder'; + } + +-sleep, print_status +- until kid_done keys %{ $status{kid} }; ++do { ++ sleep unless $alarm; ++ $alarm = 0; ++ print_status; ++} until kid_done keys %{ $status{kid} }; + + rmdir $root_work; + --- yaret-2.1.0.orig/debian/patches/201_auto_user_config.patch +++ yaret-2.1.0/debian/patches/201_auto_user_config.patch @@ -0,0 +1,25 @@ +Index: yaret-2.1.0/yaret +=================================================================== +--- yaret-2.1.0.orig/yaret 2006-03-05 12:39:55.000000000 +0100 ++++ yaret-2.1.0/yaret 2006-03-05 12:40:30.000000000 +0100 +@@ -213,11 +213,19 @@ + } + } + my $yaretrc = "$ENV{HOME}/.yaretrc"; ++ my $default_yaretrc = "/usr/share/yaret/dot-yaretrc"; + if (-r $yaretrc) { + load_config_file $yaretrc; + } else { + # please note, no color on this warning, because we have not loaded Term::ANSIColor +- warn "Perhaps you'd like to make a $yaretrc file to remove this warning (or make it readable)"; ++ # warn "Perhaps you'd like to make a $yaretrc file to remove this warning (or make it readable)"; ++ if (-e $yaretrc) { ++ warn "Perhaps you'd like to make $yaretrc readable to remove this warning."; ++ } ++ else { ++ system "cp $default_yaretrc $yaretrc" ++ and warn "No $yaretrc found. New file created using defaults."; ++ } + } + load_config_file @{$config->conf_file()}; + $config->getopt; --- yaret-2.1.0.orig/debian/patches/202_FHS.patch +++ yaret-2.1.0/debian/patches/202_FHS.patch @@ -0,0 +1,31 @@ +Index: yaret-2.1.0/yaret +=================================================================== +--- yaret-2.1.0.orig/yaret 2006-03-05 12:40:30.000000000 +0100 ++++ yaret-2.1.0/yaret 2006-03-05 12:40:44.000000000 +0100 +@@ -336,7 +336,7 @@ + --encoder_nice= As --ripper_nice + + Please see the yaretrc file as well as the README and yaretrc files that came +-with YaRET (perhaps located in /usr/doc/yaret) for more information about ++with YaRET (perhaps located in /usr/share/doc/yaret) for more information about + configuring the many features that YaRET comes with. (If this page is too + long to view, try 'yaret -h|less' or 'yaret -h|more'). + +Index: yaret-2.1.0/yaretrc +=================================================================== +--- yaret-2.1.0.orig/yaretrc 2006-03-05 12:35:16.000000000 +0100 ++++ yaret-2.1.0/yaretrc 2006-03-05 12:40:44.000000000 +0100 +@@ -189,11 +189,11 @@ + # More examples, these require the *_cushion.pl files in the contrib/ directory + # to be copied to somewhere in your path. + [encoder] +-#command my_flac="flac_cushion.pl FILE_IN FILE_OUT QUALITY TRACK ALBUM TRACKNUM ARTIST GENRE YEAR" ++#command my_flac="/usr/share/yaret/flac_cushion.pl FILE_IN FILE_OUT QUALITY TRACK ALBUM TRACK_NUM ARTIST GENRE YEAR" + #quality my_flac=5 + #extension my_flac=.flac + +-#command my_ogg="oggdec_vorbiscomment_cushion.pl FILE_IN FILE_OUT QUALITY TRACK ALBUM TRACKNUM ARTIST GENRE YEAR" ++#command my_ogg="/usr/share/yaret/oggdec_vorbiscomment_cushion.pl FILE_IN FILE_OUT QUALITY TRACK ALBUM TRACK_NUM ARTIST GENRE YEAR" + #quality my_ogg=3 + #extension my_ogg=.ogg + --- yaret-2.1.0.orig/debian/patches/README +++ yaret-2.1.0/debian/patches/README @@ -0,0 +1,3 @@ +0xx: Grabbed from upstream development. +1xx: Possibly relevant for upstream adoption. +2xx: Only relevant for official Debian release. --- yaret-2.1.0.orig/debian/patches/series +++ yaret-2.1.0/debian/patches/series @@ -0,0 +1,7 @@ +101_sensible-editor.patch +102_no-white-text.patch +103_contrib-typo.patch +104_dead-child.patch +105_alarm.patch +201_auto_user_config.patch +202_FHS.patch --- yaret-2.1.0.orig/debian/rules +++ yaret-2.1.0/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk + +install/yaret:: + install -m 755 yaret debian/yaret/usr/bin/yaret + install -m 644 yaretrc debian/yaret/usr/share/yaret/dot-yaretrc + install -m 755 contrib/* debian/yaret/usr/share/yaret --- yaret-2.1.0.orig/debian/watch +++ yaret-2.1.0/debian/watch @@ -0,0 +1,3 @@ +# Site Directory Pattern Version Script +version=2 +http://savannah.nongnu.org/download/yaret/ (?:.*/)?yaret-?_?([\w+\d+\.]+|\d+)(\.tar|\.tgz)(\.gz|\.bz2|) debian uupdate --- yaret-2.1.0.orig/debian/yaret.1 +++ yaret-2.1.0/debian/yaret.1 @@ -0,0 +1,240 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH YARET 1 "June 2004" "YaRET 2.1.0 (Jul 10, 2003)" "User Commands" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +YaRET \- Yet another Ripper Encoder Tagger +.SH SYNOPSIS +.B yaret +.RI [ options ] +.br +.B yaret +.RI [--help|--version|--option_only] +.SH DESCRIPTION +This manual page documents briefly the +.B yaret +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +.B YaRET +is a Perl script that automates the ripping, normalization, and +encoding of CDs. It supports CDDB very well via the Perl Audio::CD +module, and also can work with your favorite ripper/normalizer/encoder +(e.g., cdparanoia, cdda2wav, normalize, etc.) It supports useful +features like multiple concurrent encoders and an easy to use +configuration file that lets you customize YaRET to your taste (such as +file naming based on the CDDB information). +.PP +Please see your ~/.yaretrc file (auto-generated at the first time +execution) as well as the /usr/share/doc/yaret/README and yaretrc +files that came with YaRET (perhaps located in +/usr/share/yaret/dot-yaretrc) for more information about configuring +the many features that YaRET comes with. +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +.PP +[General] +.TP +\fB\-h\fR, \fB\-\-help\fR +Display this help (also -?) +.TP +\fB\-v\fR, \fB\-\-version\fR +Display the version +.TP +\fB\-\-option_only\fR +Display configuration data +.TP +\fB\-f\fR, \fB\-\-include=\fR +Include this file as configuration +data (in addition to ~/.yaretrc and +any command line options) +(also \fB\-\-conf_file\fR) +.TP +\fB\-\-cddb_file=\fR +Include this CDDB information in +addition to that obtained from the +CDDB query (in same format as both +\fB\-\-cddb_dump\fR and \fB\-\-cddb_out\fR produce) +.TP +\fB\-\-max_fork=\fR +Maximum number of normalizers and +encoders forked (per type) +.TP +\fB\-\-size_order\fR +Sorts tracks in order of size, +completing smaller ones first. +.PP +[Display] +.TP +\fB\-\-date\fR +Display the start/end times +.TP +\fB\-\-color\fR +Use color +.TP +\fB\-\-alarm\fR +Send beeps when completed +.TP +\fB\-\-clear\fR +Clear the screen +.TP +\fB\-\-quiet\fR +Do not display anything except errors +.PP +[Paths and Filenames] +.TP +\fB\-\-root_final=\fR +Where to place the results +.TP +\fB\-\-root_work=\fR +Where to work on the results +.TP +\fB\-\-output_name=\fR +How to name the final file +.TP +\fB\-\-output_path=\fR +Path under root_final to place file +.TP +\fB\-\-output_track_num_format=\fR +Specifies a printf format for the track +numbering, e.g. "%02d" +.TP +\fB\-\-output_trans=\fR +Specifies a regular expression +that effects the output of what +filename is generated, e.g. "tr/ /_/" +.PP +[CDDB Overrides] +.TP +\fB\-\-global\fR=== +e.g. ARTIST=Bare Naked Ladies +(Make sure to use escapes or quotes) +(also \fB\-\-cddb_global\fR) +.TP +\fB\-\-track\fR===[= ]* +e.g. 14=TRACK=Alone ARTIST=Heart +(Make sure to use escapes or quotes) +.TP +\fB\-\-cddb_dump=\fR +Dump cddb information to +then exit (no editing, encoding, etc.) +.TP +\fB\-\-cddb_out=\fR +After the entire process is completed, +output the cddb information to +. This filename works with +the same pattern rules as the other +output files, however some keyword may +may not be available. The information +saved will reflect any editing. +.TP +\fB\-\-confirm\fR +Confirm cddb information +(also \fB\-\-cddb_confirm\fR) +Use \fB\-\-noconfirm\fR to turn off. +.PP +[Ripper] +.TP +\fB\-r\fR, \fB\-\-ripper=\fR