[Lunar-commits] CVS: moonbase/security/ulogd BUILD,1.4,1.5

Terry Chan tchan at lunar-linux.org
Wed Mar 24 17:05:54 GMT 2004


Update of /var/cvs/lunar/moonbase/security/ulogd
In directory dbguin.lunar-linux.org:/tmp/cvs-serv23535

Modified Files:
	BUILD 
Log Message:
Fixed the poor bash logic in the BUILD script to correctly take care of the
case when the user does NOT have libpcap module installed.  The old BUILD
script would just abort because of the faultly logic and the use of && prepare_instal.


Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/security/ulogd/BUILD,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- BUILD	27 Jun 2003 15:17:46 -0000	1.4
+++ BUILD	24 Mar 2004 17:05:51 -0000	1.5
@@ -3,11 +3,15 @@
   sedit "s:/usr/local/:/usr/:g" ulogd.conf
   default_config &&
   make &&
-  ( module_installed libpcap && make -C pcap ) &&
+  if module_installed libpcap ; then
+    make -C pcap
+  fi &&  
   prepare_install &&
   make install &&
   install -m644 libipulog/libipulog.a /usr/lib &&
-  ( module_installed libpcap && make -C pcap install ) &&
+  if module_installed libpcap ; then
+    make -C pcap install
+  fi &&
   mkdir -p /usr/share/doc/ulogd &&
   install doc/my* doc/ul* /usr/share/doc/ulogd
 



More information about the Lunar-commits mailing list