Elisa 1 year ago
parent
commit
5d8d706db6

+ 3 - 0
net-print/brother-hl3040cn-bin/Manifest View File

@@ -0,0 +1,3 @@
1
+DIST hl3040cncupswrapper-1.1.2-2.i386.rpm 14693 SHA256 14ed144a277b5a38e8b5faefcdc4e3691240cf6e7033afe3e15bcca0b4cb24db SHA512 53d966bcfb25c14bc138fd608ca7fcf5b21b79cb86e830bef9c66da77a83d38683f5e135a384b2cf82352f04d6e81a067db6e55da646e559a4a4249f6ca77bdc WHIRLPOOL a34876419ea35814db105db65bec18d20a03a82e7ffde29dc10114b53cfa40f3c52776bca9fc5616cf2ad8218ec17dc3cbf95e5516335a340e17825f8ecdeb4c
2
+DIST hl3040cnlpr-1.1.2-1.i386.rpm 611350 SHA256 4c02bef7b26e26a2183f65c4db1b5229055bd25db7996892d0ba3aff5f5fb72f SHA512 531b0312301a459f4bf6ad5c6b874c6d30b3cd291395ded6e6f2613a1999d98d05c75149352c4d2be238918a4c23bfac22a2de81ce889f027436fb8dd51e3f43 WHIRLPOOL ccf06326afed825b4a4f327f545c11f799c4a0665c35577288f6bc3aa1925ea08ab6ca152e35a389e12ef606e00d33a34cc2aaacd2de8e93b7b9d197f4c50da9
3
+EBUILD brother-hl3040cn-bin-1.1.2.ebuild 1582 SHA256 4ae298488f53eb86776b610165f327b800bdb56a0f4459f047597f46719b3d26 SHA512 867573f0f9628fec46d7f383331aead918743f21ab60e0bc39e6c8f6a0ce32451efce0c5173406dd0615022ad35d2d894ee6b66add4ab5488cc72c853e6a1505 WHIRLPOOL 1cf4d488cc73f01b785fb64ee60a631f4efcf8dec309e758db1de9065b8e042f74e9f66149f571951393c88614d77c12e913db43bf6230bf650876dbfe70dd61

+ 68 - 0
net-print/brother-hl3040cn-bin/brother-hl3040cn-bin-1.1.2.ebuild View File

@@ -0,0 +1,68 @@
1
+# Copyright 1999-2016 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Id$
4
+
5
+EAPI=5
6
+
7
+inherit eutils rpm linux-info multilib
8
+
9
+DESCRIPTION="Brother printer driver for HL-3040CN"
10
+
11
+HOMEPAGE="http://support.brother.com"
12
+
13
+SRC_URI="http://www.brother.com/pub/bsc/linux/dlf/hl3040cnlpr-${PV}-1.i386.rpm
14
+	http://www.brother.com/pub/bsc/linux/dlf/hl3040cncupswrapper-${PV}-2.i386.rpm"
15
+
16
+LICENSE="brother-eula GPL-2"
17
+
18
+SLOT="0"
19
+
20
+KEYWORDS="amd64 x86"
21
+
22
+IUSE=""
23
+
24
+RESTRICT="mirror strip"
25
+
26
+DEPEND="net-print/cups"
27
+RDEPEND="${DEPEND}"
28
+
29
+S=${WORKDIR}
30
+
31
+pkg_setup() {
32
+    CONFIG_CHECK=""
33
+    if use amd64; then
34
+	CONFIG_CHECK="${CONFIG_CHECK} ~IA32_EMULATION"
35
+	if ! has_multilib_profile; then
36
+	    die "This package CANNOT be installed on pure 64-bit system. You need multilib enabled."
37
+	fi
38
+    fi
39
+
40
+    linux-info_pkg_setup
41
+}
42
+
43
+src_unpack() {
44
+	rpm_unpack ${A}
45
+}
46
+
47
+src_install() {
48
+	has_multilib_profile && ABI=x86
49
+
50
+	dobin "${WORKDIR}/usr/bin/brprintconf_hl3040cn"
51
+
52
+	cp -r usr "${D}" || die
53
+	cp -r opt "${D}" || die
54
+
55
+	mkdir -p "${D}/usr/libexec/cups/filter" || die
56
+	cp -a opt/brother/Printers/hl3040cn/lpd/filterhl3040cn "${D}/usr/libexec/cups/filter/brlpdwrapperhl3040cn" || die
57
+
58
+	mkdir -p "${D}/usr/share/cups/model" || die
59
+	cp -a opt/brother/Printers/hl3040cn/cupswrapper/brother_hl3040cn_printer_en.ppd "${D}/usr/share/cups/model/"  || die
60
+}
61
+
62
+pkg_postinst() {
63
+    chmod 755 /opt/brother/Printers/hl3040cn/lpd
64
+    chmod 755 /opt/brother/Printers/hl3040cn/inf
65
+    chmod 755 /opt/brother/Printers/hl3040cn
66
+    chmod 755 /opt/brother/Printers
67
+    chmod 755 /opt/brother
68
+}