Ticket #17709: patch-Portfile

File patch-Portfile, 1.1 KB (added by scott@…, 15 years ago)

mysql5 variant, supplied to me from brad, who is on this ticket

Line 
1--- Portfile.orig       2008-12-26 11:59:58.000000000 -0800
2+++ Portfile    2008-12-26 14:02:21.000000000 -0800
3@@ -13,7 +13,7 @@
4 description         Secure, fast imap and pop3 server -- currently in alpha approaching final
5 long_description    Dovecot is an IMAP and POP3 server for Linux/UNIX-like \
6                     systems, written with security primarily in mind. Although \
7-                    it's written in C, it uses several coding techniques to \
8+                    its written in C, it uses several coding techniques to \
9                     avoid most of the common pitfalls.
10 
11 homepage            http://dovecot.org/
12@@ -75,6 +75,17 @@
13                        depends_lib-append  port:openldap
14 }
15 
16+variant mysql5 {
17+  depends_lib-append \
18+    port:mysql5
19+       configure.args-append \
20+         --with-mysql
21+  configure.ldflags-append \
22+    "-L${prefix}/lib/mysql5"
23+  configure.cppflags-append \
24+    "-I${prefix}/include/mysql5"
25+}
26+
27 startupitem.create             yes
28 startupitem.executable  ${prefix}/sbin/dovecot
29 startupitem.pidfile            auto ${prefix}/var/run/dovecot/master.pid