Guilsson Guilsson | 1 Nov 23:10
Picon

RPM build for argus it's OK but NOT OK for argus-clients

I need to install argus on some Fedora 11 machines without C compiler and must be in RPM format.
 
I run these commands in a Fedora 11 with development tools installed.
 
For ARGUS SERVER worked fine:
 
# mkdir -p /root/argusstuff
# cd  /root/argusstuff
# rm -rf /root/rpmbuild/*
# rpmbuild -ta argus-3.0.2.tar.gz
... snip ...
# rpm -qlp /root/rpmbuild/RPMS/i386/argus-3.0-2.i386.rpm
/etc/argus.conf
/etc/rc.d/init.d/argus
/usr/local/bin/argusarchive
/usr/local/bin/argusbug
/usr/local/sbin/argus
/usr/local/share/doc/argus-3.0
/usr/local/share/man/man5/argus.conf.5
/usr/local/share/man/man8/argus.8
For ARGUS CLIENTS didn't  worked:
 
# mkdir -p /root/argusstuff
# cd  /root/argusstuff
# rm -rf /root/rpmbuild/*
# rpmbuild -ta argus-clients-3.0.2.tar.gz
... snip ...
----------------------------------------------------------------------------------------------------------------------------------------
make[1]: Leaving directory `/root/rpmbuild/BUILD/argus-clients-3.0.2/radump'
+ mkdir -p /usr/local
+ mkdir -p /usr/local/bin
+ mkdir -p /usr/share/doc/argus-clients-3.0
+ mkdir -p /usr/local/argus
+ mkdir -p /usr/local/argus/lib
+ cp -Rp support /usr/share/doc/argus-clients-3.0
+ cp -Rp doc/CHANGES doc/FAQ doc/HOW-TO doc/README doc/html /usr/share/doc/argus-clients-3.0
+ install -m 0555 -o root -g root bin/ra /usr/local/bin
+ install -m 0555 -o root -g root bin/rabins /usr/local/bin
+ install -m 0555 -o root -g root bin/racluster /usr/local/bin
+ install -m 0555 -o root -g root bin/racount /usr/local/bin
+ install -m 0555 -o root -g root bin/radium /usr/local/bin
install: cannot stat `bin/radium': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)
----------------------------------------------------------------------------------------------------------------------------------------
 
Any ideas on how to fix ?
 
-Guilsson
 
 
Guilsson Guilsson | 1 Nov 23:30
Picon

Re: Argus SPEC file for RPM building (fwd)

Thanks for your fast reply.
But no success:
 
# cd  /root/argusstuff
# rpmbuild -ba argus-clients-3.0.2-spec.patch
error: line 1: Unknown tag: diff -ru argus-clients-3.0.2/lib/argus-clients.spec argus-clients-3.0.2-chris/lib/argus-clients.spec
Thanks
-Guilsson


 
2009/11/1 Chris Wilson <chris-argus <at> qwirx.com>
Hi Guilsson Guilsson,

Please find attached my patch to the spec file that fixes building the argus-clients RPM for me. Please apply to the spec file and build it with rpmbuild -ba <patched-specfile> .

Cheers, Chris.
--
_ ___ __     _
 / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |

---------- Forwarded message ----------
Date: Sat, 10 Oct 2009 02:35:01 +0100 (BST)
From: Chris Wilson <chris-argus <at> qwirx.com>
To: Carter Bullard <carter <at> qosient.com>
Cc: argus-info <at> lists.andrew.cmu.edu
Subject: Re: [ARGUS] Argus SPEC file for RPM building

Hi Carter,

On Wed, 7 Oct 2009, Carter Bullard wrote:

I've made changes in the argus.spec file in argus-3.0.2.tar.gz to deal with your issue and refreshed the candidate argus-3.0.2 tarball.  Could you give this a try to see if it solves your problem?

I had to do something different from your suggested patch, so it may need some little test.  If this works for you, I'll make the same type of changes for the clients.

Thanks for that. It does fix the problem with building the server RPM. I've attached an updated patch for the client RPM which may be less intrusive than the previous one.

Cheers, Chris.
--
_____ __     _
\  __/ / ,__(_)_  | Chris Wilson <chris+sig <at> qwirx.com> Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer |
\__/_/_/_//_/___/ | We are GNU : free your mind & your software |

 
I need to install argus on some Fedora 11 machines without C compiler and must be in RPM format.
 
I run these commands in a Fedora 11 with development tools installed.
 
For ARGUS SERVER worked fine:
 
# mkdir -p /root/argusstuff
# cd  /root/argusstuff
# wget ftp://ftp.qosient.com/dev/argus-3.0/argus-3.0.2.tar.gz
# rm -rf /root/rpmbuild/*
# rpmbuild -ta argus-3.0.2.tar.gz
... snip ...
# rpm -qlp /root/rpmbuild/RPMS/i386/argus-3.0-2.i386.rpm
/etc/argus.conf
/etc/rc.d/init.d/argus
/usr/local/bin/argusarchive
/usr/local/bin/argusbug
/usr/local/sbin/argus
/usr/local/share/doc/argus-3.0
/usr/local/share/man/man5/argus.conf.5
/usr/local/share/man/man8/argus.8
For ARGUS CLIENTS didn't  worked:
 
