| 1 |
To build: |
| 2 |
$ ./configure |
| 3 |
$ make |
| 4 |
|
| 5 |
To install call: |
| 6 |
$ make install |
| 7 |
This will most likely need superuser privilege. The executable is placed |
| 8 |
in the /usr/local/bin directory while the man page is placed in the |
| 9 |
/usr/local/man/man8 directory. The install directory are controlled by |
| 10 |
the PREFIX variable in the Makefile. To install executable in the /usr/bin |
| 11 |
directory use './configure --prefix=/usr ' instead. |
| 12 |
|
| 13 |
To uninstall the executable and man page call: |
| 14 |
$ make uninstall |
| 15 |
|
| 16 |
To clean out object and executable files from the working directory call: |
| 17 |
$ make clean |
| 18 |
|
| 19 |
To clean out prior to making a tarball (so ./configure needs to be run |
| 20 |
on the target system): |
| 21 |
$ make distclean |
| 22 |
|
| 23 |
Rpms are also available. A lsscsi.spec file is included in the tarball |
| 24 |
to facilitate building rpms. One way of doing this on a RedHat system |
| 25 |
is to place the tarball in the /usr/src/redhat/SOURCE directory and |
| 26 |
the spec file in the /usr/src/redhat/SPEC directory. Then execute |
| 27 |
'rpmbuild -ba lsscsi.spec' from the "SPEC" directory. [Specifying the |
| 28 |
target may help (e.g. 'rpmbuild --target=i386 -ba lsscsi.spec') . If |
| 29 |
successful that will deposit the binary rpm in the /usr/src/redhat/RPMS/i386 |
| 30 |
directory and the source rpm in the /usr/src/redhat/SRPMS directory. |
| 31 |
Building an rpm on Suse and Mandrake is similar (although they use their |
| 32 |
names rather than "redhat" in the above paths). |
| 33 |
|
| 34 |
|
| 35 |
To build a Linux debian "deb" (binary) package, first untar the tarball, |
| 36 |
then change directory to the top level within the lsscsi source. Then: |
| 37 |
# chmod +x debian/rules |
| 38 |
# dpkg-buildpackage -b -rfakeroot |
| 39 |
The binary deb packages will be placed in the parent directory (of |
| 40 |
the lsscsi source directory) if all goes well. |
| 41 |
There is a build_debian.sh script in the tarball's top level directory |
| 42 |
that does the above. |
| 43 |
|
| 44 |
Douglas Gilbert |
| 45 |
8th November 2011 |