Blame INSTALL

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