From ebc82b27288df5c58194083ead4a6e6de7f52d21 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 23 Oct 2011 22:01:53 +0200 Subject: mass update (again :( ) Signed-off-by: Florian Pritz --- brscan3/PKGBUILD | 33 +++++ brscan3/agree.html | 248 ++++++++++++++++++++++++++++++++++++ brscan3/brscan3-0.2.11-4.x86_64.rpm | Bin 0 -> 70548 bytes brscan3/brscan3.install | 44 +++++++ brscan3/brscan3.rules | 45 +++++++ 5 files changed, 370 insertions(+) create mode 100644 brscan3/PKGBUILD create mode 100644 brscan3/agree.html create mode 100644 brscan3/brscan3-0.2.11-4.x86_64.rpm create mode 100755 brscan3/brscan3.install create mode 100644 brscan3/brscan3.rules (limited to 'brscan3') diff --git a/brscan3/PKGBUILD b/brscan3/PKGBUILD new file mode 100644 index 0000000..4f470d5 --- /dev/null +++ b/brscan3/PKGBUILD @@ -0,0 +1,33 @@ +# Contributor: Mikolaj Pastuszko +# Contributor: Andrej Gelenberg +license=('GPL' 'custom:Brother') +arch=('i686' 'x86_64') +pkgname=brscan3 +pkgver=0.2.11_4 +pkgrel=4 +pkgdesc="SANE drivers from Brother for brscan3 compatibile models" +depends=('sane' 'sed') +makedepends=('sane') +url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_scn.html" +install=brscan3.install + +[ "$CARCH" = "x86_64" ] && pkg="${pkgname}-${pkgver/_/-}.x86_64.rpm" || pkg="${pkgname}-${pkgver/_/-}.i386.rpm" +[ "$CARCH" = "x86_64" ] && pkg_md5sum="05fdab58d2e652b259e367e600a02b7e" || pkg_md5sum="bf7b7d00c25597339ac5b87f1707cf75" + +source=("http://pub.brother.com/pub/com/bsc/linux/dlf/$pkg" "http://www.brother.com/agreement/English_sane/agree.html" "brscan3.rules") +md5sums=($pkg_md5sum 'ccffb9a6f6d436b21be25b0241068981' '76537a0eb5b68c48b57b4409397a4fa5') + +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 -m644 $srcdir/agree.html $pkgdir/usr/share/licenses/$pkgname/LICENSE.html + [ "$CARCH" = "x86_64" ] && mv $pkgdir/usr/lib64 $pkgdir/usr/lib + 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/agree.html b/brscan3/agree.html new file mode 100644 index 0000000..577f6b8 --- /dev/null +++ b/brscan3/agree.html @@ -0,0 +1,248 @@ + + + +End-User License Agreement for Brother Software + + + + + + + + + + + + + + + + + + + + + +
 
+ + + + + + + + +
License Agreement

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").

+ + + + +
Note:
+ Please click on "I Accept" while holding down "Shift" or + right click on "I Accept" and select "Save Target As,,," from + the menu.
+
    +
  1. The Software is comprised of the following software modules:
    +
    + (1) Certain software modules that is the subject of GNU GENERAL PUBLIC + LICENSE ("GPL Modules"), and +
    + (2) Other software modules ("Non-GPL Modules") +
    +
    + You may distinguish each of GPL Modules by downloading source files + of the Software as Brother separately makes available and reading such + files.
    +
  2. +
  3. 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 http://www.brother.com/agreement/English_gpl/agree.html. 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.
    +
  4. +
  5. 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: +

    (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.

    +

    (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.

    +

    (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.

    +

    (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.

    +

    (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.

    +

    (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.

    +
  6. +
+ + diff --git a/brscan3/brscan3-0.2.11-4.x86_64.rpm b/brscan3/brscan3-0.2.11-4.x86_64.rpm new file mode 100644 index 0000000..9d04bd4 Binary files /dev/null and b/brscan3/brscan3-0.2.11-4.x86_64.rpm differ diff --git a/brscan3/brscan3.install b/brscan3/brscan3.install new file mode 100755 index 0000000..4b1f28b --- /dev/null +++ b/brscan3/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/brscan3.rules b/brscan3/brscan3.rules new file mode 100644 index 0000000..3f4d2a0 --- /dev/null +++ b/brscan3/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" + -- cgit v1.2.3-24-g4f1b