# mkdir -p /root/argusstuff
# cd  /root/argusstuff
# wget ftp://ftp.qosient.com/dev/argus-3.0/argus-clients-3.0.2.tar.gz
# rm -rf /root/rpmbuild/*
# rpmbuild -ta argus-clients-3.0.2.tar.gz
... snip ...
----------------------------------------------------------------------------------------------------------------------------------------
make[1]: Leaving directory `/root/rpmbuild/BUILD/argus-clients-3.0.2/radump'
+ mkdir -p /usr/local
+ mkdir -p /usr/local/bin
+ mkdir -p /usr/share/doc/argus-clients-3.0
+ mkdir -p /usr/local/argus
+ mkdir -p /usr/local/argus/lib
+ cp -Rp support /usr/share/doc/argus-clients-3.0
+ cp -Rp doc/CHANGES doc/FAQ doc/HOW-TO doc/README doc/html /usr/share/doc/argus-clients-3.0
+ install -m 0555 -o root -g root bin/ra /usr/local/bin
+ install -m 0555 -o root -g root bin/rabins /usr/local/bin
+ install -m 0555 -o root -g root bin/racluster /usr/local/bin
+ install -m 0555 -o root -g root bin/racount /usr/local/bin
+ install -m 0555 -o root -g root bin/radium /usr/local/bin
install: cannot stat `bin/radium': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)
----------------------------------------------------------------------------------------------------------------------------------------
 
Any ideas on how to fix ?
 
-Guilsson
 
Chris Wilson | 1 Nov 23:41

Re: Argus SPEC file for RPM building (fwd)

On Sun, 1 Nov 2009, Guilsson Guilsson wrote:

> Thanks for your fast reply.
> But no success:
>
> # cd  /root/argusstuff
> # rpmbuild -ba argus-clients-3.0.2-spec.patch
> error: line 1: Unknown tag: diff -ru
> argus-clients-3.0.2/lib/argus-clients.spec
> argus-clients-3.0.2-chris/lib/argus-clients.spec

You can't build the patch. You have to apply it to the spec file contained 
inside the tarball, and then use rpmbuild -ba on that:

cp argus-clients-3.0.2/lib/argus-clients.spec /usr/src/redhat/SPECS
cd /usr/src/redhat/SPECS
patch -p1 < /tmp/argus-clients-3.0.2-spec.patch
rpmbuild -ba argus-clients.spec

Cheers, Chris.
--

-- 
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |

Guilsson Guilsson | 2 Nov 00:55
Picon

Re: Argus SPEC file for RPM building (fwd)

I was able to patch the spec file. But still no success. Different error messages.
 
=======================================================
... [snip] ...
make[1]: Leaving directory `/root/rpmbuild/BUILD/argus-clients-3.0.2/radump'
+ mkdir -p /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local
+ mkdir -p /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ mkdir -p /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/share/doc/argus-clients-3.0
+ mkdir -p /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/argus
+ mkdir -p /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/argus/lib
+ mkdir -p /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/share/man/man1
+ mkdir -p /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/share/man/man5
+ mkdir -p /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/share/man/man8
+ cp -Rp support /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/share/doc/argus-clients-3.0
+ cp -Rp doc/CHANGES doc/FAQ doc/HOW-TO doc/README doc/html /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/share/doc/argus-clients-3.0
+ install bin/argusbug /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/ra /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/rabins /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/racluster /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/racount /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/radark /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/radump /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/rafilteraddr /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/ragraph /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/rahisto /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/rahosts /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/ralabel /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/ranonymize /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/rapath /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/rapolicy /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/raports /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/raservices /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/rasort /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/rasplit /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
+ install bin/rasql /root/rpmbuild/BUILDROOT/argus-clients-3.0-2.i386//usr/local/bin
install: cannot stat `bin/rasql': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.LfIlOo (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.LfIlOo (%build)
=======================================================
# find /root/rpmbuild | grep rasql
/root/rpmbuild/BUILD/argus-clients-3.0.2/ramysql/rasqlinsert.c
/root/rpmbuild/BUILD/argus-clients-3.0.2/ramysql/rasql.c
/root/rpmbuild/BUILD/argus-clients-3.0.2/ramysql/rasqlinsert.h
=======================================================
 
I re-create the tar.gz with the patched spec file. Exactly the same result.
 
Thanks for your help.
-Guilsson

On Sun, Nov 1, 2009 at 20:41, Chris Wilson <chris-argus <at> qwirx.com> wrote:
On Sun, 1 Nov 2009, Guilsson Guilsson wrote:

Thanks for your fast reply.
But no success:

