1141cc406Sopenharmony_ciSANE on UnixWare 7
2141cc406Sopenharmony_ci==================
3141cc406Sopenharmony_ci
4141cc406Sopenharmony_ciThe easiest way to get SANE working on a UnixWare 7.1.X system (UW 7.0.0
5141cc406Sopenharmony_ciand 7.0.1 are not supported) is to download and install the SANE binary
6141cc406Sopenharmony_cidistribution from SCOs Skunkware web site. The URL is:
7141cc406Sopenharmony_ci
8141cc406Sopenharmony_ci        ftp://ftp.sco.com/skunkware/uw7/Packages
9141cc406Sopenharmony_ci
10141cc406Sopenharmony_ciUse the pkgadd command to install the files, e.g.:
11141cc406Sopenharmony_ci
12141cc406Sopenharmony_ci        # pkgadd -d `pwd`/sane-1.0.2.pkg
13141cc406Sopenharmony_ci
14141cc406Sopenharmony_ciA web page with further information specific to SANE on UnixWare 7 can be
15141cc406Sopenharmony_cifound here:
16141cc406Sopenharmony_ci
17141cc406Sopenharmony_ci        http://www.sco.com/skunkware/sane/index.html
18141cc406Sopenharmony_ci
19141cc406Sopenharmony_ciHowever, please note that the SANE package that is available from the
20141cc406Sopenharmony_ciSkunkware server will most likely contain the latest stable version of
21141cc406Sopenharmony_ciSANE. Since SANE is continuously being worked on, you might want to download
22141cc406Sopenharmony_cithe latest source from the Git repository and build the source yourself.
23141cc406Sopenharmony_ci
24141cc406Sopenharmony_ciTo build SANE on a UnixWare 7.1.X system the following packages are required:
25141cc406Sopenharmony_ci
26141cc406Sopenharmony_ci        * make (GNU make)
27141cc406Sopenharmony_ci        * glibs (contains gtk, glib, libjpeg, libpnm, libtiff etc.; only
28141cc406Sopenharmony_ci          necessary for frontends xscanimage, xcam, and xsane which are
29141cc406Sopenharmony_ci          distributed separately)
30141cc406Sopenharmony_ci
31141cc406Sopenharmony_ciThe packages can be downloaded from the Skunkware ftp server (see URL above).
32141cc406Sopenharmony_ciI've used the following versions to build sane-1.0.2:
33141cc406Sopenharmony_ci
34141cc406Sopenharmony_ci        * make-3.78.1.pkg
35141cc406Sopenharmony_ci        * glibs-2.0.3.pkg
36141cc406Sopenharmony_ci
37141cc406Sopenharmony_ciIf you want to include support for The Gimp (this is optional), you need to
38141cc406Sopenharmony_ciinstall the gimp package, too. This is the version I've used:
39141cc406Sopenharmony_ci
40141cc406Sopenharmony_ci        * gimp-1.0.4.pkg
41141cc406Sopenharmony_ci
42141cc406Sopenharmony_ciGCC is not required. SANE compiles quite happily (and faster) with UnixWares
43141cc406Sopenharmony_cinative C compiler.
44141cc406Sopenharmony_ci
45141cc406Sopenharmony_ciSet the LD_RUN_PATH variable to add /usr/local/lib to the list of directories
46141cc406Sopenharmony_cito be searched by the dynamic linker:
47141cc406Sopenharmony_ci
48141cc406Sopenharmony_ci        $ LD_RUN_PATH=/usr/local/lib
49141cc406Sopenharmony_ci        $ export LD_RUN_PATH
50141cc406Sopenharmony_ci
51141cc406Sopenharmony_ciRun the configure script as following:
52141cc406Sopenharmony_ci
53141cc406Sopenharmony_ci        $ LIBS="-lsdi" ./configure
54141cc406Sopenharmony_ci
55141cc406Sopenharmony_ci(The sdi library contains the SCSI passthrough functions the UW7 port of SANE
56141cc406Sopenharmony_ciuses to access the scanner from user space.)
57141cc406Sopenharmony_ci
58141cc406Sopenharmony_ciRun gmake to build SANE:
59141cc406Sopenharmony_ci
60141cc406Sopenharmony_ci        $ gmake
61141cc406Sopenharmony_ci
62141cc406Sopenharmony_ciSCSI access from user space requires special privileges. If you want users
63141cc406Sopenharmony_ciwithout root perms to be able to use the scanner you can use the filepriv
64141cc406Sopenharmony_cicommand to change the privileges that are associated with the SANE
65141cc406Sopenharmony_ciapplications:
66141cc406Sopenharmony_ci
67141cc406Sopenharmony_ci        # /sbin/filepriv -f driver -f sysops /usr/local/bin/scanimage
68141cc406Sopenharmony_ci        # /sbin/filepriv -f driver -f sysops /usr/local/bin/xscanimage
69141cc406Sopenharmony_ci        # /sbin/filepriv -f sysops /usr/local/bin/xcam
70141cc406Sopenharmony_ci
71141cc406Sopenharmony_ciIf you have built SANE with support for The Gimp you might want to create
72141cc406Sopenharmony_cia symlink from the plug-in directory to the xscanimage and xcam binaries,
73141cc406Sopenharmony_cie.g.:
74141cc406Sopenharmony_ci
75141cc406Sopenharmony_ci        # ln -s /usr/local/bin/xscanimage \
76141cc406Sopenharmony_ci                /usr/local/lib/gimp/1.0/plug-ins/xscanimage
77141cc406Sopenharmony_ci        # ln -s /usr/local/bin/xcam /usr/local/lib/gimp/1.0/plug-ins/xcam
78141cc406Sopenharmony_ci
79141cc406Sopenharmony_ciQuestions? Comments? Please send e-mail to jenss@sco.com or skunkware@sco.com!
80