Mailing List
Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
RPM Build ?? My rpm does nothing :(

RPM Build ?? My rpm does nothing :(

2005-03-24       - By Michael Gale

 Back
Reply:     1     2     3     4  

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@(protected)?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list