|
|
@@ -37,7 +37,7 @@ Distribution: OpenPKG [BASE]
|
|
|
Group: DNS
|
|
|
License: ISC
|
|
|
Version: %{V_bind}
|
|
|
-Release: 20030725
|
|
|
+Release: 20030728
|
|
|
|
|
|
# package options
|
|
|
%option with_dlz_mysql no
|
|
|
@@ -121,14 +121,21 @@ Conflicts: bind8, powerdns
|
|
|
lf=""
|
|
|
li=""
|
|
|
%if "%{with_dlz_mysql}" == "yes"
|
|
|
- cf=`mysql_config --cflags`
|
|
|
+ cf="$cf `mysql_config --cflags`"
|
|
|
+ lf="$lf `mysql_config --libs`"
|
|
|
+%endif
|
|
|
+%if "%{with_dlz_postgres}" == "yes"
|
|
|
+ case "%{l_target}" in
|
|
|
+ *-solaris*) li="$li -lresolv" ;;
|
|
|
+ esac
|
|
|
+%endif
|
|
|
cf=`eval echo $cf`
|
|
|
- lf=`mysql_config --libs`
|
|
|
lf=`eval echo $lf`
|
|
|
-%endif
|
|
|
+ li=`eval echo $li`
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O} $cf" \
|
|
|
LDFLAGS="%{l_ldflags} $lf" \
|
|
|
+ LIBS="$li" \
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
--sysconfdir=%{l_prefix}/etc/bind \
|