Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#964 - sane missing hotplug scripts

Attached to Project: Arch Linux
Opened by Tobias Powalowski (tpowa) - Tuesday, 01 June 2004, 07:50 GMT
Last edited by Eric Johnson (eric) - Tuesday, 01 June 2004, 14:01 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Johnson (eric)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

hi
i see that the arch sane package doesn't install the new hotplug scripts provided by sane

i made a new PKGBUILD and sane.install

# $Id: PKGBUILD,v 1.15 2004/05/05 11:58:10 eric Exp $
# Maintainer: eric <eric@archlinux.org>
# Contributed by Sarah Hay <sarahhay@mb.sympatico.ca>, Tobias Powalowski <t.powa@gmx.de>

pkgname=sane
pkgver=1.0.14
pkgrel=1
pkgdesc="Scanner Access Now Easy."
depends=('libjpeg' 'libieee1284' 'libusb' 'bash')
source=(ftp://ftp.mostang.com/pub/$pkgname/$pkgname-backends-$pkgver/$pkgname-backends-$pkgver.tar.gz)
url="http://www.sane-project.org"
md5sums=('7ae5bf91aea34ef7956df6f53cf073bd')
install=sane.install

build() {
cd $startdir/src/$pkgname-backends-$pkgver
./configure --prefix=/usr --sysconfdir=/etc
/usr/bin/make || return 1
/usr/bin/make DESTDIR=$startdir/pkg install
# to enable the hotplug script
mkdir -p $startdir/pkg/etc/hotplug/usb
cd tools/hotplug
cp libusbscanner $startdir/pkg/etc/hotplug/usb
cp libsane.usermap $startdir/pkg/etc/hotplug/usb
}
# vim: ts=2 sw=2 et ft=sh

sane.install

post_install() {
cat << EOF

NOTE
----
If you use a usb scanner and hotplug than add your user to group 'scanner'
or change the /etc/hotplug/usb/libusbscanner to your needs
If your scanner is not listed in /etc/hotplug/usb/libsane.usermap add a line for it

EOF
}

post_upgrade() {
post_install $1
}

pre_remove() {
/bin/true
}

post_remove() {
/bin/true
}

op=$1
shift

$op $*
This task depends upon

Closed by  Anonymous Submitter

Reason for closing:  None
Comment by Eric Johnson (eric) - Tuesday, 01 June 2004, 14:01 GMT
Done and done.

Loading...