wok-6.x rev 3773
Add brscan
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 30 11:41:36 2009 +0200 (2009-07-30) |
parents | 0f710d0f94f4 |
children | 8487ca1081a5 |
files | brscan/description.txt brscan/receipt brscan2/description.txt brscan2/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/brscan/description.txt Thu Jul 30 11:41:36 2009 +0200 1.3 @@ -0,0 +1,14 @@ 1.4 +Brother scanner drivers for sane with the following models: 1.5 + 1.6 +DCP-1000 DCP-1400 DCP-4020C DCP-8020 DCP-8025D 1.7 +DCP-8040 DCP-8045D 1.8 + 1.9 +FAX-4750e FAX-5750e 1.10 + 1.11 +MFC-3100C MFC-3200C MFC-3220C MFC-3320CN MFC-3420C 1.12 +MFC-3820CN MFC-4420C MFC-4800 MFC-4820C MFC-5100C 1.13 +MFC-5200C MFC-580 MFC-590 MFC-6800 MFC-8220 1.14 +MFC-8420 MFC-8440 MFC-8500 MFC-8820D MFC-8840D 1.15 +MFC-890 MFC-9030 MFC-9070 MFC-9160 MFC-9180 1.16 +MFC-9660 MFC-9700 MFC-9760 MFC-9800 MFC-9860 1.17 +MFC-9880
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/brscan/receipt Thu Jul 30 11:41:36 2009 +0200 2.3 @@ -0,0 +1,71 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="brscan" 2.7 +VERSION="0.2.4" 2.8 +CATEGORY="office" 2.9 +SHORT_DESC="Brother Scanner driver for SANE." 2.10 +MAINTAINER="pascal.bellard@slitaz.org" 2.11 +SOURCE="$PACKAGE-src" 2.12 +TARBALL="$SOURCE-$VERSION.tar.gz" 2.13 +WEB_SITE="http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html" 2.14 +WGET_URL="http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/sane_source/$TARBALL" 2.15 + 2.16 +# Rules to configure and make the package. 2.17 +compile_rules() 2.18 +{ 2.19 + cd $src/brscan 2.20 + ./configure --prefix=/usr --infodir=/usr/share/info \ 2.21 + --sysconfdir=/etc --localstatedir=/var \ 2.22 + --mandir=/usr/share/man \ 2.23 + $CONFIGURE_ARGS || return 1 2.24 + sed -i '/mk_package/d' Makefile 2.25 + make 2.26 +} 2.27 + 2.28 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.29 +genpkg_rules() 2.30 +{ 2.31 + mkdir -p $fs/usr/bin $fs/usr/lib/sane 2.32 + for i in BHL BHL2 BHL2FB BHLFB BHMFB BHminiFB YL4 YL4FB \ 2.33 + ZL2 ZL2FB ZLe ZLeFB ; do 2.34 + mkdir -p $fs/usr/local/Brother/sane/GrayCmData/$i 2.35 + cp -a $src/brscan/libbrcolm/GrayCmData/$i/* \ 2.36 + $fs/usr/local/Brother/sane/GrayCmData/$i 2.37 + chmod 644 $fs/usr/local/Brother/sane/GrayCmData/$i/* 2.38 + done 2.39 + cp $src/brscan/backend_brscan/.libs/libsane-brother.so.1.0.7 \ 2.40 + $fs/usr/lib/sane/libsane-brother.so.1.0.7 2.41 + ln -s libsane-brother.so.1.0.7 $fs/usr/lib/sane/libsane-brother.so.1 2.42 + ln -s libsane-brother.so.1 $fs/usr/lib/sane/libsane-brother.so 2.43 + cp $src/brscan/libbrscandec/libbrscandec.so.1.0.0 \ 2.44 + $fs/usr/lib/libbrscandec.so.1.0.0 2.45 + chmod 755 $fs/usr/lib/libbrscandec.so.1.0.0 2.46 + ln -s libbrscandec.so.1.0.0 $fs/usr/lib/libbrscandec.so.1 2.47 + ln -s libbrscandec.so.1 $fs/usr/lib/libbrscandec.so 2.48 + cp $src/brscan/libbrcolm/libbrcolm.so.1.0.0 \ 2.49 + $fs/usr/lib/libbrcolm.so.1.0.0 2.50 + ln -s libbrcolm.so.1.0.0 $fs/usr/lib/libbrcolm.so.1 2.51 + ln -s libbrcolm.so.1 $fs/usr/lib/libbrcolm.so 2.52 + cp $src/brscan/mk_package/Brsane.ini \ 2.53 + $fs/usr/local/Brother/sane/Brsane.ini 2.54 + cp $src/brscan/mk_package/brsanenetdevice.cfg \ 2.55 + $fs/usr/local/Brother/sane/brsanenetdevice.cfg 2.56 + chmod 666 $fs/usr/local/Brother/sane/brsanenetdevice.cfg 2.57 + cp $src/brscan/netconfig/brsaneconfig \ 2.58 + $fs/usr/local/Brother/sane/brsaneconfig 2.59 + ln -s /usr/local/Brother/sane/brsaneconfig $fs/usr/bin/brsaneconfig 2.60 + cp $src/brscan/mk_package/setupSaneScan \ 2.61 + $fs/usr/local/Brother/sane/setupSaneScan 2.62 + chmod 755 $fs/usr/local/Brother/sane/setupSaneScan 2.63 +} 2.64 + 2.65 +# Pre and post install and remove commands for Tazpkg. 2.66 +post_install() 2.67 +{ 2.68 + chroot $1/ /usr/local/Brother/sane/setupSaneScan -i 2.69 +} 2.70 + 2.71 +pre_remove() 2.72 +{ 2.73 + chroot $1/ /usr/local/Brother/sane/setupSaneScan -e 2.74 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/brscan2/description.txt Thu Jul 30 11:41:36 2009 +0200 3.3 @@ -0,0 +1,20 @@ 3.4 +Brother scanner drivers for sane with the following models: 3.5 + 3.6 +DCP-110C DCP-115C DCP-116C DCP-117C DCP-120C 3.7 +DCP-130C DCP-135C DCP-150C DCP-153C DCP-310CN 3.8 +DCP-315CN DCP-330C DCP-340CW DCP-350C DCP-353C 3.9 +DCP-540CN DCP-560CN DCP-7010 DCP-7020 DCP-7025 3.10 +DCP-750CW DCP-770CW DCP-8060 DCP-8065DN DCP-9040CN 3.11 +DCP-9045CN 3.12 +DCP-7030 DCP-7040 DCP-7045N 3.13 + 3.14 +MFC-210C MFC-215C MFC-230C MFC-235C MFC-240C 3.15 +MFC-260C MFC-3240C MFC-3340CN MFC-3360C MFC-410CN 3.16 +MFC-420CN MFC-425CN MFC-440CN MFC-465CN MFC-5440CN 3.17 +MFC-5460CN MFC-5840CN MFC-5860CN MFC-620CN MFC-640CW 3.18 +MFC-660CN MFC-665CW MFC-680CN MFC-685CW MFC-7220 3.19 +MFC-7225N MFC-7420 MFC-7820N MFC-820CW MFC-845CW 3.20 +MFC-8460N MFC-8660DN MFC-885CW MFC-8860DN MFC-8870DW 3.21 +MFC-9420CN MFC-9440CN MFC-9840CDW 3.22 +MFC-7320 MFC-7340 MFC-7440N MFC-7450 MFC-7840N 3.23 +MFC-7840W
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/brscan2/receipt Thu Jul 30 11:41:36 2009 +0200 4.3 @@ -0,0 +1,76 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="brscan2" 4.7 +VERSION="0.2.4" 4.8 +CATEGORY="office" 4.9 +SHORT_DESC="Brother Scanner driver for SANE." 4.10 +MAINTAINER="pascal.bellard@slitaz.org" 4.11 +WANTED="brscan" 4.12 +WEB_SITE="http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html" 4.13 + 4.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.15 +genpkg_rules() 4.16 +{ 4.17 + src=$WOK/$WANTED/$WANTED-src-$VERSION 4.18 + mkdir -p $fs/usr/bin $fs/usr/lib/sane $fs/usr/local/Brother/sane/models2 4.19 + for i in ALL AL ; do 4.20 + mkdir -p $fs/usr/local/Brother/sane/GrayCmData/$i 4.21 + cp -a $src/brscan/libbrcolm2/GrayCmData/$i/* \ 4.22 + $fs/usr/local/Brother/sane/GrayCmData/$i 4.23 + chmod 644 $fs/usr/local/Brother/sane/GrayCmData/$i 4.24 + done 4.25 + cp $src/brscan/backend_brscan2/.libs/libsane-brother2.so.1.0.7 \ 4.26 + $fs/usr/lib/sane/libsane-brother2.so.1.0.7 4.27 + ln -s libsane-brother2.so.1.0.7 $fs/usr/lib/sane/libsane-brother2.so.1 4.28 + ln -s libsane-brother2.so.1 $fs/usr/lib/sane/libsane-brother2.so 4.29 + cp $src/brscan/libbrscandec2/libbrscandec2.so.1.0.0 \ 4.30 + $fs/usr/lib/libbrscandec2.so.1.0.0 4.31 + chmod 755 $fs/usr/lib/libbrscandec2.so.1.0.0 4.32 + ln -s libbrscandec2.so.1.0.0 $fs/usr/lib/libbrscandec2.so.1 4.33 + ln -s libbrscandec2.so.1 $fs/usr/lib/libbrscandec2.so 4.34 + cp $src/brscan/libbrcolm2/libbrcolm2.so.1.0.0 \ 4.35 + $fs/usr/lib/libbrcolm2.so.1.0.0 4.36 + chmod 755 $fs/usr/lib/libbrcolm2.so.1.0.0 4.37 + ln -s libbrcolm2.so.1.0.0 $fs/usr/lib/libbrcolm2.so.1 4.38 + ln -s libbrcolm2.so.1 $fs/usr/lib/libbrcolm2.so 4.39 + while read line; do 4.40 + echo $line 4.41 + echo $line | grep -q 'Support Model' || continue 4.42 + cat <<EOT 4.43 +0x01eb,6,1,"MFC-7320",131,4 4.44 +0x01e7,6,1,"MFC-7340",131,4 4.45 +0x01e6,6,1,"MFC-7440N",131,4 4.46 +0x01ee,6,1,"MFC-7450",131,4 4.47 +0x01ed,6,1,"MFC-7840N",131,4 4.48 +0x01e5,6,1,"MFC-7840W",131,4 4.49 +0x01ea,6,1,"DCP-7030",131,4 4.50 +0x01e9,6,1,"DCP-7040",131,4 4.51 +0x01e8,6,1,"DCP-7045N",131,4 4.52 + 4.53 +EOT 4.54 + done < $src/brscan/mk_package/Brsane2.ini > \ 4.55 + $fs/usr/local/Brother/sane/Brsane2.ini 4.56 + chmod 644 $fs/usr/local/Brother/sane/Brsane2.ini 4.57 + cp $src/brscan/mk_package/brsanenetdevice2.cfg \ 4.58 + $fs/usr/local/Brother/sane/brsanenetdevice2.cfg 4.59 + chmod 666 $fs/usr/local/Brother/sane/brsanenetdevice2.cfg 4.60 + cp $src/brscan/netconfig/brsaneconfig2 \ 4.61 + $fs/usr/local/Brother/sane/brsaneconfig2 4.62 + ln -s /usr/local/Brother/sane/brsaneconfig2 $fs/usr/bin/brsaneconfig2 4.63 + cp $src/brscan/mk_package/setupSaneScan2 \ 4.64 + $fs/usr/local/Brother/sane/setupSaneScan2 4.65 + chmod 755 $fs/usr/local/Brother/sane/setupSaneScan2 4.66 + cp $src/brscan/mk_package/ext1.ini \ 4.67 + $fs/usr/local/Brother/sane/models2/ext1.ini 4.68 +} 4.69 + 4.70 +# Pre and post install and remove commands for Tazpkg. 4.71 +post_install() 4.72 +{ 4.73 + chroot $1/ /usr/local/Brother/sane/setupSaneScan2 -i 4.74 +} 4.75 + 4.76 +pre_remove() 4.77 +{ 4.78 + chroot $1/ /usr/local/Brother/sane/setupSaneScan2 -e 4.79 +}