Author: bluca
Date: Sat Feb 17 09:45:55 2007
New Revision: 122082

Added:
   packages/cooker/bacula/current/SOURCES/bacula-2.0.2-libwrap_nsl.diff
Modified:
   packages/cooker/bacula/current/SPECS/bacula.spec

Log:
fix build when tcp_wrapper is a static library

Added: packages/cooker/bacula/current/SOURCES/bacula-2.0.2-libwrap_nsl.diff
==============================================================================
--- (empty file)
+++ packages/cooker/bacula/current/SOURCES/bacula-2.0.2-libwrap_nsl.diff        
Sat Feb 17 09:45:55 2007
@@ -0,0 +1,22 @@
+--- bacula-2.0.2/autoconf/configure.in.wrap    2007-02-16 18:16:46.000000000 
+0100
++++ bacula-2.0.2/autoconf/configure.in 2007-02-17 09:33:45.000000000 +0100
+@@ -758,7 +758,7 @@
+                AC_DEFINE(HAVE_LIBWRAP)
+                TCPW_MSG="yes" 
+                LIBS="$saved_LIBS"
+-               WRAPLIBS="-lwrap"
++               WRAPLIBS="-lwrap -lnsl"
+             ],
+             [AC_MSG_ERROR([*** libwrap missing]) ] ]
+           )
+--- bacula-2.0.2/configure.wrap        2007-01-25 10:13:51.000000000 +0100
++++ bacula-2.0.2/configure     2007-02-17 09:33:20.000000000 +0100
+@@ -17879,7 +17879,7 @@
+ 
+                TCPW_MSG="yes"
+                LIBS="$saved_LIBS"
+-               WRAPLIBS="-lwrap"
++               WRAPLIBS="-lwrap -lnsl"
+ 
+ else
+   echo "$as_me: failed program was:" >&5

Modified: packages/cooker/bacula/current/SPECS/bacula.spec
==============================================================================
--- packages/cooker/bacula/current/SPECS/bacula.spec    (original)
+++ packages/cooker/bacula/current/SPECS/bacula.spec    Sat Feb 17 09:45:55 2007
@@ -59,6 +59,7 @@
 Patch9:                bacula-2.0.2-listen.diff
 Patch10:       bacula-2.0.2-cats.diff
 Patch11:       bacula-2.0.2-db.diff
+Patch12:       bacula-2.0.2-libwrap_nsl.diff
 BuildRequires: XFree86-devel
 BuildRequires: cdrecord
 BuildRequires: dvd+rw-tools
@@ -406,6 +407,7 @@
 %patch9 -p1 -b .listen
 %patch10 -p1 -b .cats
 %patch11 -p1 -b .db
+%patch12 -p1 -b .wrap
 perl -spi -e 's/[EMAIL PROTECTED]@/localhost/g' `find . -name \*.in`
 
 # fix conditional pam config file

Reply via email to