Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 144858 Details for
Bug 130612
canon cups capt driver (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
cndrvcups-capt-1.60_p1.ebuild
cndrvcups-capt-1.60_p1.ebuild (text/plain), 4.85 KB, created by
Anton Romanov
on 2008-02-28 13:57:33 UTC
(
hide
)
Description:
cndrvcups-capt-1.60_p1.ebuild
Filename:
MIME Type:
Creator:
Anton Romanov
Created:
2008-02-28 13:57:33 UTC
Size:
4.85 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit multilib eutils versionator >MY_P=${P/_p/-} >MY_DOC=guide-capt-1.6xE >S=${WORKDIR}/${PN}-$(get_version_component_range 1-2) >DESCRIPTION="Canon CUPS Capt driver" >HOMEPAGE="http://www.canon.com/" >SRC_URI="http://gdlp01.c-wss.com/gds/0100000945/${MY_P}.tar.gz > doc?(http://software.canon-europe.com/files/soft28622/manual/guide-capt-1.6xE.tar.gz)" >#there is also japanese guide here http://gdlp01.c-wss.com/gds/0300000592/guide-capt-1.6xJ.tar.gz > >LICENSE="CANON" >SLOT="0" >KEYWORDS="~amd64 ~x86" >IUSE="doc" > >DEPEND="=net-print/cndrvcups-common-1.60* > >=net-print/cups-1.1.17" > >dir=/usr/$(get_libdir) > >QA_TEXTRELS="${dir:1}/libcaiocaptnet.so.1.0.0" > >RDEPEND="${DEPEND} > >=sys-apps/portage-2.1.1_pre1 > app-text/ghostscript-esp > amd64? ( > >=app-emulation/emul-linux-x86-gtklibs-2.0 > >=app-emulation/emul-linux-x86-baselibs-10.0-r1 > ) > !amd64? ( > dev-libs/popt > dev-libs/libxml2 > )" > >pkg_postinst() { > einfo "To get your printer working you need to restart cupsd" > einfo > einfo "/etc/init.d/cupsd restart" > einfo > einfo "Now you can add your printer with either the webinterface or lpadmin" > einfo > einfo "/usr/sbin/lpadmin -p LBP1120 -m CNCUPSLBP1120CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E" > einfo > einfo "Replace 1120 with either on of the following printers:" > einfo "1120 1210 2900 3000 3200 3210 3300 5000" > einfo > einfo "Now you must register the printer in ccpd, if connected with usb" > einfo > einfo "/usr/sbin/ccpdadmin -p LBP1120 -o /dev/usb/lp0" > einfo > einfo "Notice that you can't use LPT port with this driver." > einfo "If you have a network connection to your printer use -o net:<IP OF PRINTER>" > einfo "instead of -o /dev/usb/lp0" > einfo "See manual for more information, guide-capt-1.3xE.tar.gz at " > einfo "http://software.canon-europe.com/software/0023675.asp" > einfo > einfo "Now you can go ahead and start the ccpd daemon" > einfo > einfo "/etc/init.d/ccpd start" > einfo > einfo "If you have more then one printer just create more fifos in" > einfo "/var/ccpd/ , increase the fifo number for more printers" > einfo > einfo "mkfifo -m 600 /var/ccpd/fifo1; chown lp:lp /var/ccpd/fifo1" > einfo > einfo > ewarn "If you reinstall make sure the fifo is created in /var/ccpd, if not" > ewarn "just reinstall again. This is due to bug #136199" > if use amd64; then > ewarn > ewarn "The file /usr/lib32/libpopt.so.0.0.0 doesn't exist in any x86 package yet" > ewarn "The file comes from a Gentoo x86 machine" > fi > if use doc; then > einfo > einfo point your browser to > einfo /usr/doc/${PF}/${MY_DOC}/manual_contents.html > einfo for a manual > fi >} > >src_unpack() { > unpack ${A} > cd ${S} > > # Fix the cups backend path > for i in backend pstocapt{,2,3}/filter; do > sed -i -e 's@libdir@libexecdir@' "${i}/Makefile.am" > done >} > >src_compile() { > for i in driver backend pstocapt{,2,3} ppd; do > cd ${i} > NOCONFIGURE=1 ./autogen.sh > econf > emake > cd .. > done >} > >src_install() { > for i in driver backend pstocapt{,2,3} ppd; do > cd ${i} > make install DESTDIR=${D} || die "make install failed for ${i}" > cd .. > done > > # Install the libpopt.so.0.0.0 file from files > if use amd64; then > OABI=${ABI} > ABI="x86" > insinto /usr/lib32 > i="libpopt.so.0.0.0" > dolib.so ${FILESDIR}/${i} > dosym ${i} /usr/lib32/${i%.?.?} # Fix the version stuff of libs > dosym ${i} /usr/lib32/${i%.?.?.?} > ABI=${OABI} > fi > > # Install the libs > OABI=${ABI} > has_multilib_profile && ABI="x86" > for i in `cd libs; ls *.so.?.?.?; cd ..`; do > # Hmm.. Shouldn't these go to lib32 instead? > dolib.so libs/${i} > dosym ${i} /usr/$(get_libdir)/${i%.?.?} # Fix the version stuff of libs > dosym ${i} /usr/$(get_libdir)/${i%.?.?.?} > done > > # Install bin > dobin libs/captmon/captmon \ > libs/captmon2/captmon2 \ > libs/captfilter \ > libs/captemon/captmonlbp5000 \ > libs/captemon/captmonlbp3300 \ > libs/captemon/captmoncnac5 \ > libs/captemon/captmoncnab6 \ > libs/captdrv > > # Install sbin > dosbin libs/ccpd libs/ccpdadmin > > ABI=${OABI} > > # Install the data > insinto /usr/share/ccpd > doins libs/ccpddata/* > > insinto /usr/share/captmon > doins libs/captmon/msgtable.xml > > insinto /usr/share/captmon2 > doins libs/captmon2/msgtable2.xml > > insinto /usr/share/captemon > doins libs/captemon/*.xml > > insinto /usr/local/canon/lib/profiles > doins data/CNL* > > insinto /usr/share/caepcm > doins data/CnA* > > # Install doc > dodoc LICENSE* README* COPYING > > for i in driver backend pstocapt{,2,3} ppd; do > docinto ${i} > dodoc ${i}/NEWS ${i}/README ${i}/AUTHORS ${i}/ChangeLog ${i}/LICENSE* > done > > > # Fix the fifos > dodir /var/ccpd > mkfifo -m 600 ${D}/var/ccpd/fifo0 > fowners lp:lp /var/ccpd/fifo0 > > # fix captmon > dodir /var/captmon > fowners lp:lp /var/captmon > keepdir /var/captmon > > # Install startupscripts > newinitd ${FILESDIR}/${PN}-init.d ccpd > > insinto /etc > doins samples/ccpd.conf > > cd .. > use doc && insinto /usr/share/doc/${PF}/ && doins -r ${MY_DOC} >}
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 130612
:
88791
|
88792
|
88793
|
96083
|
96084
|
110093
|
110180
|
122133
|
122135
|
132731
|
132733
|
132734
|
132736
|
132738
|
144857
|
144858
|
194919
|
194921
|
195140
|
195141
|
205936
|
205938
|
205943
|
205945
|
206095
|
206444
|
213066
|
248395
|
253537
|
283299
|
283301
|
309177
|
309179
|
404004
|
404052
|
404542