diff --git a/net-print/brother-dcp9010cn-bin/Manifest b/net-print/brother-dcp9010cn-bin/Manifest new file mode 100644 index 0000000..10b308e --- /dev/null +++ b/net-print/brother-dcp9010cn-bin/Manifest @@ -0,0 +1,2 @@ +DIST dcp9010cncupswrapper-1.1.2-2.i386.rpm 14709 BLAKE2B 17660d4e7031f8b5af7b1a6e22ae7a3ebbe388f9b6293330832a447ec1ef8d41bda3d2c87aa13fcd51ef711d0baab8c8eb7109f8203a3ff230639c79778cf147 SHA512 3ebc8d2139f01d111952270ac425df3f3e6cef7bad8e69557c204dba73375dff2e3673927b37ce503eb497ca2c46e166ffcacd3089e46ddff6a691c92f17aff3 +DIST dcp9010cnlpr-1.1.2-1.i386.rpm 611438 BLAKE2B 1cca3b33ca89b2ba65e335374b076a2c4cfebc261c80f9eb17eba630789c3f5ea065382f51242a91fced28df578702fcb67f81eb0df65496e1bc94c7d744d8ab SHA512 00c5130a62676bcd659beecebc877cf442c5253098ca8a3a8215eb6a957fd3b65ddf317e8be41608d8b00a83f38eb12a3cdf1520d461c56d2ff7b04e686355a7 diff --git a/net-print/brother-dcp9010cn-bin/brother-dcp9010cn-bin-1.1.2-r2.ebuild b/net-print/brother-dcp9010cn-bin/brother-dcp9010cn-bin-1.1.2-r2.ebuild new file mode 100644 index 0000000..4c1e066 --- /dev/null +++ b/net-print/brother-dcp9010cn-bin/brother-dcp9010cn-bin-1.1.2-r2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit rpm linux-info + +DESCRIPTION="Brother printer driver for DCP-9010CN" + +HOMEPAGE="http://support.brother.com" + +SRC_URI="http://www.brother.com/pub/bsc/linux/dlf/dcp9010cnlpr-1.1.2-1.i386.rpm +http://www.brother.com/pub/bsc/linux/dlf/dcp9010cncupswrapper-1.1.2-2.i386.rpm" + +LICENSE="brother-eula GPL-2" + +SLOT="0" + +KEYWORDS="amd64 x86" + +RESTRICT="mirror strip" + +DEPEND="net-print/cups" +RDEPEND="${DEPEND}" + +S=${WORKDIR} + +pkg_setup() { + CONFIG_CHECK="" + if use amd64; then + CONFIG_CHECK="${CONFIG_CHECK} ~IA32_EMULATION" + fi + + linux-info_pkg_setup +} + +src_unpack() { + rpm_unpack ${A} +} + +src_install() { + mkdir -p "${D}"/usr/libexec/cups/filter || die + mkdir -p "${D}"/usr/share/cups/model/Brother || die + cp -r opt "${D}" || die + cp -r usr "${D}" || die + + sed -n 110,260p "${D}"/opt/brother/Printers/dcp9010cn/cupswrapper/cupswrapperdcp9010cn | sed 's/${printer_model}/dcp9010cn/g;s/${device_model}/Printers/g;s/${printer_name}/DCP9010CN/g;s/\\//g' > "${D}"/usr/libexec/cups/filter/brlpdwrapperdcp9010cn || die + chmod 0755 "${D}"/usr/libexec/cups/filter/brlpdwrapperdcp9010cn || die + + ( ln -s "${D}"/opt/brother/Printers/dcp9010cn/cupswrapper/brother_dcp9010cn_printer_en.ppd "${D}"/usr/share/cups/model/Brother/brother_dcp9010cn_printer_en.ppd ) || die +} + +pkg_postinst() { + einfo "Brother DCP-9010CN printer installed" +} diff --git a/net-print/brother-dcp9010cn-bin/metadata.xml b/net-print/brother-dcp9010cn-bin/metadata.xml new file mode 100644 index 0000000..2adb916 --- /dev/null +++ b/net-print/brother-dcp9010cn-bin/metadata.xml @@ -0,0 +1,8 @@ + + + + + m.haubenwallner@mailbox.org + Michael Haubenwallner + +