# cd  /root/argusstuff
# rpmbuild -ba argus-clients-3.0.2-spec.patch
error: line 1: Unknown tag: diff -ru
argus-clients-3.0.2/lib/argus-clients.spec
argus-clients-3.0.2-chris/lib/argus-clients.spec

You can't build the patch. You have to apply it to the spec file contained inside the tarball, and then use rpmbuild -ba on that:

cp argus-clients-3.0.2/lib/argus-clients.spec /usr/src/redhat/SPECS
cd /usr/src/redhat/SPECS
patch -p1 < /tmp/argus-clients-3.0.2-spec.patch
rpmbuild -ba argus-clients.spec


Cheers, Chris.
--
_ ___ __     _
 / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |

Carter Bullard | 2 Nov 16:37

Re: RPM build for argus it's OK but NOT OK for argus-clients

Hey Guilsson,
Can you send the entire output of rpmbuild, and the contents of the resulting
./Makefile?  Seems like you're ./configure script isn't doing the right thing.

Carter


On Nov 1, 2009, at 5:10 PM, Guilsson Guilsson wrote:

I need to install argus on some Fedora 11 machines without C compiler and must be in RPM format.
 
I run these commands in a Fedora 11 with development tools installed.
 
For ARGUS SERVER worked fine:
 
# mkdir -p /root/argusstuff
# cd  /root/argusstuff
# rm -rf /root/rpmbuild/*
# rpmbuild -ta argus-3.0.2.tar.gz
... snip ...
# rpm -qlp /root/rpmbuild/RPMS/i386/argus-3.0-2.i386.rpm
/etc/argus.conf
/etc/rc.d/init.d/argus
/usr/local/bin/argusarchive
/usr/local/bin/argusbug
/usr/local/sbin/argus
/usr/local/share/doc/argus-3.0
/usr/local/share/man/man5/argus.conf.5
/usr/local/share/man/man8/argus.8
For ARGUS CLIENTS didn't  worked:
 
# mkdir -p /root/argusstuff
# cd  /root/argusstuff
# rm -rf /root/rpmbuild/*
# rpmbuild -ta argus-clients-3.0.2.tar.gz
... snip ...
----------------------------------------------------------------------------------------------------------------------------------------
make[1]: Leaving directory `/root/rpmbuild/BUILD/argus-clients-3.0.2/radump'
+ mkdir -p /usr/local
+ mkdir -p /usr/local/bin
+ mkdir -p /usr/share/doc/argus-clients-3.0
+ mkdir -p /usr/local/argus
+ mkdir -p /usr/local/argus/lib
+ cp -Rp support /usr/share/doc/argus-clients-3.0
+ cp -Rp doc/CHANGES doc/FAQ doc/HOW-TO doc/README doc/html /usr/share/doc/argus-clients-3.0
+ install -m 0555 -o root -g root bin/ra /usr/local/bin
+ install -m 0555 -o root -g root bin/rabins /usr/local/bin
+ install -m 0555 -o root -g root bin/racluster /usr/local/bin
+ install -m 0555 -o root -g root bin/racount /usr/local/bin
+ install -m 0555 -o root -g root bin/radium /usr/local/bin
install: cannot stat `bin/radium': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)
----------------------------------------------------------------------------------------------------------------------------------------
 
Any ideas on how to fix ?
 
-Guilsson
 
 

Carter Bullard
CEO/President
QoSient, LLC
150 E 57th Street Suite 12D
New York, New York  10022

+1 212 588-9133 Phone
+1 212 588-9134 Fax



Attachment (smime.p7s): application/pkcs7-signature, 3815 bytes
Guilsson Guilsson | 2 Nov 21:02
Picon

Re: RPM build for argus it's OK but NOT OK for argus-clients

Hey Carter,
Let's go:
 
