Ticket #34656: patch-net-bind9.diff
File patch-net-bind9.diff, 6.1 KB (added by pixilla (Bradley Giesbrecht), 12 years ago) |
---|
-
net/bind9/files/patch-contrib-dlz-config.dlz.in
1 --- contrib/dlz/config.dlz.in.orig 2009-01-29 14:42:22.000000000 -08002 +++ contrib/dlz/config.dlz.in 2009-01-29 14:42:34.000000000 -08003 @@ -155,6 +155,14 @@4 break5 fi6 done7 +elif test -f `$use_dlz_mysql --include | awk '{print substr($1,3)}'`/mysql.h8 +then9 + mysql_include=`$use_dlz_mysql --include | awk '{print substr($1,3)}'`10 + if test -d `$use_dlz_mysql --libs | awk '{print substr($2,3)}'`11 + then12 + mysql_lib=`$use_dlz_mysql --libs | awk '{print substr($2,3)}'`13 + fi14 +elif test "$use_dlz_mysql" != "no"15 elif test "$use_dlz_mysql" != "no"16 then17 d=$use_dlz_mysql18 @@ -193,7 +201,7 @@19 *)20 DLZ_ADD_DRIVER(MYSQL, dlz_mysql_driver,21 [-I${mysql_include}],22 - [-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm])23 + [-L${mysql_lib} -lmysqlclient -lz -lm])24 25 AC_MSG_RESULT(26 [using mysql from ${mysql_lib} and ${mysql_include}]) -
net/bind9/files/patch-configure.diff
1 --- a/configure 2012-05-29 19:45:36.000000000 -0700 2 +++ b/configure 2012-05-29 19:55:16.000000000 -0700 3 @@ -21919,6 +21919,7 @@ 4 # problems start to show up. 5 saved_libs="$LIBS" 6 for TRY_LIBS in \ 7 + "-lgssapi -lkrb5 -lcrypto -lasn1 -lroken -lcom_err" \ 8 "-lgssapi_krb5" \ 9 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \ 10 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \ 11 @@ -27205,6 +27206,13 @@ 12 break 13 fi 14 done 15 +elif test -f `$use_dlz_mysql --include | awk '{print substr($1,3)}'`/mysql.h 16 +then 17 + mysql_include=`$use_dlz_mysql --include | awk '{print substr($1,3)}'` 18 + if test -d `$use_dlz_mysql --libs | awk '{print substr($2,3)}'` 19 + then 20 + mysql_lib=`$use_dlz_mysql --libs | awk '{print substr($2,3)}'` 21 + fi 22 elif test "$use_dlz_mysql" != "no" 23 then 24 d=$use_dlz_mysql 25 @@ -27253,9 +27261,9 @@ 26 then 27 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}" 28 fi 29 - if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm" 30 + if test -n "-L${mysql_lib} -lmysqlclient -lz -lm" 31 then 32 - DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm" 33 + DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lm" 34 fi 35 36 -
net/bind9/files/patch-contrib-dlz-config.dlz.in.diff
1 --- a/contrib/dlz/config.dlz.in 2012-05-29 19:45:36.000000000 -0700 2 +++ b/contrib/dlz/config.dlz.in 2012-05-29 19:55:16.000000000 -0700 3 @@ -155,6 +155,14 @@ 4 break 5 fi 6 done 7 +elif test -f `$use_dlz_mysql --include | awk '{print substr($1,3)}'`/mysql.h 8 +then 9 + mysql_include=`$use_dlz_mysql --include | awk '{print substr($1,3)}'` 10 + if test -d `$use_dlz_mysql --libs | awk '{print substr($2,3)}'` 11 + then 12 + mysql_lib=`$use_dlz_mysql --libs | awk '{print substr($2,3)}'` 13 + fi 14 +elif test "$use_dlz_mysql" != "no" 15 elif test "$use_dlz_mysql" != "no" 16 then 17 d=$use_dlz_mysql 18 @@ -193,7 +201,7 @@ 19 *) 20 DLZ_ADD_DRIVER(MYSQL, dlz_mysql_driver, 21 [-I${mysql_include}], 22 - [-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm]) 23 + [-L${mysql_lib} -lmysqlclient -lz -lm]) 24 25 AC_MSG_RESULT( 26 [using mysql from ${mysql_lib} and ${mysql_include}]) -
net/bind9/files/patch-configure
1 --- configure.orig 2009-01-29 14:42:07.000000000 -08002 +++ configure 2009-01-29 14:42:34.000000000 -08003 @@ -6623,8 +6623,8 @@4 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \5 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \6 "-lgssapi" \7 - "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \8 - "-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \9 + "-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcom_err" \10 + "-lgssapi -lkrb5 -lcrypto -lasn1 -lroken -lcom_err" \11 "-lgss"12 do13 # Note that this does not include $saved_libs, because14 @@ -31094,6 +31094,13 @@15 break16 fi17 done18 +elif test -f `$use_dlz_mysql --include | awk '{print substr($1,3)}'`/mysql.h19 +then20 + mysql_include=`$use_dlz_mysql --include | awk '{print substr($1,3)}'`21 + if test -d `$use_dlz_mysql --libs | awk '{print substr($2,3)}'`22 + then23 + mysql_lib=`$use_dlz_mysql --libs | awk '{print substr($2,3)}'`24 + fi25 elif test "$use_dlz_mysql" != "no"26 then27 d=$use_dlz_mysql28 @@ -31144,9 +31151,9 @@29 then30 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"31 fi32 - if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"33 + if test -n "-L${mysql_lib} -lmysqlclient -lz -lm"34 then35 - DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"36 + DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lm"37 fi38 39 -
net/bind9/Portfile
44 44 startupitem.netchange yes 45 45 startupitem.executable ${prefix}/sbin/named -f 46 46 47 patch.pre_args -p1 48 47 49 configure.env STD_CDEFINES=-DDIG_SIGCHASE=1 48 50 49 51 configure.args --mandir=${prefix}/share/man \ … … 97 99 variant dlz_mysql5 description {Dynamically Loaded Zones (dlz) stored in MySQL 5.x} { 98 100 depends_lib-append \ 99 101 path:bin/mysql_config5:mysql5 100 patchfiles-append patch-configure 101 patchfiles-append patch-contrib-dlz-config.dlz.in 102 patchfiles patch-configure.diff \ 103 patch-contrib-dlz-config.dlz.in.diff 102 104 # Threads are not safe when bind9 is compiled with dlz 103 105 configure.args-delete \ 104 106 --enable-threads