Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added net-print/brother-dcp9022cdw-bin & net-print/brother-dcp9020cdw… #32

Merged
merged 2 commits into from
Dec 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions net-print/brother-dcp9020cdw-bin/Manifest
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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"
}
8 changes: 8 additions & 0 deletions net-print/brother-dcp9020cdw-bin/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>der@internethering.de</email>
<name>Richard Hering</name>
</maintainer>
</pkgmetadata>
2 changes: 2 additions & 0 deletions net-print/brother-dcp9022cdw-bin/Manifest
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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"
}
8 changes: 8 additions & 0 deletions net-print/brother-dcp9022cdw-bin/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>der@internethering.de</email>
<name>Richard Hering</name>
</maintainer>
</pkgmetadata>