Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ebuild] Brother MFC-J430W and DCP-J315W
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Thu Feb 20, 2014 5:22 pm    Post subject: [ebuild] Brother MFC-J430W and DCP-J315W Reply with quote

Hi.

I've been having problems with my brother printers lately, so, while I was fixing the issues I also took the chance to update the drivers and do some cleaning. The ebuild for the 315 was taken from the foo overlay, however I had to do some fixing and cleaning, so I paste it below.

The ebuild for the 430 is an adaptation of the same ebuild. Please, understand that those ebuilds are just a quick hack, that's why I am not posting them to bgo, but they get the job done and might be useful to someone. So I post them here.


Printer driver ebuilds

net-print/brother-dcp-j315w-drivers/brother-dcp-j315w-drivers-1.1.3.1.ebuild

Code:
EAPI=4

inherit rpm multilib

DESCRIPTION="Brother DCP-J315W LPR+cupswrapper drivers"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#DCP-J315W"
PV=${PV%.*}-${PV##*.}
SRC_URI="http://pub.brother.com/pub/com/bsc/linux/dlf/dcpj315wlpr-${PV}.i386.rpm
      http://pub.brother.com/pub/com/bsc/linux/dlf/dcpj315wcupswrapper-${PV}.i386.rpm"

LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
RESTRICT="strip"

DEPEND="net-print/cups
      app-text/a2ps"
RDEPEND="${DEPEND}"

S="${WORKDIR}" # Portage will bitch about missing $S so lets pretend that we have vaild $S.

src_unpack() {
   rpm_unpack ${A}
}

src_install() {
   has_multilib_profile && ABI=x86

   dosbin "${WORKDIR}/usr/bin/brprintconf_dcpj315w"

   cp -r usr "${D}" || die
   cp -r opt "${D}" || die

   mkdir -p ${D}/usr/libexec/cups/filter || die
   ( cd ${D}/usr/libexec/cups/filter/ && ln -s ../../../../opt/brother/Printers/dcpj315w/lpd/filterdcpj315w brlpdwrapperdcpj315w ) || die
   mkdir -p ${D}/usr/share/cups/model || die
   ( cd ${D}/usr/share/cups/model && ln -s ../../../../opt/brother/Printers/dcpj315w/cupswrapper/brother_dcpj315w_printer_en.ppd ) || die
}

pkg_postinst () {
   ewarn "You really wanna read this."
   elog "You need to use brprintconf_dcpj315w to change printer options"
   elog "For example, you should set paper type to A4 right after instalation"
   elog "or your prints will be misaligned!"
   elog
   elog "Set A4 Paper type:"
   elog "      brprintconf_dcpj315w -pt A4"
   elog "Set 'Fast Normal' quality:"
   elog "      brprintconf_dcpj315w -reso 300x300dpi"
   elog
   elog "For more options just execute brprintconf_dcpj315w as root"
   elog "You can check current settings in:"
   elog "      /usr/local/Brother/Printer/dcpj315w/inf/brdcpj315wrc"
   elog
   elog "To add printer over WIFI add use LPD or SOCKET protocol, for example:"
   elog "      lpd://<host_or_ip>/BINARY_P1"
   elog "            - or -"
   elog "      socket://<host_or_ip>:9100"
}

# TODO: Write alternative to filterdcpj315w or patch it for the security manner.


net-print/brother-mfc-j430w-drivers/brother-mfc-j430w-drivers-3.0.0.1.ebuild

Code:

EAPI=4

inherit rpm multilib

DESCRIPTION="Brother DCP-J315W LPR+cupswrapper drivers"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-J430W"
PV=${PV%.*}-${PV##*.}
SRC_URI="http://pub.brother.com/pub/com/bsc/linux/dlf/mfcj430wlpr-${PV}.i386.rpm
      http://pub.brother.com/pub/com/bsc/linux/dlf/mfcj430wcupswrapper-${PV}.i386.rpm"

LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
RESTRICT="strip"

DEPEND="net-print/cups
      app-text/a2ps"
RDEPEND="${DEPEND}"

S="${WORKDIR}" # Portage will bitch about missing $S so lets pretend that we have vaild $S.

src_unpack() {
   rpm_unpack ${A}
}

src_install() {
   has_multilib_profile && ABI=x86

   dosbin "${WORKDIR}/usr/bin/brprintconf_mfcj430w"

   cp -r opt "${D}" || die

   mkdir -p ${D}/usr/libexec/cups/filter || die
   ( cd ${D}/usr/libexec/cups/filter/ && ln -s ../../../../opt/brother/Printers/mfcj430w/lpd/filtermfcj430w brlpdwrappermfcj430w ) || die
   mkdir -p ${D}/usr/share/cups/model || die
   ( cd ${D}/usr/share/cups/model && ln -s ../../../../opt/brother/Printers/mfcj430w/cupswrapper/brother_mfcj430w_printer_en.ppd ) || die
}

pkg_postinst () {
   ewarn "You really wanna read this."
   elog "You need to use brprintconf_mfcj430w to change printer options"
   elog "For example, you should set paper type to A4 right after instalation"
   elog "or your prints will be misaligned!"
   elog
   elog "Set A4 Paper type:"
   elog "      brprintconf_mfcj430w -pt A4"
   elog "Set 'Fast Normal' quality:"
   elog "      brprintconf_mfcj430w -reso 300x300dpi"
   elog
   elog "For more options just execute brprintconf_mfcj430w as root"
   elog "You can check current settings in:"
   elog "      /usr/local/Brother/Printer/mfcj430w/inf/brmfcj430wrc"
   elog
   elog "To add printer over WIFI add use LPD or SOCKET protocol, for example:"
   elog "      lpd://<host_or_ip>/BINARY_P1"
   elog "            - or -"
   elog "      socket://<host_or_ip>:9100"
}

# TODO: Write alternative to filterdcpj315w or patch it for the security manner.


After that, configure your printers from the web interface. Network printing should just work as well. If it doesn't, please, check this thread, and search for "infinality" to see one possible cause for your problem.

Scanner driver ebuilds

Now, in which regards the scanner, I am using these two ebuilds, they do support a number of scanners, but each version supports a different range, so what I suggest if you are in doubt is that you install both, then use these commands to find which one is the right one for you, and emerge -C the other:

Code:
$ grep -R -i <str> /opt/brother/scanner/brscan4/models4
# or
grep -R -i <str> /opt/brother/scanner/brscan3/models3


Where <str> is a substring that will hopefully match your model, for example "315W".

As for the credits, sorry but I don't remember where did I pick brscan3 for. The brscan4 one is based on the former and I did it yesterday.

media-gfx/brscan3/brscan3-0.2.11.4.ebuild

Code:
EAPI=4

inherit versionator rpm

DESCRIPTION="Scanner driver"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_scn.html#brscan3"
MY_PV="$(replace_version_separator 3 -)"
SRC_URI="
   amd64? ( http://www.brother.com/pub/bsc/linux/dlf/$PN-${MY_PV}.x86_64.rpm )
   x86? ( http://www.brother.com/pub/bsc/linux/dlf/$PN-${MY_PV}.i386.rpm )
"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="media-gfx/sane-backends[usb]"
RDEPEND="${DEPEND}"

S="${WORKDIR}"

src_unpack() {
   rpm_unpack "${A}" || die
}

src_install() {
   cp -r usr "${D}" || die

   # Preserve config, brsaneconfig3 will create the file for us.
   rm "${D}/usr/local/Brother/sane/brsanenetdevice3.cfg"
}

pkg_postinst() {
   "${ROOT}/usr/local/Brother/sane/setupSaneScan3" -i
   echo
   einfo "In order to use scanner you need to add it first with setupSaneScan3."
   einfo "Example with DCP-j315w over network:"
   einfo "   /usr/local/Brother/sane/brsaneconfig3 -a name=Scanner_Home_DCP-j315w model=DCP-J315W ip=192.168.0.24"
   einfo "   chmod 644 /usr/local/Brother/sane/brsanenetdevice3.cfg"

}

pkg_prerm() {
   "${ROOT}/usr/local/Brother/sane/setupSaneScan3" -e
}


media-gfx/brscan4/brscan4-0.4.2.1.ebuild

Code:
EAPI=4

inherit versionator rpm

DESCRIPTION="Scanner driver"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_scn.html#brscan3"
#MY_PV="$(replace_version_separator 3 4-)"
SRC_URI="
   x86? ( http://download.brother.com/welcome/dlf006647/brscan4-0.4.2-1.i386.rpm )
   amd64? ( http://download.brother.com/welcome/dlf006648/brscan4-0.4.2-1.x86_64.rpm )
"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="media-gfx/sane-backends[usb]"
RDEPEND="${DEPEND}"

S="${WORKDIR}"

src_unpack() {
   rpm_unpack "${A}" || die
}

src_install() {
   cp -r opt "${D}" || die
   cp -r etc "${D}" || die
   cp -r usr "${D}" || die

   # Preserve config, brsaneconfig4 will create the file for us.
   rm "${D}/opt/brother/scanner/brscan4/brsanenetdevice4.cfg"
   mkdir -p "${D}/usr/bin"
   ln -s ../../opt/brother/scanner/brscan4/brsaneconfig4 brsaneconfig4
}

pkg_postinst() {
   "${ROOT}/opt/brother/scanner/brscan4/setupSaneScan4" -i
   echo
   einfo "In order to use scanner you need to add it first with setupSaneScan4."
   einfo "Example with MFC-j430w over network:"
   einfo "   /opt/brother/scanner/brscan4/brsaneconfig4 -a name=Scanner_Home_MFC-j430w model=MFC-J430W ip=192.168.0.24"
   einfo "   chmod 644 /opt/brother/scanner/brscan4/brsanenetdevice4.cfg"

}

pkg_prerm() {
   "${ROOT}/opt/brother/scanner/brscan4/setupSaneScan4" -e
}


Just like for printing, network scanning should just work as well. I have only tested xsane though.

As for the FAX, well, I have no use for that, so, if you were looking for instructions on that I beg you pardon but I am not your man :(

I hope someone finds this useful some day. I also hope I can find this myself the next time I need it :lol:

EDITED: Link to a tarball containing all these ebuilds.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Tue Aug 19, 2014 7:08 am    Post subject: Reply with quote

Hi.

On a newer installation, scanning broke. This has bothered me for months now, so I will post here the solution in case it's useful for anyone else, and for future reference as well. After looking around in the net I found lots of posts about breakage with these scanning drivers, but none of them applied to my concrete case (lib64 breakage, setup, etc.). In my case, the problem was produced by an unexpected ABI breakage, or better worded: the lack of a concrete (and obsolete) version of a given library, namely, libusb-0.1. In this output snippet you can see what gave me the definitive hint on what was going on:

Code:
# for file in /usr/lib/sane/*brother*; do ls -l $file && ldd $file; done
lrwxrwxrwx 1 root root 37 ago 18 20:19 /usr/lib/sane/libsane-brother4.so -> /usr/lib64/sane/libsane-brother4.so.1
        linux-vdso.so.1 (0x00007fffadb78000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc07d6de000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fc07d4c6000)
        libusb-0.1.so.4 => not found
        libm.so.6 => /lib64/libm.so.6 (0x00007fc07d1c4000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fc07cfc0000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fc07cc18000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc07da4f000)
lrwxrwxrwx 1 root root 41 ago 18 20:19 /usr/lib/sane/libsane-brother4.so.1 -> /usr/lib64/sane/libsane-brother4.so.1.0.7
        linux-vdso.so.1 (0x00007fff17911000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe7f6fb6000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fe7f6d9e000)
        libusb-0.1.so.4 => not found
        libm.so.6 => /lib64/libm.so.6 (0x00007fe7f6a9c000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fe7f6898000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fe7f64f0000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fe7f7327000)
-rwxr-xr-x 1 root root 155K ago 18 20:19 /usr/lib/sane/libsane-brother4.so.1.0.7
        linux-vdso.so.1 (0x00007fffff3fd000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f03142f5000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f03140dd000)
        libusb-0.1.so.4 => not found
        libm.so.6 => /lib64/libm.so.6 (0x00007f0313ddb000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f0313bd7000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f031382f000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f0314666000)


See the libusb not found part. It turns out that these silly drivers need libusb-0.1, which is ancient and deprecated. Fortunately, Gentoo still offers a package for that. It's called libusb-compat. After emerging it, all the sane tools could find my scanner again, via Wi-Fi.
Back to top
View user's profile Send private message
ashindeed
n00b
n00b


Joined: 17 Nov 2014
Posts: 7
Location: Indianapolis

PostPosted: Sat Nov 22, 2014 6:54 am    Post subject: Re: [ebuild] Brother MFC-J430W and DCP-J315W Reply with quote

i92guboj wrote:
Hi.

I've been having problems with my brother printers lately, so, while I was fixing the issues I also took the chance to update the drivers and do some cleaning. The ebuild for the 315 was taken from the foo overlay, however I had to do some fixing and cleaning, so I paste it below.

The ebuild for the 430 is an adaptation of the same ebuild. Please, understand that those ebuilds are just a quick hack, that's why I am not posting them to bgo, but they get the job done and might be useful to someone. So I post them here.


Printer driver ebuilds

net-print/brother-dcp-j315w-drivers/brother-dcp-j315w-drivers-1.1.3.1.ebuild

Code:
EAPI=4

inherit rpm multilib

DESCRIPTION="Brother DCP-J315W LPR+cupswrapper drivers"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#DCP-J315W"
PV=${PV%.*}-${PV##*.}
SRC_URI="http://pub.brother.com/pub/com/bsc/linux/dlf/dcpj315wlpr-${PV}.i386.rpm
      http://pub.brother.com/pub/com/bsc/linux/dlf/dcpj315wcupswrapper-${PV}.i386.rpm"

LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
RESTRICT="strip"

DEPEND="net-print/cups
      app-text/a2ps"
RDEPEND="${DEPEND}"

S="${WORKDIR}" # Portage will bitch about missing $S so lets pretend that we have vaild $S.

src_unpack() {
   rpm_unpack ${A}
}

src_install() {
   has_multilib_profile && ABI=x86

   dosbin "${WORKDIR}/usr/bin/brprintconf_dcpj315w"

   cp -r usr "${D}" || die
   cp -r opt "${D}" || die

   mkdir -p ${D}/usr/libexec/cups/filter || die
   ( cd ${D}/usr/libexec/cups/filter/ && ln -s ../../../../opt/brother/Printers/dcpj315w/lpd/filterdcpj315w brlpdwrapperdcpj315w ) || die
   mkdir -p ${D}/usr/share/cups/model || die
   ( cd ${D}/usr/share/cups/model && ln -s ../../../../opt/brother/Printers/dcpj315w/cupswrapper/brother_dcpj315w_printer_en.ppd ) || die
}

pkg_postinst () {
   ewarn "You really wanna read this."
   elog "You need to use brprintconf_dcpj315w to change printer options"
   elog "For example, you should set paper type to A4 right after instalation"
   elog "or your prints will be misaligned!"
   elog
   elog "Set A4 Paper type:"
   elog "      brprintconf_dcpj315w -pt A4"
   elog "Set 'Fast Normal' quality:"
   elog "      brprintconf_dcpj315w -reso 300x300dpi"
   elog
   elog "For more options just execute brprintconf_dcpj315w as root"
   elog "You can check current settings in:"
   elog "      /usr/local/Brother/Printer/dcpj315w/inf/brdcpj315wrc"
   elog
   elog "To add printer over WIFI add use LPD or SOCKET protocol, for example:"
   elog "      lpd://<host_or_ip>/BINARY_P1"
   elog "            - or -"
   elog "      socket://<host_or_ip>:9100"
}

# TODO: Write alternative to filterdcpj315w or patch it for the security manner.


net-print/brother-mfc-j430w-drivers/brother-mfc-j430w-drivers-3.0.0.1.ebuild

Code:

EAPI=4

inherit rpm multilib

DESCRIPTION="Brother DCP-J315W LPR+cupswrapper drivers"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-J430W"
PV=${PV%.*}-${PV##*.}
SRC_URI="http://pub.brother.com/pub/com/bsc/linux/dlf/mfcj430wlpr-${PV}.i386.rpm
      http://pub.brother.com/pub/com/bsc/linux/dlf/mfcj430wcupswrapper-${PV}.i386.rpm"

LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
RESTRICT="strip"

DEPEND="net-print/cups
      app-text/a2ps"
RDEPEND="${DEPEND}"

S="${WORKDIR}" # Portage will bitch about missing $S so lets pretend that we have vaild $S.

src_unpack() {
   rpm_unpack ${A}
}

src_install() {
   has_multilib_profile && ABI=x86

   dosbin "${WORKDIR}/usr/bin/brprintconf_mfcj430w"

   cp -r opt "${D}" || die

   mkdir -p ${D}/usr/libexec/cups/filter || die
   ( cd ${D}/usr/libexec/cups/filter/ && ln -s ../../../../opt/brother/Printers/mfcj430w/lpd/filtermfcj430w brlpdwrappermfcj430w ) || die
   mkdir -p ${D}/usr/share/cups/model || die
   ( cd ${D}/usr/share/cups/model && ln -s ../../../../opt/brother/Printers/mfcj430w/cupswrapper/brother_mfcj430w_printer_en.ppd ) || die
}

pkg_postinst () {
   ewarn "You really wanna read this."
   elog "You need to use brprintconf_mfcj430w to change printer options"
   elog "For example, you should set paper type to A4 right after instalation"
   elog "or your prints will be misaligned!"
   elog
   elog "Set A4 Paper type:"
   elog "      brprintconf_mfcj430w -pt A4"
   elog "Set 'Fast Normal' quality:"
   elog "      brprintconf_mfcj430w -reso 300x300dpi"
   elog
   elog "For more options just execute brprintconf_mfcj430w as root"
   elog "You can check current settings in:"
   elog "      /usr/local/Brother/Printer/mfcj430w/inf/brmfcj430wrc"
   elog
   elog "To add printer over WIFI add use LPD or SOCKET protocol, for example:"
   elog "      lpd://<host_or_ip>/BINARY_P1"
   elog "            - or -"
   elog "      socket://<host_or_ip>:9100"
}

# TODO: Write alternative to filterdcpj315w or patch it for the security manner.


After that, configure your printers from the web interface. Network printing should just work as well. If it doesn't, please, check this thread, and search for "infinality" to see one possible cause for your problem.

Scanner driver ebuilds

Now, in which regards the scanner, I am using these two ebuilds, they do support a number of scanners, but each version supports a different range, so what I suggest if you are in doubt is that you install both, then use these commands to find which one is the right one for you, and emerge -C the other:

Code:
$ grep -R -i <str> /opt/brother/scanner/brscan4/models4
# or
grep -R -i <str> /opt/brother/scanner/brscan3/models3


Where <str> is a substring that will hopefully match your model, for example "315W".

As for the credits, sorry but I don't remember where did I pick brscan3 for. The brscan4 one is based on the former and I did it yesterday.

media-gfx/brscan3/brscan3-0.2.11.4.ebuild

Code:
EAPI=4

inherit versionator rpm

DESCRIPTION="Scanner driver"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_scn.html#brscan3"
MY_PV="$(replace_version_separator 3 -)"
SRC_URI="
   amd64? ( http://www.brother.com/pub/bsc/linux/dlf/$PN-${MY_PV}.x86_64.rpm )
   x86? ( http://www.brother.com/pub/bsc/linux/dlf/$PN-${MY_PV}.i386.rpm )
"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="media-gfx/sane-backends[usb]"
RDEPEND="${DEPEND}"

S="${WORKDIR}"

src_unpack() {
   rpm_unpack "${A}" || die
}

src_install() {
   cp -r usr "${D}" || die

   # Preserve config, brsaneconfig3 will create the file for us.
   rm "${D}/usr/local/Brother/sane/brsanenetdevice3.cfg"
}

pkg_postinst() {
   "${ROOT}/usr/local/Brother/sane/setupSaneScan3" -i
   echo
   einfo "In order to use scanner you need to add it first with setupSaneScan3."
   einfo "Example with DCP-j315w over network:"
   einfo "   /usr/local/Brother/sane/brsaneconfig3 -a name=Scanner_Home_DCP-j315w model=DCP-J315W ip=192.168.0.24"
   einfo "   chmod 644 /usr/local/Brother/sane/brsanenetdevice3.cfg"

}

pkg_prerm() {
   "${ROOT}/usr/local/Brother/sane/setupSaneScan3" -e
}


media-gfx/brscan4/brscan4-0.4.2.1.ebuild

Code:
EAPI=4

inherit versionator rpm

DESCRIPTION="Scanner driver"
HOMEPAGE="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_scn.html#brscan3"
#MY_PV="$(replace_version_separator 3 4-)"
SRC_URI="
   x86? ( http://download.brother.com/welcome/dlf006647/brscan4-0.4.2-1.i386.rpm )
   amd64? ( http://download.brother.com/welcome/dlf006648/brscan4-0.4.2-1.x86_64.rpm )
"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="media-gfx/sane-backends[usb]"
RDEPEND="${DEPEND}"

S="${WORKDIR}"

src_unpack() {
   rpm_unpack "${A}" || die
}

src_install() {
   cp -r opt "${D}" || die
   cp -r etc "${D}" || die
   cp -r usr "${D}" || die

   # Preserve config, brsaneconfig4 will create the file for us.
   rm "${D}/opt/brother/scanner/brscan4/brsanenetdevice4.cfg"
   mkdir -p "${D}/usr/bin"
   ln -s ../../opt/brother/scanner/brscan4/brsaneconfig4 brsaneconfig4
}

pkg_postinst() {
   "${ROOT}/opt/brother/scanner/brscan4/setupSaneScan4" -i
   echo
   einfo "In order to use scanner you need to add it first with setupSaneScan4."
   einfo "Example with MFC-j430w over network:"
   einfo "   /opt/brother/scanner/brscan4/brsaneconfig4 -a name=Scanner_Home_MFC-j430w model=MFC-J430W ip=192.168.0.24"
   einfo "   chmod 644 /opt/brother/scanner/brscan4/brsanenetdevice4.cfg"

}

pkg_prerm() {
   "${ROOT}/opt/brother/scanner/brscan4/setupSaneScan4" -e
}


Just like for printing, network scanning should just work as well. I have only tested xsane though.

As for the FAX, well, I have no use for that, so, if you were looking for instructions on that I beg you pardon but I am not your man :(

I hope someone finds this useful some day. I also hope I can find this myself the next time I need it :lol:

EDITED: Link to a tarball containing all these ebuilds.




Thanks for the ebuild.

Just as a reference to any newcomer to Gentoo, I followed the guide located at http://wiki.gentoo.org/wiki/Overlay/Local_overlay and got my Brother MFC-J430W Printer working. I have not tried the Scanner ebuild yet, will do that later.

Only additional thing I had to do was create a symlink to the proper filter file that CUPS could not find and using the OP's LPD code worked for my wifi setup

Code:
ln s /opt/brother/Printers/mfcj430w/lpd/filtermfcj430w /usr/libexec/cups/filter/brother_lpdwrapper_mfcj430w
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum