diff options
author | Rob Cornish | 2015-06-30 20:26:25 +1000 |
---|---|---|
committer | Rob Cornish | 2015-06-30 20:26:25 +1000 |
commit | e027fcd7ab2958260e61e9b809e4099a4285d65b (patch) | |
tree | bb841277b390f8831742c90d4215ffee0c428f79 | |
download | aur-e027fcd7ab2958260e61e9b809e4099a4285d65b.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | LICENSE.html | 224 | ||||
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | brscan-skey-user.service | 10 | ||||
-rw-r--r-- | brscan-skey.install | 50 | ||||
-rw-r--r-- | brscan-skey.service | 11 |
6 files changed, 358 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3e817d6148e2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = brscan-skey + pkgdesc = Brother scan-key-tool + pkgver = 0.2.4_1 + pkgrel = 8 + url = http://support.brother.com/g/s/id/linux/en + install = brscan-skey.install + arch = i686 + arch = x86_64 + license = custom:Brother + optdepends = sane: for all default scanning scripts + optdepends = sendmail: for default "Scan to email" script + optdepends = gimp: for default "Scan to image" script + optdepends = cuneiform: for default "Scan to OCR" script + source = brscan-skey.service + source = brscan-skey-user.service + source = LICENSE.html + md5sums = 82ba4e7cf73306b17f144731f6484ad0 + md5sums = da65d820642f760115428769d2639db9 + md5sums = bd06a5d28abb3b3a3a6a263567cbb78b + source_i686 = http://www.brother.com/pub/bsc/linux/dlf/brscan-skey-0.2.4-1.i386.rpm + md5sums_i686 = c6bc7a501f424541130a1b9a38b76493 + source_x86_64 = http://www.brother.com/pub/bsc/linux/dlf/brscan-skey-0.2.4-1.x86_64.rpm + md5sums_x86_64 = 9ad29a0ef9f8f4d6f742fb4293ee08a6 + +pkgname = brscan-skey + diff --git a/LICENSE.html b/LICENSE.html new file mode 100644 index 000000000000..5dfeb35f14da --- /dev/null +++ b/LICENSE.html @@ -0,0 +1,224 @@ +<!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 from Brother + Industries, Ltd ("Broher"). Brother, who owns all copyrights to + the software that is distributed with this Agreement ("Software") + to recipients thereof ("User"), for use of the Software. User shall + have the right to use the Software only in accordance with the terms and + conditions of this Agreement. Any use by User of the Software shall be deemed + as its agreement hereto.</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> + <p>Brother retains any and all copyrights to the Software. In no case this + Agreement shall be construed to assign or otherwise transfer from Brother + to User any copyrights or other intellectual property rights to whole + or any part of the Software.<br> + <br> + Brother grants User a non-exclusive license: to reproduce and/or distribute + (via Internet or in any other manner) the Software. Further, Brother grants + User a non-exclusive license to modify, alter, translate or otherwise prepare + derivative works of the Software and to reproduce and distribute (via Internet + or in any other manner) such modification, alteration, translation or other + derivative works for any purpose.<br> + <br> + The license of the Software from Brother hereunder is granted "AS + IS." BROTHER HEREBY DISCLAIMS ANY WARRANTIES WITH RESPECT TO THE + SOFTWARE, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTY FOR + THE QUALITY, + MERCHANTABILITY, FITNESS FOR PARTICULAR PURPOSE OR NON-INFRINGEMENT. <br> + 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 the Software + even if Brother has been advised of the possibility of such loss or damage. <br> + Further, Brother shall have no liability to disclose and/or distribute + the source cord of the Software to User under any circumstances. In no + case shall the above license by Brother to modify, alter, translate or + otherwise prepare derivative works of the Software be construed as Brother's + implied agreement or undertakings to disclose and/or distribute the source + cord of the Software.</p></td> +</tr> +</table> +</body> +</html> diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ff2d560ab0bb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +pkgname=brscan-skey +pkgver=0.2.4_1 +pkgrel=8 +pkgdesc='Brother scan-key-tool' +arch=('i686' 'x86_64') +url='http://support.brother.com/g/s/id/linux/en' +license=('custom:Brother') +optdepends=('sane: for all default scanning scripts' + 'sendmail: for default "Scan to email" script' + 'gimp: for default "Scan to image" script' + 'cuneiform: for default "Scan to OCR" script') +install=brscan-skey.install + +source_i686=("http://www.brother.com/pub/bsc/linux/dlf/${pkgname}-${pkgver/_/-}.i386.rpm") +md5sums_i686=('c6bc7a501f424541130a1b9a38b76493') + +source_x86_64=("http://www.brother.com/pub/bsc/linux/dlf/${pkgname}-${pkgver/_/-}.x86_64.rpm") +md5sums_x86_64=('9ad29a0ef9f8f4d6f742fb4293ee08a6') + +source=('brscan-skey.service' 'brscan-skey-user.service' 'LICENSE.html') +md5sums=('82ba4e7cf73306b17f144731f6484ad0' 'da65d820642f760115428769d2639db9' 'bd06a5d28abb3b3a3a6a263567cbb78b') + +package() { + cp -R "$srcdir"/opt "$pkgdir" + + install -d -m755 "$pkgdir"/usr/lib/systemd/system + install -D -m644 "$srcdir"/brscan-skey.service "$pkgdir"/usr/lib/systemd/system + + install -d -m755 "$pkgdir"/usr/lib/systemd/user + install -D -m644 "$srcdir"/brscan-skey-user.service "$pkgdir"/usr/lib/systemd/user/brscan-skey.service + + install -d -m755 "$pkgdir"/usr/share/licenses/$pkgname + install -D -m644 "$srcdir"/LICENSE.html "$pkgdir"/usr/share/licenses/$pkgname + + install -d "$pkgdir"/srv + install -d -m 775 -o 289 -g 289 "$pkgdir"/srv/brscan-skey +} diff --git a/brscan-skey-user.service b/brscan-skey-user.service new file mode 100644 index 000000000000..b41e6a8a0eba --- /dev/null +++ b/brscan-skey-user.service @@ -0,0 +1,10 @@ +[Unit] +Description=Brother scan-key-tool + +[Service] +Type=forking +ExecStart=/opt/brother/scanner/brscan-skey/brscan-skey +ExecStop=/opt/brother/scanner/brscan-skey/brscan-skey --terminate + +[Install] +WantedBy=default.target diff --git a/brscan-skey.install b/brscan-skey.install new file mode 100644 index 000000000000..8c9cf939d3f6 --- /dev/null +++ b/brscan-skey.install @@ -0,0 +1,50 @@ +post_install() { + local pkgver=${1%-*} + + getent group brscan-skey &> /dev/null || groupadd -g 289 brscan-skey + getent passwd brscan-skey &> /dev/null || useradd -c "Brother scan-key-tool user" -u 289 -g brscan-skey -d /srv/brscan-skey -s /bin/false brscan-skey + + # Earlier relases had / as home + [ $(eval echo ~brscan-skey) = /srv/brscan-skey ] || usermod -d /srv/brscan-skey brscan-skey + + # Brother's install script + /opt/brother/scanner/brscan-skey/brscan-skey-${pkgver//_/-}.sh 0 + + echo "Start automatically by running one of the following:" + echo " # systemctl enable brscan-skey.service # System-wide" + echo " $ systemctl --user enable brscan-skey.service # Per-user" +} + +pre_upgrade() { + local oldpkgver=${2%-*} + + local brbase=brscan-skey-${oldpkgver//_/-}.sh + # Older Brother install scripts stored differently + local oldbr=/usr/local/Brother/sane/$brbase + local newbr=/opt/brother/scanner/brscan-skey/$brbase + + if [ -x $newbr ]; then + $newbr R + elif [ -x $oldbr ]; then + $oldbr R + fi +} + +post_upgrade() { + local newpkgver=${1%-*} + + post_install "$newpkgver" +} + +pre_remove() { + local pkgver=${1%-*} + + # Allow to fail since earlier releases did not have a brscan-skey.service file + systemctl stop brscan-skey.service || true + + getent passwd brscan-skey &> /dev/null && userdel brscan-skey + getent group brscan-skey &> /dev/null && groupdel brscan-skey + + # Brother's uninstall script + /opt/brother/scanner/brscan-skey/brscan-skey-${pkgver//_/-}.sh R +} diff --git a/brscan-skey.service b/brscan-skey.service new file mode 100644 index 000000000000..184674197463 --- /dev/null +++ b/brscan-skey.service @@ -0,0 +1,11 @@ +[Unit] +Description=Brother scan-key-tool + +[Service] +User=brscan-skey +Type=forking +ExecStart=/opt/brother/scanner/brscan-skey/brscan-skey +ExecStop=/opt/brother/scanner/brscan-skey/brscan-skey --terminate + +[Install] +WantedBy=multi-user.target |