--- hoz-1.65.orig/debian/changelog
+++ hoz-1.65/debian/changelog
@@ -0,0 +1,21 @@
+hoz (1.65-2) unstable; urgency=low
+
+ * Added sanitize_path.patch to make sure that paths are properly handled to
+ avoid potential security holes. Closes: #495297
+ * Fixed miscalculation of partsize passed to cli via '-c' arg. Closes: #495646
+ Thanks to Carlos Galisteo <cgalisteo@k-rolus.net>
+ * Upgraded Standards-Version to 3.8.0. No changes needed.
+ * Added Homepage field to debian/control
+ * Do not ignore make clean errors in debian/rules
+ * Fixed man page
+ * Changed menu section to "Applications/File Management"
+
+ -- Miriam Ruiz <little_miry@yahoo.es> Mon, 18 Aug 2008 14:28:31 +0200
+
+hoz (1.65-1) unstable; urgency=low
+
+ * Initial release (Closes: #394585)
+ * Changed i18n system to gettext.
+
+ -- Miriam Ruiz <little_miry@yahoo.es> Wed, 18 Oct 2006 18:57:35 +0000
+
--- hoz-1.65.orig/debian/copyright
+++ hoz-1.65/debian/copyright
@@ -0,0 +1,30 @@
+This package was debianized by Miriam Ruiz <little_miry@yahoo.es> on
+Wed, 18 Oct 2006 18:57:35 +0000.
+
+It was downloaded from http://hoz.sourceforge.net/
+
+Upstream Author: Gustavo Picon <tabo@slashcore.com>
+
+Copyright (C) 2004 Gustavo Picon
+
+License:
+
+ This package 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
+ (at your option) any later version.
+
+ This package 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 package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2006, Miriam Ruiz <little_miry@yahoo.es> and
+is licensed under the GPL, see above.
--- hoz-1.65.orig/debian/README.Debian
+++ hoz-1.65/debian/README.Debian
@@ -0,0 +1,10 @@
+hoz for Debian
+--------------
+
+ Starting in version 2.79, 'Hacha' has an option of adding a 'CRC' code to the
+ file pieces. This 'CRC' code _is_not_a_standard_algorithm_ and has been
+ invented by the author of 'Hacha'. HOZ _does_not_ include an option to
+ generate this 'CRC', or to check it when a file is 'Pasted'. Note that you
+ can still paste files that has this 'CRC' code without problems.
+
+ -- Miriam Ruiz <little_miry@yahoo.es>, Wed, 18 Oct 2006 18:57:35 +0000
--- hoz-1.65.orig/debian/hoz-gui.links
+++ hoz-1.65/debian/hoz-gui.links
@@ -0,0 +1 @@
+usr/share/man/man1/hoz.1.gz usr/share/man/man1/ghoz.1.gz
--- hoz-1.65.orig/debian/hoz-gui.menu
+++ hoz-1.65/debian/hoz-gui.menu
@@ -0,0 +1,3 @@
+?package(hoz-gui):needs="x11" section="Applications/File Management" \
+ title="Hacha Open Zource (hoz GUI)" command="/usr/bin/ghoz" \
+ icon="/usr/share/pixmaps/ghoz.xpm"
--- hoz-1.65.orig/debian/compat
+++ hoz-1.65/debian/compat
@@ -0,0 +1 @@
+5
--- hoz-1.65.orig/debian/docs
+++ hoz-1.65/debian/docs
@@ -0,0 +1 @@
+README
--- hoz-1.65.orig/debian/watch
+++ hoz-1.65/debian/watch
@@ -0,0 +1,11 @@
+# Watch control file for uscan
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Examine a Webpage: <Webpage URL> <string match>
+http://hoz.sourceforge.net/ hoz-(.*)\.tar\.gz
+
+# Find new files on sourceforge, for debscripts >= 2.9
+# http://sf.net/hoz/hoz-(.*)\.tar\.gz
--- hoz-1.65.orig/debian/control
+++ hoz-1.65/debian/control
@@ -0,0 +1,23 @@
+Source: hoz
+Section: utils
+Priority: optional
+Maintainer: Miriam Ruiz <little_miry@yahoo.es>
+Build-Depends: debhelper (>= 5), quilt, gettext, help2man, libgtk2.0-dev
+Standards-Version: 3.8.0
+Homepage: http://hoz.sourceforge.net/
+
+Package: hoz
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: file splitter that uses the hacha file format
+ HOZ is a file splitter, which uses the same file format as the popular
+ 'Hacha' program.
+
+Package: hoz-gui
+Architecture: any
+Depends: hoz (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: file splitter that uses the hacha file format
+ HOZ is a file splitter, which uses the same file format as the popular
+ 'Hacha' program.
+ .
+ This package includes the GUI interface for the program.
--- hoz-1.65.orig/debian/ghoz.xpm
+++ hoz-1.65/debian/ghoz.xpm
@@ -0,0 +1,39 @@
+/* XPM */
+static char *hoz[]={
+"32 32 4 1",
+". c None",
+"# c #000000",
+"b c #800000",
+"a c #c0c0c0",
+"................................",
+"..........#######...............",
+"........##aaaaaaa##.............",
+".......#a#######aaa###..........",
+"......###.......#aaaaa#.........",
+".................#aaaaa#........",
+"..................#aaaaa#.......",
+"...................#aaaaa#......",
+".......######.......#aaaaa#.....",
+".....##aaaaaa#......#aaaaa#.....",
+"...##aa########......#aaaaa#....",
+"..#aaaa#.....#a#.....#aaaaa#....",
+".#aaa##.......##.....#aaaaa#....",
+".#aa#...............#aaaaaa#....",
+"#aaa#...............#aaaaaa#....",
+"#aaa#..............#aaaaaaa#....",
+"#aaa#.............#aaaaaaaa#....",
+"#aaa#............#aaaaaaaa#.....",
+"#aaaa#..........#aaaaaaaa#......",
+".##aa#..........#aaaaaaa#.......",
+"...#aa###bb#####aaaaaa##........",
+"....##aaa#############..........",
+".....##aaaaa##b.................",
+"......#######bb.................",
+"......bbbbbb#bbb................",
+".....bbbb...bbbb................",
+"....bbbbb....bbbb...............",
+"...bbbbbb.....bbb...............",
+"..bbbbb........bbbb.............",
+".bbbbb..........bbbb............",
+".bbbb...........bbbb............",
+"................................"};
--- hoz-1.65.orig/debian/rules
+++ hoz-1.65/debian/rules
@@ -0,0 +1,75 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ $(MAKE) -f /usr/share/quilt/quilt.make patch
+ touch $@
+
+build: build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+ $(MAKE)
+ cd debian/msg && $(MAKE)
+ cd debian/h2m && chmod +x hoz && help2man ./hoz --include=hoz.h2m --no-info > hoz.1
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+ [ ! -f Makefile ] || $(MAKE) clean
+ cd debian/msg && $(MAKE) clean
+ rm -f ghoz hoz h2m/hoz.1
+ $(MAKE) -f /usr/share/quilt/quilt.make unpatch
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ cd debian/msg && $(MAKE) install LOCALEDIR=$(CURDIR)/debian/hoz/usr/share/locale/
+ dh_installdirs -phoz-gui usr/share/pixmaps
+ #dh_installdirs -phoz usr/share/applications
+ dh_install -phoz-gui debian/ghoz.xpm usr/share/pixmaps
+ #dh_install -phoz debian/hoz.desktop usr/share/applications
+
+# Build architecture-independent files here.
+binary-indep: build install
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+ dh_install -phoz hoz usr/bin
+ dh_install -phoz-gui ghoz usr/bin
+ dh_installmenu
+ dh_installman debian/h2m/hoz.1
+ dh_link
+ 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
--- hoz-1.65.orig/debian/msg/fr.po
+++ hoz-1.65/debian/msg/fr.po
@@ -0,0 +1,215 @@
+# translation of es.po to French
+# Copyright (C) 2004 Gustavo Picon
+# Adapted for gettext by Miriam Ruiz
+# This file is distributed under the same license as the hoz package.
+#
+# Miriam Ruiz <little_miry@yahoo.es>, 2006.
+msgid ""
+msgstr ""
+"Project-Id-Version: fr\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2006-10-21 01:00+0000\n"
+"PO-Revision-Date: 2006-10-21 01:24+0000\n"
+"Last-Translator: Miriam Ruiz <little_miry@yahoo.es>\n"
+"Language-Team: French <fr@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: hoz.h:45
+#, c-format
+msgid "Output file '%s' exists, replace? (Y/N) "
+msgstr "Ce Fichier '%s' a été déjà créé, vous êtes sûr le remplacer? (OUI/NON) "
+
+#: hoz.h:46
+#, c-format
+msgid "%s: You must specify one of the '-cph' options"
+msgstr ""
+
+#: hoz.h:47
+#, c-format
+msgid "%s: Missing file argument"
+msgstr ""
+
+#: hoz.h:48
+#, c-format
+msgid "Try '%s --help' for more information."
+msgstr ""
+
+#: hoz.h:49
+#, c-format
+msgid "%s [-pvf] [-c size[K|M]] [-o outpath] inputfname"
+msgstr ""
+
+#: hoz.h:50
+msgid "Options:"
+msgstr ""
+
+#: hoz.h:51
+msgid " -c --cut cut (file->pieces)"
+msgstr ""
+
+#: hoz.h:52
+msgid " -p --paste paste (pieces->file)"
+msgstr ""
+
+#: hoz.h:53
+msgid " -v --verbose verbose output"
+msgstr ""
+
+#: hoz.h:54
+msgid " -f --force force overwrite of file when pasting"
+msgstr ""
+
+#: hoz.h:55
+msgid " -o --outpath specify an output directory"
+msgstr ""
+
+#: hoz.h:56
+msgid " -h --help print this help, then exit"
+msgstr ""
+
+#: hoz.h:57
+msgid " --version print hoz program version number, then exit"
+msgstr ""
+
+#: hoz.h:58
+msgid "ERROR: The file must end with a '.0' extension"
+msgstr "ERREUR: Le fichier doit terminer avec '.0'"
+
+#: hoz.h:59
+#, c-format
+msgid "ERROR: File not found: %s"
+msgstr "ERREUR: Ce fichier n'a pas été trouvé: %s"
+
+#: hoz.h:60
+#, c-format
+msgid "ERROR: Corrupted file header: %s"
+msgstr "ERREUR: La tête de ce fichier est corrompue: %s"
+
+#: hoz.h:61
+#, c-format
+msgid "ERROR: Corrupted .??? files, final_size/real_size: %s"
+msgstr "ERREUR: Fichiers .??? corrompus, taille_finale/taille_real: %s"
+
+#: hoz.h:62
+#, c-format
+msgid "ERROR: Cannot open file for writing: %s"
+msgstr "ERREUR: N'est pas possible ouvrir ce ficheur pour écrire: %s"
+
+#: hoz.h:63
+#, c-format
+msgid "ERROR: Cannot open file for reading: %s"
+msgstr "ERREUR: N'est pas possible ouvrir ce ficheur pour lire: %s"
+
+#: hoz.h:64
+#, c-format
+msgid "ERROR: Invalid partial size: %s"
+msgstr "ERREUR: La taille partielle n'est pas valide: %s"
+
+#: hoz.h:65
+#, c-format
+msgid "ERROR: Operation failed total_files/file_size: %s"
+msgstr "ERREUR: Cet opératión n'est pas possible total_fichier/taille_fichier: %s"
+
+#: hoz.h:66
+#, c-format
+msgid "ERROR: Output path isn't a directory: '%s'"
+msgstr ""
+
+#: hoz.h:67
+#, c-format
+msgid "ERROR: Couldn't write to file: '%s'"
+msgstr ""
+
+#: hoz.h:68
+#, c-format
+msgid "* Cutting to file \"%s\": "
+msgstr "* En découpant vers le nouveau ficheur: \"%s\": "
+
+#: hoz.h:69
+#, c-format
+msgid "* Progress: %u of %u bytes (%.2f%%)"
+msgstr "* Progrès: %u de %u bytes (%.2f%%)"
+
+#: hoz.h:70
+#, c-format
+msgid ""
+"*** Processed file: %s (%u bytes) in %.3f seconds (%u bytes/s) [output "
+"path='%s']"
+msgstr "*** Fichier découpé: %s (%u bytes) en %.3f seconds (%u bytes/s) [output path='%s']"
+
+#: hoz.h:71
+#, c-format
+msgid "*** Extracting file: \"%s\" (%u bytes)"
+msgstr "*** En Collant fichier: \"%s\" (%u bytes)"
+
+#: hoz.h:72
+#, c-format
+msgid "* Extracting \"%s\": "
+msgstr "* En découpant \"%s\": "
+
+#: hoz.h:73
+#, c-format
+msgid "ERROR: Missing file in paste operation: '%s'"
+msgstr ""
+
+#: hoz.h:74
+#, c-format
+msgid ""
+"*** Extracted file: %s (%u bytes) in %.3f seconds (%u bytes/s) [output "
+"path='%s']"
+msgstr "*** Fichier découpé: %s (%u bytes) en %.3f seconds (%u bytes/s) [output path='%s']"
+
+#: hoz.h:75
+#, c-format
+msgid "File '%s' exists, replace?"
+msgstr "Ce fichier '%s' déjà existe , le remplacer?"
+
+#: hoz.h:76
+#, c-format
+msgid "ERROR: Invalid size: '%s'"
+msgstr "ERREUR: Taille n'est pas valide: '%s'"
+
+#: hoz.h:77
+msgid "Hoz/Hacha file to paste"
+msgstr "Ficheur de Hoz/Hacha à coller"
+
+#: hoz.h:78
+msgid "File to cut"
+msgstr "Ficheur à couper"
+
+#: hoz.h:79
+msgid "* Ready!"
+msgstr "* Voilà !"
+
+#: hoz.h:80
+msgid "Partial size:"
+msgstr "Taille parcielle:"
+
+#: hoz.h:81
+msgid "Output path:"
+msgstr ""
+
+#: hoz.h:82
+msgid "Show Progress"
+msgstr "Montrer le progrès"
+
+#: hoz.h:83
+msgid "Cut"
+msgstr "Découper"
+
+#: hoz.h:84
+msgid "Paste"
+msgstr "Coller"
+
+#: hoz.h:85
+msgid "yY"
+msgstr "oO"
+
+#: hoz.h:86
+msgid "nN"
+msgstr "nN"
+
--- hoz-1.65.orig/debian/msg/Makefile
+++ hoz-1.65/debian/msg/Makefile
@@ -0,0 +1,42 @@
+# Copyright 2005 Miriam Ruiz <little_miry@yahoo.es>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library 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
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA.
+
+LOCALEDIR=./
+FILENAME=hoz
+
+all: $(FILENAME).pot build-stamp
+
+$(FILENAME).pot:
+ cd ../..; xgettext -k_ -o debian/msg/$(FILENAME).pot -f debian/msg/i18n_files --from-code=iso-8859-1
+
+build-stamp:
+ -for f in *.po; do i=`basename $$f .po`; echo Building Language \"$$i\"; msgfmt $$f -o $$i.mo; done
+ touch build-stamp
+
+clean:
+ -for f in *.po; do i=`echo $$f | awk 'BEGIN {FS="."} {print $$1}'`; rm -rf "$$i"; done
+ rm -f *.mo
+ rm -f $(FILENAME).pot
+ rm -f build-stamp
+
+install: build-stamp
+ for f in *.mo; do i=`basename $$f .mo`; echo Installing Language \"$$i\"; \
+ install -d $(LOCALEDIR)$$i; install -p -d -m 755 $(LOCALEDIR)$$i/LC_MESSAGES; \
+ install -m 644 $$f $(LOCALEDIR)$$i/LC_MESSAGES/$(FILENAME).mo; \
+ done
+
+uninstall:
--- hoz-1.65.orig/debian/msg/es.po
+++ hoz-1.65/debian/msg/es.po
@@ -0,0 +1,215 @@
+# translation of es.po to Spanish
+# Copyright (C) 2004 Gustavo Picon
+# Adapted for gettext by Miriam Ruiz
+# This file is distributed under the same license as the hoz package.
+#
+# Miriam Ruiz <little_miry@yahoo.es>, 2006.
+msgid ""
+msgstr ""
+"Project-Id-Version: es\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2006-10-21 01:00+0000\n"
+"PO-Revision-Date: 2006-10-21 01:16+0000\n"
+"Last-Translator: Miriam Ruiz <little_miry@yahoo.es>\n"
+"Language-Team: <es@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: hoz.h:45
+#, c-format
+msgid "Output file '%s' exists, replace? (Y/N) "
+msgstr "El archivo de salida '%s' ya existe, ¿reemplazarlo? (S/N) "
+
+#: hoz.h:46
+#, c-format
+msgid "%s: You must specify one of the '-cph' options"
+msgstr "%s: Debes especificar una de las opciones '-cph'"
+
+#: hoz.h:47
+#, c-format
+msgid "%s: Missing file argument"
+msgstr "%s: Falta el parámetro de archivo"
+
+#: hoz.h:48
+#, c-format
+msgid "Try '%s --help' for more information."
+msgstr "Escribe '%s --help' para mas información."
+
+#: hoz.h:49
+#, c-format
+msgid "%s [-pvf] [-c size[K|M]] [-o outpath] inputfname"
+msgstr "%s [-pvf] [-c tamaño[K|M]] [-o ruta_grabación] archivo_lectura"
+
+#: hoz.h:50
+msgid "Options:"
+msgstr "Opciones:"
+
+#: hoz.h:51
+msgid " -c --cut cut (file->pieces)"
+msgstr " -c --cut cortar (archivo->piezas)"
+
+#: hoz.h:52
+msgid " -p --paste paste (pieces->file)"
+msgstr " -p --paste pegar (piezas->archivo)"
+
+#: hoz.h:53
+msgid " -v --verbose verbose output"
+msgstr " -v --verbose info. descriptiva"
+
+#: hoz.h:54
+msgid " -f --force force overwrite of file when pasting"
+msgstr " -f --force forzar sobreescritura de archivo al pegar"
+
+#: hoz.h:55
+msgid " -o --outpath specify an output directory"
+msgstr " -o --outpath especificar un directorio de salida"
+
+#: hoz.h:56
+msgid " -h --help print this help, then exit"
+msgstr " -h --help ayuda"
+
+#: hoz.h:57
+msgid " --version print hoz program version number, then exit"
+msgstr " --version escribir el número de versión del programa y terminar"
+
+#: hoz.h:58
+msgid "ERROR: The file must end with a '.0' extension"
+msgstr "ERROR: El archivo debe terminar con '.0'"
+
+#: hoz.h:59
+#, c-format
+msgid "ERROR: File not found: %s"
+msgstr "ERROR: Archivo no encontrado: %s"
+
+#: hoz.h:60
+#, c-format
+msgid "ERROR: Corrupted file header: %s"
+msgstr "ERROR: Cabecera de archivo corrupta: %s"
+
+#: hoz.h:61
+#, c-format
+msgid "ERROR: Corrupted .??? files, final_size/real_size: %s"
+msgstr "ERROR: Archivos .??? corruptos, tamaño_final/tamaño_real: %s"
+
+#: hoz.h:62
+#, c-format
+msgid "ERROR: Cannot open file for writing: %s"
+msgstr "ERROR: No se puede abrir archivo para escritura: %s"
+
+#: hoz.h:63
+#, c-format
+msgid "ERROR: Cannot open file for reading: %s"
+msgstr "ERROR: No se puede abrir archivo para lectura: %s"
+
+#: hoz.h:64
+#, c-format
+msgid "ERROR: Invalid partial size: %s"
+msgstr "ERROR: Tamaño parcial no válido: %s"
+
+#: hoz.h:65
+#, c-format
+msgid "ERROR: Operation failed total_files/file_size: %s"
+msgstr "ERROR: Operación fallida total_archivos/tamaño_archivo: %s"
+
+#: hoz.h:66
+#, c-format
+msgid "ERROR: Output path isn't a directory: '%s'"
+msgstr "ERROR: La ruta de salida no es un directorio: '%s'"
+
+#: hoz.h:67
+#, c-format
+msgid "ERROR: Couldn't write to file: '%s'"
+msgstr "ERROR: No se pudo escribir al archivo: '%s'"
+
+#: hoz.h:68
+#, c-format
+msgid "* Cutting to file \"%s\": "
+msgstr "* Cortando a archivo: \"%s\": "
+
+#: hoz.h:69
+#, c-format
+msgid "* Progress: %u of %u bytes (%.2f%%)"
+msgstr "* Progreso: %u de %u bytes (%.2f%%)"
+
+#: hoz.h:70
+#, c-format
+msgid ""
+"*** Processed file: %s (%u bytes) in %.3f seconds (%u bytes/s) [output "
+"path='%s']"
+msgstr "*** Archivo cortado: %s (%u bytes) en %.3f segundos (%u bytes/s) [ruta de sailda='%s']"
+
+#: hoz.h:71
+#, c-format
+msgid "*** Extracting file: \"%s\" (%u bytes)"
+msgstr "*** Pegando archivo: \"%s\" (%u bytes)"
+
+#: hoz.h:72
+#, c-format
+msgid "* Extracting \"%s\": "
+msgstr "* Pegando \"%s\": "
+
+#: hoz.h:73
+#, c-format
+msgid "ERROR: Missing file in paste operation: '%s'"
+msgstr "ERROR: Archivo no encontrado al pegar: '%s'"
+
+#: hoz.h:74
+#, c-format
+msgid ""
+"*** Extracted file: %s (%u bytes) in %.3f seconds (%u bytes/s) [output "
+"path='%s']"
+msgstr "*** Archivo pegado: %s (%u bytes) en %.3f segundos (%u bytes/s) [path de salida='%s']"
+
+#: hoz.h:75
+#, c-format
+msgid "File '%s' exists, replace?"
+msgstr "El archivo '%s' ya existe, ¿reemplazarlo?"
+
+#: hoz.h:76
+#, c-format
+msgid "ERROR: Invalid size: '%s'"
+msgstr "ERROR: Tamaño no válido: '%s'"
+
+#: hoz.h:77
+msgid "Hoz/Hacha file to paste"
+msgstr "Archivo de Hoz/Hacha a pegar"
+
+#: hoz.h:78
+msgid "File to cut"
+msgstr "Archivo a cortar"
+
+#: hoz.h:79
+msgid "* Ready!"
+msgstr "* ¡Listo!"
+
+#: hoz.h:80
+msgid "Partial size:"
+msgstr "Tam. parcial:"
+
+#: hoz.h:81
+msgid "Output path:"
+msgstr "Dir destino:"
+
+#: hoz.h:82
+msgid "Show Progress"
+msgstr "Mostrar Progreso"
+
+#: hoz.h:83
+msgid "Cut"
+msgstr "Cortar"
+
+#: hoz.h:84
+msgid "Paste"
+msgstr "Pegar"
+
+#: hoz.h:85
+msgid "yY"
+msgstr "sS"
+
+#: hoz.h:86
+msgid "nN"
+msgstr "nN"
+
--- hoz-1.65.orig/debian/msg/i18n_files
+++ hoz-1.65/debian/msg/i18n_files
@@ -0,0 +1 @@
+hoz.h
--- hoz-1.65.orig/debian/h2m/hoz.h2m
+++ hoz-1.65/debian/h2m/hoz.h2m
@@ -0,0 +1,26 @@
+Include file for hoz man page
+
+[name]
+hoz \- file splitter that uses the hacha file format
+
+[synopsis]
+.B hoz [-pvf] [-c size[K|M]] [-o outpath] inputfname
+.TP
+.B ghoz
+
+[description]
+HOZ is a file splitter, which uses the same file format as the popular 'Hacha' program.
+
+[usage]
+There are two basic operations: cut and paste. Cut will 'split' a file in
+pieces. The size of each piece is passed as an option. Each piece will have a
+numeric extension, starting with 0. So for instance if you 'cut' a file called 'foo.iso',
+the pieces will be named 'foo.iso.0', 'foo.iso.1' and so on.
+
+Paste will 'merge' these pieces and generate and exact copy of the original
+file.
+
+ghoz is the graphical version of hoz, which uses a GTK GUI interface.
+
+[see also]
+You can find more information at http://hoz.sourceforge.net/
--- hoz-1.65.orig/debian/h2m/hoz
+++ hoz-1.65/debian/h2m/hoz
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+LIB="../.."
+BIN="../.."
+
+case "$1" in
+ "--help")
+ LD_LIBRARY_PATH="$LIB" LANGUAGE="en" PATH="$BIN" hoz --help | \
+ grep --extended-regexp --regexp="^Option|^$| -"
+ ;;
+ "--version")
+ LD_LIBRARY_PATH="$LIB" $BIN/hoz --version 2>&1 | \
+ head -n 1 | awk '{ print $2 }'
+ ;;
+esac
+exit 0
--- hoz-1.65.orig/debian/h2m/hoz.1
+++ hoz-1.65/debian/h2m/hoz.1
@@ -0,0 +1,44 @@
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36.
+.TH HOZ "1" "August 2008" "hoz 1.65" "User Commands"
+.SH NAME
+hoz \- file splitter that uses the hacha file format
+.SH SYNOPSIS
+.B hoz [-pvf] [-c size[K|M]] [-o outpath] inputfname
+.TP
+.B ghoz
+.SH DESCRIPTION
+HOZ is a file splitter, which uses the same file format as the popular 'Hacha' program.
+.SH OPTIONS
+.TP
+\fB\-c\fR \fB\-\-cut\fR
+cut (file\->pieces)
+.TP
+\fB\-p\fR \fB\-\-paste\fR
+paste (pieces\->file)
+.TP
+\fB\-v\fR \fB\-\-verbose\fR
+verbose output
+.TP
+\fB\-f\fR \fB\-\-force\fR
+force overwrite of file when pasting
+.TP
+\fB\-o\fR \fB\-\-outpath\fR
+specify an output directory
+.TP
+\fB\-h\fR \fB\-\-help\fR
+print this help, then exit
+.TP
+\fB\-\-version\fR
+print hoz program version number, then exit
+.SH USAGE
+There are two basic operations: cut and paste. Cut will 'split' a file in
+pieces. The size of each piece is passed as an option. Each piece will have a
+numeric extension, starting with 0. So for instance if you 'cut' a file called 'foo.iso',
+the pieces will be named 'foo.iso.0', 'foo.iso.1' and so on.
+
+Paste will 'merge' these pieces and generate and exact copy of the original
+file.
+
+ghoz is the graphical version of hoz, which uses a GTK GUI interface.
+.SH "SEE ALSO"
+You can find more information at http://hoz.sourceforge.net/
--- hoz-1.65.orig/debian/patches/series
+++ hoz-1.65/debian/patches/series
@@ -0,0 +1,4 @@
+makefile.patch
+gettext.patch
+removepath.patch
+partsize.patch
--- hoz-1.65.orig/debian/patches/gettext.patch
+++ hoz-1.65/debian/patches/gettext.patch
@@ -0,0 +1,244 @@
+# Copyright (C) 2006 by Miriam Ruiz <little_miry@yahoo.es>
+# Distributed under the same license as the program. See debian/copyright
+
+--- hoz-1.65.orig/hoz.h
++++ hoz-1.65/hoz.h
+@@ -42,147 +42,52 @@
+ #include <unistd.h>
+ #include <sys/stat.h>
+
+-#if defined(HOZ_LANG_EN)
+-#define HOZ_REPLACE_C "Output file '%s' exists, replace? (Y/N) "
+-#define HOZ_BADARGSOPT "%s: You must specify one of the '-cph' options"
+-#define HOZ_BADARGSFILE "%s: Missing file argument"
+-#define HOZ_HMOREINFO "Try '%s --help' for more information."
+-#define HOZ_USAGE_1 "%s [-pvf] [-c size[K|M]] [-o outpath] inputfname"
+-#define HOZ_USAGE_2 "Options:"
+-#define HOZ_USAGE_3 " -c --cut cut (file->pieces)"
+-#define HOZ_USAGE_4 " -p --paste paste (pieces->file)"
+-#define HOZ_USAGE_5 " -v --verbose verbose output"
+-#define HOZ_USAGE_6 " -f --force force overwrite of file when pasting"
+-#define HOZ_USAGE_7 " -o --outpath specify an output directory"
+-#define HOZ_USAGE_8 " -h --help print this help, then exit"
+-#define HOZ_USAGE_9 " --version print hoz program version number, then exit"
+-#define HOZ_ENDDOTO "ERROR: The file must end with a '.0' extension"
+-#define HOZ_NOFILE "ERROR: File not found: %s"
+-#define HOZ_BADHEADER "ERROR: Corrupted file header: %s"
+-#define HOZ_BADPARTS "ERROR: Corrupted .??? files, final_size/real_size: %s"
+-#define HOZ_ERROPENWRITE "ERROR: Cannot open file for writing: %s"
+-#define HOZ_ERROPENREAD "ERROR: Cannot open file for reading: %s"
+-#define HOZ_ERRPARTSIZE "ERROR: Invalid partial size: %s"
+-#define HOZ_ERRPROCESS "ERROR: Operation failed total_files/file_size: %s"
+-#define HOZ_ERROUTNODIR "ERROR: Output path isn't a directory: '%s'"
+-#define HOZ_ERRWRITE "ERROR: Couldn't write to file: '%s'"
+-#define HOZ_CUTTOFILE "* Cutting to file \"%s\": "
+-#define HOZ_PROGRESS "* Progress: %u of %u bytes (%.2f%%)"
+-#define HOZ_CUTEND "*** Processed file: %s (%u bytes) in %.3f seconds (%u bytes/s) [output path='%s']"
+-#define HOZ_BEGINPASTE "*** Extracting file: \"%s\" (%u bytes)"
+-#define HOZ_PASTEFILE "* Extracting \"%s\": "
+-#define HOZ_PASTEMISSING "ERROR: Missing file in paste operation: '%s'"
+-#define HOZ_PASTEEND "*** Extracted file: %s (%u bytes) in %.3f seconds (%u bytes/s) [output path='%s']"
+-#define HOZ_REPLACE_W "File '%s' exists, replace?"
+-#define HOZ_BADSIZE "ERROR: Invalid size: '%s'"
+-#define HOZ_FDPASTE "Hoz/Hacha file to paste"
+-#define HOZ_FDCUT "File to cut"
+-#define HOZ_READY "* Ready!"
+-#define HOZ_PSIZECAPTION "Partial size:"
+-#define HOZ_OUTPCAPTION "Output path:"
+-#define HOZ_CBPRGRCAPTION "Show Progress"
+-#define HOZ_BTNCUTCAPTION "Cut"
+-#define HOZ_BTNPASTECAPTION "Paste"
+-#define HOZ_YESCHARS "yY"
+-#define HOZ_NOCHARS "nN"
+-#endif /* #if defined(HOZ_LANG_EN) */
++#include <libintl.h>
++#define _(String) gettext (String)
+
+-#if defined(HOZ_LANG_ES)
+-#define HOZ_REPLACE_C "Archivo de salida '%s' ya existe, reemplazar? (S/N) "
+-#define HOZ_BADARGSOPT "%s: Debes especificar una de las opciones '-cph'"
+-#define HOZ_BADARGSFILE "%s: Falta argumento de archivo"
+-#define HOZ_HMOREINFO "Intenta '%s -help' para mas informacion."
+-#define HOZ_USAGE_1 "%s [-pvf] [-c tamano[K|M]] [-o outpath] inputfname"
+-#define HOZ_USAGE_2 "Opciones:"
+-#define HOZ_USAGE_3 " -c --cut cortar (archivo->piezas)"
+-#define HOZ_USAGE_4 " -p --paste pegar (piezas->archivo)"
+-#define HOZ_USAGE_5 " -v --verbose info. descriptiva"
+-#define HOZ_USAGE_6 " -f --force forzar sobreescritura de archivo al pegar"
+-#define HOZ_USAGE_7 " -o --outpath especificar un directorio de salida"
+-#define HOZ_USAGE_8 " -h --help ayuda"
+-#define HOZ_USAGE_9 " --version print hoz program version number, then exit"
+-#if defined(WIN32) && defined(HOZ_WIN)
+-#define HOZ_BADPARTS "ERROR: Archivos .??? corruptos, tamaño_final/tamaño_real: %s"
+-#define HOZ_ERRPARTSIZE "ERROR: Tamaño parcial no válido: %s"
+-#define HOZ_ERRPROCESS "ERROR: Operación fallida total_archivos/tamaño_archivo: %s"
+-#define HOZ_BADSIZE "ERROR: Tamaño no válido: '%s'"
+-#else /* #if defined(WIN32) && defined(HOZ_WIN) */
+-#define HOZ_BADPARTS "ERROR: Archivos .??? corruptos, tama\xA4o_final/tama\xA4o_real: %s"
+-#define HOZ_ERRPARTSIZE "ERROR: Tama\xA4o parcial no v\xA0lido: %s"
+-#define HOZ_ERRPROCESS "ERROR: Operaci\xA2n fallida total_archivos/tama\xA4o_archivo: %s"
+-#define HOZ_BADSIZE "ERROR: Tama\xA4o no v\xA0lido: '%s'"
+-#endif /* #if defined(WIN32) && defined(HOZ_WIN) */
+-#define HOZ_PSIZECAPTION "Tam. parcial:"
+-#define HOZ_ERROUTNODIR "ERROR: Path de salida no es un directorio: '%s'"
+-#define HOZ_OUTPCAPTION "Dir destino:"
+-#define HOZ_ENDDOTO "ERROR: El archivo debe terminar con '.0'"
+-#define HOZ_NOFILE "ERROR: Archivo no encontrado: %s"
+-#define HOZ_BADHEADER "ERROR: Cabecera de archivo corrupta: %s"
+-#define HOZ_ERROPENWRITE "ERROR: No se puede abrir archivo para escritura: %s"
+-#define HOZ_ERROPENREAD "ERROR: No se puede abrir archivo para lectura: %s"
+-#define HOZ_ERRWRITE "ERROR: No se pudo escribir al archivo: '%s'"
+-#define HOZ_CUTTOFILE "* Cortando a archivo: \"%s\": "
+-#define HOZ_PROGRESS "* Progreso: %u de %u bytes (%.2f%%)"
+-#define HOZ_CUTEND "*** Archivo cortado: %s (%u bytes) en %.3f segundos (%u bytes/s) [path de sailda='%s']"
+-#define HOZ_BEGINPASTE "*** Pegando archivo: \"%s\" (%u bytes)"
+-#define HOZ_PASTEFILE "* Pegando \"%s\": "
+-#define HOZ_PASTEMISSING "ERROR: Archivo no encontrado al pegar: '%s'"
+-#define HOZ_PASTEEND "*** Archivo pegado: %s (%u bytes) en %.3f segundos (%u bytes/s) [path de salida='%s']"
+-#define HOZ_REPLACE_W "Archivo '%s' existe, reemplazar?"
+-#define HOZ_FDPASTE "Archivo de Hoz/Hacha a pegar"
+-#define HOZ_FDCUT "Archivo a cortar"
+-#define HOZ_READY "* Listo!"
+-#define HOZ_CBPRGRCAPTION "Mostrar Progreso"
+-#define HOZ_BTNCUTCAPTION "Cortar"
+-#define HOZ_BTNPASTECAPTION "Pegar"
+-#define HOZ_YESCHARS "sS"
+-#define HOZ_NOCHARS "nN"
+-#endif /* #if defined(HOZ_LANG_ES) */
++#define HOZ_REPLACE_C _("Output file '%s' exists, replace? (Y/N) ")
++#define HOZ_BADARGSOPT _("%s: You must specify one of the '-cph' options")
++#define HOZ_BADARGSFILE _("%s: Missing file argument")
++#define HOZ_HMOREINFO _("Try '%s --help' for more information.")
++#define HOZ_USAGE_1 _("%s [-pvf] [-c size[K|M]] [-o outpath] inputfname")
++#define HOZ_USAGE_2 _("Options:")
++#define HOZ_USAGE_3 _(" -c --cut cut (file->pieces)")
++#define HOZ_USAGE_4 _(" -p --paste paste (pieces->file)")
++#define HOZ_USAGE_5 _(" -v --verbose verbose output")
++#define HOZ_USAGE_6 _(" -f --force force overwrite of file when pasting")
++#define HOZ_USAGE_7 _(" -o --outpath specify an output directory")
++#define HOZ_USAGE_8 _(" -h --help print this help, then exit")
++#define HOZ_USAGE_9 _(" --version print hoz program version number, then exit")
++#define HOZ_ENDDOTO _("ERROR: The file must end with a '.0' extension")
++#define HOZ_NOFILE _("ERROR: File not found: %s")
++#define HOZ_BADHEADER _("ERROR: Corrupted file header: %s")
++#define HOZ_BADPARTS _("ERROR: Corrupted .??? files, final_size/real_size: %s")
++#define HOZ_ERROPENWRITE _("ERROR: Cannot open file for writing: %s")
++#define HOZ_ERROPENREAD _("ERROR: Cannot open file for reading: %s")
++#define HOZ_ERRPARTSIZE _("ERROR: Invalid partial size: %s")
++#define HOZ_ERRPROCESS _("ERROR: Operation failed total_files/file_size: %s")
++#define HOZ_ERROUTNODIR _("ERROR: Output path isn't a directory: '%s'")
++#define HOZ_ERRWRITE _("ERROR: Couldn't write to file: '%s'")
++#define HOZ_CUTTOFILE _("* Cutting to file \"%s\": ")
++#define HOZ_PROGRESS _("* Progress: %u of %u bytes (%.2f%%)")
++#define HOZ_CUTEND _("*** Processed file: %s (%u bytes) in %.3f seconds (%u bytes/s) [output path='%s']")
++#define HOZ_BEGINPASTE _("*** Extracting file: \"%s\" (%u bytes)")
++#define HOZ_PASTEFILE _("* Extracting \"%s\": ")
++#define HOZ_PASTEMISSING _("ERROR: Missing file in paste operation: '%s'")
++#define HOZ_PASTEEND _("*** Extracted file: %s (%u bytes) in %.3f seconds (%u bytes/s) [output path='%s']")
++#define HOZ_REPLACE_W _("File '%s' exists, replace?")
++#define HOZ_BADSIZE _("ERROR: Invalid size: '%s'")
++#define HOZ_FDPASTE _("Hoz/Hacha file to paste")
++#define HOZ_FDCUT _("File to cut")
++#define HOZ_READY _("* Ready!")
++#define HOZ_PSIZECAPTION _("Partial size:")
++#define HOZ_OUTPCAPTION _("Output path:")
++#define HOZ_CBPRGRCAPTION _("Show Progress")
++#define HOZ_BTNCUTCAPTION _("Cut")
++#define HOZ_BTNPASTECAPTION _("Paste")
++#define HOZ_YESCHARS _("yY")
++#define HOZ_NOCHARS _("nN")
+
+-#if defined(HOZ_LANG_FR)
+-#define HOZ_REPLACE_C "Ce Fichier '%s' a été déjà créé, vous êtes sûr le remplacer? (OUI/NON) "
+-#define HOZ_BADARGSOPT "%s: Debes especificar una de las opciones '-cph'"
+-#define HOZ_BADARGSFILE "%s: Falta argumento de archivo"
+-#define HOZ_HMOREINFO "Intenta '%s -help' para mas informacion."
+-#define HOZ_USAGE_1 "%s [-pvf] [-c tamano[K|M]] [-o outpath] inputfname"
+-#define HOZ_USAGE_2 "Opciones:"
+-#define HOZ_USAGE_3 " -c --cut cortar"
+-#define HOZ_USAGE_4 " -p --paste pegar"
+-#define HOZ_USAGE_5 " -v --verbose descriptivo"
+-#define HOZ_USAGE_6 " -f --force forzar sobreescritura de archivo al pegar"
+-#define HOZ_USAGE_7 " -o --outpath especificar un directorio de salida"
+-#define HOZ_USAGE_8 " -h --help ayuda"
+-#define HOZ_USAGE_9 " --version hoz version"
+-#define HOZ_BADPARTS "ERREUR: Fichiers .??? corrompus, taille_finale/taille_real: %s"
+-#define HOZ_ERRPARTSIZE "ERREUR: La taille partielle n'est pas valide: %s"
+-#define HOZ_ERRPROCESS "ERREUR: Cet opératión n'est pas possible total_fichier/taille_fichier: %s"
+-#define HOZ_ERROUTNODIR "ERROR: Output path isn't a directory: '%s'"
+-#define HOZ_ERRWRITE "ERROR: Couldn't write to file: '%s'"
+-#define HOZ_BADSIZE "ERREUR: Taille n'est pas valide: '%s'"
+-#define HOZ_PSIZECAPTION "Taille parcielle:"
+-#define HOZ_OUTPCAPTION "Output path:"
+-#define HOZ_ENDDOTO "ERREUR: Le fichier doit terminer avec '.0'"
+-#define HOZ_NOFILE "ERREUR: Ce fichier n'a pas été trouvé: %s"
+-#define HOZ_BADHEADER "ERREUR: La tête de ce fichier est corrompue: %s"
+-#define HOZ_ERROPENWRITE "ERREUR: N'est pas possible ouvrir ce ficheur pour écrire: %s"
+-#define HOZ_ERROPENREAD "ERREUR: N'est pas possible ouvrir ce ficheur pour lire: %s"
+-#define HOZ_CUTTOFILE "* En découpant vers le nouveau ficheur: \"%s\": "
+-#define HOZ_PROGRESS "* Progrès: %u de %u bytes (%.2f%%)"
+-#define HOZ_CUTEND "*** Fichier découpé: %s (%u bytes) en %.3f seconds (%u bytes/s) [output path='%s']"
+-#define HOZ_BEGINPASTE "*** En Collant fichier: \"%s\" (%u bytes)"
+-#define HOZ_PASTEFILE "* En découpant \"%s\": "
+-#define HOZ_PASTEMISSING "ERROR: Missing file in paste operation: '%s'"
+-#define HOZ_PASTEEND "*** Fichier découpé: %s (%u bytes) en %.3f seconds (%u bytes/s) [output path='%s']"
+-#define HOZ_REPLACE_W "Ce fichier '%s' déjà existe , le remplacer?"
+-#define HOZ_FDPASTE "Ficheur de Hoz/Hacha à coller"
+-#define HOZ_FDCUT "Ficheur à couper"
+-#define HOZ_READY "* Voilà!"
+-#define HOZ_CBPRGRCAPTION "Montrer le progrès"
+-#define HOZ_BTNCUTCAPTION "Découper"
+-#define HOZ_BTNPASTECAPTION "Coller"
+-#define HOZ_YESCHARS "oO"
+-#define HOZ_NOCHARS "nN"
+-#endif /* #if defined(HOZ_LANG_FR) */
+ void hoz_print(const char *);
+ void hoz_lf();
+
+--- hoz-1.65.orig/hozcli.c
++++ hoz-1.65/hozcli.c
+@@ -2,6 +2,8 @@
+ #include "hozcli.h"
+ #include "getopt.h"
+
++#include <libintl.h>
++#include <locale.h>
+
+ extern char outpath[MAXLEN];
+ extern size_t fullsize, partsize, headersize;
+@@ -42,6 +44,12 @@
+ {0, 0, NULL, 0}
+ };
+
++ setlocale (LC_MESSAGES, "");
++ setlocale (LC_CTYPE, "");
++ setlocale (LC_COLLATE, "");
++ textdomain ("hoz");
++ bindtextdomain ("hoz", NULL);
++
+ cflag = pflag = oflag = showprogress = forceow = simulate = help = 0;
+ cval = ifname = NULL;
+ opterr = 1;
+--- hoz-1.65.orig/hozgtk.c
++++ hoz-1.65/hozgtk.c
+@@ -14,6 +14,8 @@
+ #include "hozgtk_i.h"
+ #include "hozgtk_s.h"
+
++#include <libintl.h>
++#include <locale.h>
+
+ GtkWidget *window_hoz;
+ GtkWidget *window_bs; /* badsize */
+@@ -164,6 +166,11 @@
+
+ int main(int argc, char *argv[])
+ {
++ setlocale (LC_MESSAGES, "");
++ setlocale (LC_CTYPE, "");
++ setlocale (LC_COLLATE, "");
++ textdomain ("hoz");
++ bindtextdomain ("hoz", NULL);
+
+ gtk_set_locale();
+ gtk_init(&argc, &argv);
--- hoz-1.65.orig/debian/patches/makefile.patch
+++ hoz-1.65/debian/patches/makefile.patch
@@ -0,0 +1,62 @@
+# Copyright (C) 2006 by Miriam Ruiz <little_miry@yahoo.es>
+# Distributed under the same license as the program. See debian/copyright
+
+--- hoz-1.65.orig/Makefile
++++ hoz-1.65/Makefile
+@@ -4,14 +4,10 @@
+ OBJ = hoz.o hozgtk.o hozgtk_c.o hozgtk_i.o hozgtk_s.o hozcli.o
+ LINKOBJ = hoz.o hozcli.o
+ GLINKOBJ = hoz.o hozgtk.o hozgtk_c.o hozgtk_i.o hozgtk_s.o
+-CFLAGS = -Wall \
+- -O2 \
+- -DG_DISABLE_DEPRECATED \
+- -DGDK_DISABLE_DEPRECATED \
+- -DGDK_PIXBUF_DISABLE_DEPRECATED \
+- -DGTK_DISABLE_DEPRECATED
+-BIN = /usr/bin/hoz
+-GBIN = /usr/bin/ghoz
++CFLAGS = -Wall -O2
++#CFLAGS += -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
++BIN = hoz
++GBIN = ghoz
+
+ GTK_COMP = `pkg-config gtk+-2.0 --cflags`
+ GTK_LINK = `pkg-config gtk+-2.0 --libs`
+@@ -30,30 +26,29 @@
+ clean: clean-custom
+ rm -f $(OBJ)
+
+-clean2: clean-custom
++distclean: clean-custom
+ rm -f $(OBJ) ${BIN} ${GBIN}
+
+ hoz.o: hoz.c
+- $(CC) -c hoz.c -o hoz.o $(CFLAGS) ${LANG}
++ $(CC) -c hoz.c -o hoz.o $(CFLAGS)
+
+ hozgtk.o: hozgtk.c
+- $(CC) -c hozgtk.c -o hozgtk.o $(CFLAGS) $(GTK_COMP) ${LANG}
++ $(CC) -c hozgtk.c -o hozgtk.o $(CFLAGS) $(GTK_COMP)
+
+ hozgtk_c.o: hozgtk_c.c
+- $(CC) -c hozgtk_c.c -o hozgtk_c.o $(CFLAGS) $(GTK_COMP) ${LANG}
++ $(CC) -c hozgtk_c.c -o hozgtk_c.o $(CFLAGS) $(GTK_COMP)
+
+ hozgtk_i.o: hozgtk_i.c
+- $(CC) -c hozgtk_i.c -o hozgtk_i.o $(CFLAGS) $(GTK_COMP) ${LANG}
++ $(CC) -c hozgtk_i.c -o hozgtk_i.o $(CFLAGS) $(GTK_COMP)
+
+ hozgtk_s.o: hozgtk_s.c
+- $(CC) -c hozgtk_s.c -o hozgtk_s.o $(CFLAGS) $(GTK_COMP) ${LANG}
++ $(CC) -c hozgtk_s.c -o hozgtk_s.o $(CFLAGS) $(GTK_COMP)
+
+ hozcli.o: hozcli.c
+- $(CC) -c hozcli.c -o hozcli.o $(CFLAGS) ${LANG}
++ $(CC) -c hozcli.c -o hozcli.o $(CFLAGS)
+
+ $(BIN): $(LINKOBJ)
+ $(CC) $(LINKOBJ) -o $(BIN) $(LIBS)
+
+ $(GBIN): $(GLINKOBJ)
+ $(CC) $(GLINKOBJ) -o $(GBIN) $(LIBS) $(GTK_LINK)
+-
--- hoz-1.65.orig/debian/patches/partsize.patch
+++ hoz-1.65/debian/patches/partsize.patch
@@ -0,0 +1,16 @@
+# Copyright (C) 2008 by Carlos Galisteo <cgalisteo@k-rolus.net>
+# Distributed under the same license as the program. See debian/copyright
+
+Index: hoz-1.65/hozcli.c
+===================================================================
+--- hoz-1.65.orig/hozcli.c 2008-08-19 13:33:22.000000000 +0200
++++ hoz-1.65/hozcli.c 2008-08-19 13:33:50.000000000 +0200
+@@ -133,7 +133,7 @@
+ hoz_echo(409, cval);
+ return 409;
+ }
+- partsize *= size_multiplier;
++ /* partsize *= size_multiplier; */
+ }
+
+ j = 0;
--- hoz-1.65.orig/debian/patches/removepath.patch
+++ hoz-1.65/debian/patches/removepath.patch
@@ -0,0 +1,90 @@
+# Copyright (C) 2008 by Miriam Ruiz <little_miry@yahoo.es>
+# Distributed under the same license as the program. See debian/copyright
+
+Index: hoz-1.65/hoz.c
+===================================================================
+--- hoz-1.65.orig/hoz.c 2008-08-19 13:07:21.000000000 +0200
++++ hoz-1.65/hoz.c 2008-08-19 13:26:07.000000000 +0200
+@@ -183,7 +183,7 @@
+ btotal, /* total bytes read */
+ dif;
+ double elapsed; /* total time elapsed */
+- char *ifnopath; /* input fname without path */
++ const char *ifnopath; /* input fname without path */
+
+ f_in = fopen(ifname, "rb");
+ if (!f_in) {
+@@ -381,6 +381,7 @@
+ bar[MAXLEN], /* blah */
+ basename[MAXLEN], /* base filename (file.*) */
+ origfname[MAXLEN], *outfname;
++ const char *fname;
+ size_t i, /* foobar */
+ len, /* bytes read */
+ bfile, /* bytes read in current file file.n */
+@@ -404,6 +405,9 @@
+
+ /* retrieving header info */
+ i = hoz_paste_hr(ifname, origfname);
++ fname = origfname + strlen(origfname);
++ while (fname > origfname && *(fname-1) != '\\' && *(fname-1) != '/')
++ fname--;
+
+ /* if hoz_paste_hr() returns an error, end process */
+ if (i) {
+@@ -419,8 +423,8 @@
+
+ outfname =
+ (char *) malloc(sizeof(char) *
+- (strlen(origfname) + strlen(outpath) + 3));
+- mergepath(outpath, origfname, outfname);
++ (strlen(fname) + strlen(outpath) + 3));
++ mergepath(outpath, fname, outfname);
+ /* if the file exists and !forceow, ask what to do */
+ if (!forceow && isfile(outfname) && !hoz_replace_ask(outfname)) {
+ free(outfname);
+@@ -441,7 +445,7 @@
+
+ /* telling the user what are we doing */
+ hoz_lf();
+- sprintf(bar, HOZ_BEGINPASTE, origfname, fullsize);
++ sprintf(bar, HOZ_BEGINPASTE, fname, fullsize);
+ hoz_print(bar);
+ hoz_lf();
+ hoz_lf();
+@@ -535,7 +539,7 @@
+
+ /* yes */
+ hoz_lf();
+- sprintf(bar, HOZ_PASTEEND, origfname, btotal, elapsed,
++ sprintf(bar, HOZ_PASTEEND, fname, btotal, elapsed,
+ (size_t) ((double) btotal / elapsed), outpath);
+ hoz_print(bar);
+ hoz_lf();
+@@ -684,10 +688,10 @@
+ * hoz_nopath - returns a file name, without the path
+ * @file: the full filename
+ */
+-char *hoz_nopath(const char *file)
++const char *hoz_nopath(const char *file)
+ {
+- char *aux;
+- aux = (char *) (file + strlen(file));
++ const char *aux;
++ aux = (file + strlen(file));
+ while (*aux != HOZ_PATHSEP) {
+ if (aux == file) {
+ return aux;
+Index: hoz-1.65/hoz.h
+===================================================================
+--- hoz-1.65.orig/hoz.h 2008-08-19 13:08:22.000000000 +0200
++++ hoz-1.65/hoz.h 2008-08-19 13:08:42.000000000 +0200
+@@ -98,7 +98,7 @@
+ size_t fsize(const char *);
+ int isfile(const char *);
+ int isdir(const char *);
+-char *hoz_nopath(const char *);
++const char *hoz_nopath(const char *);
+ int hoz_replace_ask(const char *);
+ int mergepath(const char *, const char *, char *);
+ int atolp(const char *);