debian/0000755000000000000000000000000012171256462007174 5ustar debian/docs0000644000000000000000000000000712171125444010037 0ustar README debian/xpp.10000644000000000000000000000544212171125444010065 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 XPP 1 "10 May 2002" .\" 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 xpp \- X Printing Panel .SH SYNOPSIS .B xpp .RI [ options ] " " [ files ] " " ... .SH DESCRIPTION This manual page briefly documents the .B xpp command. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBxpp\fP (the X Printing Panel) is a graphical interface to the CUPS printing system. It can be used as a drop-in replacement for lpr(1) or lp(1) for programs that want to spool print jobs, or to print files directly from the command line. .SH OPTIONS The following options are recognized by \fBxpp\fR: .TP 5 \-d \fIdestination\fR .TP 5 \-P \fIdestination\fR .br Prints files to the named \fIdestination\fR queue. .TP 5 \-# \fIcopies\fR .br Sets the number of copies to print from 1 to 100. .TP 5 \-C \fIname\fR .br Sets the job name. .TP 5 \-J \fIname\fR .br Sets the job name. .TP 5 \-t \fIname\fR .TP 5 \-T \fIname\fR .br Sets the job name. .TP 5 \-l .br Specifies that the print file is already formatted for the destination and should be sent without filtering. This option is equivalent to "-oraw". .TP 5 \-o \fIoption\fR .br Sets a job option. .TP 5 \-p .br Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number. This option is equivalent to "-oprettyprint" and is only useful when printing text files. .TP 5 \-r .br Specifies that the named print files should be deleted after printing them. .TP 5 \-q \fIpriority\fP Specify the priority of the print job (from 1 to 100). .SH COMPATIBILITY The "c", "d", "f", "g", "i", "m", "v", and "w" options are not supported by XPP and will produce a warning message if used. .SH SEE ALSO .BR lp (1), lpr (1), cupsd (8) .SH AUTHOR The X Printing Panel was written by Till Kamppeter This manual page was written by Chris Lawrence , for the Debian GNU/Linux system (but may be used by others). The OPTIONS section was borrowed from the manual page for lpr(1). debian/watch0000644000000000000000000000015012171125444010214 0ustar version=3 opts=dversionmangle=s/\-cvs(.*)// \ http://sf.net/cups/xpp-(.*)\.tar\.(?:gz|bz2) debian false debian/menu0000644000000000000000000000030112171125444010050 0ustar ?package(xpp):needs="X11" section="Applications/System/Hardware"\ title="X Printing Panel" command="/usr/bin/xpp"\ icon="/usr/share/pixmaps/xpp.xpm" \ hints="Printing,Printer,Print,CUPS" debian/control0000644000000000000000000000133412171126303010566 0ustar Source: xpp Section: x11 Priority: optional Maintainer: Debian QA Group Build-Depends: debhelper (>= 9), dh-autoreconf, libfltk1.1-dev, fluid (>= 1.1.6-7), libcups2-dev (>= 1.1.20final+cvs20040330-4), cups, autotools-dev Standards-Version: 3.9.4 Homepage: http://cups.sourceforge.net/xpp/ Package: xpp Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: iraf Description: X Printing Panel Graphical substitute for the lp/lpr command. With xpp, you can control every printing option known to the CUPS print system (the cups package). Best results are available with usage of the appropriate PPD file for your printer. Each user can save their own customized printing preferences. debian/source/0000755000000000000000000000000012171130344010462 5ustar debian/source/format0000644000000000000000000000001412171130354011671 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012171254042010613 5ustar debian/patches/02_build_system.patch0000644000000000000000000000151312171254042014640 0ustar Description: Pass in -D_IPP_PRIVATE_STRUCTURES CPPFLAG in Makefile.am to fix FTBFS. Debian-Bug: http://bugs.debian.org/713451 Author: Barry deFreese Index: xpp-1.5-cvs20081009/Makefile.am =================================================================== --- xpp-1.5-cvs20081009.orig/Makefile.am 2008-10-09 05:17:48.000000000 -0400 +++ xpp-1.5-cvs20081009/Makefile.am 2013-07-16 10:13:29.931762251 -0400 @@ -5,6 +5,7 @@ xpp.cxx xppmain.cxx inputslider.cxx passworddialog.h \ xpp.h cupshelper.h inputslider.h #FLTK tries too hard, place it last or it will break the build +xpp_CPPFLAGS = -D_IPP_PRIVATE_STRUCTURES xpp_CXXFLAGS= $(CUPS_CFLAGS) $(X_CFLAGS) $(FLTK_CXXFLAGS) $(AM_CXXFLAGS) xpp_LDADD = $(CUPS_LIBS) $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) $(FLTK_LDFLAGS) $(AM_LDADD) #xpp_LDFLAGS = $(all_libraries) debian/patches/series0000644000000000000000000000006212171252330012024 0ustar 01_old_debian_changes.patch 02_build_system.patch debian/patches/01_old_debian_changes.patch0000644000000000000000000000544512171253734015723 0ustar Description: Move old Debian inline changes to quilt patch. Author: Barry deFreese Index: xpp-1.5-cvs20081009/cupshelper.cxx =================================================================== --- xpp-1.5-cvs20081009.orig/cupshelper.cxx 2008-10-09 05:17:48.000000000 -0400 +++ xpp-1.5-cvs20081009/cupshelper.cxx 2013-07-15 22:37:52.852799253 -0400 @@ -36,6 +36,7 @@ #include "passworddialog.h" #include +#include #include //******************************************************* Index: xpp-1.5-cvs20081009/mainwindow.fl =================================================================== --- xpp-1.5-cvs20081009.orig/mainwindow.fl 2008-10-09 05:17:48.000000000 -0400 +++ xpp-1.5-cvs20081009/mainwindow.fl 2013-07-15 22:38:59.789131172 -0400 @@ -1427,7 +1427,7 @@ } else { sprintf(buffer,"Do you really want to delete default instance of the queue \\"%s\\"?",s); } - if (!fl_ask(buffer)) return; + if (!fl_ask("%s", buffer)) return; } val=instancelist->value(); if ((copybutton->value()) || (renamebutton->value())) { Index: xpp-1.5-cvs20081009/xpp.cxx =================================================================== --- xpp-1.5-cvs20081009.orig/xpp.cxx 2008-10-09 05:17:48.000000000 -0400 +++ xpp-1.5-cvs20081009/xpp.cxx 2013-07-15 22:42:01.398031722 -0400 @@ -317,7 +317,7 @@ ipp_t *request = CupsHelper::newIppRequest(); char buf[1024]; - char *state = NULL, *type = NULL, *location = NULL, *comment = NULL; + const char *state = NULL, *type = NULL, *location = NULL, *comment = NULL; sprintf(buf,"ipp://%s:%d/printers/%s",CupsHelper::host(), CupsHelper::port(),dests[i].name); ippAddString(request,IPP_TAG_OPERATION,IPP_TAG_URI,"printer-uri",NULL,buf); Index: xpp-1.5-cvs20081009/xpp.h =================================================================== --- xpp-1.5-cvs20081009.orig/xpp.h 2008-10-09 05:17:48.000000000 -0400 +++ xpp-1.5-cvs20081009/xpp.h 2013-07-15 22:44:38.590811199 -0400 @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -83,9 +84,9 @@ const char *STDIN_STR; /* Key word representing standard input in 'filelist' */ int job_id; /* Job ID */ - const char *dest; /* Destination printer */ + char *dest; /* Destination printer */ const char *instance; /* instance of destination printer */ - const char *default_pr; /* Default printer defined under CUPS */ + char *default_pr; /* Default printer defined under CUPS */ int dest_pos; /* Position of destination entry in list */ const char *title; /* Job title */ const char *extra_options; /* Extra options */ debian/rules0000755000000000000000000000025312171253334010247 0ustar #!/usr/bin/make -f # debian/rules file for xpp # GNU copyright 1997 to 1999 by Joey Hess. # Copyright (c) 2004 by Henrique de Moraes Holschuh %: dh $@ --with autoreconf debian/changelog0000644000000000000000000002011612171255460011043 0ustar xpp (1.5-cvs20081009-1) unstable; urgency=low * QA upload. * Use newer upstream CVS snapshot. + Incorporates most of old Debian/Ubuntu changes. (Closes: #382961, #654564). + Move remaining patches to new patch. * Make package source format 3.0 (quilt). * Patch to pass -D_IPP_PRIVATE_STRUCTURES CPPFLAG in Makefile.am. (Closes: #713451). * Bump debhelper build-dep and compat to 9. + Convert rules file to simple dh style with autoreconf. * Bump Standards Version to 3.9.4. -- Barry deFreese Mon, 15 Jul 2013 22:09:37 -0400 xpp (1.5-cvs20050828-1.2) unstable; urgency=low * Non-maintainer upload. * Update debian/watch to report upstream versions properly (closes: #449710). Thanks, Raphael Geissert! * Fix FTBFS due to missing includes and format string error, with patch from peter green (closes: #639033). * Drop modification of mainwindow.cxx with sed in debian/rules, looks like the right change was applied in mainwindow.fl already. * Fix a few -Wwrite-strings warnings in xpp.cxx. -- Julien Cristau Fri, 30 Dec 2011 16:04:16 +0100 xpp (1.5-cvs20050828-1.1) unstable; urgency=low * Non-maintainer upload. [ Stefano Zacchiroli ] * Replace (build-)deps on old libcupsys2(-dev) to new libcups2(-dev), the former packages are now dummy packages (Closes: #494033). Do the same for "cupsys" vs "cups" * debian/contorl: remove the old pseudo-field "homepage" in description with the proper "Homepage" field [ Christoph Egger ] * Fix package building (conversion from const char * to char*) * Add misc:Depends substvar * Change menu section from Apps/Tools to Applications/System/Hardware * Fix watchfile using sf redirector -- Christoph Egger Mon, 22 Feb 2010 10:29:25 +0100 xpp (1.5-cvs20050828-1) unstable; urgency=low * The "it gathered enough dust already" release * Merge with all upstream CVS patches, up to last CVS commit + Fixed handling of password-protected printers. It was asked for the password two or three times when sending one job + Initialize all instance variables of printFiles::printFiles on object construction. This fixes at least one more use of uninitialized pointers (found by Valgrind) * This rebuild should fix all arches (closes: #374144) -- Henrique de Moraes Holschuh Wed, 9 Aug 2006 12:37:44 -0300 xpp (1.5-5) unstable; urgency=low * Ack NMU (closes: #356238) * Update debian/watch file to version 3 * debian/control: bump standards version to 3.7.2 (no changes) * debian/compat: switch to debhelper mode V5 -- Henrique de Moraes Holschuh Wed, 9 Aug 2006 12:01:45 -0300 xpp (1.5-4.1) unstable; urgency=low * NMU as part of the GCC 4.1 transition. * Remove extra qualification from C++ header file (closes: #356238) -- Martin Michlmayr Thu, 25 May 2006 18:27:50 +0200 xpp (1.5-4) unstable; urgency=low * Rebuild with new fluid/fltk -- Henrique de Moraes Holschuh Sun, 14 Aug 2005 00:55:02 -0300 xpp (1.5-3) unstable; urgency=high * Squash compiler warnings in non-FLUID-generated code * Applied upstream: * Fixed use of non-initialized memory and a potential off-by-one error in printFiles::printfiles. Thanks to Valgrind * Initialize all instance variables of printFiles::printFiles on object construction. This fixes at least one more use of uninitialized pointers (found by Valgrind) * Do not free NULL pointers in any destructors (paranoia) * Rebuild against new fltk packages to get updated dependencies (closes: #318466) * Bump standards version to 3.6.2 (no changes) -- Henrique de Moraes Holschuh Sun, 24 Jul 2005 07:48:38 -0300 xpp (1.5-2) unstable; urgency=low * Acknowledge NMUs closes: #99031, #200276, #249497, #267127, #136944, #268823 * This is the newest upstream version (closes: #285875) * Patchset 94 from CVS: Initialized pointers optionWindow and instanceWindow to NULL (closes: #226686) * Add uscan "watch" file * Update copyright file (closes: #218613) * We do not build-depend on xlibs (and not in xlibs-dev either, as we deal directly only with FLTK) (closes: #253329) -- Henrique de Moraes Holschuh Tue, 21 Dec 2004 09:34:04 -0200 xpp (1.5-1) unstable; urgency=low * New maintainer + Adopt the package, with Scott's blessings. When he wants the package back, it is his. * New upstream source * Fixed homepage line on control file as directed by the developer's referece * New standards-version: 3.6.1 (no changes) * Switched to debhelper compatibility mode V4 * Build-depend on autotools-dev, and use the "symlink" method to keep config.sub and config.guess updated * Retooled for new automake and autoconf, and fixed makefile errors; started improving it, but this is an ongoing process that doesn't matter to the Debian built, so the package can be released with it in a middleground state * Add more hints to menu file * Patchset 93 from CVS: Fixed "#include" line in xppmain.cxx and printFiles::getPageMargins() method * Added temporary workaround for bug: When one does not open the options dialog, pressing the close button causes XPP to segfault -- Henrique de Moraes Holschuh Sun, 19 Dec 2004 13:04:22 -0200 xpp (1.1-0.4) unstable; urgency=high * NMU * Add conflicts for iraf. (Closes: #267127) * Add some quoting in menu file, to shut up lintian. -- Tollef Fog Heen Sun, 29 Aug 2004 13:00:49 +0200 xpp (1.1-0.3) unstable; urgency=high * NMU with maintainer's permission. * Recomplile aganst libcupsys2-gnutls10. (RC, Closes: #249497) -- Chris Lawrence Sat, 5 Jun 2004 21:08:18 -0500 xpp (1.1-0.2) unstable; urgency=low * Non-maintainer upload. BSP. * Comply with the latest C++ standards. Closes: #200276 * Link with libfltk1.1, work around a bug in fluid that doesn't properly cast color numbers to Fl_Color type. * Update standards version. -- Guus Sliepen Mon, 25 Aug 2003 19:38:24 +0200 xpp (1.1-0.1) unstable; urgency=low * Non-maintainer upload. I contacted Scott 5 days ago about the possibility of an NMU, and have received no response. * New upstream release. (Closes: #136944) * Added a manual page. * Build against shared libfltk. -- Chris Lawrence Wed, 15 May 2002 20:55:12 -0500 xpp (1.0-3.1) unstable; urgency=low * Non-maintainer upload. * Fix build problems on arm: - Correctly quote argument to AC_MSG_ERROR. - Regenerate configure. - Touch configure in 'debian/rules configure' to make sure autobuilders don't regenerate configure with a possibly incompatible autoconf. Note that this requires autoconf to be run manually if configure.in is changed. (closes: #99031) -- Colin Watson Sun, 11 Nov 2001 14:24:23 +0000 xpp (1.0-3) unstable; urgency=low * Add cupsys to build-depends (Closes: #87433) -- Scott K. Ellis Sat, 24 Feb 2001 20:20:47 -0500 xpp (1.0-2) unstable; urgency=low * Alter cupshelper.cxx to open libcups.so.2 instead of libcups.so (Closes: #77744, #73030) -- Scott K. Ellis Tue, 6 Feb 2001 15:39:45 -0500 xpp (1.0-1) unstable; urgency=low * New upstream version -- Scott K. Ellis Tue, 6 Feb 2001 15:19:23 -0500 xpp (0.7-2) unstable; urgency=low * First attempt at build-depends * Don't link in OpenGL libraries (Closes: #78106) -- Scott K. Ellis Tue, 28 Nov 2000 11:49:42 -0500 xpp (0.7-1) unstable; urgency=low * New upstream version -- Scott K. Ellis Tue, 10 Oct 2000 10:10:58 -0400 xpp (0.6-2) unstable; urgency=low * Delete some unneeded files from the debian directory * Altered the package description -- Scott K. Ellis Fri, 8 Sep 2000 13:20:03 -0400 xpp (0.6-1) unstable; urgency=low * Initial Release. -- Scott K. Ellis Wed, 6 Sep 2000 15:25:40 -0400 debian/TODO0000644000000000000000000000025112171125444007655 0ustar * Talk to upstream, offer to clean up his autotools setup * Send fixes upstream * Make sure the build-deps are complete * Fix copyright file, it is not policy-compliant debian/install0000644000000000000000000000003412171255675010567 0ustar ./xpp.xpm usr/share/pixmaps debian/dirs0000644000000000000000000000003212171125444010046 0ustar usr/bin usr/share/pixmaps debian/manpages0000644000000000000000000000001512171255616010706 0ustar debian/xpp.1 debian/autogen.sh0000644000000000000000000000361312171125444011170 0ustar #!/bin/sh # # autogen.sh glue for xpp # # Requires: automake 1.9, autoconf 2.57+ # Conflicts: autoconf 2.13 set -e # Refresh GNU autotools toolchain. echo Cleaning old autotools files... rm -rf autom4te.cache rm -rf missing install-sh mkinstalldirs depcomp configure rm -rf config.sub config.guess config.h.in echo Running autoreconf... autoreconf --force --install # For the Debian package build test -d debian && { # link these in Debian builds rm -f config.sub config.guess ln -s /usr/share/misc/config.sub . ln -s /usr/share/misc/config.guess . # refresh list of executable scripts, to avoid possible breakage if # upstream tarball does not include the file or if it is mispackaged # for whatever reason. [ "$1" == "updateexec" ] && { echo Generating list of executable files... rm -f debian/executable.files find -type f -perm +111 ! -name '.*' -fprint debian/executable.files } # Remove any files in upstream tarball that we don't have in the Debian # package (because diff cannot remove files) version=`dpkg-parsechangelog | awk '/Version:/ { print $2 }' | sed -e 's/-[^-]\+$//'` source=`dpkg-parsechangelog | awk '/Source:/ { print $2 }' | tr -d ' '` if test -r ../${source}_${version}.orig.tar.gz ; then echo Generating list of files that should be removed... rm -f debian/deletable.files touch debian/deletable.files [ -e debian/tmp ] && rm -rf debian/tmp mkdir debian/tmp ( cd debian/tmp ; tar -zxf ../../../${source}_${version}.orig.tar.gz ) find debian/tmp/ -type f ! -name '.*' -print0 | xargs -0 -ri echo '{}' | \ while read -r i ; do if test -e "${i}" ; then filename=$(echo "${i}" | sed -e 's#.*debian/tmp/[^/]\+/##') test -e "${filename}" || echo "${filename}" >>debian/deletable.files fi done rm -fr debian/tmp else echo Emptying list of files that should be deleted... rm -f debian/deletable.files touch debian/deletable.files fi } exit 0 debian/compat0000644000000000000000000000000212171126211010356 0ustar 9 debian/copyright0000644000000000000000000000211512171125444011121 0ustar $Id: copyright,v 1.2 2004-12-21 11:29:03 hmh Exp $ This package was assembled by Henrique de Moraes Holschuh , based on previous work by Scott Ellis Upstream sources are at: http://sourceforge.net/projects/cups (module xpp) The Debian packaging of rng-tools is: Copyright (c) 2003 by Henrique de Moraes Holschuh , Copyright (c) 2002 by Scott Ellis , and distributed in the same license as the upstream source it applies to. Changes: The Debian version of XPP has very little on the way of changes from XPP upstream, mostly doing with the autotools build system. Upstream Author: Till Kamppeter Copyright: Copyright (c) 2000-2004 by Till Kamppeter 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, or (at your option) any later version. The GPL may be found in /usr/share/common-licenses/GPL on a Debian system.