From 01450e235127912242bfad4943df6f43b3551d9a Mon Sep 17 00:00:00 2001 From: Richard Hering Date: Thu, 22 Dec 2016 06:27:53 +0100 Subject: [PATCH 1/2] added net-print/brother-dcp9022cdw-bin & net-print/brother-dcp9020cdw-bin --- net-print/brother-dcp9020cdw-bin/Manifest | 2 + .../brother-dcp9020cdw-bin-1.1.2-r1.ebuild | 60 +++++++++++++++++++ net-print/brother-dcp9020cdw-bin/metadata.xml | 8 +++ net-print/brother-dcp9022cdw-bin/Manifest | 2 + .../brother-dcp9022cdw-bin-1.1.3.ebuild | 60 +++++++++++++++++++ net-print/brother-dcp9022cdw-bin/metadata.xml | 8 +++ 6 files changed, 140 insertions(+) create mode 100644 net-print/brother-dcp9020cdw-bin/Manifest create mode 100644 net-print/brother-dcp9020cdw-bin/brother-dcp9020cdw-bin-1.1.2-r1.ebuild create mode 100644 net-print/brother-dcp9020cdw-bin/metadata.xml create mode 100644 net-print/brother-dcp9022cdw-bin/Manifest create mode 100644 net-print/brother-dcp9022cdw-bin/brother-dcp9022cdw-bin-1.1.3.ebuild create mode 100644 net-print/brother-dcp9022cdw-bin/metadata.xml diff --git a/net-print/brother-dcp9020cdw-bin/Manifest b/net-print/brother-dcp9020cdw-bin/Manifest new file mode 100644 index 0000000..2ff74cd --- /dev/null +++ b/net-print/brother-dcp9020cdw-bin/Manifest @@ -0,0 +1,2 @@ +DIST dcp9020cdwcupswrapper-1.1.2-1.i386.rpm 16330 SHA256 bbc25eb251f04500f04821e22a66d28efdb8752aceea58d5423034252179170a SHA512 5413e5a70b29c0d2e393d037454d58b5fa0315e1ad879f7f4c5c7da0992fd7711184ef2f854cbb55d835684855de7af906e0b6d61b1db898c6e9e8b1d8641e3b WHIRLPOOL ccf56e249146f5f391b92c95f698fc4c680cd87c0f1f1588e36d6777209208e82c7c40b9061da4915e0f8ea6bce97f0779b4bab18b655095334c1cf0e4f14497 +DIST dcp9020cdwlpr-1.1.2-1.i386.rpm 699241 SHA256 530f47661be1f967cb05cb892038a10b05bc047061305263b612a1f804883aa4 SHA512 c8e757ecfa84793db5e08f318b4a4e0bc9bb2eec6937d8abbe32bae05a5f04865f945dc506c48e841b2a786466a263b67f55174356984c15cde2361d030e1d95 WHIRLPOOL 268b03fdb1ae97affc3ae243b6423cebe451f02a32c275c129763e1c76d43ef5e68bbd91369f52cd904493d5ad3d7fb3020a14bac090142c6bc2845714db656b diff --git a/net-print/brother-dcp9020cdw-bin/brother-dcp9020cdw-bin-1.1.2-r1.ebuild b/net-print/brother-dcp9020cdw-bin/brother-dcp9020cdw-bin-1.1.2-r1.ebuild new file mode 100644 index 0000000..dc7c979 --- /dev/null +++ b/net-print/brother-dcp9020cdw-bin/brother-dcp9020cdw-bin-1.1.2-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils rpm linux-info + +DESCRIPTION="Brother printer driver for DCP-9020CDW & DCP-9022CDW" + +HOMEPAGE="http://support.brother.com" + +SRC_URI="http://www.brother.com/pub/bsc/linux/dlf/dcp9020cdwlpr-1.1.2-1.i386.rpm +http://www.brother.com/pub/bsc/linux/dlf/dcp9020cdwcupswrapper-1.1.2-1.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_prepare() { + return +} + +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/dcp9020cdw/cupswrapper/cupswrapperdcp9020cdw | sed 's/${printer_model}/dcp9020cdw/g;s/${device_model}/Printers/g;s/${printer_name}/DCP9020CDW/g;s/\\//g' > "${D}usr"/libexec/cups/filter/brother_lpdwrapper_dcp9020cdw || die + chmod 0755 "${D}"usr/libexec/cups/filter/brother_lpdwrapper_dcp9020cdw || die + + ( ln -s "${D}"opt/brother/Printers/dcp9020cdw/cupswrapper/brother_dcp9020cdw_printer_en.ppd "${D}"usr/share/cups/model/Brother/brother_dcp9020cdw_printer_en.ppd ) || die +} + +pkg_postinst() { + einfo "Brother DCP-9020CDW printer installed" +} \ No newline at end of file diff --git a/net-print/brother-dcp9020cdw-bin/metadata.xml b/net-print/brother-dcp9020cdw-bin/metadata.xml new file mode 100644 index 0000000..2a5e68d --- /dev/null +++ b/net-print/brother-dcp9020cdw-bin/metadata.xml @@ -0,0 +1,8 @@ + + + + + der@internethering.de + Richard Hering + + diff --git a/net-print/brother-dcp9022cdw-bin/Manifest b/net-print/brother-dcp9022cdw-bin/Manifest new file mode 100644 index 0000000..bcc5b7a --- /dev/null +++ b/net-print/brother-dcp9022cdw-bin/Manifest @@ -0,0 +1,2 @@ +DIST dcp9022cdwcupswrapper-1.1.4-0.i386.rpm 16471 SHA256 8973fb4dbd42c7446657c8e7f59f4c504037efea338a70dea866a6283451e99d SHA512 ffc100f0117c67bc48f6d6faff56d068e5c00ee6d9eaf959a5f950693cddf6b79a1ff739e217493ce0fa4419a2893ec161657043c9e10dc8cab0a073d1181781 WHIRLPOOL ac3b648e888c836682aa86b4925757e9a151bf9ec3e90d928956d8fb9aa4499f4c13bf6d653306966e2705b11cdadcfdb3fefa88bd99c81d0213728138ba5b12 +DIST dcp9022cdwlpr-1.1.3-0.i386.rpm 700757 SHA256 4d18d7ce922ed3aea520673ab0d7bd28f4f567e80df8f92837e84bce8879dc6e SHA512 1b1f8cb87b62b3d8165c13f95abd0707acb1dc154ea9b88c6d8ca819636c1694ca79fab2f1ff8b41e7d23472e44457ca2233e1ab7a576dffedbfd97712b4f75c WHIRLPOOL 89cebb1e2cfe178665eee1e9cc87f2935f04e96661789ccde22b36d6558c21a3ccf3978c2c662f5e21ddf0eb2ab0e66228f59e83a5c2dce3dca66859b5329759 diff --git a/net-print/brother-dcp9022cdw-bin/brother-dcp9022cdw-bin-1.1.3.ebuild b/net-print/brother-dcp9022cdw-bin/brother-dcp9022cdw-bin-1.1.3.ebuild new file mode 100644 index 0000000..06a1fb3 --- /dev/null +++ b/net-print/brother-dcp9022cdw-bin/brother-dcp9022cdw-bin-1.1.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils rpm linux-info + +DESCRIPTION="Brother printer driver for DCP-9022CDW" + +HOMEPAGE="http://support.brother.com" + +SRC_URI="http://download.brother.com/welcome/dlf101614/dcp9022cdwlpr-1.1.3-0.i386.rpm +http://download.brother.com/welcome/dlf101615/dcp9022cdwcupswrapper-1.1.4-0.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_prepare() { + return +} + +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/dcp9022cdw/cupswrapper/cupswrapperdcp9022cdw | sed 's/${printer_model}/dcp9022cdw/g;s/${device_model}/Printers/g;s/${printer_name}/DCP9022CDW/g;s/\\//g' > "${D}usr"/libexec/cups/filter/brother_lpdwrapper_dcp9022cdw || die + chmod 0755 "${D}"usr/libexec/cups/filter/brother_lpdwrapper_dcp9022cdw || die + + ( ln -s "${D}"opt/brother/Printers/dcp9022cdw/cupswrapper/brother_dcp9022cdw_printer_en.ppd "${D}"usr/share/cups/model/Brother/brother_dcp9022cdw_printer_en.ppd ) || die +} + +pkg_postinst() { + einfo "Brother DCP-9022CDW printer installed" +} diff --git a/net-print/brother-dcp9022cdw-bin/metadata.xml b/net-print/brother-dcp9022cdw-bin/metadata.xml new file mode 100644 index 0000000..2a5e68d --- /dev/null +++ b/net-print/brother-dcp9022cdw-bin/metadata.xml @@ -0,0 +1,8 @@ + + + + + der@internethering.de + Richard Hering + + From 7b16975208a8f1ce78c4d8a0a7b151acb097e535 Mon Sep 17 00:00:00 2001 From: Richard Hering Date: Thu, 22 Dec 2016 07:01:23 +0100 Subject: [PATCH 2/2] fixed license --- .../brother-dcp9020cdw-bin-1.1.2-r1.ebuild | 4 ++-- .../brother-dcp9022cdw-bin-1.1.3.ebuild | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net-print/brother-dcp9020cdw-bin/brother-dcp9020cdw-bin-1.1.2-r1.ebuild b/net-print/brother-dcp9020cdw-bin/brother-dcp9020cdw-bin-1.1.2-r1.ebuild index dc7c979..96e46ab 100644 --- a/net-print/brother-dcp9020cdw-bin/brother-dcp9020cdw-bin-1.1.2-r1.ebuild +++ b/net-print/brother-dcp9020cdw-bin/brother-dcp9020cdw-bin-1.1.2-r1.ebuild @@ -13,7 +13,7 @@ HOMEPAGE="http://support.brother.com" SRC_URI="http://www.brother.com/pub/bsc/linux/dlf/dcp9020cdwlpr-1.1.2-1.i386.rpm http://www.brother.com/pub/bsc/linux/dlf/dcp9020cdwcupswrapper-1.1.2-1.i386.rpm" -LICENSE="BROTHER-EULA GPL-2" +LICENSE="brother-eula GPL-2" SLOT="0" @@ -57,4 +57,4 @@ src_install() { pkg_postinst() { einfo "Brother DCP-9020CDW printer installed" -} \ No newline at end of file +} diff --git a/net-print/brother-dcp9022cdw-bin/brother-dcp9022cdw-bin-1.1.3.ebuild b/net-print/brother-dcp9022cdw-bin/brother-dcp9022cdw-bin-1.1.3.ebuild index 06a1fb3..a302b38 100644 --- a/net-print/brother-dcp9022cdw-bin/brother-dcp9022cdw-bin-1.1.3.ebuild +++ b/net-print/brother-dcp9022cdw-bin/brother-dcp9022cdw-bin-1.1.3.ebuild @@ -13,7 +13,7 @@ HOMEPAGE="http://support.brother.com" SRC_URI="http://download.brother.com/welcome/dlf101614/dcp9022cdwlpr-1.1.3-0.i386.rpm http://download.brother.com/welcome/dlf101615/dcp9022cdwcupswrapper-1.1.4-0.i386.rpm" -LICENSE="BROTHER-EULA GPL-2" +LICENSE="brother-eula GPL-2" SLOT="0"