--- audiolink-0.05.orig/code/alfilldb +++ audiolink-0.05/code/alfilldb @@ -31,7 +31,7 @@ use MP3::Info; use File::Find; use Getopt::Long; -use Ogg::Vorbis::Header; +use Ogg::Vorbis::Header::PurePerl; use Pod::Usage; # Options @@ -240,7 +240,7 @@ } elsif ($mp3_ogg == 2) { # we have an Ogg file to work on eval { - $ogg = Ogg::Vorbis::Header->new($pathname); + $ogg = Ogg::Vorbis::Header::PurePerl->new($pathname); }; if ($@) { warn "Couldn't open Vorbis file $pathname; skipping...\n"; --- audiolink-0.05.orig/code/audiolink +++ audiolink-0.05/code/audiolink @@ -28,6 +28,7 @@ use DBI; use Getopt::Long; use Pod::Usage; +use File::Temp qw/ tempfile /; # Options for the database $user = undef; @@ -174,15 +175,15 @@ print "\nCreating the AudioLink database..." if $verbose; -$ret = system("mysqladmin -u$user -p$password -h$host create $db_name 2>/tmp/audiolink.db.tmp"); +my ($tmpFh, $tmpFile) = tempfile("audiolink.db.tmpXXXXXXXXX", UNLINK => 1); +$ret = system("mysqladmin -u$user -p$password -h$host create $db_name 2> $tmpFile"); # or print "\nSome error occured. # If the error reported that the database already exists, it's okay. You already had the database created. # If it was some other error, consult the mysqladmin man page and/or notify the AudioLink developers.\n # Anyways, continuing to create AudioLink tables.\n"; -open (DBOP, "/tmp/audiolink.db.tmp"); -while () { +while (<$tmpFh>) { if ( /database exists/i) { print "The database already exists.\n" if $verbose; } else { @@ -191,18 +192,14 @@ } } -close DBOP; - print "\nCreating the AudioLink tables..." if $verbose; -$ret = system ("mysql -u$user -p$password -h$host $db_name < /usr/share/doc/audiolink/mysql.schema 2>/tmp/audiolink.tb.tmp"); +$ret = system ("mysql -u$user -p$password -h$host $db_name < /usr/share/doc/audiolink/mysql.schema 2> $tmpFile"); # or print "\nSome error occured. # If the error reported that the table already exists, it's okay. You already had the table created. # If it was some other error, consult the mysql man page and/or notify the AudioLink developers.\n"; -open (DBOP, "/tmp/audiolink.tb.tmp"); - -while () { +while (<$tmpFh>) { if ( /already exists/i) { print "The table already exists.\n" if $verbose; } else { --- audiolink-0.05.orig/debian/compat +++ audiolink-0.05/debian/compat @@ -0,0 +1 @@ +4 --- audiolink-0.05.orig/debian/control +++ audiolink-0.05/debian/control @@ -0,0 +1,24 @@ +Source: audiolink +Section: sound +Priority: optional +Maintainer: Amit Shah +Standards-Version: 3.6.1 +Build-Depends-Indep: perl (>= 5.8.2-1) +Build-Depends: debhelper (>> 4.0.0) + +Package: audiolink +Architecture: all +Depends: ${perl:Depends}, mysql-client (>= 4.0.16-2), libdbd-mysql-perl (>= 2.1027-1), libmp3-info-perl (>= 1.01-1), libogg-vorbis-header-pureperl-perl, libfile-temp-perl +Recommends: mysql-server (>=4.0.16-2) +Description: makes managing and searching for music easier + AudioLink is a tool that makes searching for music on your local + storage media easier and faster. Your searches can include a variety + of criteria, like male artists, female artists, band, genre, etc. + . + It works with MP3 and Ogg Vorbis files and creates a MySQL database + in which it stores the information about the music files. It creates + symbolic links to the actual music files based on the search + results. You can search for multiple fields, like artist, band, + composer, lyricist, etc. + . + See http://audiolink.sourceforge.net/ for more information. --- audiolink-0.05.orig/debian/copyright +++ audiolink-0.05/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Amit Shah. + +The debianizing of the package (which involves the stuff in the +debian/ directory and additional patches to the upstream sources, if +any) is Copyright (C) 2003-4 Amit Shah . + +The package was downloaded from + http://sourceforge.net/project/showfiles.php?group_id=8988 + +Upstream Author: Amit Shah + +Copyright: +AudioLink is Copyright (C) 2003, Amit Shah . + +AudioLink is licensed under the GNU GPL version 2 or later. + +AudioLink 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; version 2 of the License, or +(at your option) any later version. + +AudioLink 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 AudioLink; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +See /usr/share/common-licenses/GPL for the complete text. --- audiolink-0.05.orig/debian/changelog +++ audiolink-0.05/debian/changelog @@ -0,0 +1,24 @@ +audiolink (0.05-1.2) unstable; urgency=low + + * Non-maintainer upload. + * Use Ogg::Vorbis::Header::PurePerl instead of Ogg::Vorbis::Header. + (Closes: #655407) + + -- Tim Retout Mon, 09 Apr 2012 20:48:40 +0100 + +audiolink (0.05-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Move debhelper to Build-Depends, to get rid of lintian error + preventing upload. + * Use File:Temp to generate a temporary file (Closes: #496433). + + -- Sebastien Delafond Wed, 03 Sep 2008 14:53:36 -0700 + +audiolink (0.05-1) unstable; urgency=low + + * Initial Release (closes: #222450) + * Sponsored by Gunnar Wolf + + -- Gunnar Wolf Tue, 3 Feb 2004 14:31:50 -0600 + --- audiolink-0.05.orig/debian/docs +++ audiolink-0.05/debian/docs @@ -0,0 +1,7 @@ +README +TODO +CREDITS +RELEASE_NOTES +FEATURES +VERSION +db/mysql.schema --- audiolink-0.05.orig/debian/README.Debian +++ audiolink-0.05/debian/README.Debian @@ -0,0 +1,12 @@ +README for audiolink for Debian + +Help on AudioLink can be obtained in the manual pages accessible by + + man audiolink + man alfilldb + and man alsearch + +For more information, see the AudioLink website, +http://audiolink.sourceforge.net/ + + -- Amit Shah , Tue Feb 3 19:22:42 2004 --- audiolink-0.05.orig/debian/rules +++ audiolink-0.05/debian/rules @@ -0,0 +1,95 @@ +#!/usr/bin/make -f +# Based on sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PACKAGE = $(shell dh_listpackages) +TMP = `pwd`/debian/$(PACKAGE) + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + # Add here commands to compile the package. +# $(MAKE) + #/usr/bin/docbook-to-man debian/audiolink.sgml > audiolink.1 + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + # Add here commands to clean up after the build process. + -$(MAKE) clean + rm -rf `pwd`/debian/CVS + + dh_clean + +install: #build + dh_testdir + dh_testroot + dh_clean -k + + # We don't do installdirs here; since it's done in the upstream Makefile +# dh_installdirs + + # Add here commands to install the package into debian/audiolink. + $(MAKE) install DESTDIR=$(TMP) + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs Changes + dh_installdocs +# dh_installexamples + dh_install +# dh_installmenu + dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_installman +# dh_link + dh_strip + dh_compress + dh_fixperms + dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure