diff options
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | LICENSE.html | 248 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | brscan3.install | 44 | ||||
-rw-r--r-- | brscan3.rules | 45 |
6 files changed, 407 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e6846655ff0b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = brscan3 + pkgdesc = Brother SANE drivers for brscan3-compatible models + pkgver = 0.2.13_1 + pkgrel = 3 + url = http://support.brother.com/g/s/id/linux/en + install = brscan3.install + arch = i686 + arch = x86_64 + license = GPL + license = custom:Brother + depends = sane + depends = libusb-compat + source = brscan3.rules + source = LICENSE.html + sha256sums = 2e73148e0b89e0753d3cbfe99837efd3ebf06d9d9e3b030b4a241fa8fb5b662b + sha256sums = 3434bca1936d6a5fd6afd810cde7e1876dd4d1496722b09af180278480f464f2 + source_i686 = http://download.brother.com/welcome/dlf006643/brscan3-0.2.13-1.i386.rpm + sha256sums_i686 = 5586fe264c7bd715e598b5d444f2851464ffe72857f2f48486466e7e2957f792 + source_x86_64 = http://download.brother.com/welcome/dlf006644/brscan3-0.2.13-1.x86_64.rpm + sha256sums_x86_64 = b462dbded2d0f7ae511057bd3cb6f8379042b75d996eef2675998a4559cc5556 + +pkgname = brscan3 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b7776801f7aa --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.tar.gz +*.tar.xz +*.rpm +*.sw[op] +/src/ +/pkg/ diff --git a/LICENSE.html b/LICENSE.html new file mode 100644 index 000000000000..577f6b82035f --- /dev/null +++ b/LICENSE.html @@ -0,0 +1,248 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" +"http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> +<title>End-User License Agreement for Brother Software</title> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> +<link rel="stylesheet" href="/library/websites/www.com/globalheader/css/template_agreement.css" type="text/css" media="all"> +<script type="text/javascript" src="/library/websites/www.com/globalheader/js/template.js" language="JavaScript"></script> + +<style type="text/css"> +<!-- +body { font-size: 100%} +.main { font-size: 100%} +.sm { font-size: 90%} +--> +</style> +</head> + +<body> + +<!-- begin #header --> +<table border="0" cellpadding="0" cellspacing="0" id="header" summary="Global header"> +<tr> +<td><img height="1" width="16" alt="" src="/library/websites/www.com/jp/globalheader/images/spacer.gif"></td> +<td> + +<table border="0" cellpadding="0" cellspacing="0" summary=""> +<tr> +<td id="brotherLogo"> +<a href="/index.htm" target="_top"><img height="40" width="106" alt="brother at your side" src="/library/websites/www.com/globalheader/images/head_brotherlogo.gif"></a> +</td> +<td><img height="1" width="200" alt="" src="/library/websites/www.com/globalheader/images/spacer.gif"></td> +<td id="formArea"> +<!-- SelectCountry --> +<div id="country"> +<form name="form1" id="form1"> +<select name="select_country" class="countryTxt"> +<option value="http://www.brother.com/index.htm" selected>Global Site</option> +<option></option> +<optgroup label="North/ South/ Central America"> +<option value="http://www.brother.com.ar/">Argentina - Español</option> +<option value="http://www.brother.com.br/">Brasil - Português</option> +<option value="http://www.brother.ca/en/index.asp">Canada - English</option> +<option value="http://www.brother.ca/fr/index.asp">Canada - Français</option> +<option value="http://www.brother-usa.com/caribbean/">Caribbean Countries - English</option> +<option value="http://www.brother.cl/">Chile - Español</option> +<option value="http://www.brother-usa.com/latinamerica/">Latin America - Español</option> +<option value="http://www.brother.com.mx/">México - Español</option> +<option value="http://www.brother-usa.com/">U.S.A. - English</option> +<option></option> +</optgroup> +<optgroup label="Europe"> +<option value="http://www.brother.eu/">Brother Europe</option> +<option value="http://www.brother.at/?lang=en">Austria - English</option> +<option value="http://www.brother.at/?lang=de">Österreich - Deutsch</option> +<option value="http://www.brother.be/?&lang=fr">Belgique - Français</option> +<option value="http://www.brother.be/?&lang=nl">Belgique - Nederlands</option> +<option value="http://www.brother.bg/">БЪлгария - БЪлгаски</option> +<option value="http://www.brother.cz/">Česká republika - česky</option> +<option value="http://www.brother.dk/">Danmark - Dansk</option> +<option value="http://www.brother.de/">Deutschland - Deutsch</option> +<option value="http://www.brother.es/">España - Español</option> +<option value="http://www.brother.fi/">Finland -Suomi</option> +<option value="http://www.brother.fr/">France - Français</option> +<option value="http://www.brother.ie/">Ireland - English</option> +<option value="http://www.brother.it/">Italia - Italiano</option> +<option value="http://www.brother.hu/">Magyarország - Magyar</option> +<option value="http://www.brother.nl/">Nederland - Nederlands</option> +<option value="http://www.brother.no/">Norge - Norsk</option> +<option value="http://www.brother.pl/">Polska - Polski</option> +<option value="http://www.brother.pt/">Portugal - Português</option> +<option value="http://www.brother.ru/">Россия - Pусский</option> +<option value="http://www.brother.com.ro/">România - Românã</option> +<option value="http://www.brother.ch/?&lang=de">Schweiz - Deutsch</option> +<option value="http://www.brother.ch/?&lang=fr">Suisse - Français</option> +<option value="http://www.brother.co.za/">South Africa - English</option> +<option value="http://www.brother.se/">Sverige - Svenska</option> +<option value="http://www.brother.com.tr/">Türkiye - Türkçe</option> +<option value="http://www.brother.co.uk/cms.cfm/lang/en">United Kingdom</option> +<option value="http://www.brother-ism.com/">--Industrial Sewing Machines</option> +<option value="http://www.brother.com/europe/machine/index.htm">--Machine Tools</option> +<option></option> +</optgroup> +<optgroup label="Middle East/ Africa"> +<option value="http://www.brother.ae/">Bahrain - English</option> +<option value="http://www.brother.ae/">Egypt - English</option> +<option value="http://www.brother.ae/">Ethiopia - English</option> +<option value="http://www.brother.ae/">Iran - English</option> +<option value="http://www.brother.ae/">Iraq - English</option> +<option value="http://www.brother.ae/">Jordan - English</option> +<option value="http://www.brother.ae/">Kenya - English</option> +<option value="http://www.brother.ae/">Kuwait - English</option> +<option value="http://www.brother.ae/">Lebanon - English</option> +<option value="http://www.brother.ae/">Libya - English</option> +<option value="http://www.brother.ae/">Mauritius - English</option> +<option value="http://www.brother.ae/">Nigeria - English</option> +<option value="http://www.brother.ae/">Oman - English</option> +<option value="http://www.brother.ae/">Qatar - English</option> +<option value="http://www.brother.ae/">Saudi Arabia - English</option> +<option value="http://www.brother.co.za/">South Africa - English</option> +<option value="http://www.brother.ae/">Syria - English</option> +<option value="http://www.brother.ae/">Tanzania - English</option> +<option value="http://www.brother.com.tr/">Türkiye - Türkçe</option> +<option value="http://www.brother.ae/">Uganda - English</option> +<option value="http://www.brother.ae/">United Arab Emirates - English</option> +<option value="http://www.brother.ae/">Yemen - English</option> +<option value="http://www.brother.com/europe/machine/index.htm">--Machine Tools</option> +<option value="http://www.brother.com/as_oc/contact/mea/index.htm">--Contact List</option> +<option></option> +</optgroup> +<optgroup label="Asia/ Oceania"> +<option value="http://www.brother.com.au/">Australia - English</option> +<option value="http://www.brother.ae/">Bangladesh - English</option> +<option value="http://www.brother.com.sg/"> > Industrial Sewing Machines</option> +-<option value="http://www.brother-cn.net/">China - Chinese</option> +<option value="http://www.brother.com.hk/en/home.html">> Hong Kong - English</option> +<option value="http://www.brother.com.hk/tc/home.html">> Hong Kong - Chinese</option> +<option value="http://www.brother.in/">India - English</option> +<option value="http://www.brother.com.sg/">Indonesia - English</option> +<option value="http://www.brother.co.jp/">Japan - Japanese</option> +<option value="http://www.brother.com.my/">Malaysia - English</option> +<option value="http://www.brother.ae/">Nepal - English</option> +<option value="http://www.brother.com.sg/"> > Industrial Sewing Machines</option> +<option value="http://www.brother.co.nz/">New Zealand - English</option> +<option value="http://www.brother.ae/">Pakistan - English</option> +<option value="http://www.brother.com.sg/"> > Industrial Sewing Machines</option> +<option value="http://www.brother.com.ph/">Philippines - English</option> +<option value="http://www.brother.com.hk/en/product/product_list.html?category=19"> > Industrial Sewing Machines</option> +<option value="http://www.brother.com.sg/">Singapore - English</option> +-<option value="http://www.brother.co.th/">Thailand - Thai</option> +<option value="http://www.brother.com.sg/"> > Industrial Sewing Machines</option> +<option value="http://www.brother.com.sg/">Vietnam - English</option> +<option value="http://www.brother.com.hk/en/product/product_list.html?category=19"> > Industrial Sewing Machines</option> +<option value="http://www.brother.com/as_oc/machine/index.htm">--Machine Tools</option> +<option value="http://www.brother.com/as_oc/contact/asiapacific/index.htm">--Contact List</option> +</optgroup> +</select><a href="javascript:;"><img height="19" onClick="jumpCountry(form1.select_country);return false;" width="21" alt="Go" src="/library/websites/www.com/globalheader/images/head_btn.gif"></a> +</form> +</div> +<!-- SelectCountry --> + + +<!-- SiteSearch --> +<div id="search"> +<form name="gs" method="GET" action="http://search2.brother.co.jp/search?"> +<input name="q" type="text" value="Search" onfocus="if(this.value == this.defaultValue) this.value=''" onblur="if(this.value == '') this.value=this.defaultValue" class="searchTxt"><input type="image" value="" alt="Go" src="/library/websites/www.com/globalheader/images/head_btn.gif"> +<input type="hidden" name="sort" value="date:D:L:d1"> +<input type="hidden" name="output" value="xml_no_dtd"> +<input type="hidden" name="oe" value="UTF-8"><input type="hidden" name="ie" value="UTF-8"> +<input type="hidden" name="client" value="fe_www_com"> +<input type="hidden" name="proxystylesheet" value="fe_www_com"> +<input type="hidden" name="site" value="col_www_com_cominf_sol"> + </div> + </form> +</div> +<!-- SiteSearch --> +</td> +</tr> +</table> + +</td> +<td><img height="1" width="17" alt="" src="/library/websites/www.com/globalheader/images/spacer.gif"></td> +</tr> + + +</table> +<!-- end #header --> + +<div style="line-height:1px;"> </div> + +<table border="0" cellspacing="0" cellpadding="2" width="600"> +<tr> +<td bgcolor="#333333"><b><span style="color:#FFFFFF;">License Agreement</span></b></td> +</tr> +<tr> +<td><p>This Agreement provides terms and conditions for license grant for use + of the software that is distributed with this Agreement ("Software") + from Brother Industries, Ltd. ("Brother") to recipients thereof + ("You").</p> + <table width="100%" height="60" border="1" bordercolor="#000099"> + <tr> + <td bordercolor="#000099"><strong>Note:</strong><br> + Please click on "I Accept" while holding down "Shift" or + right click on "I Accept" and select "Save Target As,,," from + the menu.</td> + </tr> + </table> + <ol> + <li>The Software is comprised of the following software modules:<br> + <br> + (1) Certain software modules that is the subject of GNU GENERAL PUBLIC + LICENSE ("GPL Modules"), and + <br> + (2) Other software modules ("Non-GPL Modules") + <br> + <br> + You may distinguish each of GPL Modules by downloading source files + of the Software as Brother separately makes available and reading such + files.<br> + </li> + <li>Your use of all GPL Modules shall be subject to the terms and conditions + of GNU GENERAL PUBLIC LICENSE Version 2, June 1991 ("GPLv2"). + Please see <a href="http://www.brother.com/agreement/English_gpl/agree.html" target="_blank">http://www.brother.com/agreement/English_gpl/agree.html</a>. You + shall use GPL Modules in accordance with the terms and conditions of GPLv2. + Your use of GPL Modules shall be deemed + as your agreement to the terms and conditions of GPLv2.<br> + </li> + <li>You have the right to use all Non-GPL Modules only in accordance with + the following terms and conditions. Your use of Non-GPL Modules shall be + deemed as your agreement to the following terms and conditions: + <p>(1) Brother retains any and all copyrights to Non-GPL Modules. In no + case this Agreement shall be construed to assign or otherwise transfer + from Brother to you any copyrights or other intellectual property rights + to whole or any part of Non-GPL Modules.</p> + <p>(2) Brother grants you a non-exclusive license to reproduce and/or distribute + (via Internet or in any other manner) Non-GPL Modules. Brother further + grants you a non-exclusive license to modify, alter, translate or otherwise + prepare derivative works of Non-GPL Modules and to reproduce and/or distribute + (via Internet or in any other manner) such modification, alteration, + translation or other derivative works of Non-GPL Modules.</p> + <p>(3) When you distribute (via Internet or in any other manner) Non-GPL + Modules or any modification, alteration, translation or other derivative + works thereof under the license granted in accordance with subparagraph + 3(2) above, you must expressly grant any and all recipient thereof the + license equivalent to this Agreement which applies to Non-GPL Modules.</p> + <p>(4) The license of Non-GPL Modules from Brother hereunder is granted "AS + IS. BROTHER HEREBY DISCLAIMS ANY WARRANTIES WITH RESPECT TO NON-GPL MODULES, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTY FOR THE QUALITY, + MERCHANTABILITY, FITNESS FOR PARTICULAR PURPOSE OR NON-INFRINGEMENT. </p> + <p>(5) To the extent allowed by applicable laws, Brother shall have no + liability in contract, tort (including negligence or breach of statutory + duty) or otherwise for any interruption of use, loss of data, or for + any indirect, incidental, punitive or consequential loss or damage, or + for any loss of profit, revenue, data, goodwill or anticipated savings + that arises under, out of, or in contemplation of this Agreement or otherwise + arises due to any error, inaccuracy or defect in Non-GPL Modules even + if Brother has been advised of the possibility of such loss or damage.</p> + <p>(6) The form in which Non-GPL Modules is distributed is subject to Brother’s + sole discretion. Brother does not have any obligation to distribute or + disclose Non-GPL Modules in source code form. In no case shall this Agreement + be deemed as Brother’s express or implied agreement to disclose source + code of Non-GPL Modules.</p> + </li> + </ol></td> +</tr> +</table> +</body> +</html> diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ab49fd106df9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Rob Cornish <jrmcornish AT gmail DOT com> +# Contributer: Peter Jackson <pete@peteonrails.com> +# Contributor: Mikolaj Pastuszko <deluminathor@gmail.com> +# Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu> +pkgname=brscan3 +pkgver=0.2.13_1 +pkgrel=3 +pkgdesc="Brother SANE drivers for $pkgname-compatible models" +arch=('i686' 'x86_64') +url='http://support.brother.com/g/s/id/linux/en' +license=('GPL' 'custom:Brother') +depends=('sane' 'libusb-compat') +install=brscan3.install + +source_i686=("http://download.brother.com/welcome/dlf006643/${pkgname}-${pkgver/_/-}.i386.rpm") +sha256sums_i686=('5586fe264c7bd715e598b5d444f2851464ffe72857f2f48486466e7e2957f792') + +source_x86_64=("http://download.brother.com/welcome/dlf006644/${pkgname}-${pkgver/_/-}.x86_64.rpm") +sha256sums_x86_64=('b462dbded2d0f7ae511057bd3cb6f8379042b75d996eef2675998a4559cc5556') + +source=('brscan3.rules' 'LICENSE.html') +sha256sums=('2e73148e0b89e0753d3cbfe99837efd3ebf06d9d9e3b030b4a241fa8fb5b662b' + '3434bca1936d6a5fd6afd810cde7e1876dd4d1496722b09af180278480f464f2') + +package() { + cp -r "$srcdir"/usr "$pkgdir" + + install -d -m755 "$pkgdir"/etc/udev/rules.d + install -D -m644 "$srcdir"/brscan3.rules "$pkgdir"/etc/udev/rules.d + + install -d -m755 "$pkgdir"/usr/share/licenses/$pkgname + install -D -m644 "$srcdir"/LICENSE.html "$pkgdir"/usr/share/licenses/$pkgname + + cd "$pkgdir"/usr/lib + ln -sf libbrscandec3.so.1.0.0 libbrscandec3.so.1 + ln -sf libbrscandec3.so.1 libbrscandec3.so + + cd "$pkgdir"/usr/lib/sane + ln -sf libsane-brother3.so.1.0.7 libsane-brother3.so.1 + ln -sf libsane-brother3.so.1 libsane-brother3.so +} diff --git a/brscan3.install b/brscan3.install new file mode 100644 index 000000000000..4b1f28bfdcb7 --- /dev/null +++ b/brscan3.install @@ -0,0 +1,44 @@ + +# new package version +devices_file="/usr/local/Brother/sane/brsanenetdevice3.cfg" + +pre_install() { + /bin/true +} + +# new package version +post_install() { + /usr/local/Brother/sane/setupSaneScan3 -i + +} + +# the new package version +# old package version +pre_upgrade() { + # If user has already configured their scanner then make a config backup + if [ -f $devices_file ]; then + cp $devices_file $devices_file.backup || return 1 + fi +} + +# new package version +# old package version +post_upgrade() { + # After upgrade revert user's scanner config and delete a config backup + if [ -f $devices_file.backup ]; then + cp $devices_file.backup $devices_file || return 1 + rm $devices_file.backup || return 1 + fi +} + +# old package version +pre_remove() { + /usr/local/Brother/sane/setupSaneScan3 -e + /bin/true +} + +# old package version +post_remove() { + /bin/true +} + diff --git a/brscan3.rules b/brscan3.rules new file mode 100644 index 000000000000..3f4d2a04c974 --- /dev/null +++ b/brscan3.rules @@ -0,0 +1,45 @@ +ACTION=="add", ATTR{idVendor}=="04f9", GOTO="brscan3" +GOTO="brscan3_end" +LABEL="brscan3" +ATTR{idProduct}=="0206", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="0204", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="0205", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="0201", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="0200", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01ff", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01fe", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01fd", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01fb", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01fa", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01f9", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01f8", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01f7", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01f6", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01f5", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01f4", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01f1", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01f3", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01f2", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01f0", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01ef", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="0207", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="0208", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="0203", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="0202", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01fc", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01ee", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01ed", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01eb", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01ea", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01e9", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01e8", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01e7", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01e6", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="01e5", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="0218", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="021f", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="0217", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="0216", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +ATTR{idProduct}=="0215", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n" +LABEL="brscan3_end" + |