Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
340 changes: 340 additions & 0 deletions m2300w/COPYING

Large diffs are not rendered by default.

166 changes: 166 additions & 0 deletions m2300w/INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@

How to Build and Install the m2300w Driver:
===========================================

Prerequisites:
--------------

1. Ghostscript

Please refer to README.ghostscript or to
http://m2300w.sourceforge.net/gs/

2. Foomatic (see http://www.linuxprinting.org/foomatic.html)

Foomatic is a database-driven system for integrating free
software printer drivers (like the m2300w driver) with common
spoolers under Unix. It supports CUPS, LPRng, LPD, GNUlpr, PPR,
PDQ, CPS, and direct printing.

Although m2300w-wrapper could be theoretically invoked directly,
it is basically designed for being invoked from foomatic's universal
print filter "foomatic-rip".

Therefore, m2300w requires "foomatic-rip" as prerequisite. Some
Linux distributions (e.g. SuSE) include foomatic-rip, while it
is missing in other distributions (e.g. RedHat 9).

To verify whether "foomatic-rip" is installed on your system,
you can check, if the file /usr/bin/foomatic-rip and the
symbolic link /usr/lib/cups/filter/foomatic-rip exist.

If they do not exist, then get the latest "foomatic-filters"
package from http://www.linuxprinting.org/download/foomatic and
install it on your system.

For your convenience, starting with version 0.3, the pre-built
m2300w RPM package (see below) installs a foomatic-rip binary,
if it is missing on the system. If you build the driver from
the sources, then you need to build and install "foomatic-filters"
yourself.

3. Spooler

Basically, m2300w is expected to work with all spoolers supported
by foomatic. However, the preferred spooler is CUPS, and m2300w
has only been tested in conjunction with CUPS.

4. Psnup

If you intend to use the n-up feature of the driver, the program
"psnup" needs to be installed on your system.


Using the pre-built RPM:
------------------------

We are also providing a pre-built RPM for download. This RPM was
built on SuSE Linux 8.1, but since it does not depend on particular
SuSE features, there is a good chance, that it may also work with
other Linux distributions, which support RPM.

1. Make sure that all prerequisites are installed (see above)

2. download m2300w-<version>.rpm from
http://sourceforge.net/project/showfiles.php?group_id=108751

3. install or upgrade the rpm package (needs to be done as root)

$ su
Password: ********
$ rpm -U m2300w-<version>.rpm

4. Run cups config to install a new printer

If you are upgrading from a previous version of the m2300w
driver, then REMOVE all printer queues which are associated
with the m2300w driver and reinstall them from the scratch.


Building and installing the driver from the source distribution:
----------------------------------------------------------------

1. Make sure that all prerequisites are installed (see above)

2. Download m2300w-<version>.tar.gz from
http://sourceforge.net/project/showfiles.php?group_id=108751

3. Unpack the archive:

$ tar zxvf m2300w-<version>.tar.gz
or
$ gzip -dc m2300w-<version>.tar.gz | tar xvf -
(if you are not using GNU tar)

4. Enter the top-level directory and run "configure"

$ cd m2300w-<version>
$ ./configure

5. Run make

$ make

6. Install the files (needs to be done as root)

$ su
Password: ********
# make install

7. Run cups config to install a new printer

If you are upgrading from a previous version of the m2300w
driver, then REMOVE all printer queues which are associated
with the m2300w driver and reinstall them from the scratch.


Building the RPM package from the source distribution:
------------------------------------------------------

The spec file included in the distribution only supports
packaging of the files. You CANNOT use rpm to BUILD the driver
with the supplied spec file. In order to build a RPM package
from the source distribution, perform the following steps:

1. Download m2300w-<version>.tar.gz from
http://sourceforge.net/project/showfiles.php?group_id=108751

2. Unpack the archive:

$ tar zxvf m2300w-<version>.tar.gz
or
$ gzip -dc m2300w-<version>.tar.gz | tar xvf -
(if you are not using GNU tar)

3. Enter the top-level directory and run "configure"

$ cd m2300w-<version>
$ ./configure

4. Run make to build the RPM

$ make rpm

The resulting RPM package is placed in rpm's built-in standard
location, usually /usr/src/packages/RPMS/i386 (or similar).
Make sure that this directory is writeable for your user id
if you don't run "make rpm" as "root".


Building the binary RPM package from the source RPM:
----------------------------------------------------

1. Download source RPM package m2300w-<version>-<release>.src.rpm

2. Install the source RPM package

# rpm -i m2300w-<version>-<release>.src.rpm

3. Build the binary RPM package

# cd /usr/src/packages/SPECS
# rpm -bb m2300w-<version>-<release>.spec

The resulting RPM package is placed in rpm's built-in standard
location, usually /usr/src/packages/RPMS/i386 (or similar).

79 changes: 79 additions & 0 deletions m2300w/Makefile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
#
# $Header: /cvsroot/m2300w/m2300w/Makefile.in,v 1.5 2004/08/04 14:11:22 gfuer Exp $
#
# Copyright (C) 2004 Gerhard Fuernkranz
#
# 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, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

@SET_MAKE@
INSTALL = @INSTALL@

INSTROOT =
PREFIX = @prefix@
NAME = @PACKAGE_NAME@
VERSION = @PACKAGE_VERSION@
RELEASE = @RELEASE@
DOCDIR = $(INSTROOT)$(PREFIX)/share/doc/$(NAME)-$(VERSION)

SUBDIRS = src psfiles foomatic ppd
DOCFILES = README README.ghostscript INSTALL COPYING

all:
for DIR in $(SUBDIRS); do (cd $$DIR; $(MAKE) $@); done

install:
rm -rf $(INSTROOT)$(PREFIX)/share/$(NAME)/crd
for DIR in $(SUBDIRS); do (cd $$DIR; $(MAKE) INSTROOT=$(INSTROOT) $@); done
$(INSTALL) -c -d -m 755 $(DOCDIR)
$(INSTALL) -c -m 644 $(DOCFILES) $(DOCDIR)

ppd: always
$(MAKE) install
(cd foomatic; $(MAKE) $@)
$(MAKE) install

clean:
rm -rf INSTROOT
rm -f $(NAME)-$(VERSION).tar.gz
rm -f $(NAME)-$(VERSION)-$(RELEASE).spec
for DIR in $(SUBDIRS); do (cd $$DIR; $(MAKE) $@); done

distclean: clean
for DIR in $(SUBDIRS); do (cd $$DIR; $(MAKE) $@); done
rm -rf config.log autom4te.cache config.status Makefile m2300w.spec

rpm: all m2300w.spec
rm -rf INSTROOT
mkdir -m 755 INSTROOT
$(MAKE) install INSTROOT=`pwd`/INSTROOT
M2300W_MAKE=y rpm -bb --buildroot=`pwd`/INSTROOT m2300w.spec
# rm -rf INSTROOT

srpm: m2300w.spec
rm -f $(NAME)-$(VERSION)-$(RELEASE).spec
ln -s m2300w.spec $(NAME)-$(VERSION)-$(RELEASE).spec
rpm -bs $(NAME)-$(VERSION)-$(RELEASE).spec

tarball: distclean
rm -rf /tmp/$(NAME)-$(VERSION)
mkdir /tmp/$(NAME)-$(VERSION)
find . | cpio -pdum /tmp/$(NAME)-$(VERSION)
find /tmp/$(NAME)-$(VERSION) -name CVS | xargs rm -rf
HERE=`pwd`; cd /tmp ; \
tar zcvf $$HERE/$(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)

always:

Loading