RPM Build ?? My rpm does nothing :(

Michael Gale michael.gale at pason.com
Thu Mar 24 17:54:03 UTC 2005


Hello,

I just ran rpm -qpl nrpe-2.0-1.src.rpm and it says that it does not
contain files.

Here is out put from my rpmbuild:

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.62866
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf nrpe-2.0
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/nrpe-2.0.tar.gz
+ tar -xvvf -
#### Here was a file list of the directory so I cut it out
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nrpe-2.0
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ ./setup-nrpe.sh
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.62866
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd nrpe-2.0
+ LANG=C
+ export LANG
+ unset DISPLAY
+ make 'RPM_OPT_FLAGS=-O2 -g -pipe -m32 -march=i386 -mtune=pentium4'
cd ./src/; make ; cd ..
make[1]: Entering directory `/usr/src/redhat/BUILD/nrpe-2.0/src'
gcc -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -o nrpe
nrpe.c utils.c -L/usr/lib  -lssl -lcrypto -lnsl
gcc -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -o
check_nrpe check_nrpe.c utils.c -L/usr/lib  -lssl -lcrypto -lnsl
make[1]: Leaving directory `/usr/src/redhat/BUILD/nrpe-2.0/src'

*** Compile finished ***

If the NRPE daemon and client compiled without any errors, you
can continue with installation.  The NRPE daemon and client
binaries are located in the src/ subdirectory.

 ** If this is your monitoring host **

     - Copy the check_nrpe client to the directory that
       contains your Nagios plugins.
     - Create a command definition in your Nagios config
       file for the NRPE client.  See the README file for
       more info on doing this.

 ** If this host will be running the NRPE daemon **

     - Copy the nrpe daemon to /usr/sbin, /usr/local/nagios
       or wherever you feel it fits best.
     - Copy the sample nrpe.cfg config file to /etc,
       /usr/local/nagios or wherever you feel it fits best.
     - Modify the /etc/services file and configure NRPE to
       run under inetd, xinetd, or as a standalone daemon.
       See the README file for more info on doing this.

+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.41159
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd nrpe-2.0
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /var/tmp/nrpe-buildroot
+ install -s -m 755 src/nrpe /home/nrpe/nrpe
+ chown nrpe:nrpe /home/nrpe/nrpe
+ install -m 644 nrpe.cfg-rpminstall /home/nrpe/nrpe.cfg
+ install -s -m 755 nrpe.init-script /etc/rc.d/init.d/nrpe
strip: /etc/rc.d/init.d/nrpe: File format not recognized
+ ln -s /etc/rc.d/init.d/nrpe /etc/rc.d/rc3.d/nrpe
+ /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/nrpe-2.0
find: /var/tmp/nrpe-buildroot: No such file or directory
0 blocks
find: /var/tmp/nrpe-buildroot/usr/lib/debug: No such file or directory
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-
note /usr/bin/strip /usr/bin/objdump
Processing files: nrpe-2.0-1
Processing files: nrpe-debuginfo-2.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/nrpe-
buildroot
Wrote: /usr/src/redhat/SRPMS/nrpe-2.0-1.src.rpm
Wrote: /usr/src/redhat/RPMS/i386/nrpe-2.0-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/nrpe-debuginfo-2.0-1.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.41159
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd nrpe-2.0
+ rm -rf /var/tmp/nrpe-buildroot
+ exit 0

Thanks.

Michael

On Thu, 2005-03-24 at 10:48 -0700, Michael Gale wrote:
> Hello,
> 
> I am trying to build a package for nrpe-2.0, I was following the
> instructions at http://www.rpm.org/RPM-HOWTO/build-it.html.
> 
> But nothing happens when I do a rpm -i rpm-package-name, even with -vv I
> do not see anything being done that would indicate it was installing a
> package ?
> 
> Here are my steps:
> 
> 1. Downloaded nrpe-2.0 from the web and extracted the package.
> 
> 2. I ran ./configure with the options I wanted.
> 
> 3. I then create a init.d script for nrpe
> 
> 4. Placed a template config (nrpe.cfg-rpm) in the directory
> 
> 5. I then created a setup-nrpe.sh script which creates a user on the
> system and sets a default password.
> 
> 6. I then created my nrpe-2.0-1.spec file (attached).
> 
> 7. I then tar/gzipped backup the source directory and placed it
> in /usr/src/redhat/SOURCES/nrpe-2.0.tar.gz
> 
> 
> Now if I run rpmbuild -ba nrpe-2.0-1.spec it seems to do everything
> correctly. 
> 
> It extracts the source, the user is created, runs make and installs the
> binaries in the places I specified. It also puts the nrpe init.d script
> is the right directory and creates the syslink. All of which is
> specified in the spec file. 
> 
> So why it is if I run rpm -i nothing seems to happen ?
> 
> 
> Michael.
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list