Ticket #17783: patch-Portfile

File patch-Portfile, 1.2 KB (added by pixilla (Bradley Giesbrecht), 16 years ago)

Patch to include dlz-mysql support

Line 
1--- Portfile.orig       2009-01-29 14:28:26.000000000 -0800
2+++ Portfile    2009-01-29 14:50:22.000000000 -0800
3@@ -13,7 +13,7 @@
4 long_description       The BIND DNS Server is used on the vast majority of name \
5                                serving machines on the Internet, providing a robust \
6                                and stable \
7-                               architecture on top of which an organization's naming architecture \
8+                               architecture on top of which an organizations naming architecture \
9                                can be built.  The resolver library included in the BIND distribution \
10                                provides the standard APIs for translation between domain names \
11                                and Internet addresses and is intended to be linked with applications \
12@@ -65,3 +65,16 @@
13 }
14 
15 platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
16+
17+variant dlz_mysql5 description {Dynamically Loaded Zones (dlz) stored in MySQL 5.x} {
18+    depends_lib-append \
19+        path:bin/mysql_config5:mysql5
20+    patchfiles-append patch-configure
21+    patchfiles-append patch-contrib-dlz-config.dlz.in
22+    # Treads are not safe when bind9 is compiled with dlz
23+    configure.args-delete \
24+        --enable-threads
25+    configure.args-append \
26+        --with-dlz-mysql=${prefix}/bin/mysql_config5 \
27+        --disable-threads
28+}