Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 308005 Details for
Bug 411061
Ebuilds for Brother MFC-6490CW LPR driver and CUPS wrapper
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
CUPS wrapper ebuild for Brother MFC-6490CW
brother-mfc6490cw-cups-1.1.2_p2.ebuild (text/plain), 2.52 KB, created by
Erich Seifert
on 2012-04-06 17:33:41 UTC
(
hide
)
Description:
CUPS wrapper ebuild for Brother MFC-6490CW
Filename:
MIME Type:
Creator:
Erich Seifert
Created:
2012-04-06 17:33:41 UTC
Size:
2.52 KB
patch
obsolete
># Copyright 1999-2012 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI=4 > >inherit rpm > >MY_PN="${PN/brother-/}" >MY_PN="${MY_PN/-cups/}" >MY_PV="${PV/_p/-}" > >DESCRIPTION="Cups driver for Brother MFC-6490CW" >HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html" >SRC_URI="http://www.brother.com/pub/bsc/linux/dlf/${MY_PN}cupswrapper-${MY_PV}.i386.rpm" >RESTRICT="mirror strip" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~amd64 ~x86" >IUSE="debug" > >RDEPEND="net-print/cups > app-text/psutils > net-print/brother-${MY_PN}-lpr" >DEPEND="net-print/cups" > >S="${WORKDIR}" >INSTALL_SCRIPT="${S}/usr/local/Brother/Printer/${MY_PN}/cupswrapper/cupswrapper${MY_PN}" >PPD_PATH="${S}/usr/share/cups/model" >FILTER_PATH="${S}/usr/lib/cups/filter" > >src_prepare() { > local installScriptNew="${S}/install.sh" > > echo '#!/bin/sh' >"${installScriptNew}" > > egrep '(printer_model|printer_name|device_name|pcfilename|device_model)=' "${INSTALL_SCRIPT}" >>"${installScriptNew}" || die "Extracting variables failed" > > echo "ppd_file_name=${PPD_PATH}/br\${printer_model}.ppd" >>"${installScriptNew}" > sed -n '/cat <<ENDOFPPDFILE1/,/ENDOFPPDFILE1/p' "${INSTALL_SCRIPT}" >>"${installScriptNew}" || die "Creating PPD file failed" > > echo "brotherlpdwrapper=${FILTER_PATH}/brlpdwrapper\${printer_model}" >>"${installScriptNew}" > sed -n '/cat <<!ENDOFWFILTER!/,/!ENDOFWFILTER!/p' "${INSTALL_SCRIPT}" >>"${installScriptNew}" || die "Creating filter wrapper failed" > > # Overwrite original INSTALL script > mv "${installScriptNew}" "${INSTALL_SCRIPT}" > > mkdir -p "${PPD_PATH}" > mkdir -p "${FILTER_PATH}" > "/bin/sh" "${INSTALL_SCRIPT}" || die "Installation failed" > >} > >src_configure() { > if use debug; then > sed -i -e 's:^\(DEBUG\)=0:\1=1:' "${FILTER_PATH}/brlpdwrapper"* || die "Enabling debug output failed" > fi >} > >src_install() { > rm -f "${INSTALL_SCRIPT}" || die > insinto "/usr/local" > doins -r "usr/local/Brother" || die > fperms -R 755 "/usr/local/Brother" || die > > insinto "/usr/share/cups" > doins -r "${PPD_PATH}" || die > > insinto "/usr/libexec/cups" > doins -r "${FILTER_PATH}" || die > fperms -R 755 "/usr/libexec/cups/filter" || die >} > >pkg_postinst() { > ewarn "Printer setup required" > elog "Use the brprintconf_${MY_PN} command to change printer options" > elog "For example, set the paper type to A4 right after installation" > elog "otherwise your prints will be misaligned!" > elog > elog "To set A4 Paper type:" > elog " brprintconf_${MY_PN} -pt A4" > elog "To set 'Fast Normal' quality:" > elog " brprintconf_${MY_PN} -reso 300x300dpi" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 411061
:
308003
| 308005