Argus SPEC file for RPM building

Chris Wilson chris-argus at qwirx.com
Fri Oct 9 21:35:01 EDT 2009


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 |
-------------- next part --------------
diff -ru argus-clients-3.0.2/lib/argus-clients.spec argus-clients-3.0.2-chris/lib/argus-clients.spec
--- argus-clients-3.0.2/lib/argus-clients.spec	2009-09-14 19:29:11.000000000 +0100
+++ argus-clients-3.0.2-chris/lib/argus-clients.spec	2009-10-10 02:29:19.000000000 +0100
@@ -9,6 +9,7 @@
 Group: Applications/Internet
 Source0: ftp://ftp.qosient.com/argus/%{name}-%{ver}.%{rel}.tar.gz
 URL: http://qosient.com/argus
+BuildRoot: /var/tmp/argus-clients
 
 %description
 Argus Clients contains a number of programs that process Argus data.
@@ -25,41 +26,55 @@
 %build
 %configure --prefix=/usr
 make
-mkdir -p %{argusdir}
-mkdir -p %{argusbin}
-mkdir -p %{argusdocs}
-mkdir -p %{argusdata}
-mkdir -p %{arguslib}
-
-cp -Rp support %{argusdocs}
-cp -Rp doc/* %{argusdocs}
-
-install -m 0555 -o root -g root bin/ra           %{argusbin}
-install -m 0555 -o root -g root bin/rabins       %{argusbin}
-install -m 0555 -o root -g root bin/racluster    %{argusbin}
-install -m 0555 -o root -g root bin/racount      %{argusbin}
-install -m 0555 -o root -g root bin/radium       %{argusbin}
-install -m 0555 -o root -g root bin/ragraph      %{argusbin}
-install -m 0555 -o root -g root bin/ragrep       %{argusbin}
-install -m 0555 -o root -g root bin/rahisto      %{argusbin}
-install -m 0555 -o root -g root bin/ramatrix     %{argusbin}
-install -m 0555 -o root -g root bin/ranonymize   %{argusbin}
-install -m 0555 -o root -g root bin/rapath       %{argusbin}
-install -m 0555 -o root -g root bin/rapolicy     %{argusbin}
-install -m 0555 -o root -g root bin/rasort       %{argusbin}
-install -m 0555 -o root -g root bin/rasplit      %{argusbin}
-install -m 0555 -o root -g root bin/rastrip      %{argusbin}
-install -m 0555 -o root -g root bin/ratop        %{argusbin}
-install -m 0555 -o root -g root bin/raxml        %{argusbin}
-
-install -m 0444 -o root -g root man/man1/ra* %{_mandir}/man1/
-install -m 0444 -o root -g root man/man5/*.5 %{_mandir}/man5/
-install -m 0444 -o root -g root man/man8/*.8 %{_mandir}/man8/
-
-install -m 0644 -o root -g root support/Config/ranonymize.conf %{argusdata}
-install -m 0644 -o root -g root support/Config/racluster.conf  %{argusdata}
-install -m 0644 -o root -g root support/Config/radium.conf     %{argusdata}
-install -m 0644 -o root -g root support/Config/rarc            %{argusdata}/ra.conf
+mkdir -p $RPM_BUILD_ROOT/%{argusdir}
+mkdir -p $RPM_BUILD_ROOT/%{argusbin}
+mkdir -p $RPM_BUILD_ROOT/%{argusdocs}
+mkdir -p $RPM_BUILD_ROOT/%{argusdata}
+mkdir -p $RPM_BUILD_ROOT/%{arguslib}
+mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
+mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man5
+mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
+
+cp -Rp support $RPM_BUILD_ROOT/%{argusdocs}
+cp -Rp doc/* $RPM_BUILD_ROOT/%{argusdocs}
+
+install bin/argusbug     $RPM_BUILD_ROOT/%{argusbin}
+install bin/ra           $RPM_BUILD_ROOT/%{argusbin}
+install bin/rabins       $RPM_BUILD_ROOT/%{argusbin}
+install bin/racluster    $RPM_BUILD_ROOT/%{argusbin}
+install bin/racount      $RPM_BUILD_ROOT/%{argusbin}
+install bin/radark       $RPM_BUILD_ROOT/%{argusbin}
+install bin/radump       $RPM_BUILD_ROOT/%{argusbin}
+install bin/rafilteraddr $RPM_BUILD_ROOT/%{argusbin}
+install bin/ragraph      $RPM_BUILD_ROOT/%{argusbin}
+install bin/rahisto      $RPM_BUILD_ROOT/%{argusbin}
+install bin/rahosts      $RPM_BUILD_ROOT/%{argusbin}
+install bin/ralabel      $RPM_BUILD_ROOT/%{argusbin}
+install bin/ranonymize   $RPM_BUILD_ROOT/%{argusbin}
+install bin/rapath       $RPM_BUILD_ROOT/%{argusbin}
+install bin/rapolicy     $RPM_BUILD_ROOT/%{argusbin}
+install bin/raports      $RPM_BUILD_ROOT/%{argusbin}
+install bin/raservices   $RPM_BUILD_ROOT/%{argusbin}
+install bin/rasort       $RPM_BUILD_ROOT/%{argusbin}
+install bin/rasplit      $RPM_BUILD_ROOT/%{argusbin}
+install bin/rasql        $RPM_BUILD_ROOT/%{argusbin}
+install bin/rasqlinsert  $RPM_BUILD_ROOT/%{argusbin}
+install bin/rastream     $RPM_BUILD_ROOT/%{argusbin}
+install bin/rastrip      $RPM_BUILD_ROOT/%{argusbin}
+install bin/ratemplate   $RPM_BUILD_ROOT/%{argusbin}
+install bin/ratimerange  $RPM_BUILD_ROOT/%{argusbin}
+install bin/ratop        $RPM_BUILD_ROOT/%{argusbin}
+install bin/ratree       $RPM_BUILD_ROOT/%{argusbin}
+install bin/rauserdata   $RPM_BUILD_ROOT/%{argusbin}
+
+install man/man1/ra* $RPM_BUILD_ROOT/%{_mandir}/man1/
+install man/man5/*.5 $RPM_BUILD_ROOT/%{_mandir}/man5/
+install man/man8/*.8 $RPM_BUILD_ROOT/%{_mandir}/man8/
+
+install support/Config/ranonymize.conf $RPM_BUILD_ROOT/%{argusdata}
+install support/Config/racluster.conf  $RPM_BUILD_ROOT/%{argusdata}
+install support/Config/radium.conf     $RPM_BUILD_ROOT/%{argusdata}
+install support/Config/rarc            $RPM_BUILD_ROOT/%{argusdata}/ra.conf
 
 %post
 
@@ -68,27 +83,60 @@
 %postun
 
 %files
-%defattr(-,root,root)
+%defattr(0555,root,root)
+%{argusbin}/argusbug
 %{argusbin}/ra
 %{argusbin}/rabins
 %{argusbin}/racluster
 %{argusbin}/racount
-%{argusbin}/radium
-%{argusbin}/ragrep
+%{argusbin}/radark
+%{argusbin}/radump
+%{argusbin}/rafilteraddr
+%{argusbin}/ragraph
+%{argusbin}/rahisto
+%{argusbin}/rahosts
+%{argusbin}/ralabel
+%{argusbin}/ranonymize
+%{argusbin}/rapath
+%{argusbin}/rapolicy
+%{argusbin}/raports
+%{argusbin}/raservices
 %{argusbin}/rasort
 %{argusbin}/rasplit
+%{argusbin}/rasql
+%{argusbin}/rasqlinsert
+%{argusbin}/rastream
 %{argusbin}/rastrip
+%{argusbin}/ratemplate
+%{argusbin}/ratimerange
 %{argusbin}/ratop
+%{argusbin}/ratree
+%{argusbin}/rauserdata
 
+%defattr(0644,root,root)
 %{argusdata}/ra.conf
+%{argusdata}/ranonymize.conf
+%{argusdata}/racluster.conf
+%{argusdata}/radium.conf
 
 %doc %{argusdocs}
+%defattr(0444,root,root)
 %{_mandir}/man1/ra.1
 %{_mandir}/man1/rabins.1
 %{_mandir}/man1/racluster.1
 %{_mandir}/man1/racount.1
+%{_mandir}/man1/ragraph.1
+%{_mandir}/man1/ragrep.1
+%{_mandir}/man1/rahisto.1
+%{_mandir}/man1/ranonymize.1
+%{_mandir}/man1/rapath.1
+%{_mandir}/man1/rapolicy.1
 %{_mandir}/man1/rasort.1
 %{_mandir}/man1/rasplit.1
+%{_mandir}/man1/rastream.1
+%{_mandir}/man1/rastrip.1
 %{_mandir}/man5/rarc.5
 %{_mandir}/man5/racluster.5
+%{_mandir}/man5/radium.conf.5
+%{_mandir}/man5/ranonymize.5
 %{_mandir}/man8/radium.8


More information about the argus mailing list