Blame INSTALL

Packit a8f112
To build:
Packit a8f112
 $ ./configure
Packit a8f112
 $ make
Packit a8f112
Packit a8f112
To install call:
Packit a8f112
 $ make install
Packit a8f112
This will most likely need superuser privilege. The executable is placed
Packit a8f112
in the /usr/local/bin directory while the man page is placed in the
Packit a8f112
/usr/local/man/man8 directory. The install directory are controlled by
Packit a8f112
the PREFIX variable in the Makefile. To install executable in the /usr/bin
Packit a8f112
directory use './configure --prefix=/usr ' instead.
Packit a8f112
Packit a8f112
To uninstall the executable and man page call:
Packit a8f112
 $ make uninstall
Packit a8f112
Packit a8f112
To clean out object and executable files from the working directory call:
Packit a8f112
 $ make clean
Packit a8f112
Packit a8f112
To clean out prior to making a tarball (so ./configure needs to be run
Packit a8f112
on the target system):
Packit a8f112
 $ make distclean
Packit a8f112
Packit a8f112
Rpms are also available. A lsscsi.spec file is included in the tarball
Packit a8f112
to facilitate building rpms. One way of doing this on a RedHat system
Packit a8f112
is to place the tarball in the /usr/src/redhat/SOURCE directory and
Packit a8f112
the spec file in the /usr/src/redhat/SPEC directory. Then execute
Packit a8f112
'rpmbuild -ba lsscsi.spec' from the "SPEC" directory. [Specifying the
Packit a8f112
target may help (e.g. 'rpmbuild --target=i386 -ba lsscsi.spec') . If
Packit a8f112
successful that will deposit the binary rpm in the /usr/src/redhat/RPMS/i386
Packit a8f112
directory and the source rpm in the /usr/src/redhat/SRPMS directory.
Packit a8f112
Building an rpm on Suse and Mandrake is similar (although they use their
Packit a8f112
names rather than "redhat" in the above paths).
Packit a8f112
Packit a8f112
Packit a8f112
To build a Linux debian "deb" (binary) package, first untar the tarball,
Packit a8f112
then change directory to the top level within the lsscsi source. Then:
Packit a8f112
 # chmod +x debian/rules
Packit a8f112
 # dpkg-buildpackage -b -rfakeroot
Packit a8f112
The binary deb packages will be placed in the parent directory (of
Packit a8f112
the lsscsi source directory) if all goes well.
Packit a8f112
There is a build_debian.sh script in the tarball's top level directory
Packit a8f112
that does the above.
Packit a8f112
Packit a8f112
Douglas Gilbert
Packit a8f112
8th November 2011