You are not logged in.

#1 2004-07-24 01:58:08

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Sane NIASH chipset support

I bet I'm not the only one out here stuck with a NIASH chipset in my scanner... they appear to have been put in HP ScanJet 3300c 's and 3400c 's as well as some other random scanners. This chipset isn't supported by default by sane, so it needs to be patched to get these scanners to work. So here's my quick and dirty PKGBUILD that does this patch before compiling.

#Contributor: Simo L. <neotuli AT yahoo DOT com>
pkgname=sane
pkgver=1.0.14
pkgrel=4
pkgdesc="Scanner Access Now Easy...with NIASH"
depends=('libjpeg' 'libieee1284' 'libusb' 'bash')
source=(ftp://ftp.mostang.com/pub/$pkgname/$pkgname-backends-$pkgver/$pkgname-backends-$pkgver.tar.gz http://umn.dl.sourceforge.net/sourceforge/hp3300backend/backend-20031221_1.tar.gz)
url="http://www.sane-project.org"
install=$pkgname.install
backup=(etc/hotplug/usb/libusbscanner etc/hotplug/usb/libsane.usermap)
md5sums=('7ae5bf91aea34ef7956df6f53cf073bd')

build() {
  cd $startdir
#  tar --use-compress-program=gzip -xf backend-20031221_1.tar.gz
  cd $startdir/src/backend
  ./patch-sane.sh ../$pkgname-backends-$pkgver
  cd $startdir/src/$pkgname-backends-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc
  /usr/bin/make || return 1
  /usr/bin/make DESTDIR=$startdir/pkg install

    # install hotplug scripts
    /bin/mkdir -p $startdir/pkg/etc/hotplug/usb
    /bin/install -m0644 tools/hotplug/libusbscanner 
            $startdir/pkg/etc/hotplug/usb/libusbscanner
    /bin/install -m0644 tools/hotplug/libsane.usermap 
            $startdir/pkg/etc/hotplug/usb/libsane.usermap
}
# vim: ts=2 sw=2 et ft=sh

Hope this is of help to someone.


The suggestion box only accepts patches.

Offline

#2 2004-07-24 02:50:21

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Sane NIASH chipset support

hi. i suggest that you email this to the maintainer for consideration as an added feature. it would be beneficial i think.


AKA uknowme

I am not your friend

Offline

#3 2004-07-24 18:32:54

farphel
Forum Fellow
From: New Hampshire - USA
Registered: 2003-09-18
Posts: 250
Website

Re: Sane NIASH chipset support

Thanks for the contribution.  I'll work on adding it over the next few days.

Cheers,
farphel


Follow the link below, sign up, and accept one promotional offer.  If I can get five suckers (err... friends) to do this, I'll get a free iPod.  Then you too can try to get a free iPod. Thanks! http://www.freeiPods.com/?r=11363142

Offline

Board footer

Powered by FluxBB