Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 292805 Details for
Bug 387619
Ebuild for Brother DCP-7030 LPR driver and CUPS wrapper.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
brother-laser2-cups-driver-2.0.2.ebuild
brother-laser2-cups-driver-2.0.2.ebuild (text/plain), 2.38 KB, created by
NePank
on 2011-11-16 20:36:42 UTC
(
hide
)
Description:
brother-laser2-cups-driver-2.0.2.ebuild
Filename:
MIME Type:
Creator:
NePank
Created:
2011-11-16 20:36:42 UTC
Size:
2.38 KB
patch
obsolete
># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils > >DESCRIPTION="CUPS-Drivers for Brother Laser Printers" >HOMEPAGE="http://www.brother.com/index.htm" >SRC_URI="http://www.brother.com/pub/bsc/linux/dlf/brother-laser2-cups-driver-2.0.2-1.tar.gz" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86 ~amd64" > ># IUSE_DCP="dcp7030 dcp7040 dcp7045n" ># IUSE_HL="hl2140 hl2150n hl2170w" ># IUSE_MFC="mfc7320 mfc7340 mfc7440n mfc7450 mfc7840n mfc7840w" ># IUSE="${IUSE_DCP} ${IUSE_HL} ${IUSE_MFC}" >RDEPEND="net-print/cups > net-print/brother-dcp7030-lpr-drivers" > >DEPEND="${RDEPEND} sys-apps/sed" > > >S=${WORKDIR}/${P}-1 > > >src_compile() { > mkdir -p ${S}/model > mkdir -p ${S}/filter > function ppd_generate() { > sed -n '/cat <<ENDOFPPDFILE >$ppd_file_name/,/ENDOFPPDFILE/p' ${S}/scripts/cupswrapper$1-2.0.2 | sed '$d'| sed '1,1d' > ${S}/model/$1.ppd > chmod 755 ${S}/model/$1.ppd > } > > function filter_generate() { > sed -n '/cat <<!ENDOFWFILTER! >$brotherlpdwrapper/,/!ENDOFWFILTER!/p' ${S}/scripts/cupswrapper$1-2.0.2 |sed '$d' | sed '1,1d' > ${S}/filter/brotherlpdwrapper$1 > chmod 755 ${S}/filter/brotherlpdwrapper$1 > } > > ppd_generate DCP7030 > filter_generate DCP7030 >} > > >src_install() { > has_multilib_profile && ABI=x86 > INSTDIR="/opt/Brother" > > dodir ${INSTDIR}/cupswrapper/ > dodir /usr/lib/cups/filter/ > dodir /usr/share/cups/model/ > dodir /usr/libexec/cups/filter/ > > if [ -e '/usr/share/ppd' ]; then > dodir /usr/share/ppd > cp ${S}/model/.ppd ${D}usr/share/ppd > fi > > mv ${S}/brcupsconfig3/{brcups_commands.h,brcupsconfig.c} ${D}${INSTDIR}/cupswrapper/ > mv ${S}/model/*.ppd ${D}usr/share/cups/model/ > mv ${S}/filter/brotherlpdwrapper* ${D}usr/lib/cups/filter/ > ln -s /opt/Brother/lpd/filterDCP7030 ${D}usr/libexec/cups/filter/brlpdwrapperDCP7030 > >} > >pkg_postinst() { > /etc/init.d/cupsd restart > sleep 2s > port2=`lpinfo -v | grep -i 'usb://Brother/DCP-7030' | head -1` > if [ "$port2" = '' ];then > port2=`lpinfo -v | grep 'usb://' | head -1` > fi > port=`echo $port2| sed s/direct//g` > if [ "$port" = '' ];then > port=usb:/dev/usb/lp0 > fi > lpadmin -p DCP7030 -E -v $port -P /usr/share/cups/model/DCP7030.ppd > > > ewarn "You really wanna read this." > elog "If you would like to remove drivers, you have to run" > elog > elog ' lpadmin -x $1' > elog > elog 'where $1, is you driver class (like DCP7030)' > elog "after unmerging cups-driver package" >}
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 387619
:
290217
|
292791
|
292793
| 292805