A. Khattri wrote:
On Thu, 28 Jul 2005, Alessandro Selli wrote:
However, I realize the magicfilterconfig tool is Debian-specific,
since there is no trace of it in the official source code I just
downloaded from
http://www.pell.portland.or.us/~orc/Code/magicfilter/magicfilter-2.3.d.tar.gz
I wish Gentoo too had it!
Did you try emerging net-print/magicfilter?
The Changelog specifically mentioned magicfilterconfig so it might be in
there...
All right, I queried further and learned this about
magicfilter/magicfilterconfig:
1) until magicfilter version 1.2, magicfilter was developped by H. Peter
Anvin, then David Parsons rewrote it from scratch and changed its
licence from GPL to BSD:
http://www.pell.portland.or.us/~orc/Code/magicfilter/
History
Magicfilter 2 is a complete rewrite of H. Peter Anvin's
Magicfilter 1.2, using slightly more standard components.
2) magicfilter version 1.2 did have the magicfilterconfig tool standard:
http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/net-print/magicfilter/ChangeLog
*magicfilter-1.2-r3 (26 Mar 2002)
[...]
26 Mar 2002; Aron Griffis <[EMAIL PROTECTED]>
magicfilter-1.2-r3.ebuild:
Fixed magicfilterconfig man-page installation
3) magicfilter version 2.0 and later (David Parsons') no longer has it.
I did ACCEPT_KEYWORDS='~x86' emerge magicfilter to install the
latest release (2.3d) but magicfilterconfig is not there.
However, I did manage to get it to work. I only had to change in the
/etc/lprng/printcap file the filter line from:
:if=/usr/etc/apsfilter/basedir/bin/apsfilter:\
into:
:if=/usr/share/magicfilter/filters/dj500:\
*And* I had to correct the same filter file, because it erroneously
had two lines defining the gs output device to use, first the right one,
then a wrong one that would override the correct output device. The
/usr/share/magicfilter/filters/dj500 file was thus changed from:
#!/usr/bin/magicfilter
define(Vendor, `Hewlett-Packard')dnl
define(Printer, `DeskJet 500 series B/W printers (and DJ500c with black
cartridge)')dnl
define(DPI,`300')dnl
define(DEVICE,`djet500')dnl
define(PCL,`true')dnl
define(DEVICE,`cdjcolor')dnl
define(HANDLE_TEXT,`cat \eE\e&k2G\e(0N \eE')dnl
into:
#!/usr/bin/magicfilter
define(Vendor, `Hewlett-Packard')dnl
define(Printer, `DeskJet 500 series B/W printers (and DJ500c with black
cartridge)')dnl
define(DPI,`300')dnl
define(DEVICE,`djet500')dnl
define(PCL,`true')dnl
define(HANDLE_TEXT,`cat \eE\e&k2G\e(0N \eE')dnl
There's a glitch in the magicfilter(8) man page, too: where it reads:
/etc/printcap file will simply be the name of the configuration
file, which is set executable and starts with the line:
#! /var/tmp/portage/magicfilter-2.3d/image//usr/bin/magicfilter
it should read:
/etc/printcap file will simply be the name of the configuration
file, which is set executable and starts with the line:
#! /usr/bin/magicfilter
I guess I should file a bug report, right?
--
Alessandro Selli
Tel: 340.839.73.05
http://alessandro.route-add.net
--
gentoo-user@gentoo.org mailing list