Ticket #8206: patch.openvpn-2.0.7

File patch.openvpn-2.0.7, 1.1 KB (added by jordiyeh@…, 18 years ago)

Updated openvpn patch and lzo2 usage

Line 
1--- Portfile.orig       2006-04-13 14:46:29.000000000 -0400
2+++ Portfile    2006-04-13 14:46:35.000000000 -0400
3@@ -2,7 +2,7 @@
4
5 PortSystem 1.0
6 name           openvpn2
7-version                2.0.5
8+version                2.0.7
9 distname       openvpn-${version}
10 categories     net security
11 maintainers    jordiyeh@gmail.com julien.touche@touche.fr.st pierre@queinnec.org
12@@ -16,9 +16,9 @@
13 master_sites   ${homepage}/release/
14 platforms      darwin
15 distname       openvpn-${version}
16-checksums      md5 4bd7a42991c93db23842a0992debe53b
17+checksums      md5 93528233f1f6d02fc18e2c00f82e0aca
18
19-depends_lib    port:lzo \
20+depends_lib    port:lzo2 \
21                port:openssl
22
23 configure.args --mandir=${prefix}/share/man \
24@@ -30,9 +30,14 @@
25
26 variant no_lzo {
27        configure.args-append   --disable-lzo
28-       depends_lib-delete      port:lzo
29+       depends_lib-delete      port:lzo2
30 }
31
32+post-patch {
33+        reinplace "s|lzo/lzo|lzo2/lzo|g" \
34+                "${worksrcpath}/configure"  \
35+                "${worksrcpath}/lzo.h"
36+
37 post-destroot {
38        set docdir ${destroot}/${prefix}/share/doc/${name}
39        xinstall -m 755 -d ${docdir}
40