--- gaffitter-0.6.0.orig/debian/dirs +++ gaffitter-0.6.0/debian/dirs @@ -0,0 +1 @@ +usr/bin --- gaffitter-0.6.0.orig/debian/docs +++ gaffitter-0.6.0/debian/docs @@ -0,0 +1 @@ +README --- gaffitter-0.6.0.orig/debian/control +++ gaffitter-0.6.0/debian/control @@ -0,0 +1,28 @@ +Source: gaffitter +Section: utils +Priority: optional +Maintainer: Nacho Barrientos Arias +Build-Depends: debhelper (>= 7), quilt +Standards-Version: 3.8.3 +Homepage: http://gaffitter.sourceforge.net/ + +Package: gaffitter +Architecture: any +Depends: ${shlibs:Depends} +Description: File subsets extractor based on genetic algorithms + Genetic Algorithm File Fitter (gaffitter) is a command-line software + written in C++ that extracts --via genetic algorithm-- subsets of an + input list of files/directories that best fit the given volume size + (target), such as CD, DVD and others. + . + gaffitter provides an intelligent manner (thanks to Genetic Algorithm) + to minimize the error between the desired target size and the selected + candidates of files/directories. Gaffitter highlights: + . + * Uses a global meta-heuristic (Genetic Algorithm search). + * The command-line interface provides high integration (via pipe) with + other tools, i.e. works as a "filter". + * Allow the user to enter 'size identifier' pairs directly instead + of file/dir names. + * Pretty configurable. gaffitter have many input parameters to + control/adjust its behavior (including GA params). --- gaffitter-0.6.0.orig/debian/rules +++ gaffitter-0.6.0/debian/rules @@ -0,0 +1,59 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +CXXFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CXXFLAGS += -O0 +else + CXXFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: patch + dh_testdir + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + $(MAKE) DEBCXXFLAGS="${CXXFLAGS}" + touch $@ + +clean: unpatch realclean + +realclean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/gaffitter + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installman debian/manpages/gaffitter.1 + dh_strip + dh_compress + dh_fixperms + 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 --- gaffitter-0.6.0.orig/debian/watch +++ gaffitter-0.6.0/debian/watch @@ -0,0 +1,3 @@ +version=3 +# Using auto qa.debian.org SF redirector +http://sf.net/gaffitter/gaffitter-(.*)\.tar\.bz2 --- gaffitter-0.6.0.orig/debian/README.source +++ gaffitter-0.6.0/debian/README.source @@ -0,0 +1 @@ +See /usr/share/doc/quilt/README.source --- gaffitter-0.6.0.orig/debian/changelog +++ gaffitter-0.6.0/debian/changelog @@ -0,0 +1,57 @@ +gaffitter (0.6.0-1) unstable; urgency=low + + * New upstream release + * debian/control + + Update standards-version to 3.8.3 (no changes). + * debian/patches + + Modified 01_Makefile.patch, DESTDIR is now in upstream's Makefile. + * debian/docs + + README.pt_BR no longer exists. + * debian/manpages + + Few adjustments to match the new behaviour. + + -- Nacho Barrientos Arias Thu, 24 Sep 2009 10:21:51 +0200 + +gaffitter (0.5.2-1) unstable; urgency=low + + * New upstream release. + * debian/control + + Set Standards-Version to 3.8.0 (no changes). + + Move homepage to the new Homepage field. + * debian/patches + + Drop 02_FTBFS_GCC-4.3.patch, merged upstream. + + -- Nacho Barrientos Arias Wed, 23 Jul 2008 13:10:01 +0200 + +gaffitter (0.5.1-1) unstable; urgency=low + + * New upstream release. + * Adding patch to get rid of an annoying FTBFS bug with gcc-4.3, + thanks to Martin Michlmayr (closes: #417190). + * debian/control + - Changing maintainer's email address. + - Switching to quilt. + - Added missing blank before homepage. + * debian/manpages/gaffitter.1 + - Matching new gaffitter's behaviour. + + -- Nacho Barrientos Arias Sun, 1 Apr 2007 22:04:19 +0200 + +gaffitter (0.5.0-1) unstable; urgency=low + + * New upstream release. + * debian/copyright + - Removing copyright notes related with Cxxtools (not used in this version). + * debian/manpages/gaffitter.1 + - Removing copyright notes as explained above. + - Upgraded to follow new syntax. + + -- Nacho Barrientos Arias Wed, 30 Aug 2006 21:38:00 +0200 + +gaffitter (0.4.2-1) unstable; urgency=low + + * Initial release (Closes: #384519). + * Added manpage for gaffitter(1) not included in upstream sources. + + -- Nacho Barrientos Arias Thu, 24 Aug 2006 22:16:16 +0200 + --- gaffitter-0.6.0.orig/debian/compat +++ gaffitter-0.6.0/debian/compat @@ -0,0 +1 @@ +7 --- gaffitter-0.6.0.orig/debian/copyright +++ gaffitter-0.6.0/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Nacho Barrientos Arias + on Thu, 24 Aug 2006 22:16:16 +0200. + +It was downloaded from http://gaffitter.sourceforge.net/ + +Upstream Author: Douglas A. Augusto + +Copyright (C) 2005-2009 Douglas A. Augusto + +License: + + 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 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. + + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-3' + +The Debian packaging is (C) 2006-2009, Nacho Barrientos Arias + and is licensed under the GPL, see above. --- gaffitter-0.6.0.orig/debian/manpages/gaffitter.1 +++ gaffitter-0.6.0/debian/manpages/gaffitter.1 @@ -0,0 +1,249 @@ +.TH "GAFFITTER" "1" "September 24, 2009" "gaffitter 0.6.0" "" + +.SH "NAME" +gaffitter \- File subsets extractor based on genetic algorithms + +.SH "SYNOPSIS" +.nf +.fam C +\fBgaffitter \-t|\-\-target\fP \fIvalue[unit]\fR [OPTION]... \fIFILE\fR... +\fBgaffitter \- \-t|\-\-target\fP \fIvalue[unit]\fR [OPTION]... [FILE]... +.fam T +.fi + +.SH "DESCRIPTION" +\fBgaffitter\fR (Genetic Algorithm File Fitter) is a command\-line software written in C++ that extracts \-\-via genetic algorithm\-\- subsets of an input list of files/directories that best fit the given volume size (target), such as CD, DVD and others. + +If \fBgaffitter\fR is executed using the second option listed above, the information about files is fetched from stdin. + +The unit suffixes 'k', 'm', 'g' or 't' can be used, where: k = KB/KiB, m = MB/MiB, g = GB/GiB and t = TB/TiB. Default: bytes. + +.SH "OPTIONS" + +.TP +.B +General options: + +.TP +.B +\fB\-t\fP, \fB\-\-target \fP\fIVALUE[unit]\fP (float) +Set \fIVALUE\fP as target size (mandatory), \fIVALUE\fP > 0.0 + +.TP +.B +\fB\-\-bins, \fB\-\-vols \fP\fIVALUE[unit]\fP +Set \fIVALUE\fP as the maximum number of bins (volumes). [default = "unlimited"] + +.TP +.B +\fB\-\-si\fP +Use powers of 1000 (not 1024) for target, min, max and output sizes. + +.TP +.B +\fB\-\-min\fP, \fB\-\-min\-size \fP\fIVALUE[unit]\fP +Minimum file size. [default = none] + +.TP +.B +\fB\-\-max\fP, \fB\-\-max\-size \fP\fIVALUE[unit]\fP +Maximum file size. [default = none] + +.TP +.B +\fB\-B\fP, \fB\-\-block\-size \fP\fIVALUE\fP +The smallest amount of bytes a file can occupy. [default = 1] + +.TP +.B +\fB\-\-ss, \-\-show\-size\fP +Print the size of each file. + +.TP +.B +\fB\-\-sb, \-\-show\-bytes\fP +Also print the sizes in bytes. + +.TP +.B +\fB\-\-hi, \-\-hide\-items\fP +Don't print selected files. + +.TP +.B +\fB\-\-hs, \-\-hide\-summary\fP +Hide summary line containing sum, difference and number of selected files. + +.TP +.B +\fB\-s, \-\-sort\-by\-size\fP +Sort the output by size, not by name. + +.TP +.B +\fB\-n, \-\-no\-case\fP +Use case\-insensitive sorting. + +.TP +.B +\fB\-r, \-\-sort\-reverse\fP +Sort the output in reverse order. + +.TP +.B +\fB\-\-ew, \-\-enclose\-with\fP \fICHAR\fP +Enclose file names with \fICHAR\fP. [default = none] + +.TP +.B +\fB\-\-dw, \-\-delimit\-with\fP \fICHAR\fP +Delimit file names (lines) with \fICHAR\fP. [default = newline] + +.TP +.B +\fB\-z, \-\-null\-data\fP +Assume NULL (\0) as the delimiter of input files via stdin (pipe). + +.TP +.B +\fB\-Z, \-\-null\fP +Same as --dw '\\0'. See also the -0 and --hs options. + +.TP +.B +\fB\-0, \-\-null\-bins\fP +Same as --bs '\\0'. See also the -Z and --hs options. + +.TP +.B +\fB\-\-bs, \-\-bins\-separator\fP \fICHAR\fP +Separate bins (vols) with \fICHAR\fP. [default = newline] + +.TP +.B +\fB\-\-version\fP +Print gaffitter version and exit. + +.TP +.B +\fB\-v, \-\-verbose\fP +Verbose. + +.TP +.B +\fB\-h, \-\-help\fP +Print help and exit. + +.TP +.B +Direct Input options: + +.TP +.B +\fB\-\-di, \-\-direct\-input\fP +Switch to direct input mode, i.e., read directly "size identifier" pairs instead of file names. + +.TP +.B +\fB\-\-di\-b, \-\-di\-bytes\fP +Assume input sizes as bytes. + +.TP +.B +\fB\-\-di\-k, \-\-di\-kb\fP +Assume input sizes as kibi bytes (KiB). KB if --di-si. + +.TP +.B +\fB\-\-di\-m, \-\-di\-mb\fP +Assume input sizes as mebi bytes (MiB). MB if --di-si. + +.TP +.B +\fB\-\-di\-g, \-\-di\-gb\fP +Assume input sizes as gibi bytes (GiB). GB if --di-si. + +.TP +.B +\fB\-\-di\-t, \-\-di\-tb\fP +Assume input sizes as tebi bytes (TiB). TB if --di-si. + +.TP +.B +\fB\-\-di\-si\fP +Use powers of 1000 (not 1024) for input sizes. + +.TP +.B +Genetic Algorithm options: + +.TP +.B +\fB\-\-ga\-s\fP, \fB\-\-ga\-seed \fP\fIVALUE\fP (integer) +GA initialization seed, \fIVALUE\fP >= 0. Zero means random. [default = 1] + +.TP +.B +\fB\-\-ga\-rs, \-\-ga\-random\-seed\fP +Use rendom GA seed (same as \-\-ga\-seed 0). + +.TP +.B +\fB\-\-ga\-ng\fP, \fB\-\-ga\-num\-generations \fP\fIVALUE\fP (integer) +Maximum number of generations, \fIVALUE\fP > 0. [default = auto] + +.TP +.B +\fB\-\-ga\-ps\fP, \fB\-\-ga\-pop\-size \fP\fIVALUE\fP (integer) +Number of individuals, \fIVALUE\fP > tournament_size. [default = auto] + +.TP +.B +\fB\-\-ga\-cp\fP, \fB\-\-ga\-cross\-prob \fP\fIVALUE\fP (float) +Crossover probability, 0.0 <= \fIVALUE\fP <= 1.0. [default = 0.95] + +.TP +.B +\fB\-\-ga\-mp\fP, \fB\-\-ga\-mutation\-prob \fP\fIVALUE\fP (float) +Mutation probability (per gene), 0.0 <= \fIVALUE\fP <= 1.0. [default = auto] + +.TP +.B +\fB\-\-ga\-sp\fP, \fB\-\-ga\-sel\-pressure \fP\fIVALUE\fP (integer) +Selection pressure (tournament size), 2 <= \fIVALUE\fP < pop_size. [default = 2] + +.TP +.B +\fB\-\-ga\-theo\fP, \fB\-\-ga\-theoretical \fP\fI[VALUE]\fP (integer) +Stop if the theoretical minimum number of bins is reached. If \fIVALUE\fP is given, it is assumed to be the theoretical minimum number of bins. + +.TP +.B +Other search methods: + +.TP +.B +\fB\-\-ap, \-\-approximate\fP +Approximate the solution using Best First search (non-optimal but very fast). + +.TP +.B +\fB\-\-sp, \-\-split\fP +Just split the input when target size is reached (preserves original order while splitting). + + +.SH "AUTHOR" +Written by Douglas A. Augusto . This manpage has been written by Nacho Barrientos Arias for the Debian GNU/Linux system (but may be used by others). + +.SH "BUGS" +Report bugs to Douglas A. Augusto . + +.SH "COPYRIGHT" +Copyright \(co 2005-2009, Douglas A. Augusto \- All Rights Reserved. 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, Inc. + +.SH "SEE ALSO" +http://gaffitter.sourceforge.net/ + +.PP +.nf +.fam C --- gaffitter-0.6.0.orig/debian/patches/series +++ gaffitter-0.6.0/debian/patches/series @@ -0,0 +1 @@ +01_Makefile.patch --- gaffitter-0.6.0.orig/debian/patches/01_Makefile.patch +++ gaffitter-0.6.0/debian/patches/01_Makefile.patch @@ -0,0 +1,13 @@ +Index: gaffitter-0.6.0/src/Makefile +=================================================================== +--- gaffitter-0.6.0.orig/src/Makefile 2009-09-24 10:18:53.000000000 +0200 ++++ gaffitter-0.6.0/src/Makefile 2009-09-24 10:19:31.000000000 +0200 +@@ -8,7 +8,7 @@ + + INCLUDES = -I/usr/local/include -I. + CXX = g++ +-CXXFLAGS = -O3 -Wno-long-long $(INCLUDES) ++CXXFLAGS = -Wno-long-long $(INCLUDES) $(DEBCXXFLAGS) + LIBPATH = + LIBS = + LDFLAGS = $(LIBPATH) $(LIBS)