debian/0000775000000000000000000000000012277047162007200 5ustar debian/copyright0000664000000000000000000000526211733045150011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: fondu Upstream-Contact: George Williams , Source: http://www.sourceforge.net/projects/fondu X-Upstream-Vcs: cvs -z3 -d:pserver:anonymous@fondu.cvs.sourceforge.net:/cvsroot/fondu co -d fondu src X-Upstream-Bugs: http://sourceforge.net/tracker/?group_id=39411&atid=425131 Files: * Copyright: 2000-2003 George Williams , License: BSD Files: debian/* Copyright: 2011-2012 Jari Aalto License: GPL-2+ License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 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. . The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR "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 THE AUTHOR 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. License: GPL-2+ 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 program. If not, see . . On Debian systems, the complete text of the GNU General Public License can be found in "/usr/share/common-licenses/GPL-2". debian/setfondname.10000664000000000000000000000232511715407016011561 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH SETFONDNAME 1 "August 28, 2005" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME setfondname \- sets FOND name .SH SYNOPSIS .B setfondname .RI [ options ] " file" .SH DESCRIPTION .B setfondname sets FOND name. .SH OPTIONS A summary of options is included below. .TP .B \-name\fR=\fInewname Specify new FOND name. .TP .B \-help Display usage information. .SH SEE ALSO .BR fondu (1), .BR ufond (1), .BR showfond (1), .BR dfont2res (1), .BR tobin (1), .BR frombin (1), .BR lumper (1). .br .SH AUTHOR This manual page was written by Hanna Wallach , for the Debian project (but may be used by others). debian/clean0000664000000000000000000000003111715407016010171 0ustar config.log config.status debian/changelog0000664000000000000000000001252312277047155011057 0ustar fondu (0.0.20060102-4ubuntu1) trusty; urgency=low * Use autotools-dev for arm64. * Fix substitution for DESTDIR in patch. -- Daniel T Chen Wed, 12 Feb 2014 23:47:02 -0500 fondu (0.0.20060102-4) unstable; urgency=low * debian/control - (Build-Depends): Rm dpkg-dev; not needed with debhelper 9. - (Standards-Version): Update to 3.9.3.1. * debian/copyright - Update to format 1.0. * debian/patches - (From, Subject): unify all files to use these headers. - (51, 60): New. Fix compiling issues. Patches thanks to Simon Ruderich . See #665267. * debian/rules - Enable all hardening flags. - Use DEB_*_MAINT_* variables (Closes: #665267). -- Jari Aalto Fri, 23 Mar 2012 06:06:47 -0400 fondu (0.0.20060102-3) unstable; urgency=low * debian/compat - Update to 9. * debian/control - (Build-Depends): Update to debhelper 9, dpkg-dev 1.16.1. * debian/rules - (include): Add buildflags.mk. - (override_dh_auto_build): Use hardened CFLAGS (release goal). http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags -- Jari Aalto Sun, 05 Feb 2012 21:19:33 +0200 fondu (0.0.20060102-2) unstable; urgency=low * debian/control - (Standards-Version): Update to 3.9.2. * debian/copyright - Update to DEP 5. * debian/install - New file. Install to /usr/bin (Closes: #645939). * debian/rules - (override_dh_auto_install): New. -- Jari Aalto Thu, 20 Oct 2011 01:14:50 +0300 fondu (0.0.20060102-1) unstable; urgency=low * New upstream release (Closes: #362901). * debian/compat - Update to 8. * debian/control - (Build-Depends): update to debhelper 8. - (Standards-Version): 3.9.1. * debian/patches - Add NN-* prefixes for all patches - (respect-destdir-installation.patch): remove. Not applicable for this upstream release. - (40): New. Replaces 'respect-destdir-installation.patch'. - (series): use NN-* prefixes. * debian/rules - (get-changelog): output file under debian/ directory. - (override_dh_installchangelogs): New. * debian/upstream.changeLog - New file. -- Jari Aalto Mon, 11 Oct 2010 23:25:05 +0300 fondu (0.0.20051010-2) unstable; urgency=low * New maintainer (Closes: #531178). - Replace CDBS build system with Debhelper. * debian/clean - New file. * debian/control - (Build-Depends): Remove cdbs. Update to debhelper 7.1. - (Description): Extend. - (Homepage): Update to Sourceforge project page. - (Standards-Version): Update to 3.8.4. - (Vcs-*): Add new fields. * ChangeLog - New file; see debian/rules. -- Jari Aalto Thu, 20 May 2010 15:09:57 +0300 fondu (0.0.20051010-1) unstable; urgency=low * QA upload. * New upstream release. According to the upstream homepage: + Someone pointed out a couple of errors in the res2data program (which copies the resource fork of a mac file into a data fork). + Ages ago someone sent me another patch which I only just noticed. And applied. -- Rogério Brito Thu, 10 Dec 2009 08:48:25 -0200 fondu (0.0.20050825-2) unstable; urgency=low * QA upload. * convert to format "3.0 (quilt)". * create separate patches for each task. * set maintainer to the QA group. * add LDFLAGS to minimize dependencies. * remove trailing whitespace from this log. * make sure that it builds correctly: + twice in a row. + with binutils-gold. * create watchfile with sourceforge redirector. * fix disparity between override file and control file. * add homepage field to keep track of upstream. * update standards version to 3.8.3, with no extra changes needed. -- Rogério Brito Mon, 07 Dec 2009 17:53:20 -0200 fondu (0.0.20050825-1.1) unstable; urgency=low * Non-maintainer upload. * Fix double-build FTBFS by removing config.log and config.status in an additional “clean::” target, as suggested by Kartik Mistry (Closes: #442567, #424275). * Bump Standards-Version from 3.6.2 to 3.7.3, no changes needed. * Bump debhelper compatibility from 4 to 5, no changes needed. -- Cyril Brulebois Tue, 26 Feb 2008 21:53:19 +0100 fondu (0.0.20050825-1) unstable; urgency=low * New upstream release. * Use upstream manpages for fondu, ufond, showfond, dfont2res, tobin, frombin, lumper. * debian/control: Change Standards-Version to 3.6.2. Fixes out-of-date-standards-version Lintian warning. -- Hanna Wallach Sun, 28 Aug 2005 21:37:45 -0400 fondu (0.0.20041222-2) unstable; urgency=high * debian/control: Add "Conflicts: dgen (<< 1.23-7)" because of conflicting tobin binary. Closes: #308847. * debian/control: Add "Build-Depends: autotools-dev" to update config.{sub,guess}. Closes #309094. -- Hanna Wallach Sat, 14 May 2005 16:43:17 +0100 fondu (0.0.20041222-1) unstable; urgency=low * New upstream release. -- Hanna Wallach Fri, 7 Jan 2005 22:44:23 -0500 fondu (0.0.20040819-1) unstable; urgency=low * Initial release. Closes: #268960. * Adjust configure, Makefile.in and Makefile.unix to fix $DESTDIR and install problems. -- Hanna Wallach Sun, 29 Aug 2004 14:17:15 -0400 debian/fondu.manpages0000664000000000000000000000012711715407016012022 0ustar dfont2res.1 fondu.1 frombin.1 lumper.1 showfond.1 tobin.1 ufond.1 debian/setfondname.1 debian/install0000664000000000000000000000020511715407016010560 0ustar dfont2res usr/bin fondu usr/bin frombin usr/bin lumper usr/bin setfondname usr/bin showfond usr/bin tobin usr/bin ufond usr/bin debian/patches/0000775000000000000000000000000012277047014010623 5ustar debian/patches/30-fix-spelling-errors-in-binary.patch0000664000000000000000000000271211733045401017661 0ustar From: Rogério Brito Subject: Fix spelling errors in binary and comments Last-Update: 2009-12-07 --- a/ufond.c +++ b/ufond.c @@ -43,8 +43,8 @@ /* We strip off things like Italic, Bold, Oblique, Condensed, "-" to get a family name */ /* We collect all files into families */ /* We generate one FOND for each family and put the bdf and ttf into it */ -/* We generate one seperate resource file for each ps font in the family */ -/* If we do not have a plain style then make a seperate FOND for each style */ +/* We generate one separate resource file for each ps font in the family */ +/* If we do not have a plain style then make a separate FOND for each style */ /* and pretend each is plain */ /* If we have a PS font style with no matching bdf (ie. no metrics) then */ /* complain (but make an entry for it in the fond anyway?) */ @@ -108,7 +108,7 @@ fprintf( stderr, " -script [name|code]\tThe name should be the name of a mac script\n\t\tlike Roman or Cyrillic (not all names are recognized)\n\t\tthe code can be a number representing a script\n" ); fprintf( stderr, "A list of bdf/ttf files all with the same family name will be merged into\n" ); fprintf( stderr, "one FOND and all stored in one output files. Any pfb files will be refered\n" ); - fprintf( stderr, "to in the FOND but will live in a seperate file.\n" ); + fprintf( stderr, "to in the FOND but will live in a separate file.\n" ); exit( 1 ); } debian/patches/40-use-destdir.patch0000664000000000000000000000273212277047014014321 0ustar From d6825726fb702d759a294085f39affb349205854 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Mon, 11 Oct 2010 23:07:42 +0300 Subject: [PATCH] Respect $(DESTDIR) by Cyril Brulebois Organization: Private Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Jari Aalto --- Makefile.in | 4 ++-- configure | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) Index: fondu-0.0.20060102/Makefile.in =================================================================== --- fondu-0.0.20060102.orig/Makefile.in 2006-01-02 18:19:58.000000000 -0500 +++ fondu-0.0.20060102/Makefile.in 2014-02-12 23:42:42.000000000 -0500 @@ -57,8 +57,8 @@ -rm Makefile install: all - mkdir -p $(DESTDIR)$(bindir) - cp fondu ufond showfond dfont2res tobin frombin lumper setfondname $(DESTDIR)$(bindir) + install -m 755 -d $(DESTDIR)$(bindir) + install -m 755 fondu ufond showfond dfont2res tobin frombin lumper setfondname $(DESTDIR)$(bindir) VERSION:=$(shell date +"%y%d%m") Index: fondu-0.0.20060102/configure =================================================================== --- fondu-0.0.20060102.orig/configure 2006-01-02 18:20:12.000000000 -0500 +++ fondu-0.0.20060102/configure 2014-02-12 23:45:59.975066649 -0500 @@ -251,7 +251,7 @@ # # Initializations. # -ac_default_prefix=/usr/local +ac_default_prefix='${DESTDIR}' ac_config_libobj_dir=. cross_compiling=no subdirs= debian/patches/60-missing-printf-arguments.patch0000664000000000000000000000310311733042304017031 0ustar From: Simon Ruderich Subject: Add missing arguments to fprintf() Last-Update: 2012-03-22 Index: fondu-0.0.20060102/frommacbinary.c =================================================================== --- fondu-0.0.20060102.orig/frommacbinary.c 2012-03-22 18:12:48.341669829 +0100 +++ fondu-0.0.20060102/frommacbinary.c 2012-03-22 18:13:01.577670334 +0100 @@ -55,7 +55,7 @@ /* frombin filenames */ static void Usage(char *prog) { - fprintf( stderr, "Usage: %s [-usage] [-help] [-version] filenames\n" ); + fprintf( stderr, "Usage: %s [-usage] [-help] [-version] filenames\n", prog ); fprintf( stderr, " -usage\t\tPrints this message\n" ); fprintf( stderr, " -help\t\tPrints this message\n" ); fprintf( stderr, " -version\t\tPrints the version of the program\n" ); Index: fondu-0.0.20060102/tomacbinary.c =================================================================== --- fondu-0.0.20060102.orig/tomacbinary.c 2012-03-22 18:12:48.341669829 +0100 +++ fondu-0.0.20060102/tomacbinary.c 2012-03-22 18:13:01.577670334 +0100 @@ -58,7 +58,7 @@ /* tobin -res rfilename */ static void Usage(char *prog) { - fprintf( stderr, "Usage: %s {[-res filename] [-create creat] [-type type] [filename]}\n" ); + fprintf( stderr, "Usage: %s {[-res filename] [-create creat] [-type type] [filename]}\n", prog ); fprintf( stderr, " -res filename\tProvides the name of a file whose data fork is to\n" ); fprintf( stderr, "\t\t\tplaced in a resource fork\n" ); fprintf( stderr, " -create creat\tProvides a four character creator (if omitted on the\n" ); debian/patches/10-escape-minus-sign-in-manpage.patch0000664000000000000000000000062211733045350017420 0ustar From: Rogério Brito Subject: escape-minus-sign-in-manpage Last-Update: 2009-12-07 --- a/fondu.1 +++ b/fondu.1 @@ -38,7 +38,7 @@ Force overwriting of the original file. .TP .B \-inquire -Prompt for input before overwriting files. This overrides -force. +Prompt for input before overwriting files. This overrides \-force. .TP .B \-show Print out each file as it is created. debian/patches/51-fix-hardening-build.patch0000664000000000000000000000340411733042261015703 0ustar From: Simon Ruderich Subject: Fix compile with hardening flags Last-Update: 2012-03-22 The problem is that strlen() is a functions name and optimization -O2 isn't smart about it. Chnage name to strlength. Index: fondu-0.0.20060102/fondu.c =================================================================== --- fondu-0.0.20060102.orig/fondu.c 2012-03-22 18:12:48.373669831 +0100 +++ fondu-0.0.20060102/fondu.c 2012-03-22 18:12:57.577670181 +0100 @@ -473,7 +473,7 @@ } if ( styleoff!=0 ) { unsigned char stringoffsets[48]; - int strcnt, strlen, format; + int strcnt, strlength, format; char **strings, *pt; fseek(f,styleoff,SEEK_SET); /* class = */ getushort(f); @@ -484,11 +484,11 @@ strcnt = getushort(f); strings = malloc(strcnt*sizeof(char *)); for ( j=0; jpsnames[j] = malloc(strlen+1); + strlength += strings[ strings[format][k+1]-1 ][0]; + pt = cur->psnames[j] = malloc(strlength+1); strcpy(pt,strings[ 0 ]+1); pt += strings[ 0 ][0]; if ( format!=0 && format!=-1 ) debian/patches/20-fix-manpage-quoting.patch0000664000000000000000000000105111733045364015742 0ustar From: Rogério Brito Subject: Fix manpage quoting Last-Update: 2009-12-07 --- a/fondu.1 +++ b/fondu.1 @@ -23,7 +23,7 @@ or data fork resource files (.dfont, as used by MacOS X). A bare resource fork may be generated easily be copying a file with a resource fork onto a diskette (or zip drive) using DOS format. -\." how to do this, explicitly? +.\" how to do this, explicitly? The Macintosh will create a folder called resource.frk (invisible on the Macintosh itself), in which the resource fork will reside as a bare file. debian/patches/series0000664000000000000000000000027611733042343012041 0ustar 10-escape-minus-sign-in-manpage.patch 20-fix-manpage-quoting.patch 30-fix-spelling-errors-in-binary.patch 40-use-destdir.patch 51-fix-hardening-build.patch 60-missing-printf-arguments.patch debian/watch0000664000000000000000000000012411715407016010220 0ustar version=3 opts=dversionmangle=s/^0.0.20// \ http://sf.net/fondu/fondu_src-(.+).tgz debian/upstream.changelog0000664000000000000000000000713011715407016012704 0ustar Changelog * 1-Jan-2006 + Han-Wen Nienhuys provided a patch to fold the mac build into the configured makefile & handle separate source & build directories * 10-Oct-2005 + Someone pointed out a couple of errors in the res2data program (which copies the resource fork of a mac file into a data fork). + Ages ago someone sent me another patch which I only just noticed. And applied. * 25-Aug-2005 + Tigger says calls involving the FSSpec datatype are (mostly) depreciated so, don't use them. * 22-Dec-2004 + Neil Parker provided a patch for a crash from an unspecified string format in the FOND postscript names table. * 25-Sept-2004 + Fondu would crash if given a type1 font where the /CharStrings dictionary was initialized as a bigger dictionary than was needed. * 22-Sept-2004 + Fondu failed to generate a proper error message (usually failed) when it could not find a resource fork. * 19-Aug-2004 + Fixed a bug in reading mac binary on mac * 27-May-2004 + Fondu now generates real afm files + Added a few more arguments to fondu * 03-Feb-2004 + created lumper + showfond now dumps out the name of 'sfnt's * 04-Nov-2003 + ufond had a very simplistic bdf parser, which failed to read many bdf files. * 28-Apr-2003 + Oops. Was outputting pfb section byte counts with the wrong endian-ness. * 22-Jan-2003 + ufond had problems with FONDS containing multiple styles and multiple point sizes * 23-Dec-2002 + Fondu could crash when generating an afm file. * 21-Dec-2002 + I was generating bad macbinary files o I hadn't noticed that the various file sections need to be padded out to a multiple of 128 bytes. # This meant I sometimes read macbinary files incorrectly too o I got the CRC calculations wrong. + I got sick and tired of the fact that I can't find any open source programs that create macbinary files. So I wrote my own-- [39]tobin. * 26-Oct-2002 + Changed fondu so it can extract a bare ttf/otf file (ie one that isn't in a resource file) from a binhex or macbinary wrapper. It's easy, and ttf files are now accepted on macs, so someone might binhex one out of caution. * 23-Oct-2002 + dfont2res would produce invalid macbinary files on some dfonts. * 17-Oct-2002 + Added an empty glyph-encoding sub-table for FONDs produced by ufond * 22-June-2002 + added a configure script * 20-June-2002 + Oops. When Fondu was looking for the name of an 'sfnt' (ttf) resource, it was not looking for an apple macroman name. The most likely case. I should do so now. * 25-Apr-2002 + Added some patches from Grigory Entin o clean option in makefile didn't clean everything o showfond didn't work as well as it might with long filenames o bug when reading NFNTs in a file with multiple NFNT resources * 28-Feb-2002 + On Mac OS/X it is now possible to open an old-style resource file directly. * 5-Feb-2002 + Added the dfont2res program. + Many bug fixes debian/control0000664000000000000000000000231412277047104010577 0ustar Source: fondu Section: utils Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Jari Aalto Build-Depends: debhelper (>= 9), autotools-dev Standards-Version: 3.9.3.1 Vcs-Browser: http://git.debian.org/?p=collab-maint/fondu.git Vcs-Git: git://git.debian.org/git/collab-maint/fondu.git Homepage: http://www.sourceforge.net/projects/fondu Package: fondu Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Breaks: dgen (<< 1.23-7) Description: convert between Mac and UNIX font formats Fondu is a set of programs to convert between Mac font formats and PFB, TTF, OTF and BDF files on UNIX. . Fondu will read a series of mac files, check their resource forks and extract all font related items into separate files. . The input files may be either macbinary files (.bin), binhex files (.hqx), bare mac resource forks or data fork resource files (.dfont, used by Mac OS/X). A bare resource fork may be generated easily be copying a file with a resource fork onto a floppy (or zip) with a DOS format. The mac will create an (invisible on the mac) folder called resource.frk in which the resource fork will reside as a bare file. debian/source/0000775000000000000000000000000011715407016010472 5ustar debian/source/format0000664000000000000000000000001411715407016011700 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000211733041203010360 0ustar 9 debian/rules0000775000000000000000000000117412277047054010263 0ustar #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed CHANGELOG = debian/upstream.changelog # Run this rule manually for each new release get-changelog: lynx -dump http://fondu.sourceforge.net/ | \ awk ' /References/ {exit} /^ +Changelog/,/References/ {print}' \ > $(CHANGELOG) override_dh_installchangelogs: dh_installchangelogs $(CHANGELOG) override_dh_auto_install: # See debian/install override_dh_auto_build: $(MAKE) CFLAGS="$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)" %: dh $@ --with autotools-dev # End of file