# HG changeset patch # User Pascal Bellard # Date 1248946896 -7200 # Node ID f17b7217de2d351bb02000efdf6abcca327ec8f6 # Parent 0f710d0f94f4975b2824e11215a2228d78246f93 Add brscan diff -r 0f710d0f94f4 -r f17b7217de2d brscan/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/brscan/description.txt Thu Jul 30 11:41:36 2009 +0200 @@ -0,0 +1,14 @@ +Brother scanner drivers for sane with the following models: + +DCP-1000 DCP-1400 DCP-4020C DCP-8020 DCP-8025D +DCP-8040 DCP-8045D + +FAX-4750e FAX-5750e + +MFC-3100C MFC-3200C MFC-3220C MFC-3320CN MFC-3420C +MFC-3820CN MFC-4420C MFC-4800 MFC-4820C MFC-5100C +MFC-5200C MFC-580 MFC-590 MFC-6800 MFC-8220 +MFC-8420 MFC-8440 MFC-8500 MFC-8820D MFC-8840D +MFC-890 MFC-9030 MFC-9070 MFC-9160 MFC-9180 +MFC-9660 MFC-9700 MFC-9760 MFC-9800 MFC-9860 +MFC-9880 diff -r 0f710d0f94f4 -r f17b7217de2d brscan/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/brscan/receipt Thu Jul 30 11:41:36 2009 +0200 @@ -0,0 +1,71 @@ +# SliTaz package receipt. + +PACKAGE="brscan" +VERSION="0.2.4" +CATEGORY="office" +SHORT_DESC="Brother Scanner driver for SANE." +MAINTAINER="pascal.bellard@slitaz.org" +SOURCE="$PACKAGE-src" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html" +WGET_URL="http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/sane_source/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src/brscan + ./configure --prefix=/usr --infodir=/usr/share/info \ + --sysconfdir=/etc --localstatedir=/var \ + --mandir=/usr/share/man \ + $CONFIGURE_ARGS || return 1 + sed -i '/mk_package/d' Makefile + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $fs/usr/lib/sane + for i in BHL BHL2 BHL2FB BHLFB BHMFB BHminiFB YL4 YL4FB \ + ZL2 ZL2FB ZLe ZLeFB ; do + mkdir -p $fs/usr/local/Brother/sane/GrayCmData/$i + cp -a $src/brscan/libbrcolm/GrayCmData/$i/* \ + $fs/usr/local/Brother/sane/GrayCmData/$i + chmod 644 $fs/usr/local/Brother/sane/GrayCmData/$i/* + done + cp $src/brscan/backend_brscan/.libs/libsane-brother.so.1.0.7 \ + $fs/usr/lib/sane/libsane-brother.so.1.0.7 + ln -s libsane-brother.so.1.0.7 $fs/usr/lib/sane/libsane-brother.so.1 + ln -s libsane-brother.so.1 $fs/usr/lib/sane/libsane-brother.so + cp $src/brscan/libbrscandec/libbrscandec.so.1.0.0 \ + $fs/usr/lib/libbrscandec.so.1.0.0 + chmod 755 $fs/usr/lib/libbrscandec.so.1.0.0 + ln -s libbrscandec.so.1.0.0 $fs/usr/lib/libbrscandec.so.1 + ln -s libbrscandec.so.1 $fs/usr/lib/libbrscandec.so + cp $src/brscan/libbrcolm/libbrcolm.so.1.0.0 \ + $fs/usr/lib/libbrcolm.so.1.0.0 + ln -s libbrcolm.so.1.0.0 $fs/usr/lib/libbrcolm.so.1 + ln -s libbrcolm.so.1 $fs/usr/lib/libbrcolm.so + cp $src/brscan/mk_package/Brsane.ini \ + $fs/usr/local/Brother/sane/Brsane.ini + cp $src/brscan/mk_package/brsanenetdevice.cfg \ + $fs/usr/local/Brother/sane/brsanenetdevice.cfg + chmod 666 $fs/usr/local/Brother/sane/brsanenetdevice.cfg + cp $src/brscan/netconfig/brsaneconfig \ + $fs/usr/local/Brother/sane/brsaneconfig + ln -s /usr/local/Brother/sane/brsaneconfig $fs/usr/bin/brsaneconfig + cp $src/brscan/mk_package/setupSaneScan \ + $fs/usr/local/Brother/sane/setupSaneScan + chmod 755 $fs/usr/local/Brother/sane/setupSaneScan +} + +# Pre and post install and remove commands for Tazpkg. +post_install() +{ + chroot $1/ /usr/local/Brother/sane/setupSaneScan -i +} + +pre_remove() +{ + chroot $1/ /usr/local/Brother/sane/setupSaneScan -e +} diff -r 0f710d0f94f4 -r f17b7217de2d brscan2/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/brscan2/description.txt Thu Jul 30 11:41:36 2009 +0200 @@ -0,0 +1,20 @@ +Brother scanner drivers for sane with the following models: + +DCP-110C DCP-115C DCP-116C DCP-117C DCP-120C +DCP-130C DCP-135C DCP-150C DCP-153C DCP-310CN +DCP-315CN DCP-330C DCP-340CW DCP-350C DCP-353C +DCP-540CN DCP-560CN DCP-7010 DCP-7020 DCP-7025 +DCP-750CW DCP-770CW DCP-8060 DCP-8065DN DCP-9040CN +DCP-9045CN +DCP-7030 DCP-7040 DCP-7045N + +MFC-210C MFC-215C MFC-230C MFC-235C MFC-240C +MFC-260C MFC-3240C MFC-3340CN MFC-3360C MFC-410CN +MFC-420CN MFC-425CN MFC-440CN MFC-465CN MFC-5440CN +MFC-5460CN MFC-5840CN MFC-5860CN MFC-620CN MFC-640CW +MFC-660CN MFC-665CW MFC-680CN MFC-685CW MFC-7220 +MFC-7225N MFC-7420 MFC-7820N MFC-820CW MFC-845CW +MFC-8460N MFC-8660DN MFC-885CW MFC-8860DN MFC-8870DW +MFC-9420CN MFC-9440CN MFC-9840CDW +MFC-7320 MFC-7340 MFC-7440N MFC-7450 MFC-7840N +MFC-7840W diff -r 0f710d0f94f4 -r f17b7217de2d brscan2/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/brscan2/receipt Thu Jul 30 11:41:36 2009 +0200 @@ -0,0 +1,76 @@ +# SliTaz package receipt. + +PACKAGE="brscan2" +VERSION="0.2.4" +CATEGORY="office" +SHORT_DESC="Brother Scanner driver for SANE." +MAINTAINER="pascal.bellard@slitaz.org" +WANTED="brscan" +WEB_SITE="http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + src=$WOK/$WANTED/$WANTED-src-$VERSION + mkdir -p $fs/usr/bin $fs/usr/lib/sane $fs/usr/local/Brother/sane/models2 + for i in ALL AL ; do + mkdir -p $fs/usr/local/Brother/sane/GrayCmData/$i + cp -a $src/brscan/libbrcolm2/GrayCmData/$i/* \ + $fs/usr/local/Brother/sane/GrayCmData/$i + chmod 644 $fs/usr/local/Brother/sane/GrayCmData/$i + done + cp $src/brscan/backend_brscan2/.libs/libsane-brother2.so.1.0.7 \ + $fs/usr/lib/sane/libsane-brother2.so.1.0.7 + ln -s libsane-brother2.so.1.0.7 $fs/usr/lib/sane/libsane-brother2.so.1 + ln -s libsane-brother2.so.1 $fs/usr/lib/sane/libsane-brother2.so + cp $src/brscan/libbrscandec2/libbrscandec2.so.1.0.0 \ + $fs/usr/lib/libbrscandec2.so.1.0.0 + chmod 755 $fs/usr/lib/libbrscandec2.so.1.0.0 + ln -s libbrscandec2.so.1.0.0 $fs/usr/lib/libbrscandec2.so.1 + ln -s libbrscandec2.so.1 $fs/usr/lib/libbrscandec2.so + cp $src/brscan/libbrcolm2/libbrcolm2.so.1.0.0 \ + $fs/usr/lib/libbrcolm2.so.1.0.0 + chmod 755 $fs/usr/lib/libbrcolm2.so.1.0.0 + ln -s libbrcolm2.so.1.0.0 $fs/usr/lib/libbrcolm2.so.1 + ln -s libbrcolm2.so.1 $fs/usr/lib/libbrcolm2.so + while read line; do + echo $line + echo $line | grep -q 'Support Model' || continue + cat < \ + $fs/usr/local/Brother/sane/Brsane2.ini + chmod 644 $fs/usr/local/Brother/sane/Brsane2.ini + cp $src/brscan/mk_package/brsanenetdevice2.cfg \ + $fs/usr/local/Brother/sane/brsanenetdevice2.cfg + chmod 666 $fs/usr/local/Brother/sane/brsanenetdevice2.cfg + cp $src/brscan/netconfig/brsaneconfig2 \ + $fs/usr/local/Brother/sane/brsaneconfig2 + ln -s /usr/local/Brother/sane/brsaneconfig2 $fs/usr/bin/brsaneconfig2 + cp $src/brscan/mk_package/setupSaneScan2 \ + $fs/usr/local/Brother/sane/setupSaneScan2 + chmod 755 $fs/usr/local/Brother/sane/setupSaneScan2 + cp $src/brscan/mk_package/ext1.ini \ + $fs/usr/local/Brother/sane/models2/ext1.ini +} + +# Pre and post install and remove commands for Tazpkg. +post_install() +{ + chroot $1/ /usr/local/Brother/sane/setupSaneScan2 -i +} + +pre_remove() +{ + chroot $1/ /usr/local/Brother/sane/setupSaneScan2 -e +}