remote printing with samba was broken because of syntax error in shell.
only occurred when a SMB_PASSWD has been set.
Thanks to Olivier !
Submitted by: Olivier PAGE <olivier@esm2.imt-mrs.fr>
syntax error in SETUP
which is detected by bash2 but not by our shell
So all Linux user trapped over this
result is, that you can't select a printer and loop in printer selection
forever...
+ doesn't work:
+ PRINTER=`awk -F "|" \
^----- missing "
+ "{ if (FNR == $answer ) print \\$2 }" \
+ < $PRINTER_LIST"`
^^----- wrong order
+ works:
+ PRINTER="`awk -F "|" \
^----- o.k.
+ "{ if (FNR == $answer ) print \\$2 }" \
+ < $PRINTER_LIST`"
^^----- o.k.
Is it a bug in our shell ???
Fixes BUG in apsfilter 5.3.0
SETUP: you entered a "printer selection loop" when selecting uniprint
printer
Includes the previous patch for CLASS support and such ...
New features in 5.3.0
=====================
- Major enhancements in SETUP, therefore version bump
- checks your version of ghostscript
- is aware of gs version 5.50 and 6.01 printer drivers
- new driver selection mechanism
- fetches list of available printer driver from file
- you can browse/search this list using more
- you select printer driver by number
- sanity check, if the printer driver is present in your gs binary
- at the end of your selection you get a list of printers
as confirmation, that are supported by your driver selection
- you can repeat this step as often as you like until you
choose a valid printer driver
- After printer driver selection you can as usual print test pages
if you like or repeat the step of selection another driver in this
more user friendly manner.
- upp profile contribution for
Epson LQ-570/870/1070/1170 ESC/P2 24-pin Dot Matrix printer
- 3rd party additional driver for
HP 812C, 815C, 832C, 880C, 882C, 895C, 932C, 970C
http://www.proaxis.com/~mgelhaus/linux/software/hp880c/hp880c.html
- Generic Postscript printer Support
- added more resolutions in SETUP script and apsfilter script
- bugfix: some resolutions were missing in apsfilter script
- Adding driver support information is now more easy, since you only
have to add it to a file setup/printer-<gs-version>
- internal: download page: enhanced make-release script
produces now diffs from every version to latest version
- latest apsfilter patches can be found on download page
- info: new URL -> http://people.freebsd.org/~andreas
- new URL -> http://people.freebsd.org/~andreas
- make-release: generate more diffs (every release to latest) and
patch from latest to head branch
- Added files with an up to date printer list for gs 5.50 and 6.01
SETUP will be modified later...
- devices-5.50 - list of driver options
- devices-6.01 - list of driver options
- printer-5.50 - list of supported printers
- printer-6.01 - list of supported printers
- make configure script work (Louis)
- make configure.batch script work (Andreas)
- extract contributed HP8XX driver in ${WRKSRC}/src
- make png driver compile (add $(PREFIX)/include to XINCLUDE variable)
Dunno, if this will be the last round of cleanups...
Submitted by: "Louis A. Mamakos" <louie@TransSys.COM>
Before the new patch gs build fine, but didn't
include the printer devices included with configuration script.
After fixing this it refuses to build.
Any help appreciated.
Now you have the last version as I to help me to fix the mess.
Sorry folks ...
additional changes by me:
- configure + configure.batch updates:
reviewed all informations in makefiles and driver docu
to make list of available drivers and supported printers complete
- added DeskJet 880C/882C/895C Driver from Matthew J. Gelhau
Driver is still in developement. There is a newer 1.4 beta version
available, but this version is recommended by the author.
http://www.proaxis.com/~mgelhaus/linux/software/hp880c/hp880c.html
Supported are the following models:
HP DeskJet 812C 815C 832C 880C 882C 895C 932C 970C
- added contributed uniprint driver profiles:
- configure + configure.batch updates:
reviewed all informations in makefiles and driver docu
to make list of available drivers and supported printers complete
- added DeskJet 880C/882C/895C Driver from Matthew J. Gelhau
Driver is still in developement. There is a newer 1.4 beta version
available, but this version is recommended by the author.
http://www.proaxis.com/~mgelhaus/linux/software/hp880c/hp880c.html
Supported are the following models:
HP DeskJet 812C 815C 832C 880C 882C 895C 932C 970C
- added contributed uniprint driver profiles:
printer: Epson Stylus Color 740
mode1: stc740ih.upp: Epson Stylus Color 740, 1440x720DpI, Inkjet Paper
mode2: stc740p.upp : Epson Stylus Color 740, 720x720DpI, Plain Paper
mode3: stc740pl.upp: Epson Stylus Color 740, 360x360DpI, Plain Paper
contributor: Francois D. Menard <fmenard@g6-114b.residence.usherb.ca>
#
printer: Epson LQ-1170
mode1: lqx70ch.upp : Epson LQ-1170 ESC/P2 Dot Matrix, 360x360DpI, Plain Pap.
mode2: lqx70cl.upp : Epson LQ-1170 ESC/P2 Dot Matrix, 180x180DpI, Plain Pap.
mode3: lqx70cm.upp : Epson LQ-1170 ESC/P2 Dot Matrix, 360x180DpI, Plain Pap.
contributor: Harold Bower <HalBower@worldnet.att.net>
- updated PLIST
- use GS_VERSION for DISTNAME
- fix installation path for pdf_sec.ps if defined PDFENCRYPT
- silence make install ("@")
- change COMMENT to reflect version
- update DESCR, to document driver enhancements compared to stanfard gs
release
- apsfilter will be updated later
Submitted by: "Alec Wolman" <wolman@cs.washington.edu>
New apsfilter features:
* Security: config files are read using awk, not sourced during runtime
* Complete Windows Remote Printer Support (as Guest user or using real login)
* Complete Unix remote printer support
* Support for different print resolutions (by starting SETUP repeatedly)
and choosing different print resolutions
* A2PS options revamped
* lots of more things... See my homepage, ANNOUNCE file ...
* print margin problem of a2ps fixed
FAQ section gives you a real life example, of how to configure
page margins in /usr/local/etc/a2ps.cfg for an EPSON STYLUS PRO.
With this example you can fine tune the margins for your printer in
about 10-15 minutes from scratch...
- SETUP: added support for configuring remote printer
Beware: you still have to make sure, that your line printer scheduler supports
input filter processing with remote printers as it is the case for FreeBSD 3.x
and later with a "fixed" lpd, as well as for Unix systems with LPRng installed
as lineprinter scheduler, which is the case for some (not all !!!) Linux
Systems.
- Add support for printing with SAMBA (SAMBA_PRINTER)
- Bugfix. Some printer dependend settings will be overwritten, when installing
a 2nd printer, which might cause printing with the 1st printer to fail,
especially if the first printer is color and 2nd B&W or vice versa.
Revamped SETUP and bin/apsfilter to get around this.
- Added SETUP menue entries for the uniprint driver
contributed by Francois D. Menard <fmenard@g6-114b.residence.usherb.ca>
printer: Epson Stylus Color 740
mode1: stc740ih.upp : Epson Stylus Color 740, 1440x720DpI, Inkjet Paper
mode2: stc740p.upp : Epson Stylus Color 740, 720x720DpI, Plain Paper
mode3: stc740pl.upp : Epson Stylus Color 740, 360x360DpI, Plain Paper
- New FAQ entries concerning print margins when printing ASCII text with a2ps
- updated howto and troubleshooting document
HOWTO-BUGREPORTS moved to toplevel, so that its easier to find.
everything that anybody could need in a program printout without
the need for large numbers of switches or pipelines. Trueprint can
currently handle C, C++, Java, Perl, Verilog, shell (including ksh), Pascal,
pseudo C, report files (trueprint report files), listing files, text files.
PR: 16775
Submitted by: Dmitry Sivachenko <dima@Chg.RU>
1. Change freetype-1.2 to freetype-1.3 in post-install, so
it can find freetype sources to build ttf2pk & ttf2tfm.
2. It no longer uses moettf, but Arphic ttf instead, which
has no character loss and IMHO much more beautiful. :)
3. Generates GB tfms from Arphic fonts.
4. Update maintainer's address.
PR: 16042
Submitted by: maintainer
- Update apsfilter to new version 5.1.4
- Use a2ps-letterdj as default in dialog setup script
This should fix problems for most HP Deskjet and
Espon print Problems because of wrong print margins
This is even recommended for A4 printing !!!
apsfilter 5.1.3 - 5.1.4 changes:
- added uniprint directory for contributed ghostscript uniprint driver files
- uniprint driver contribution for Epson Stylus Color 740
- support for using different uniprint driver profiles for one printer,
updated apsfilterrc with example
- fixed shell scripts, so that SETUP runs with Solaris 7 /bin/sh
(remember, you still need to replace your SVR4 compatible printing
subsystem with LPRng, if you want to use apsfilter on Solaris 7 and
related SVR4 compatible Unix derivates)
- added docu on how to configure apsfilter for remote printing
doc/REMOTE-PRINTING
- Update FAQ concerning
- how to adjust page margins (if some pixels are missing
in your printout)
- Change default for printing ASCII documents to
single page on a sheet, portrait format, without any header or border
- Updated apsfilterrc to be more verbose about the difference of
the legacy a2ps config option "FEATURE"
vs. the new recommended way "A2PS_OPTS"
- cosmetic in SETUP, see ChangeLog file
- [internal]: improve make-release script
Fix the BATCH=yes case. The .keep_me file was not being touched in
BATCH=yes since MAkefile.inc was only created in interactive mode,
and Makefile.inc is where .keep_me is also touched... This port
should now work for BATCH and !BATCH.
For now, include files are installed in ${PREFIX}/include/freetype
(that's the default with version 1.3) and symlinks are created in
${PREFIX}/include for compatibility
scripts can create the complete list of apsfilter port
dependencies.
So I removed the "BATCH case" from configure to the
more suitable area/form in Makefile of the port.
- support a4 and letter papersizes after a repository copy from
html2ps to html2ps-a4 and html2ps-letter.
- use ${PERL} for substituting not ${PERL5}.
Requested by: Andreas Klemm <andreas@FreeBSD.org> (mantainer)
gzip and bzip2 create a compressed file and in
the header unfortunately this changes md5 checksum.
Now updating md5, have to look for a better solution
in the near future, stay tuned...
Changed License, want a postcard.
New features in 5.1.3
=====================
- Security fix. tmp files are now not readable by other people
this gives you more privacy for your print jobs
- New nice options for a2ps when printing ASCII files
- SETUP's main menue now leads you more user friendly to new uniprint drivers
- SETUP: many display enhancements to make the setup script more
informative to the user.
- some cosmetic concerning apsfilter-promo@klemm.gtn.com
Removed "RESTRICTED" from acroread-chsfont acroread-chtfont acroread-korfont
acroread-commfont (I think that for acroread-jpnfont we need
to register with Adobe)
Submitted: maintainer (these are mine)
[Has anyone figured-out what makes the number 393 so interesting to PW, now?]
I wonder what was going through Jordan's head during his infamous
$Id$-smashing commit.
Before I forget....
Thanks to naddy@mips.rhein-neckar.de (Christian Weisgerber) for prompting
this commit. See msg-id: 7geokh$tje$1@mips.rhein-neckar.de
FWIW, checkout of these things took 5+hrs, staying on the local
.freebsd.org net w/o hitting the 'net at all.
As promised,
$ time cvs ci
real 67m51.701s
user 0m1.250s
sys 0m5.345s
- it's possible to use psutils to print 2 pages on one physical
page and other things.
- New Environment Variable PSUTILS can be set via apsfilterrc files.
i.e.: PSUTILS="psnup -2 |"
Port now additionally has a run dependency to psutils-letter....
bugfix release
apsfilter now again allows you to use the gs driver default
resolution. Bug was, that everything defaulted to 300dpi, if
not set explicitely via DPI (set by name of symlink to apsfilter)
or GS_RESOL (set manually or via SETUP script in apsfilterrc).
Moved everything only print_dvi dependend to print_dvi...
Cosmetic changes
More user friendly bugform
the user will get a make syntax error ("Malformed conditional") when
PAPERSIZE and BATCH are both unset.
Andreas, go ahead and change this further if you want, I'm not sure
what you intended to do here, so I went with the "safest" fix.
printers that have "a4" paper, while "a4" produces clipped results for
printers that have letter papper?" ---Warner
YES ;-)
Reminded by: Warner Losh <imp@harmony.village.org>
Port related changes:
- apsfilter port isn't interactive anymore, we can now put it onto FreeBSD CD 1
- use bzip2 for apsfilter sources to save space on FreeBSD Disk 1
- new run dependency to recode and a2ps
- when BATCH is defined set PAPERSIZE to a4, to avoid problems with a2ps port
- updated DESCR (listed some of the new apsfilter features)
- updated PLIST
- new post-install target to inform people to run SETUP to complete installation
Apsfilter related changes:
- new supported file types (BMP, FAX G3, troff)
- possible to print in different print resolutions (see example in INSTALL),
i.e.: lpr -P{low,med,high} some_files...
- ghostscript can make use of additional type1 fonts by setting the gs
environment variable GS_FONTPATH. gs automatically recognizes
/usr/X11R6/lib/X11/fonts/Type1 and
/var/X11R6/lib/X11/fonts/Type1
if present. Other Paths can be configured global or printer type
dependend by admin or user as usual. See precedence of apsfilterrc
and .apsfilterrc files above.
- printer driver type dependend config files in that order:
- /etc/apsfilterrc
- /etc/apsfilterrc.${PRINTER}
and if defined INSECURE:
- $HOME/.apsfilterrc
- $HOME/.apsfilterrc.${PRINTER}
- CRLF translation and perforation skip for more HP models
- new environment variable USE_RECODE_NOT_A2PS, so you can use
reecode as an alternative over a2ps
- new environment variable RECODE_OPTS
defaults to "-q latin1:ibmpc"
- new environment variable PAGES_REVERSE_ORDER for forcing dvips
to print in reverse order
- detection of printer resolution revamped and more clear
- Precedence of definition of print resolution:
a) by name of filter script (symlink to apsfilter)
b) by setting GS_RESOL in apsfilterrc config files
c) autodetected by apsfilter (PS_xxx, printer driver name)
d) otherwise defaults to 300dpi (for dvips commandline)
- some dvips settings cleanup, use -Z only when resol >= 400dpi
- when printing html use some sane defaults for HTML2PS_OPTS
if not set in apsfilterrc files
Contributions:
- SUPPORT FOR NEW GNU a2ps 4.12, Hurray !!!!
thanks to Debian Port maintainer, Matej Vela <mvela@public.srce.hr>
- cool PS testpage (test.ps)
Andreas Reuter <ar205@bonzo.geowiss.nat.tu-bs.de>
- many thanks to the SuSE developement team especially
Werner Fink <werner@suse.de> for many inspirations
- and of course cosmetic and bugfixes ;-)