--- afflib-1.6.31.orig/debian/docs +++ afflib-1.6.31/debian/docs @@ -0,0 +1,5 @@ +FAQ.txt +HISTORY.txt +README_Linux.txt +README.txt +TTD.txt --- afflib-1.6.31.orig/debian/control +++ afflib-1.6.31/debian/control @@ -0,0 +1,38 @@ +Source: afflib +Section: admin +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Kenny Duffus +Build-Depends: debhelper (>= 5), libncurses5-dev, libreadline5-dev, zlib1g-dev, libssl-dev +Standards-Version: 3.7.2.1 + +Package: afflib +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tools to use AFF segmented archive files + The Advanced Forensic Format (AFF) 1.0 is an extensible open format for the + storage of disk images and related forensic information. + The following tools are available to work with it: + . + afcat - copies from the contents of an AFFILE to stdout. + afcompare - compares two AFF files or an AFF file and a raw file + afconvert - converts AFF->raw, raw->AFF, or AFF->AFF (or even raw->raw, + if you want) optionally recompressed files. + affix - Reports errors with AFF files and optioanlly fixes them. + afinfo - prints info about an AFF file from an examination of the segments + afstats - prints statistics about one or more AFF files + afxml - outputs an AFF file's metadata as XML + aimage - Image a hard drive into AFF or raw format + . + Homepage: http://afflib.org/ + +Package: afflib-dev +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Tools to use AFF segmented archive files + The Advanced Forensic Format (AFF) 1.0 is an extensible open format for the + storage of disk images and related forensic information. + . + This package contains development files. + . + Homepage: http://afflib.org/ --- afflib-1.6.31.orig/debian/afflib-dev.install +++ afflib-1.6.31/debian/afflib-dev.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libafflib.a +debian/tmp/usr/include/afflib.h --- afflib-1.6.31.orig/debian/rules +++ afflib-1.6.31/debian/rules @@ -0,0 +1,107 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + # Apply Debian specific patches + if test ! -f patch-stamp; then \ + for patch in $(CURDIR)/debian/patches/*.diff ;\ + do \ + echo APPLYING PATCH\: $${patch##*/};\ + patch -p1 < $$patch ;\ + done ;\ + touch patch-stamp ;\ + fi + + touch configure-stamp + + +build: build-stamp +build-stamp: configure-stamp + + # Add here commands to compile the arch part of the package. + #$(MAKE) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp #CONFIGURE-STAMP# + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + # Remove Debian specific patches + if test -f patch-stamp; then \ + for patch in $(CURDIR)/debian/patches/*.diff ;\ + do \ + echo REMOVING PATCH\: $${patch##*/};\ + patch -p1 -R < $$patch ;\ + done ;\ + rm -f patch-stamp ;\ + fi + + dh_clean + +install: + dh_testdir + dh_testroot + dh_clean -k -s + dh_installdirs -s + + # Add here commands to install the arch part of the package into + # debian/tmp. + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + # rename ident to afident + mv $(CURDIR)/debian/tmp/usr/bin/ident $(CURDIR)/debian/tmp/usr/bin/afident + + dh_install -s +# 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 + dh_installdocs + dh_installexamples + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + 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 --- afflib-1.6.31.orig/debian/watch +++ afflib-1.6.31/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://afflib.org/downloads/afflib-(.*)\.tar\.gz --- afflib-1.6.31.orig/debian/changelog +++ afflib-1.6.31/debian/changelog @@ -0,0 +1,17 @@ +afflib (1.6.31-0ubuntu2) intrepid; urgency=low + + * debian/patches/ubuntu_03_fix_FTBFS.diff: fix FTBFS. + * debian/control: update Maintainer field as per spec (LP: #230350). + + -- Luca Falavigna Tue, 3 Jun 2008 09:33:35 +0200 + +afflib (1.6.31-0ubuntu1) edgy; urgency=low + + * Initial release + - ubuntu_01_debianisation.diff + - ubuntu_02_ident_unix_buffer_overflow.diff + * rename ident to afident + * wrote manpages + + -- Kenny Duffus Thu, 14 Sep 2006 18:10:11 +0100 + --- afflib-1.6.31.orig/debian/afflib.manpages +++ afflib-1.6.31/debian/afflib.manpages @@ -0,0 +1,10 @@ +debian/local/afcat.1 +debian/local/afcompare.1 +debian/local/afconvert.1 +debian/local/affix.1 +debian/local/afident.1 +debian/local/afinfo.1 +debian/local/afsegment.1 +debian/local/afstats.1 +debian/local/afxml.1 +debian/local/aimage.1 --- afflib-1.6.31.orig/debian/compat +++ afflib-1.6.31/debian/compat @@ -0,0 +1 @@ +5 --- afflib-1.6.31.orig/debian/README.Debian +++ afflib-1.6.31/debian/README.Debian @@ -0,0 +1,3 @@ +To avoid conflicts between packages ident has been renamed to afident. + + -- Kenny Duffus Mon, 10 Jul 2006 14:51:12 +0100 --- afflib-1.6.31.orig/debian/copyright +++ afflib-1.6.31/debian/copyright @@ -0,0 +1,97 @@ +This package was debianized by Kenny Duffus on +Tue, 4 Jul 2006 14:21:12 +0100. + +It was downloaded from http://afflib.org/ + +Upstream Author: Simson L. Garfinkel + +License: + + Copyright (c) 2005, 2006 + Simson L. Garfinkel and Basis Technology Corp. + All rights reserved. + + This code is derrived from software contributed by + Simson L. Garfinkel + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + This product includes software developed by Simson L. Garfinkel + and Basis Technology Corp. + 4. Neither the name of Simson L. Garfinkel, Basis Technology, or other + contributors to this program may be used to endorse or promote + products derived from this software without specific prior written + permission. + + THIS SOFTWARE IS PROVIDED BY SIMSON L. GARFINKEL, BASIS TECHNOLOGY, + AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL SIMSON L. GARFINKEL, BASIS TECHNOLOGy, + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + + AFF and AFFLIB is a trademark of Simson Garfinkel and Basis Technology Corp. + +With the exception of the following: + +tools/base64.cpp and tools/base64.h are licensed under the following: + + Copyright (c) 1996-1999 by Internet Software Consortium. + + Permission to use, copy, modify, and distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS + ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE + CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL + DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + SOFTWARE. + + Portions Copyright (c) 1995 by International Business Machines, Inc. + + International Business Machines, Inc. (hereinafter called IBM) grants + permission under its copyrights to use, copy, modify, and distribute this + Software with or without fee, provided that the above copyright notice and + all paragraphs of this notice appear in all copies, and that the name of IBM + not be used in connection with the marketing of any product incorporating + the Software or modifications thereof, without specific, written prior + permission. + + To the extent it has a right to do so, IBM grants an immunity from suit + under its patents, if any, for the use, sale or manufacture of products to + the extent that such products are used for performing Domain Name System + dynamic updates in TCP/IP networks by means of the Software. No immunity is + granted for any product per se or for any other function of any product. + + THE SOFTWARE IS PROVIDED "AS IS", AND IBM DISCLAIMS ALL WARRANTIES, + INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + PARTICULAR PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, + DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER ARISING + OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE, EVEN + IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES. + +This product includes software developed by the OpenSSL Project +for use in the OpenSSL Toolkit (http://www.openssl.org/) + +The Debian packaging is (C) 2006, Kenny Duffus and +is licensed under the GPL version 2 or (at your option) any later version, +see /usr/share/common-licenses/GPL. --- afflib-1.6.31.orig/debian/afflib.install +++ afflib-1.6.31/debian/afflib.install @@ -0,0 +1,10 @@ +debian/tmp/usr/bin/aimage +debian/tmp/usr/bin/afcat +debian/tmp/usr/bin/afcompare +debian/tmp/usr/bin/afconvert +debian/tmp/usr/bin/affix +debian/tmp/usr/bin/afinfo +debian/tmp/usr/bin/afstats +debian/tmp/usr/bin/afxml +debian/tmp/usr/bin/afsegment +debian/tmp/usr/bin/afident --- afflib-1.6.31.orig/debian/local/afsegment.1 +++ afflib-1.6.31/debian/local/afsegment.1 @@ -0,0 +1,56 @@ +.TH AFSEGMENT "1" "September 2006" "afsegment" "User Commands" +.SH NAME +afsegment \- manipulate segments in an AFF file +.SH SYNOPSIS +\fBafsegment\fR [options] file1.aff [file2.aff ...] +.SH OPTIONS +.TP +\-c +Create AFF files if they do not exist +.TP +\-s segval +Sets the value of a segment; may be repeated +.TP +\-v +Just print the version number and exit +.PP +.B Setting the segment values: +.TP +\-s name=- +Take the new value of segment \'name\' from stdin +.TP +\-s name=val +Sets segment \'name\' to be \'val\' +.TP +\-s name= +for Ubuntu but may be used by others. --- afflib-1.6.31.orig/debian/local/aimage.1 +++ afflib-1.6.31/debian/local/aimage.1 @@ -0,0 +1,148 @@ +.TH AIMAGE "1" "September 2006" "aimage 1.6.31" "User Commands" +.SH NAME +aimage \- Image a hard drive into AFF or raw format +.SH SYNOPSIS +\fBaimage\fR [options] INPUT1 [OUTFILE1] [INPUT2 OUTPUT2] ... +.PP +INPUT may be any of these: +.IP +\- A device e.g. /dev/disk1 or /dev/stdin, for standard input +.br +\- Listen on TCP port eg: listen:1234 +.PP +OUTFILE may be: +.IP +\- outfile.aff \- image to the AFF file outfile +.PP +.SH OPTIONS +.PP +.B General Options: +.TP +\-\-quiet, \-q +No interactive statistics. +.TP +\-\-batch, \-Y +Batch output +.TP +\-\-silent, \-Q +No output at all except for errors. +.TP +\-\-readsectors=nn, \-R nnnn +set number of sectors to read at once (default 32768) +.TP +\-\-version, \-v +Just print the version number and exit. +.TP +\-\-skip=nn[s], \-k nn +Skip nn bytes [or nns for sectors] in input file +.TP +\-\-no_beeps, \-B +Don\'t beep when imaging is finished. +.TP +\-\-logfile=fn, \-l fn +Where to write a log. By default none is written +.TP +\-\-logAFF, \-L +Log all AFF operations +.TP +\-\-preview, \-p +view some of the data as it goes by. +.TP +\-\-no_preview, \-P +do not show the preview. +.PP +Existing File Options: +.TP +\-\-append, \-a +Append to existing file +.TP +\-\-zap, \-z +Erase outfile(s) before writing +.PP +.B Raw Output Options: +.TP +\-\-raw=fname, \-r +fname write block\-by\-block output to fname. +.PP +.B AFF Options: +.TP +\-\-outfile=fname, \-ofname +write an AFF file. +.TP +\-\-image_pagesize=nnn, \-S nnnn +set the AFF page size (default 16777216) (number can be suffixed with b, k, m or g) Also sets maxsize to be 2^32 if not otherwise set. +.TP +\-\-make_config, \-m +Make the config file if it doesn't exist Config file is aimage.cfg by default and can be overridden by the AIMAGE_CONFIG enviroment variable +.TP +\-\-no_dmesg, \-D +Do not put dmesg into the AFF file +.TP +\-\-no_ifconfig, \-I +Do not put ifconfig output into AFF file (Currently unset) +.TP +\-\-no_compress, \-x +Do not compress. Useful on slow machines. +.TP +\-\-compression=n, \-Xn +Set the compression level +.TP +\-\-auto_compress, \-A +write as fast as possible, with compression if it helps. sets compression level 1 +.TP +\-\-maxsize=n, \-Mn +sets the maximum size of output file to be n.. Default units are megabytes; suffix with \'g\', \'m\', \'k\' or \'b\' use \'cd\' for a 650MB CD. use \'bigcd\' for a 700MB CD. +.TP +\-\-setseg name=value, \-s name=value +Create segment \'name\' and give it \'value\'. This option may be repeated. +.TP +\-\-no_hash, \-H +Do not calculate MD5 and SHA1 of image. +.PP +.B Error Recovery Options: +.TP +\-\-error=0, \-e0 +Standard error recovery: Read disk 256K at a time until there are 5 errors in a row. Then go to the end of the disk and read backwards until there are 5 erros in a row. Then stop. +.TP +\-\-error=1 \-e1 +Stop reading at first error. +.TP +\-\-retry=nn \-tnn +change retry count from 5 to nn +.TP +\-\-reverse, \-V +Scan in reverse to the beginning. +.PP +.B Other: +.TP +\-\-help, \-h +Print help message. +.TP +\-\-fast_quit, \-Z +Make ^c just exit immediately. +.TP +\-\-allow_regular, \-E +allow the imaging of a regular file +.TP +\-\-title=s, \-T s +change title to s (from IMAGING) and disable blink +.TP +\-\-debug=n, \-d n +set debug code n (\-d0 for list) +.TP +\-\-use_timers, \-y +Use timers for compressing, reading & writing times +.SH EXAMPLES +.TP +Create image.aff from /dev/sd0: +.B aimage /dev/sd0 image.aff +or +.B aimage \-o image.aff /dev/sd0 +.TP +Create image0.aff from /dev/sd0 and image1 from /dev/sd1: +.B aimage /dev/sd0 image0.aff /dev/sd1 /image1.aff +.SH AUTHOR +aimage is part of afflib and was written by Simson L. Garfinkel +.PP +This manual page was written by Kenny Duffus +for Ubuntu but may be used by others. --- afflib-1.6.31.orig/debian/local/afcat.1 +++ afflib-1.6.31/debian/local/afcat.1 @@ -0,0 +1,42 @@ +.TH AFCAT "1" "September 2006" "afcat 1.6.31" "User Commands" +.SH NAME +afcat \- copies from the contents of an AFFILE to stdout +.SH SYNOPSIS +\fBafcat\fR [options] infile [... more infiles] +.SH OPTIONS +.TP +\-s name +Just output segment name +.TP +\-p nnn +just output data page number nnn +.TP +\-S nnn +Just output data sector nnn (assumes 512-byte sectors). Sector #0 is first +.TP +\-q +quiet; don\'t print to STDERR if a page is skipped +.TP +\-n +noisy; tell when pages are skipped. +.TP +\-l +List all of the segment names +.TP +\-L +List segment names, lengths, and args +.TP +\-d +debug. Print the page numbers to stderr as data goes to stdout +.TP +\-b +Output BADFALG for bad blocks (default is NULLs) +.TP +\-v +Just print the version number and exit. + +.SH AUTHOR +afcat is part of afflib and was written by Simson L. Garfinkel +.PP +This manual page was written by Kenny Duffus +for Ubuntu but may be used by others. --- afflib-1.6.31.orig/debian/local/afstats.1 +++ afflib-1.6.31/debian/local/afstats.1 @@ -0,0 +1,17 @@ +.TH AFSTATS "1" "September 2006" "afstats" "User Commands" +.SH NAME +afstats \- print statistics about one or more AFF files +.SH SYNOPSIS +\fBafstats\fR [options] infile(s) +.SH OPTIONS +.TP +\-m +print all output in megabytes +.TP +\-v +Just print the version number and exit +.SH AUTHOR +afstats is part of afflib and was written by Simson L. Garfinkel +.PP +This manual page was written by Kenny Duffus +for Ubuntu but may be used by others. --- afflib-1.6.31.orig/debian/local/affix.1 +++ afflib-1.6.31/debian/local/affix.1 @@ -0,0 +1,17 @@ +.TH AFFIX "1" "September 2006" "affix" "User Commands" +.SH NAME +affix \- Reports errors with AFF files and optioanlly fixes them +.SH SYNOPSIS +\fBaffix\fR [options] file1 [...] +.SH OPTIONS +.TP +\-v +Just print the version number and exit +.TP +\-b +only report broken files +.SH AUTHOR +affix is part of afflib and was written by Simson L. Garfinkel +.PP +This manual page was written by Kenny Duffus +for Ubuntu but may be used by others. --- afflib-1.6.31.orig/debian/local/afxml.1 +++ afflib-1.6.31/debian/local/afxml.1 @@ -0,0 +1,20 @@ +.TH AFXML "1" "September 2006" "afxml" "User Commands" +.SH NAME +afxml \- outputs an AFF file's metadata as XML +.SH SYNOPSIS +\fBafxml\fR [options] infile +.SH OPTIONS +.TP +\-v +Just print the version number and exit +.TP +\-x +Don't include infile in output +.TP +\-j segname +Just print segname for the file. (may be repeated) +.SH AUTHOR +afxml is part of afflib and was written by Simson L. Garfinkel +.PP +This manual page was written by Kenny Duffus +for Ubuntu but may be used by others. --- afflib-1.6.31.orig/debian/local/afcompare.1 +++ afflib-1.6.31/debian/local/afcompare.1 @@ -0,0 +1,44 @@ +.TH AFCOMPARE "1" "September 2006" "afcompare" "User Commands" +.SH NAME +afcompare \- compares two AFF files or an AFF file and a raw file +.SH SYNOPSIS +\fBafcompare\fR [options] file1 file2 +.SH OPTIONS +.TP +\-v +Just print the version number and exit +.TP +\-q +Quiet. No output except for errors +.TP +\-a +print what's the same (all) +.TP +\-b +print the numbers of differing sectors +.TP +\-c +print the contents of differing sectors +.TP +\-p ### +Just examine the differences on page ### +.TP +\-r +Remove the ISO file if the two are equal. +.SH EXAMPLES +.TP +compare file1 & file2 +.B afcompare file1.aff file2.aff +.PP +.B Examples: For comparing ISO and AFF files: +.TP +compare file.aff and file.img +.B afcompare -b img file.aff +.TP +compare file1.aff, file1.img, etc. +.B afcompare -b img file1.aff file2.aff... +.SH AUTHOR +afcompare is part of afflib and was written by Simson L. Garfinkel +.PP +This manual page was written by Kenny Duffus +for Ubuntu but may be used by others. --- afflib-1.6.31.orig/debian/local/afinfo.1 +++ afflib-1.6.31/debian/local/afinfo.1 @@ -0,0 +1,44 @@ +.TH AFINFO "1" "September 2006" "afinfo" "User Commands" +.SH NAME +afinfo \- prints info about an AFF file +.SH SYNOPSIS +\fBafinfo\fR [options] infile +.SH OPTIONS +.TP +\-a +print ALL segments (normally data segments are suppressed) +.TP +\-b +print how many bad blocks in each segment (implies -a) +.TP +\-i +identify the files, don\'t do info on them. +.TP +\-w +wide output; print more than 1 line if necessary. +.TP +\-s segment +Just print information about \'segment\' (may be repeated) +.TP +\-x +print binary values in hex (default is ASCII) +.TP +\-m +validate MD5 hash of entire image +.TP +\-S +validate SHA1 hash of entire image +.TP +\-p +validate the hash of each page (if present) +.TP +\-y +don\'t print segments of lengths 16 and 20 as hex) +.TP +\-v +Just print the version number and exit. +.SH AUTHOR +afinfo is part of afflib and was written by Simson L. Garfinkel +.PP +This manual page was written by Kenny Duffus +for Ubuntu but may be used by others. --- afflib-1.6.31.orig/debian/local/afident.1 +++ afflib-1.6.31/debian/local/afident.1 @@ -0,0 +1,10 @@ +.TH AFIDENT "1" "September 2006" "afident" "User Commands" +.SH NAME +afident \- ident information about a file +.SH SYNOPSIS +\fBafident\fR file +.SH AUTHOR +afident is part of afflib and was written by Simson L. Garfinkel +.PP +This manual page was written by Kenny Duffus +for Ubuntu but may be used by others. --- afflib-1.6.31.orig/debian/local/afconvert.1 +++ afflib-1.6.31/debian/local/afconvert.1 @@ -0,0 +1,71 @@ +.TH AFCONVERT "1" "September 2006" "afconvert" "User Commands" +.SH NAME +afconvert \- convert between AFF and raw file formats +.SH SYNOPSIS +\fBafconvert\fR [options] file1 [file2 ...] +.SH OPTIONS +.PP +.B General options: +.TP +\-q +Quiet mode. Don\'t ask questions, don\'t print status. +.PP +.B AFF output options: +.TP +\-a ext +use \'ext\' for aff files (default is aff) (use .afd for AFD files) +.TP +\-M nnn +set maximum size of output file. Suffix with g, m or k. +.TP +\-s nnnn +set the image_pagesize (default 16777216) +.TP +\-x +don\'t compress AFF file. +.TP +\-O dir +use \'dir\' as the output directory +.TP +\-o file +output to \'file\' (can only convert one at a time) File is AFF is file ends .aff; otherwise assumes raw. +.TP +\-Xn +Set compression to n; default is 7 +.PP +.B Raw output options: +.TP +\-r +force raw output. +.TP +\-e ext +use \'ext\' for the raw files (default raw) (implies -r) +.PP +.B Dangerous input options: +.TP +\-z +zap; delete the output file if it already exists. +.TP +\-Z +Do not automatically probe for gzip/bzip2 compression. +.TP +\-y +Always answer yes/no questions \'yes.\' +.TP +\-v +Just print the version number and exit. +.SH EXAMPLES +.TP +convert file1.iso to file1.aff +.B afconvert file1.iso +.TP +batch convert files +.B afconvert file1.iso file2.iso file3.iso +.TP +convert image.aff to image.iso +.B afconvert -r -e iso image.aff +.SH AUTHOR +afconvert is part of afflib and was written by Simson L. Garfinkel +.PP +This manual page was written by Kenny Duffus +for Ubuntu but may be used by others. --- afflib-1.6.31.orig/debian/patches/ubuntu_01_debianisation.diff +++ afflib-1.6.31/debian/patches/ubuntu_01_debianisation.diff @@ -0,0 +1,38 @@ +diff -Nurp clean-afflib-1.6.31/Makefile afflib-1.6.31/Makefile +--- clean-afflib-1.6.31/Makefile 2006-08-17 19:28:00.000000000 +0100 ++++ afflib-1.6.31/Makefile 2006-09-13 08:12:39.000000000 +0100 +@@ -28,9 +28,9 @@ RELEASE_HOST := www.afflib.org + RELEASE_LOC := public_html/afflib/downloads/ + RELEASE_VER := http://www.afflib.org/downloads/version.txt + +-INSTALL_TOOLDIR ?= /usr/local/bin +-INSTALL_LIBDIR ?= /usr/local/lib +-INSTALL_INCDIR ?= /usr/local/include ++INSTALL_TOOLDIR ?= $(DESTDIR)/usr/bin ++INSTALL_LIBDIR ?= $(DESTDIR)/usr/lib ++INSTALL_INCDIR ?= $(DESTDIR)/usr/include + + + all: all_targets +@@ -62,6 +62,7 @@ version: + lib: $(AFFLIB) + + install: $(AIMAGE_TARGETS) $(AFFTOOLS_TARGETS) ++ install -d $(INSTALL_TOOLDIR) $(INSTALL_LIBDIR) $(INSTALL_INCDIR) + install $(AIMAGE_TARGETS) $(AFFTOOLS_TARGETS) $(INSTALL_TOOLDIR) + install $(AFFLIB) $(INSTALL_LIBDIR)/libafflib.a + ranlib $(INSTALL_LIBDIR)/libafflib.a # sometimes a second is needed +diff -Nurp clean-afflib-1.6.31/Makefile.defs afflib-1.6.31/Makefile.defs +--- clean-afflib-1.6.31/Makefile.defs 2006-08-17 19:28:00.000000000 +0100 ++++ afflib-1.6.31/Makefile.defs 2006-09-13 08:12:17.000000000 +0100 +@@ -11,8 +11,8 @@ CXXFLAGS = -g -Wall $(INCDIRS) $(DEFINES + + # Global defines + +-INCDIRS = -I/usr/local/ssl/include -I/usr/sfw/include -I. -Ilib +-LIBDIRS = -L/usr/local/ssl/lib -I/usr/sfw/lib -L. ++INCDIRS = -I/usr/ssl/include -I. -Ilib ++LIBDIRS = -L/usr/lib/ssl -L. + LIBS = -lz -lcrypto + + --- afflib-1.6.31.orig/debian/patches/ubuntu_02_ident_unix_buffer_overflow.diff +++ afflib-1.6.31/debian/patches/ubuntu_02_ident_unix_buffer_overflow.diff @@ -0,0 +1,12 @@ +diff -Nurp clean-afflib-1.6.31/aimage/ident_unix.cpp afflib-1.6.31/aimage/ident_unix.cpp +--- clean-afflib-1.6.31/aimage/ident_unix.cpp 2006-08-17 19:28:00.000000000 +0100 ++++ afflib-1.6.31/aimage/ident_unix.cpp 2006-08-29 05:47:11.000000000 +0100 +@@ -61,7 +61,7 @@ char *ident::mac_addresses() + memset(pm,0,sizeof(pm)); + if(fgets(line,sizeof(line),f)){ + if(regexec(&r,line,2,pm,0)==0){ +- char mac[16]; ++ char mac[64]; + memset(mac,0,sizeof(mac)); + strncpy(mac,line+pm[1].rm_so,pm[1].rm_eo-pm[1].rm_so); + buf = append(buf,mac); --- afflib-1.6.31.orig/debian/patches/ubuntu_03_fix_FTBFS.diff +++ afflib-1.6.31/debian/patches/ubuntu_03_fix_FTBFS.diff @@ -0,0 +1,9 @@ +diff -ruN afflib-1.6.31.orig/lib/vnode_raw.h afflib-1.6.31/lib/vnode_raw.h +--- afflib-1.6.31.orig/lib/vnode_raw.h 2006-08-17 20:28:00.000000000 +0200 ++++ afflib-1.6.31/lib/vnode_raw.h 2008-06-03 09:28:14.000000000 +0200 +@@ -1,4 +1,4 @@ + extern struct af_vnode vnode_raw; /* vnode_raw.cpp */ + +-int raw_freopen(AFFILE *af,FILE *af); ++int raw_freopen(AFFILE *aff,FILE *af); + int raw_popen(AFFILE *af,const char *command,const char *type);