--- kgb-1.0b4.orig/debian/additions/kgb.1 +++ kgb-1.0b4/debian/additions/kgb.1 @@ -0,0 +1,63 @@ +.\" Author: Raphael Geissert +.\" +.\" This is free software; you may 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, +.\" or (at your option) any later version. +.\" +.\" This 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 the Debian GNU/Linux system; if not, write to the Free +.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +.\" 02111-1307 USA +.TH kgb "1" "June 2007" +.SH NAME +kgb \- .kgb files archiver +.SH SYNOPSIS +kgb [-] archive.kgb FILE1 [FILE2|...] +.PP +kgb FILE.kgb +.SH DESCRIPTION +.B kgb +is a files archiver with high-compression rates (with high CPU and memory cost). +.SH OPTIONS +.SS Compressing: +.TP +.B \- +Set compression level (memory usage), values: + 0: 2 MB (fastest) + 1: 3 MB + 2: 6 MB + 3: 18 MB (default) + 4: 64 MB + 5: 154 MB + 6: 202 MB + 7: 404 MB + 8: 808 MB + 9: +.B 1616 MB +(best compression) +.TP +.B archive.kgb +Filename of the new KGB archive. It must +.B not +exist, otherwise it will fail. +.TP +.B FILE1 [FILE2|...] +File or list of files to compress. +.SS Uncompressing: +.TP +.B FILE.kgb + KGB archive to extract +.SH AUTHOR +.TP +KGB Archiver v1.0b4, (C) 2005\-2006 Tomasz Pawlak; Based on PAQ6 by Matt Mahoney; mod by Slawek +.PP +This manual page was written by Raphael Geissert +.nh + +for the \fBDebian\fP system (but may be used by others). --- kgb-1.0b4.orig/debian/rules +++ kgb-1.0b4/debian/rules @@ -0,0 +1,72 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +export QUILT_PATCH_OPTS=--unified-reject-files + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +CFLAGS += -Wall -fno-strict-aliasing +LFSFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O3 +endif + +# Enable IEEE-conformant floating point math on alphas (not the default) +ifeq (alpha-linux-gnu,$(DEB_HOST_GNU_TYPE)) + CFLAGS += -mieee +endif + +ifeq ($(DEB_HOST_GNU_TYPE), $(findstring $(DEB_HOST_GNU_TYPE), ia64-linux-gnu powerpc64-linux-gnu)) + CFLAGS += -g +else + CFLAGS += -gstabs +endif + +include /usr/share/quilt/quilt.make + +build-stamp: + dh_testdir + g++ $(CFLAGS) -o kgb kgb_arch_posix_by_slawek.cpp + touch build-stamp + +build: patch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + $(RM) build-stamp + $(RM) kgb + dh_clean + +install: build + dh_testdir + dh_testroot + dh_installdirs + + install -D -m 755 kgb debian/kgb/usr/bin/kgb + + +binary-indep: + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installman + 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 --- kgb-1.0b4.orig/debian/manpages +++ kgb-1.0b4/debian/manpages @@ -0,0 +1 @@ +debian/additions/kgb.1 --- kgb-1.0b4.orig/debian/changelog +++ kgb-1.0b4/debian/changelog @@ -0,0 +1,28 @@ +kgb (1.0b4-4) unstable; urgency=low + + * Homepage now used as a control entry + * Improved the package description by making it meaningful (Closes: #452358) + + -- Raphael Geissert Thu, 22 Nov 2007 20:31:31 -0600 + +kgb (1.0b4-3) unstable; urgency=low + + * Satisfy Suggests on m68k (unrar not available) + * Made it DEB_BUILD_OPTIONS=noopt aware + * -O3 is now used by default + * README file is no longer installed + * Replaced Website with Homepage in package description + + -- Raphael Geissert Fri, 14 Sep 2007 15:32:30 -0500 + +kgb (1.0b4-2) unstable; urgency=medium + + * Fixed cast from 'char*' to 'int' (Closes: #432734) + + -- Raphael Geissert Wed, 11 Jul 2007 13:23:18 -0500 + +kgb (1.0b4-1) unstable; urgency=low + + * Initial release (Closes: #428317) + + -- Raphael Geissert Wed, 01 Nov 2006 19:21:42 -0500 --- kgb-1.0b4.orig/debian/watch +++ kgb-1.0b4/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/kgbarchiver/kgb_arch_posix_by_slawek_v(.*)\.tar\.bz2 --- kgb-1.0b4.orig/debian/patches/00char2int.patch +++ kgb-1.0b4/debian/patches/00char2int.patch @@ -0,0 +1,12 @@ +diff -urN kgb-arch-posix-by-slawek_1.0b4.orig/kgb_arch_posix_by_slawek.cpp kgb-arch-posix-by-slawek_1.0b4/kgb_arch_posix_by_slawek.cpp +--- kgb-arch-posix-by-slawek_1.0b4.orig/kgb_arch_posix_by_slawek.cpp 2006-10-12 05:04:48.000000000 -0500 ++++ kgb-arch-posix-by-slawek_1.0b4/kgb_arch_posix_by_slawek.cpp 2007-07-11 14:23:40.000000000 -0500 +@@ -1122,7 +1122,7 @@ + char *p=(char*)calloc((16< archive.kgb files <@list_files>\n" +- "Decompression:\t\tkgb_arch.exe archive.kgb\n" +- "Table of contests:\tmore < archive.kgb\n\n" ++ "Compression:\t\tkgb - archive.kgb files <@list_files>\n" ++ "Decompression:\t\tkgb archive.kgb\n" ++ "Table of contents:\tmore < archive.kgb\n\n" + "m argument\tmemory usage\n" + "----------\t------------------------------\n" + " -0 \t 2 MB (the fastest compression)\n" --- kgb-1.0b4.orig/debian/patches/series +++ kgb-1.0b4/debian/patches/series @@ -0,0 +1,2 @@ +00char2int.patch +01usage.patch --- kgb-1.0b4.orig/debian/copyright +++ kgb-1.0b4/debian/copyright @@ -0,0 +1,20 @@ +This package was debianized by Raphael Geissert on +Wed, 01 Nov 2006 19:21:42 -0500. + +It was downloaded from: http://kgbarchiver.sourceforge.net/ + +Upstream author: Tomasz Pawlak +Modifications by: Slawek (poczta-sn@gazeta.pl) +Based on PAQ6 by Matt Mahoney + + +This software is copyright (c) 2004 by Matt Mahoney. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation at +http://www.gnu.org/licenses/gpl.txt or (at your option) any later version. +This program is distributed without any warranty. + +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. --- kgb-1.0b4.orig/debian/control +++ kgb-1.0b4/debian/control @@ -0,0 +1,19 @@ +Source: kgb +Section: utils +Priority: optional +Maintainer: Raphael Geissert +Build-Depends: debhelper (>= 5), quilt (>= 0.40) +Standards-Version: 3.7.2 +Homepage: http://kgbarchiver.sourceforge.net/ + +Package: kgb +Architecture: any +Depends: ${shlibs:Depends} +Suggests: unzip, unrar | unrar-free +Description: Archiver for .kgb files + This is an archiver (compressor/decompressor) for files in the KGB format, + which provides high compression rates at the expense of memory and CPU time. + . + This package contains the KGB archiver based on the + PAQ6 archiver by Matt Mahoney. + --- kgb-1.0b4.orig/debian/compat +++ kgb-1.0b4/debian/compat @@ -0,0 +1 @@ +5