Epson AcuLaser C1100

From Gentoo-en
Jump to: navigation, search

A driver for this printer is not included in the default library of printer drivers. However, a "Linux driver" is available from the manufacturer's website (http://www.avasys.jp/lx-bin2/linux_e/laser/DL1.do). To simplify installation of this driver, an appropriate ebuild is included below.

Driver Contents

The driver contains a PPD file for use by CUPS and Foomatic, a filter script for use with Foomatic and a precompiled, prestripped binary that transforms PostScript instructions into the printer's native language. It also includes some cruft for use with LPR, which the included ebuild omits from the installation.

Dependencies

The driver requires a number of (unlisted) dependencies to work. Apart from CUPS and Foomatic, bc (a command-line calculator) and libstdc++.so.5 are required. Especially the libstdc++.so.5 part is a somewhat unfortunate requirement introduced by the precompiled (and linked) binary, which the included ebuild resolves by pulling in the libstdc++-v3 ebuild. You may complain to Epson and ask them to release source or unlinked object file binaries instead, but until then you'll have to make do. If you have libstdc++.so.5 installed through your (old) GCC, you may omit the appropriate depend from the ebuild.

Driver Installation

1. If you already have a local portage overlay, skip to 2. If not, follow the instructions to enable your Local Overlay.
2. Go to your overlay directory (usually /usr/local/portage) and create a directory for the package:

cd /usr/local/portage && mkdir -p net-print/ppd-epson-alc1100

3. Paste the ebuild and manifest files included below into the appropriate files.
4. Emerge the driver package:

emerge -av ppd-epson-alc1100

5. Restart CUPS:

/etc/init.d/cupsd restart
File: /usr/local/portage/net-print/ppd-epson-alc1100/ppd-epson-alc1100-1.2.ebuild
DESCRIPTION="CUPS/Foomatic PPD Printer Driver for Epson AL-C1100"
HOMEPAGE="http://www.avasys.jp/english/linux_e/dl_laser.html"
SRC_URI="http://www.avasys.jp/lx-bin2/linux_e/laser/DL3.do?connectEnv=C2&country=0314&dist=99OT&model=LE021&version=0101&usePlace=P1&dl=&dlFile=G000000119&dlID=-28-85-9932-330-441257022-39-12-1022735-91"

LICENSE="MIT"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE=""

DEPEND=">=net-print/cups-1.1.17"
RDEPEND=">=net-print/cups-1.1.17
	>=net-print/foomatic-filters-3.0
	sys-devel/bc
	sys-libs/libstdc++-v3"

src_unpack() {
	mv "${DISTDIR}/DL3.do?connectEnv=C2&country=0314&dist=99OT&model=LE021&version=0101&usePlace=P1&dl=&dlFile=G000000119&dlID=-28-85-9932-330-441257022-39-12-1022735-91" ${DISTDIR}/Epson-ALC1100-filter-${PV}.tar.gz
	tar xzf ${DISTDIR}/Epson-ALC1100-filter-${PV}.tar.gz
}

src_compile() {
	cd ${WORKDIR}/Epson-ALC1100-filter-${PV}
	econf || die
}


src_install() {
	cd ${WORKDIR}/Epson-ALC1100-filter-${PV}
	emake install DESTDIR="${D}" || die "install failed"
	# remove obsolete lpr stuff
	rm -rf ${D}/etc
	rm ${D}/usr/bin/alc1100_lprwrapper.sh
}
File: /usr/local/portage/net-print/ppd-epson-alc1100/Manifest
DIST DL3.do?connectEnv=C2&country=0314&dist=99OT&model=LE021&version=0101&usePlace=P1&dl=&dlFile=G000000119&dlID=-28-85-9932-330-441257022-39-12-1022735-91 222749 RMD160 a0e309d3145d05f4c8d5c4c45d64cb1a011e3fe3 SHA1 287c81add80c4ef7f2407b26ba64e655ab819c1a SHA256 37207f1e02a24dd702a6772689e239102c9e0f9c4f9bd70f4d6693ea1a710b60
EBUILD ppd-epson-alc1100-1.2.ebuild 1063 RMD160 5fda184be300dc52af20731766e083972fab7014 SHA1 d64ae4bc7179dac14669ffd0dfa1645764294f48 SHA256 bbeb723eeaa216b1df9033935b30f02509d6f484fa0c1cf68eb36c6c1b0183d9

Printer Installation

Refer to the generic installation instructions for CUPS/your desktop environment to finish setting up your printer.