cd /root/argusstuff/original
rm -rf /root/rpmbuild/*
rpmbuild -ta argus-clients-3.0.2.tar.gz
cp -p /root/rpmbuild/BUILD/argus-clients-3.0.2/Makefile /root/argusstuff/Makefile.original.txt
 
===RPMBUILD ORIGINAL OUTPUT: http://pastebin.com/f4aaf6398

cd /root/argusstuff/patched
rm -rf /root/rpmbuild/*
rpmbuild -ta argus-clients-3.0.2.tar.gz
cp -p /root/rpmbuild/BUILD/argus-clients-3.0.2/Makefile /root/argusstuff/Makefile.patched.txt
 
===RPMBUILD PATCHED OUTPUT: http://pastebin.com/f2d707dae

MAKEFILE ARE IDENTICAL:
diff /root/argusstuff/Makefile.original.txt /root/argusstuff/Makefile.patched.txt ; echo $?
0
 
===MAKEFILE CLIENTS OUTPUT: http://pastebin.com/d5b9e796f
 
 
But I noticed the contents of /root/rpmbuild/* tree have significant differences.
While /root/rpmbuild/BUILDROOT is EMPTY for original package, the same directory for patched package has a lot of files (the executables and docs: argus-clients-3.0-2.i386 tree).

/root/rpmbuild contents for ORIGINAL: http://pastebin.com/f581de74d
/root/rpmbuild contents for PATCHED: http://pastebin.com/f53e9143d
 
Just for comparison, the RPMBUILD for the server run smoothly:
 
#  rm -rf /root/rpmbuild/* ; cd /root/argusstuff/server ; rpmbuild -ta argus-3.0.2.tar.gz
 # rpm -qlp /root/rpmbuild/RPMS/i386/argus-3.0-2.i386.rpm
/etc/argus.conf
/etc/rc.d/init.d/argus
/usr/local/bin/argusarchive
/usr/local/bin/argusbug
/usr/local/sbin/argus
/usr/local/share/doc/argus-3.0
/usr/local/share/man/man5/argus.conf.5
/usr/local/share/man/man8/argus.8
 
Thanks
-Guilsson
On Mon, Nov 2, 2009 at 13:37, Carter Bullard <carter <at> qosient.com> wrote:
Hey Guilsson,
Can you send the entire output of rpmbuild, and the contents of the resulting
./Makefile?  Seems like you're ./configure script isn't doing the right thing.

Carter


On Nov 1, 2009, at 5:10 PM, Guilsson Guilsson wrote:

I need to install argus on some Fedora 11 machines without C compiler and must be in RPM format.
 
I run these commands in a Fedora 11 with development tools installed.
 
For ARGUS SERVER worked fine:
 
# mkdir -p /root/argusstuff
# cd  /root/argusstuff
# rm -rf /root/rpmbuild/*
# rpmbuild -ta argus-3.0.2.tar.gz
... snip ...
# rpm -qlp /root/rpmbuild/RPMS/i386/argus-3.0-2.i386.rpm
/etc/argus.conf
/etc/rc.d/init.d/argus
/usr/local/bin/argusarchive
/usr/local/bin/argusbug
/usr/local/sbin/argus
/usr/local/share/doc/argus-3.0
/usr/local/share/man/man5/argus.conf.5
/usr/local/share/man/man8/argus.8
For ARGUS CLIENTS didn't  worked:
 
# mkdir -p /root/argusstuff
# cd  /root/argusstuff
# rm -rf /root/rpmbuild/*
# rpmbuild -ta argus-clients-3.0.2.tar.gz
... snip ...
----------------------------------------------------------------------------------------------------------------------------------------
make[1]: Leaving directory `/root/rpmbuild/BUILD/argus-clients-3.0.2/radump'
+ mkdir -p /usr/local
+ mkdir -p /usr/local/bin
+ mkdir -p /usr/share/doc/argus-clients-3.0
+ mkdir -p /usr/local/argus
+ mkdir -p /usr/local/argus/lib
+ cp -Rp support /usr/share/doc/argus-clients-3.0
+ cp -Rp doc/CHANGES doc/FAQ doc/HOW-TO doc/README doc/html /usr/share/doc/argus-clients-3.0
+ install -m 0555 -o root -g root bin/ra /usr/local/bin
+ install -m 0555 -o root -g root bin/rabins /usr/local/bin
+ install -m 0555 -o root -g root bin/racluster /usr/local/bin
+ install -m 0555 -o root -g root bin/racount /usr/local/bin
+ install -m 0555 -o root -g root bin/radium /usr/local/bin
install: cannot stat `bin/radium': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)
----------------------------------------------------------------------------------------------------------------------------------------
 
Any ideas on how to fix ?
 
-Guilsson
 
 

Carter Bullard
CEO/President
QoSient, LLC
150 E 57th Street Suite 12D
New York, New York  10022

+1 212 588-9133 Phone
+1 212 588-9134 Fax




Carter Bullard | 3 Nov 21:25

Re: RPM build for argus it's OK but NOT OK for argus-clients

Hey Guilsson,
Looks like you have an old argus-clients-3.0.2.
Here is the specfile in the current argus-clients-3.0.2.tar.gz that is  
on the server.
Compare to see if its different than yours, and you should grab the  
new one.
(we host not released, so the notion that the file can change without  
a name change
is appropriate).

Carter

On Nov 2, 2009, at 3:02 PM, Guilsson Guilsson wrote:

> Hey Carter,
> Let's go:
>
> cd /root/argusstuff/original
> rm -rf /root/rpmbuild/*
> rpmbuild -ta argus-clients-3.0.2.tar.gz
> cp -p /root/rpmbuild/BUILD/argus-clients-3.0.2/Makefile /root/ 
> argusstuff/Makefile.original.txt
>
> ===RPMBUILD ORIGINAL OUTPUT: http://pastebin.com/f4aaf6398
>
> cd /root/argusstuff/patched
> rm -rf /root/rpmbuild/*
> rpmbuild -ta argus-clients-3.0.2.tar.gz
> cp -p /root/rpmbuild/BUILD/argus-clients-3.0.2/Makefile /root/ 
> argusstuff/Makefile.patched.txt
>
> ===RPMBUILD PATCHED OUTPUT: http://pastebin.com/f2d707dae
>
> MAKEFILE ARE IDENTICAL:
> diff /root/argusstuff/Makefile.original.txt /root/argusstuff/ 
> Makefile.patched.txt ; echo $?
> 0
>
> ===MAKEFILE CLIENTS OUTPUT: http://pastebin.com/d5b9e796f
>
>
> But I noticed the contents of /root/rpmbuild/* tree have significant  
> differences.
> While /root/rpmbuild/BUILDROOT is EMPTY for original package, the  
> same directory for patched package has a lot of files (the  
> executables and docs: argus-clients-3.0-2.i386 tree).
>
> /root/rpmbuild contents for ORIGINAL: http://pastebin.com/f581de74d
> /root/rpmbuild contents for PATCHED: http://pastebin.com/f53e9143d
>
> Just for comparison, the RPMBUILD for the server run smoothly:
>
> #  rm -rf /root/rpmbuild/* ; cd /root/argusstuff/server ; rpmbuild - 
> ta argus-3.0.2.tar.gz
>  # rpm -qlp /root/rpmbuild/RPMS/i386/argus-3.0-2.i386.rpm
> /etc/argus.conf
> /etc/rc.d/init.d/argus
> /usr/local/bin/argusarchive
> /usr/local/bin/argusbug
> /usr/local/sbin/argus
> /usr/local/share/doc/argus-3.0
> /usr/local/share/man/man5/argus.conf.5
> /usr/local/share/man/man8/argus.8
> ===SERVER OUTPUT: http://pastebin.com/f1c08bc95
>
> Thanks
> -Guilsson
> On Mon, Nov 2, 2009 at 13:37, Carter Bullard <carter <at> qosient.com>  
> wrote:
> Hey Guilsson,
> Can you send the entire output of rpmbuild, and the contents of the  
> resulting
> ./Makefile?  Seems like you're ./configure script isn't doing the  
> right thing.
>
> Carter
>
>
> On Nov 1, 2009, at 5:10 PM, Guilsson Guilsson wrote:
>
>> I need to install argus on some Fedora 11 machines without C  
>> compiler and must be in RPM format.
>>
>> I run these commands in a Fedora 11 with development tools installed.
>>
>> For ARGUS SERVER worked fine:
>>
>> # mkdir -p /root/argusstuff
>> # cd  /root/argusstuff
>> # wget ftp://ftp.qosient.com/dev/argus-3.0/argus-3.0.2.tar.gz
>> # rm -rf /root/rpmbuild/*
>> # rpmbuild -ta argus-3.0.2.tar.gz
>> ... snip ...
>> # rpm -qlp /root/rpmbuild/RPMS/i386/argus-3.0-2.i386.rpm
>> /etc/argus.conf
>> /etc/rc.d/init.d/argus
>> /usr/local/bin/argusarchive
>> /usr/local/bin/argusbug
>> /usr/local/sbin/argus
>> /usr/local/share/doc/argus-3.0
>> /usr/local/share/man/man5/argus.conf.5
>> /usr/local/share/man/man8/argus.8
>> For ARGUS CLIENTS didn't  worked:
>>
>> # mkdir -p /root/argusstuff
>> # cd  /root/argusstuff
>> # wget ftp://ftp.qosient.com/dev/argus-3.0/argus-clients-3.0.2.tar.gz
>> # rm -rf /root/rpmbuild/*
>> # rpmbuild -ta argus-clients-3.0.2.tar.gz
>> ... snip ...
>> ----------------------------------------------------------------------------------------------------------------------------------------
>> make[1]: Leaving directory `/root/rpmbuild/BUILD/argus- 
>> clients-3.0.2/radump'
>> + mkdir -p /usr/local
>> + mkdir -p /usr/local/bin
>> + mkdir -p /usr/share/doc/argus-clients-3.0
>> + mkdir -p /usr/local/argus
>> + mkdir -p /usr/local/argus/lib
>> + cp -Rp support /usr/share/doc/argus-clients-3.0
>> + cp -Rp doc/CHANGES doc/FAQ doc/HOW-TO doc/README doc/html /usr/ 
>> share/doc/argus-clients-3.0
>> + install -m 0555 -o root -g root bin/ra /usr/local/bin
>> + install -m 0555 -o root -g root bin/rabins /usr/local/bin
>> + install -m 0555 -o root -g root bin/racluster /usr/local/bin
>> + install -m 0555 -o root -g root bin/racount /usr/local/bin
>> + install -m 0555 -o root -g root bin/radium /usr/local/bin
>> install: cannot stat `bin/radium': No such file or directory
>> error: Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)
>>
>> RPM build errors:
>>     Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)
>> ----------------------------------------------------------------------------------------------------------------------------------------
>>
>> Any ideas on how to fix ?
>>
>> -Guilsson
>>
>>
>
> Carter Bullard
> CEO/President
> QoSient, LLC
> 150 E 57th Street Suite 12D
> New York, New York  10022
>
> +1 212 588-9133 Phone
> +1 212 588-9134 Fax
>
>
>
>

Carter Bullard
CEO/President
QoSient, LLC
150 E 57th Street Suite 12D
New York, New York  10022

+1 212 588-9133 Phone
+1 212 588-9134 Fax

Attachment (smime.p7s): application/pkcs7-signature, 3815 bytes
Guilsson Guilsson | 4 Nov 01:20
Picon

Re: RPM build for argus it's OK but NOT OK for argus-clients

Unfortunately, they are the same:

root <at> gwmoney:~/argusstuff/original # wget ftp://ftp.qosient.com/dev/argus-3.0/argus-clients-3.0.2.tar.gz
           => `argus-clients-3.0.2.tar.gz.1'
Resolving ftp.qosient.com... 216.92.197.167
Connecting to ftp.qosient.com|216.92.197.167|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /dev/argus-3.0 ... done.
==> SIZE argus-clients-3.0.2.tar.gz ... 1803847
==> PASV ... done.    ==> RETR argus-clients-3.0.2.tar.gz ... done.
Length: 1803847 (1.7M)

100%[=========================================================>] 1,803,847   69.4K/s   in 26s

2009-11-03 21:54:27 (68.7 KB/s) - `argus-clients-3.0.2.tar.gz.1' saved [1803847]

root <at> gwmoney:~/argusstuff/original # md5sum *
0346f096095e201055b18ef2bb968eed  argus-clients-3.0.2.tar.gz
0346f096095e201055b18ef2bb968eed  argus-clients-3.0.2.tar.gz.1

As you can see in my first post, I use WGET to get tar.gz directly from the site.

The argus-clients.spec supplied by Chris (tks Chris) is strongly different from yours.

Thanks
-Guilsson


On Tue, Nov 3, 2009 at 18:25, Carter Bullard <carter <at> qosient.com> wrote:
Hey Guilsson,
Looks like you have an old argus-clients-3.0.2.
Here is the specfile in the current argus-clients-3.0.2.tar.gz that is on the server.
Compare to see if its different than yours, and you should grab the new one.
(we host not released, so the notion that the file can change without a name change
is appropriate).

Carter




On Nov 2, 2009, at 3:02 PM, Guilsson Guilsson wrote:

Hey Carter,
Let's go:
 
cd /root/argusstuff/original
rm -rf /root/rpmbuild/*
rpmbuild -ta argus-clients-3.0.2.tar.gz
cp -p /root/rpmbuild/BUILD/argus-clients-3.0.2/Makefile /root/argusstuff/Makefile.original.txt
 
===RPMBUILD ORIGINAL OUTPUT: http://pastebin.com/f4aaf6398

cd /root/argusstuff/patched
rm -rf /root/rpmbuild/*
rpmbuild -ta argus-clients-3.0.2.tar.gz
cp -p /root/rpmbuild/BUILD/argus-clients-3.0.2/Makefile /root/argusstuff/Makefile.patched.txt
 
===RPMBUILD PATCHED OUTPUT: http://pastebin.com/f2d707dae

MAKEFILE ARE IDENTICAL:
diff /root/argusstuff/Makefile.original.txt /root/argusstuff/Makefile.patched.txt ; echo $?
0
 
===MAKEFILE CLIENTS OUTPUT: http://pastebin.com/d5b9e796f
 
 
But I noticed the contents of /root/rpmbuild/* tree have significant differences.
While /root/rpmbuild/BUILDROOT is EMPTY for original package, the same directory for patched package has a lot of files (the executables and docs: argus-clients-3.0-2.i386 tree).

/root/rpmbuild contents for ORIGINAL: http://pastebin.com/f581de74d
/root/rpmbuild contents for PATCHED: http://pastebin.com/f53e9143d
 
Just for comparison, the RPMBUILD for the server run smoothly:
 
#  rm -rf /root/rpmbuild/* ; cd /root/argusstuff/server ; rpmbuild -ta argus-3.0.2.tar.gz
 # rpm -qlp /root/rpmbuild/RPMS/i386/argus-3.0-2.i386.rpm
/etc/argus.conf
/etc/rc.d/init.d/argus
/usr/local/bin/argusarchive
/usr/local/bin/argusbug
/usr/local/sbin/argus
/usr/local/share/doc/argus-3.0
/usr/local/share/man/man5/argus.conf.5
/usr/local/share/man/man8/argus.8
 
Thanks
-Guilsson
On Mon, Nov 2, 2009 at 13:37, Carter Bullard <carter <at> qosient.com> wrote:
Hey Guilsson,
Can you send the entire output of rpmbuild, and the contents of the resulting
./Makefile?  Seems like you're ./configure script isn't doing the right thing.

Carter


On Nov 1, 2009, at 5:10 PM, Guilsson Guilsson wrote:

I need to install argus on some Fedora 11 machines without C compiler and must be in RPM format.
 
I run these commands in a Fedora 11 with development tools installed.
 
For ARGUS SERVER worked fine:
 
# mkdir -p /root/argusstuff
# cd  /root/argusstuff
# rm -rf /root/rpmbuild/*
# rpmbuild -ta argus-3.0.2.tar.gz
... snip ...
# rpm -qlp /root/rpmbuild/RPMS/i386/argus-3.0-2.i386.rpm
/etc/argus.conf
/etc/rc.d/init.d/argus
/usr/local/bin/argusarchive
/usr/local/bin/argusbug
/usr/local/sbin/argus
/usr/local/share/doc/argus-3.0
/usr/local/share/man/man5/argus.conf.5
/usr/local/share/man/man8/argus.8
For ARGUS CLIENTS didn't  worked:
 
# mkdir -p /root/argusstuff
# cd  /root/argusstuff
# rm -rf /root/rpmbuild/*
# rpmbuild -ta argus-clients-3.0.2.tar.gz
... snip ...
----------------------------------------------------------------------------------------------------------------------------------------
make[1]: Leaving directory `/root/rpmbuild/BUILD/argus-clients-3.0.2/radump'
+ mkdir -p /usr/local
+ mkdir -p /usr/local/bin
+ mkdir -p /usr/share/doc/argus-clients-3.0
+ mkdir -p /usr/local/argus
+ mkdir -p /usr/local/argus/lib
+ cp -Rp support /usr/share/doc/argus-clients-3.0
+ cp -Rp doc/CHANGES doc/FAQ doc/HOW-TO doc/README doc/html /usr/share/doc/argus-clients-3.0
+ install -m 0555 -o root -g root bin/ra /usr/local/bin
+ install -m 0555 -o root -g root bin/rabins /usr/local/bin
+ install -m 0555 -o root -g root bin/racluster /usr/local/bin
+ install -m 0555 -o root -g root bin/racount /usr/local/bin
+ install -m 0555 -o root -g root bin/radium /usr/local/bin
install: cannot stat `bin/radium': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)
----------------------------------------------------------------------------------------------------------------------------------------
 
Any ideas on how to fix ?
 
-Guilsson
 
 

Carter Bullard
CEO/President
QoSient, LLC
150 E 57th Street Suite 12D
New York, New York  10022

+1 212 588-9133 Phone
+1 212 588-9134 Fax





Carter Bullard
CEO/President
QoSient, LLC
150 E 57th Street Suite 12D
New York, New York  10022

+1 212 588-9133 Phone
+1 212 588-9134 Fax





Carter Bullard | 4 Nov 03:27

Re: RPM build for argus it's OK but NOT OK for argus-clients

Hey Guilsson,
Grab the newest argus-clients software, and give it a try.
Should work whether the ramysql programs are made or not,
and you shouldn't have to be root to get it done.

Carter

On Nov 3, 2009, at 7:20 PM, Guilsson Guilsson wrote:

Unfortunately, they are the same:

root <at> gwmoney:~/argusstuff/original # wget ftp://ftp.qosient.com/dev/argus-3.0/argus-clients-3.0.2.tar.gz
           => `argus-clients-3.0.2.tar.gz.1'
Resolving ftp.qosient.com... 216.92.197.167
Connecting to ftp.qosient.com|216.92.197.167|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /dev/argus-3.0 ... done.
==> SIZE argus-clients-3.0.2.tar.gz ... 1803847
==> PASV ... done.    ==> RETR argus-clients-3.0.2.tar.gz ... done.
Length: 1803847 (1.7M)

100%[=========================================================>] 1,803,847   69.4K/s   in 26s

2009-11-03 21:54:27 (68.7 KB/s) - `argus-clients-3.0.2.tar.gz.1' saved [1803847]

root <at> gwmoney:~/argusstuff/original # md5sum *
0346f096095e201055b18ef2bb968eed  argus-clients-3.0.2.tar.gz
0346f096095e201055b18ef2bb968eed  argus-clients-3.0.2.tar.gz.1

As you can see in my first post, I use WGET to get tar.gz directly from the site.

The argus-clients.spec supplied by Chris (tks Chris) is strongly different from yours.

Thanks
-Guilsson


On Tue, Nov 3, 2009 at 18:25, Carter Bullard <carter <at> qosient.com> wrote:
Hey Guilsson,
Looks like you have an old argus-clients-3.0.2.
Here is the specfile in the current argus-clients-3.0.2.tar.gz that is on the server.
Compare to see if its different than yours, and you should grab the new one.
(we host not released, so the notion that the file can change without a name change
is appropriate).

Carter




On Nov 2, 2009, at 3:02 PM, Guilsson Guilsson wrote:

Hey Carter,
Let's go:
 
cd /root/argusstuff/original
rm -rf /root/rpmbuild/*
rpmbuild -ta argus-clients-3.0.2.tar.gz
cp -p /root/rpmbuild/BUILD/argus-clients-3.0.2/Makefile /root/argusstuff/Makefile.original.txt
 
===RPMBUILD ORIGINAL OUTPUT: http://pastebin.com/f4aaf6398

cd /root/argusstuff/patched
rm -rf /root/rpmbuild/*
rpmbuild -ta argus-clients-3.0.2.tar.gz
cp -p /root/rpmbuild/BUILD/argus-clients-3.0.2/Makefile /root/argusstuff/Makefile.patched.txt
 
===RPMBUILD PATCHED OUTPUT: http://pastebin.com/f2d707dae

MAKEFILE ARE IDENTICAL:
diff /root/argusstuff/Makefile.original.txt /root/argusstuff/Makefile.patched.txt ; echo $?
0
 
===MAKEFILE CLIENTS OUTPUT: http://pastebin.com/d5b9e796f
 
 
But I noticed the contents of /root/rpmbuild/* tree have significant differences.
While /root/rpmbuild/BUILDROOT is EMPTY for original package, the same directory for patched package has a lot of files (the executables and docs: argus-clients-3.0-2.i386 tree).

/root/rpmbuild contents for ORIGINAL: http://pastebin.com/f581de74d
/root/rpmbuild contents for PATCHED: http://pastebin.com/f53e9143d
 
Just for comparison, the RPMBUILD for the server run smoothly:
 
#  rm -rf /root/rpmbuild/* ; cd /root/argusstuff/server ; rpmbuild -ta argus-3.0.2.tar.gz
 # rpm -qlp /root/rpmbuild/RPMS/i386/argus-3.0-2.i386.rpm
/etc/argus.conf
/etc/rc.d/init.d/argus
/usr/local/bin/argusarchive
/usr/local/bin/argusbug
/usr/local/sbin/argus
/usr/local/share/doc/argus-3.0
/usr/local/share/man/man5/argus.conf.5
/usr/local/share/man/man8/argus.8
 
Thanks
-Guilsson
On Mon, Nov 2, 2009 at 13:37, Carter Bullard <carter <at> qosient.com> wrote:
Hey Guilsson,
Can you send the entire output of rpmbuild, and the contents of the resulting
./Makefile?  Seems like you're ./configure script isn't doing the right thing.

Carter


On Nov 1, 2009, at 5:10 PM, Guilsson Guilsson wrote:

I need to install argus on some Fedora 11 machines without C compiler and must be in RPM format.
 
I run these commands in a Fedora 11 with development tools installed.
 
For ARGUS SERVER worked fine:
 
# mkdir -p /root/argusstuff
# cd  /root/argusstuff
# rm -rf /root/rpmbuild/*
# rpmbuild -ta argus-3.0.2.tar.gz
... snip ...
# rpm -qlp /root/rpmbuild/RPMS/i386/argus-3.0-2.i386.rpm
/etc/argus.conf
/etc/rc.d/init.d/argus
/usr/local/bin/argusarchive
/usr/local/bin/argusbug
/usr/local/sbin/argus
/usr/local/share/doc/argus-3.0
/usr/local/share/man/man5/argus.conf.5
/usr/local/share/man/man8/argus.8
For ARGUS CLIENTS didn't  worked:
 
# mkdir -p /root/argusstuff
# cd  /root/argusstuff
# rm -rf /root/rpmbuild/*
# rpmbuild -ta argus-clients-3.0.2.tar.gz
... snip ...
----------------------------------------------------------------------------------------------------------------------------------------
make[1]: Leaving directory `/root/rpmbuild/BUILD/argus-clients-3.0.2/radump'
+ mkdir -p /usr/local
+ mkdir -p /usr/local/bin
+ mkdir -p /usr/share/doc/argus-clients-3.0
+ mkdir -p /usr/local/argus
+ mkdir -p /usr/local/argus/lib
+ cp -Rp support /usr/share/doc/argus-clients-3.0
+ cp -Rp doc/CHANGES doc/FAQ doc/HOW-TO doc/README doc/html /usr/share/doc/argus-clients-3.0
+ install -m 0555 -o root -g root bin/ra /usr/local/bin
+ install -m 0555 -o root -g root bin/rabins /usr/local/bin
+ install -m 0555 -o root -g root bin/racluster /usr/local/bin
+ install -m 0555 -o root -g root bin/racount /usr/local/bin
+ install -m 0555 -o root -g root bin/radium /usr/local/bin
install: cannot stat `bin/radium': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Dg2Wb5 (%build)
----------------------------------------------------------------------------------------------------------------------------------------
 
Any ideas on how to fix ?
 
-Guilsson
 
 




Attachment (smime.p7s): application/pkcs7-signature, 3815 bytes
Matt Sheridan | 4 Nov 19:52
Picon

Rasplit compression support

Hi Carter, all –

 

I have been impressed with the argus product, thank you for your work.

 

One consideration I had - possibly for product enhancement - would be for rasplit to incorporate a feature/flag for compressing a split file when it is written.  The functionality of %variable% directories is excellent, but would be even better served if compression was implemented immediately to a split file. It seems difficult to use the variable directories, when they become intricate – and the files need to be found and compressed. Obviously a solution can be scripted – but many of us are not terribly proficient there ;).

 

Any thoughts on such a feature, or is there something already in place I can use?

 

Thanks for your help.

 

Matt


Gmane