debian/0000755000000000000000000000000011760563746007205 5ustar debian/watch0000644000000000000000000000014511760563746010236 0ustar # Watch file for atool version=3 http://savannah.nongnu.org/download/atool/ atool-([0-9.]+)\.tar\.gz debian/install0000644000000000000000000000004411760563746010574 0ustar atool usr/bin debian/atool.conf etc debian/rules0000755000000000000000000000052611760563746010270 0ustar #!/usr/bin/make -f # -*- makefile -*- %: dh $@ override_dh_auto_build: dh_auto_build perl debian/replace_autoconf_vars atool.1.in atool.1 override_dh_auto_install: dh_auto_install cp $(CURDIR)/extra/bash-completion-atool* $(CURDIR)/debian/atool/etc/bash_completion.d/atool chmod -x $(CURDIR)/debian/atool/etc/bash_completion.d/atool debian/examples0000644000000000000000000000001411760563746010741 0ustar debian/test debian/control0000644000000000000000000000224311760563746010611 0ustar Source: atool Section: utils Priority: optional Maintainer: Francois Marier Build-Depends: debhelper (>= 9) Build-Depends-Indep: perl Standards-Version: 3.9.3 Homepage: http://www.nongnu.org/atool/ Vcs-Git: git://git.debian.org/git/collab-maint/atool.git Vcs-Browser: http://git.debian.org/?p=collab-maint/atool.git;a=summary Package: atool Architecture: all Depends: ${perl:Depends}, ${misc:Depends} Recommends: bash-completion, binutils, bzip2, file, unzip, zip, lbzip2 | pbzip2 Suggests: arc, arj, cpio, lzop, nomarch, rpm, unace, p7zip, unalz, lzma, rar, unrar, xz-utils, lzip Description: tool for managing file archives of various types atool is a script for managing file archives of various types (tar, tar+gzip, zip etc). The main command is probably aunpack, extracting files from an archive. It overcomes the dreaded "multiple files in archive root" problem by first extracting to a unique subdirectory, and then moving back the files if possible. aunpack also prevents local files from being overwritten by mistake. . Other commands provided are apack (create archives), als (list files in archives), and acat (extract files to standard out). debian/docs0000644000000000000000000000003711760563746010060 0ustar README TODO debian/TODO.Debian debian/README.Debian0000644000000000000000000000216411760563746011251 0ustar atool for Debian ----------------- Unrar: The /etc/atool.conf provided by debian set an option for using rar instead of using unrar (use_rar_for_unpack). This is because upstream atool can use another unrar software, which is packaged in debian as unrar-nonfree (in section non-free), but not unrar (in section main). (unrar in main does only support v2 rar-format, unrar-nonfree supports v3). If you really want to use unrar-nonfree, please deactivate this option in /etc/atool.conf. Be aware, ___ this will break ___ rar archives support if you install unrar instead of unrar-nonfree. -- Stephane Jourdois Multi-core CPUs: If you using a machine with more than one CPU core, you should install the pbzip2 (Parallel bzip2) package to speed up bzip2 compression/decompression. To enable support for this program in atool, you will need to add the following to your ~/.atoolrc: use_pbzip2 1 use_tar_bzip2_option 0 Alternatively, you could install the lbzip2 package and set the following in your ~/.atoolrc: path_bzip2 lbzip2 -- Francois Marier Mon, 23 Jun 2008 18:37:26 +1200 debian/changelog0000644000000000000000000001611411760563746011062 0ustar atool (0.39.0-2) unstable; urgency=low * Switch to a minimal debian/rules file -- Francois Marier Mon, 28 May 2012 14:47:47 +1200 atool (0.39.0-1) unstable; urgency=low * New upstream release * Bump Standards-Version to 3.9.3 * Bump debhelper compatibility to 9 * Removed inactive co-maintainer -- Francois Marier Wed, 04 Apr 2012 12:11:32 +1200 atool (0.38.0-1) unstable; urgency=low * New upstream release: - remove all Debian patches (they have been applied upstream) * Add empty build-arch and build-indep targets in debian/rules -- Francois Marier Wed, 17 Aug 2011 07:51:06 +1200 atool (0.37.0-5) unstable; urgency=low * Fix for recognizing .xpi files as zip files (closes: #530812) * Fix detection of 7zip files (closes: #558003) * Bump Standards-Version to 3.9.2 * Remove article from package synopsis (lintian warning) -- Francois Marier Tue, 31 May 2011 23:46:31 +1200 atool (0.37.0-4) unstable; urgency=low * Add a note about lbzip2 in README.Debian * Bump Standards-Version to 3.9.1 * Bump debhelper compatibility to 8 * Remove unnecesary lintian override -- Francois Marier Wed, 22 Dec 2010 13:19:57 +1300 atool (0.37.0-3) unstable; urgency=low * Bump Standards-Version to 3.8.4 * Add ${misc:Depends} dependency * Switch to 3.0 (quilt) package format * Add a patch to fix typos in manpage and split out the hyphen one * Merge the two README.Debian files -- Francois Marier Sun, 31 Jan 2010 21:12:42 +1300 atool (0.37.0-2) unstable; urgency=low * Add configure and make lines to debian/rules (closes: #546735) * Bump Standards-Version to 3.8.3 -- Francois Marier Wed, 16 Sep 2009 16:23:49 +1200 atool (0.37.0-1) unstable; urgency=low * New upstream release - Adds support for xv and lzip * debian/control: add xv-utils and lzip to Suggests -- Francois Marier Fri, 14 Aug 2009 12:23:58 +1200 atool (0.36.0-3) unstable; urgency=low * Update unrar-nonfree to unrar * Bump Standards-Version up to 3.8.2 (no changes) -- Francois Marier Sun, 28 Jun 2009 22:33:56 +1200 atool (0.36.0-2) unstable; urgency=low * Add a symlink for arepack (LP: #373240) * Bump Standards-Version up to 3.8.1 (no changes) -- Francois Marier Fri, 08 May 2009 09:10:35 +1200 atool (0.36.0-1) unstable; urgency=low * New upstream release (closes: #514454) * Add rar and unrar-nonfree to Suggests (closes: #503146) * Bump debhelper compatibility to 7 * Add a lintian override for an incorrect spelling warning -- Francois Marier Fri, 27 Feb 2009 12:40:15 +1300 atool (0.35.0-4) unstable; urgency=low * Fix typos in README.Debian -- Francois Marier Tue, 24 Jun 2008 16:57:28 +1200 atool (0.35.0-3) unstable; urgency=low * Add a number of compression packages to Suggests and Recommends * Recommend pbzip2 and make a note about it in README.Debian -- Francois Marier Mon, 23 Jun 2008 18:38:44 +1200 atool (0.35.0-2) unstable; urgency=low * Install the bash completion blurb for the atool binary * Swap maintainer and uploader fields * Move some packages from Suggests to Recommends -- Francois Marier Mon, 23 Jun 2008 14:41:18 +1200 atool (0.35.0-1) unstable; urgency=low * New upstream release * Bump Standards-Version up to 3.8.0 (no changes) -- Francois Marier Mon, 09 Jun 2008 11:25:34 +1200 atool (0.34.0-1) unstable; urgency=medium * New upstream release (closes: #333956, #438670) * Set myself as co-maintainer with maintainer's permission * Update homepage URL in debian/copyright (closes: #452327) and debian/watch (closes: #450134) * Remove unarj from the suggested packages (closes: #312076) * Mention the collab-maint git repo in debian/control * Bump Standards-Version to 3.7.3 and debhelper compatibility to 6 * Put a proper copyright statement in debian/copyright * Remove Debian patches along with dpatch to facilitate collaborative maintenance in the collab-maint repo. * Move debhelper to Build-Depends and add empty binary-arch targer in debian/rules to fix lintian errors. -- Francois Marier Sat, 26 Apr 2008 17:31:23 +1200 atool (0.29.0-2) unstable; urgency=low * Use rar as unpacker for rar archives by default (Closes: #273009). * Remove Suggests: unrar, as atool supports unrar-nonfree and rar, but not unrar. -- Stephane Jourdois Sun, 03 Oct 2004 14:38:13 +0200 atool (0.29.0-1) unstable; urgency=low * New maintainer, thanks Tommi Virtanen. * Sponsored by Michael Schiansky . * New upstream release (Closes: #254815). * Repackaged from scratch using debconf (Closes: #264691). * Added 2 patches to fix typos in manpage (sent upstream). * Added script to remove autoconf Build-Depend. * Added default conffile. * Added test script in /usr/share/doc/atool/examples/. -- Stephane Jourdois Thu, 12 Aug 2004 16:39:22 +0200 atool (0.11.0-2) unstable; urgency=low * Packaging for Debian. * Removed Suggests: on a non-existing package "bzip" (Closes: #111308). * Made lintian shut up about "Author(s)" in debian/copyright. -- Tommi Virtanen Mon, 10 Sep 2001 21:07:39 +0300 atool (0.11.0-1) unstable; urgency=low * New upstream release. -- Oskar Liljeblad Mon, 13 Aug 2001 23:06:17 +0200 atool (0.10.0-1) unstable; urgency=low * New upstream release. -- Oskar Liljeblad Wed, 1 Aug 2001 10:36:57 +0200 atool (0.9.0-2) unstable; urgency=low * Packaging for Debian. * Verbosity can be adjusted with config files, bug submitter is happy (Closes: #99028). -- Tommi Virtanen Thu, 19 Jul 2001 22:09:28 +0300 atool (0.9.0-1) unstable; urgency=low * New upstream release. -- Oskar Liljeblad Thu, 5 Jul 2001 15:10:00 +0200 atool (0.8.0-2) unstable; urgency=low * Packaging for Debian. -- Tommi Virtanen Sun, 15 Jul 2001 01:07:09 +0300 atool (0.8.0-1) unstable; urgency=low * New upstream release. -- Oskar Liljeblad Thu, 5 Jul 2001 15:10:00 +0200 atool (0.7.0-1) unstable; urgency=low * New upstream release. -- Oskar Liljeblad Mon, 16 Apr 2001 13:36:00 +0200 atool (0.6.0-2) unstable; urgency=low * Packaging for Debian. * NEWS removed from debian/docs, seems like upstream forgot to include it. -- Tommi Virtanen Sat, 14 Apr 2001 19:47:31 +0300 atool (0.6.0-1) unstable; urgency=low * New upstream release. -- Oskar Liljeblad Wed, 4 Apr 2001 14:10:00 +0200 atool (0.5.0-1) unstable; urgency=low * New upstream release. -- Oskar Liljeblad Wed, 28 Mar 2001 08:12:00 +0200 atool (0.4.0-1) unstable; urgency=low * Initial Release. -- Oskar Liljeblad Tue, 27 Mar 2001 13:01:18 +0200 debian/dirs0000644000000000000000000000002611760563746010067 0ustar etc/bash_completion.d debian/copyright0000644000000000000000000000244511760563746011145 0ustar This package was re-debianized by Stephane Jourdois on Thu, 12 Aug 2004 16:39:22 +0200. It used to be maintained by Tommi Virtanen It was downloaded from http://www.nongnu.org/atool/ Upstream Author: Oskar Liljeblad Copyright: atool is Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2011 Oskar Liljeblad 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 3 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 library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA You are free to distribute this software under the terms of the GNU General Public License. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-3 file. debian/replace_autoconf_vars0000644000000000000000000000156511760563746013503 0ustar #!/usr/bin/perl -w # This script reads configure.ac, and replaces all occurences of # @.+@ in script and manpage with values. # It returns 0 on success, 1 if it missed something. # # Stéphane (kwisatz) Jourdois # Mon, 16 Aug 2004 15:22:24 +0200 use strict; my %vars = ( 'PERL' => '/usr/bin/perl', ); my ($from, $to) = @ARGV; open AC, ') { if (/^AC_INIT\((\w+), ([0-9.]+), .+\)/) { $vars{'PACKAGE_NAME'} = $1; $vars{'PACKAGE_VERSION'} = $2; # Remove this line if there is are # other interesting lines in configure.ac # For now there isn't. last; } } close AC; open FROM, "<$from" or die "Cannot read $from: $!\n"; open TO, ">$to" or die "Cannot write $to: $!\n"; while () { for my $var (keys %vars) { s/\@$var\@/$vars{$var}/g; } print TO; } close FROM; close TO; debian/manpages0000644000000000000000000000001011760563746010712 0ustar atool.1 debian/source/0000755000000000000000000000000011760563746010505 5ustar debian/source/format0000644000000000000000000000001411760563746011713 0ustar 3.0 (quilt) debian/test0000644000000000000000000000422211760563746010107 0ustar #!/usr/bin/perl -w # # This script tests all functionnalities of atool. # It will help to detect arch-incompabilities. # For now it only does basic tests. # # Stéphane (kwisatz) Jourdois # Mon, 16 Aug 2004 18:42:15 +0200 use strict; use IO::Handle; my $testdir = '/tmp/atool'; # List of atool-supported archives types my @extensions = ('tar.gz', 'tar.bz', 'tar.bz2', 'tar.Z', 'tar', 'zip', 'jar', 'rar', 'lha', 'ace', 'a', 'arj', 'arc', 'rpm', 'gz', 'bz', 'bz2', 'Z'); `mkdir -p $testdir`; # Fixme, use perl mkdir chdir $testdir; for my $ext (@extensions) { print "Testing $ext:\n"; # Prepare some files mkdir "test"; open FOO, ">test/test.txt"; print FOO "This is a sample file\n"; close FOO; open FOO, ">test/foo.txt"; print FOO "foobar\n"; close FOO; # Create an archive print "\tpack ..."; stdout->autoflush(); if (!add("test.$ext", "test")) { print "nok (apack returned non-zero code)\n"; clean(); next; } if (-e "test.$ext") { print "ok\n" } else { print "nok\n"; clean(); next; } # Remove files clean(); # List files in archive print "\tlist ..."; stdout->autoflush(); my $list = `als test.$ext 2>&1`; if ($? != 0) { print "nok (als returned non-zero code)\n"; next; } if ($list =~ /(?:test\/)?test\.txt/ and $list =~ /(?:test\/)?foo\.txt/) { print "ok\n"; } else { print "nok (missing file)\n"; next; } # Unpack it print "\tunpack ..."; stdout->autoflush(); # Workarounds my $stdin; $stdin = "y" if $ext eq 'arj'; if ($stdin) { `echo $stdin | aunpack -f test.$ext 2>&1`; } else { `aunpack -f test.$ext 2>&1`; } if ($? != 0) { print "nok (aunpack returned non-zero code)\n"; next; } if (-d "test") { if (-e "test/test.txt") { print "ok\n"; } else { print "nok (file missing)\n"; next } } else { print "nok (dir missing)\n"; next; } # Remove files again clean(); # Remove archive unlink "test.$ext"; } `rm -rf $testdir`; #-------------------------------------------------------------------------- sub add { my ($archive, @files) = @_; `apack $archive @files 2>&1`; if ($? == 0) { return 1 } else { return 0 } } sub clean { `rm -rf test`; } debian/TODO.Debian0000644000000000000000000000022611760563746011056 0ustar Whishlist : - Patch to explain which package should be installed when a prog is missing and user needs it for the asked action ; - translations ; debian/atool.conf0000644000000000000000000000232711760563746011176 0ustar # This is a sample configuration file for atool. # Written by Stephane Jourdois # # You can modify this file for per-system configuration, # or copy it to ~/.atoolrc for per-user configuration. # # See atool (1) man page for explanation of each option. # Those values are default ones. # Uncomment to change the default value. # use_tar_bzip2_option 1 # use_tar_z_option 1 # use_gzip_for_z 1 use_rar_for_unpack 1 # use_arc_for_unpack 0 # use_arj_for_unpack 0 # use_find_cpio_print0 1 # strip_unknown_ext 1 # use_jar 0 # use_file 1 # tmpdir_name Unpack-%04d # path_pager pager # path_jar jar # path_tar tar # path_zip zip # path_unzip unzip # path_gzip gzip # path_bzip bzip # path_bzip2 bzip2 # path_compress compress # path_lzop lzop # path_rar rar # path_unrar unrar # path_lha lha # path_unace unace # path_ar ar # path_arj arj # path_unarj unarj # path_arc arc # path_nomarch nomarch # path_rpm rpm # path_rpm2cpio rpm2cpio # path_cpio cpio # path_file file # path_find find # path_xargs xargs # path_cat cat # path_diff diff # args_diff -ru # path_syscfg /etc/atool.conf # path_usercfg .atoolrc # default_verbosity 1 # show_extracted 1 # keep_compressed 1 # decompress_to_cwd 1 debian/compat0000644000000000000000000000000211760563746010403 0ustar 9