debian/0000755000000000000000000000000012077736125007200 5ustar debian/watch0000644000000000000000000000015512074036434010223 0ustar # watch control file for uscan version=3 http://fkurz.net/ham/ebook2cw/ebook2cw-(.+)\.tar\.gz debian uupdate debian/source/0000755000000000000000000000000012074036434010471 5ustar debian/source/format0000644000000000000000000000001412074036434011677 0ustar 3.0 (quilt) debian/control0000644000000000000000000000163112077462634010605 0ustar Source: ebook2cw Section: hamradio Priority: optional Maintainer: Debian Hamradio Maintainers Uploaders: Christoph Feenders , Kamal Mostafa Build-Depends: debhelper (>= 9), libmp3lame-dev, libogg-dev, libvorbis-dev, libvorbisenc2 Standards-Version: 3.9.4 Homepage: http://fkurz.net/ham/ebook2cw.html #Vcs-Git: git://git.debian.org/collab-maint/ebook2cw.git #Vcs-Browser: http://git.debian.org/?p=collab-maint/ebook2cw.git;a=summary Package: ebook2cw Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: convert ebooks to Morse MP3s/OGGs ebook2cw is a command line program which converts a plain text (ISO 8859-1 or UTF-8) file (ebook) to Morse code MP3 or OGG audio files. . It automatically splits and numbers the output files by chapters. . For a detailed description, please refer to the man-page or the project website. debian/docs0000644000000000000000000000003612074036434010043 0ustar isomap.txt README utf8map.txt debian/compat0000644000000000000000000000000212077462612010373 0ustar 9 debian/patches/0000755000000000000000000000000012077736077010635 5ustar debian/patches/makefile-respect-CC-CFLAGS.patch0000644000000000000000000000177712077464266016330 0ustar Description: respect $(CC) and $(CPPFLAGS) overrides in Makefile Author: Kamal Mostafa --- ebook2cw-0.8.2.orig/Makefile +++ ebook2cw-0.8.2/Makefile @@ -25,16 +25,16 @@ endif all: ebook2cw ebook2cw: ebook2cw.c codetables.h - gcc ebook2cw.c -pedantic -Wall -lm $(LDFLAGS) $(CFLAGS) -o ebook2cw + $(CC) $(CPPFLAGS) $(CFLAGS) ebook2cw.c -pedantic -Wall -lm $(LDFLAGS) -o ebook2cw cgi: ebook2cw.c codetables.h - gcc -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -o cw.cgi + $(CC) $(CPPFLAGS) $(CFLAGS) -static ebook2cw.c $(LDFLAGS) -lm -D CGI -o cw.cgi cgibuffered: ebook2cw.c codetables.h - gcc -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -D CGIBUFFERED -o cw.cgi + $(CC) $(CPPFLAGS) $(CFLAGS) -static ebook2cw.c $(LDFLAGS) -lm -D CGI -D CGIBUFFERED -o cw.cgi static: - gcc -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -o ebook2cw + $(CC) $(CPPFLAGS) $(CFLAGS) -static ebook2cw.c $(LDFLAGS) -lm -o ebook2cw install: install -d -v $(DESTDIR)/share/man/man1/ debian/patches/escape-minuses-on-manpage.patch0000644000000000000000000000376512077464266016630 0ustar Description: Escaping minus signs on man page Author: Christoph Feenders Escaping hypthons "-" --> "\-" on manual page to explicitely mark them as minus signs. Cures lintian tag "hyphen-used-as-minus-sign". --- ebook2cw-0.8.2.orig/ebook2cw.1 +++ ebook2cw-0.8.2/ebook2cw.1 @@ -17,10 +17,10 @@ command line switches or a config file ( .B -e wpm - Effective CW speed. If set, the spaces are sent at this speed instead of the -character speed set by -w ("Farnsworth"). +character speed set by \-w ("Farnsworth"). .B -W x -- Extra Word spacing. Similar to -e, but only affects the inter-word spacing, +- Extra Word spacing. Similar to \-e, but only affects the inter-word spacing, not the inter-character spacing. .B -f freq @@ -34,7 +34,7 @@ not the inter-character spacing. reset to the initial value at the start of each chapter. [0] .B -n -- Disables resetting the speed when using the -Q option. +- Disables resetting the speed when using the \-Q option. .B -p - Disables the paragraph separator () @@ -98,15 +98,15 @@ character sets. Output in HTML format. .B -N snr - When this option is used, a noise background is added to the file and the CW signal is scaled down to achieve a SNR (Signal to Noise ratio) of "snr" dB. -Possible range of SNR: -10db to 10dB. Make sure to enclose the value in -quotation marks if it's negative (i.e. -N "-3"). +Possible range of SNR: \-10db to 10dB. Make sure to enclose the value in +quotation marks if it's negative (i.e. \-N "\-3"). .B -B bandwidth in Hz -- Sets the filter bandwidth if the -N / SNR option is used. Available filters +- Sets the filter bandwidth if the \-N / SNR option is used. Available filters are 100Hz, 500Hz, 1kHz and 2.1kHz. .B -C frequency in Hz -- Sets the center frequency of the filter if the -N / SNR option is used. This +- Sets the center frequency of the filter if the \-N / SNR option is used. This should be set to the frequency of the Morse signal; currently implemented center frequencies: 800Hz debian/patches/series0000644000000000000000000000017612077736077012056 0ustar makefile-root-destdir.patch escape-minuses-on-manpage.patch makefile-respect-CC-CFLAGS.patch configfile-buffer-overflow.patch debian/patches/makefile-root-destdir.patch0000644000000000000000000000146112077464266016050 0ustar Description: Makefile support for DESTDIR and ROOT_DESTDIR Author: Kamal Mostafa Allow Makefile's install directory DESTDIR (e.g. "/tmp/build_root/") to be set independently from ROOT_DESTDIR (e.g. "/usr") which will get embedded in the executable. --- ebook2cw-0.8.2.orig/Makefile +++ ebook2cw-0.8.2/Makefile @@ -3,13 +3,14 @@ # $Id: Makefile 547 2012-12-29 21:07:53Z dj1yfk $ VERSION=0.8.2 -DESTDIR ?= /usr +ROOT_DESTDIR?=/usr +override DESTDIR:=$(DESTDIR)$(ROOT_DESTDIR) # Set to NO to compile without Lame/Ogg-vorbis support USE_LAME?=YES USE_OGG?=YES -CFLAGS:=$(CFLAGS) -D DESTDIR=\"$(DESTDIR)\" -D VERSION=\"$(VERSION)\" +CFLAGS:=$(CFLAGS) -D DESTDIR=\"$(ROOT_DESTDIR)\" -D VERSION=\"$(VERSION)\" ifeq ($(USE_LAME), YES) CFLAGS:=$(CFLAGS) -D LAME debian/patches/configfile-buffer-overflow.patch0000644000000000000000000000121312077735750017065 0ustar Description: Fix config file snprintf buffer overflow Author: Kamal Mostafa Fixes this snprintf() overflow: In function 'snprintf', inlined from 'readconfig' at ebook2cw.c:1043:11: /usr/include/x86_64-linux-gnu/bits/stdio2.h:65:3: warning: call to __builtin___snprintf_chk will always overflow destination buffer [enabled by default] --- ebook2cw-0.8.2.orig/ebook2cw.c +++ ebook2cw-0.8.2/ebook2cw.c @@ -136,7 +136,7 @@ typedef struct { char isomap[256][4]; /* by these strings */ char utf8map[256][8]; - char configfile[1025]; + char configfile[2048]; char id3_author[80], id3_title[80], debian/copyright0000644000000000000000000000210212076241262011116 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ebook2cw Upstream-Contact: Fabian Kurz Source: http://fkurz.net/ham/ebook2cw Files: * Copyright: 2007-2013 Fabian Kurz License: GPL-2+ Files: debian/* Copyright: 2013 Christoph Feenders License: GPL-2+ License: GPL-2+ 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 (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 program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/changelog0000644000000000000000000000056012077736056011056 0ustar ebook2cw (0.8.2-1) unstable; urgency=low * Initial release (Closes: #698138) * Adjusted the Makefile to fix $(DESTDIR) problems. * Adjusted Makefile for hardening. * Adjusted array-size in ebook2cw.c to avoid overflow. * Adjusted manual page (escaped hyphons that are minus signs). -- Christoph Feenders Fri, 11 Jan 2013 09:22:01 +0100 debian/rules0000755000000000000000000000067112077467327010271 0ustar #!/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 %: dh $@