CentOS 5
Sponsored Link

Checkinstall
  This Checkinstall is for the case you'd like to install a software from RPM package that is provided only with tar ball.

[1] Install Checkinstall (for i386. x86_64 is none in the repository below)
[root@ns ~]#
wget http://www.asic-linux.com.mx/~izto/checkinstall/files/rpm/checkinstall-1.6.1-1.i386.rpm

[root@ns ~]#
rpm -Uvh checkinstall-1.6.1-1.i386.rpm

Preparing...
################################ [100%]

   1:checkinstall
################################ [100%]
[2] Checkinstall - How to use it
[root@ns ~]#
wget http://www.samse.fr/GPL/squidclamav/squidclamav-3.1.tar.gz

[root@ns ~]#
tar zxvf squidclamav-3.1.tar.gz

[root@ns ~]#
cd squidclamav-3.1

[root@ns squidclamav-3.1]#
./configure

[root@ns squidclamav-3.1]#
[root@ns squidclamav-3.1]#
checkinstall
# create RPM


checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
       This software is released under the GNU GPL.

The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs? [y]:
y


Preparing package documentation...OK

Please choose the packaging method you want to use.
Slackware [S], RPM [R] or Debian [D]?
R
# RPM


Please write a description for the package.
End your description with an empty line or EOF.

>>
**************************************
**** RPM package creation selected ***
**************************************

This package will be built according to these values:

1 - Summary: [ Package created with checkinstall 1.6.1 ]
2 - Name: [ squidclamav ]
3 - Version: [ 3.1 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ Applications/System ]
7 - Architecture: [ i386 ]
8 - Source location: [ squidclamav-3.1 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ squidclamav ]

Enter a number to change any of them or press ENTER to continue: 
# Enter


Installing with make install...

========================= Installation results ===========================
make[1]: Entering directory `/root/squidclamav-3.1'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/usr/bin/install -c 'squidclamav' '/usr/local/bin/squidclamav'
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/root/squidclamav-3.1'

======================== Installation successful ==========================

Copying documentation directory...

./
./ChangeLog
./AUTHORS
./README
./NEWS
./INSTALL
./COPYING

Copying files to the temporary directory...OK

Striping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK

Building RPM package...OK

NOTE: The package will not be installed

Erasing temporary files...OK

Deleting doc-pak directory...OK

Writing backup package...OK

Deleting temp dir...OK

**********************************************************************

Done. The new package has been saved to

/usr/src/redhat/RPMS/i386/squidclamav-3.1-1.i386.rpm
You can install it in your system anytime using:

    rpm -i squidclamav-3.1-1.i386.rpm

**********************************************************************

[root@ns ~]#
cd /usr/src/redhat/RPMS/i386

[root@ns i386]#
rpm -Uvh squidclamav-3.1-1.i386.rpm

Preparing...
################################ [100%]

   1:squidclamav
################################ [100%]

[root@ns i386]#
rpm -q squidclamav

squidclamav-3.1-1
# completed ro install with RPM
 
Tweet