diff options
author | 2014-12-04 13:35:13 +0100 | |
---|---|---|
committer | 2014-12-04 13:35:13 +0100 | |
commit | b7e59e2064704a2e5117185923016c0598164af2 (patch) | |
tree | 6049b0a45691b117626e7f537a9490af29748419 | |
parent | media-gfx/brscan4: Fix list of inherited eclasses. (diff) | |
download | ulm-b7e59e2064704a2e5117185923016c0598164af2.tar.gz ulm-b7e59e2064704a2e5117185923016c0598164af2.tar.bz2 ulm-b7e59e2064704a2e5117185923016c0598164af2.zip |
net-print/brother-dcpj925dw: Fix some install locations and permission bits.
Package-Manager: portage-2.2.14
-rw-r--r-- | net-print/brother-dcpj925dw/ChangeLog | 4 | ||||
-rw-r--r-- | net-print/brother-dcpj925dw/brother-dcpj925dw-20131010.ebuild | 36 |
2 files changed, 29 insertions, 11 deletions
diff --git a/net-print/brother-dcpj925dw/ChangeLog b/net-print/brother-dcpj925dw/ChangeLog index e54bc48..ba2874f 100644 --- a/net-print/brother-dcpj925dw/ChangeLog +++ b/net-print/brother-dcpj925dw/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 04 Dec 2014; Ulrich Müller <ulm@gentoo.org> + brother-dcpj925dw-20131010.ebuild: + Fix some install locations and permission bits. + *brother-dcpj925dw-20131010 (01 Dec 2014) 01 Dec 2014; Ulrich Müller <ulm@gentoo.org> diff --git a/net-print/brother-dcpj925dw/brother-dcpj925dw-20131010.ebuild b/net-print/brother-dcpj925dw/brother-dcpj925dw-20131010.ebuild index 085b257..7271a43 100644 --- a/net-print/brother-dcpj925dw/brother-dcpj925dw-20131010.ebuild +++ b/net-print/brother-dcpj925dw/brother-dcpj925dw-20131010.ebuild @@ -22,25 +22,39 @@ RESTRICT="strip" RDEPEND="net-print/cups" -S="${WORKDIR}" +S="${WORKDIR}/opt/brother/Printers/${MODEL}" src_prepare() { if use metric; then - sed -i "/^PaperType/s/Letter/A4/" \ - opt/brother/Printers/${MODEL}/inf/br${MODEL}rc || die + sed -i "/^PaperType/s/Letter/A4/" inf/br${MODEL}rc || die fi } src_install() { - cp -r opt "${D}" || die + local dest=/opt/brother/Printers/${MODEL} - exeinto /opt/brother/Printers/${MODEL}/bin - doexe usr/bin/brprintconf_${MODEL} - - dosym ../../../../opt/brother/Printers/${MODEL}/lpd/filter${MODEL} \ + cd "${S}"/lpd || die + exeinto ${dest}/lpd + doexe br${MODEL}filter filter${MODEL} psconvertij2 + dosym ${dest}/lpd/filter${MODEL} \ /usr/libexec/cups/filter/brother_lpdwrapper_${MODEL} - dosym ../../../../opt/brother/Printers/${MODEL}/cupswrapper/brother_${MODEL}_printer_en.ppd \ + + cd "${S}"/inf || die + insinto ${dest}/inf + doins br${MODEL}func ImagingArea paperinfij2 + doins -r lut + insinto /etc${dest}/inf + doins br${MODEL}rc # config file + dosym /etc${dest}/inf/br${MODEL}rc ${dest}/inf/br${MODEL}rc + + cd "${S}"/cupswrapper || die + insinto ${dest}/cupswrapper + doins brother_${MODEL}_printer_en.ppd + dosym ${dest}/cupswrapper/brother_${MODEL}_printer_en.ppd \ /usr/share/cups/model/brother_${MODEL}_printer_en.ppd - dosym ../../opt/brother/Printers/${MODEL}/bin/brprintconf_${MODEL} \ - /usr/sbin/brprintconf_${MODEL} + + # The brprintconf utility is very broken and mangles the path + # of the function list file. Therefore, don't install it. + #exeinto ${dest}/bin + #doexe "${WORKDIR}"/usr/bin/brprintconf_${MODEL} } |