| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name openvpn2 |
|---|
| 6 | version 2.2.1 |
|---|
| 7 | distname openvpn-${version} |
|---|
| 8 | categories net security |
|---|
| 9 | platforms darwin |
|---|
| 10 | maintainers nomaintainer |
|---|
| 11 | |
|---|
| 12 | description easy-to-use, robust, and highly configurable VPN |
|---|
| 13 | long_description OpenVPN is an easy-to-use, robust, and highly \ |
|---|
| 14 | configurable VPN (Virtual Private Network) daemon \ |
|---|
| 15 | which can be used to securely link two or more \ |
|---|
| 16 | private networks using an encrypted tunnel over \ |
|---|
| 17 | the internet. |
|---|
| 18 | |
|---|
| 19 | homepage http://www.openvpn.net |
|---|
| 20 | master_sites http://swupdate.openvpn.net/community/releases/ |
|---|
| 21 | |
|---|
| 22 | checksums rmd160 115ff6ac548014d38da9e21bbb91103bcbb0cd09 \ |
|---|
| 23 | sha256 a860858cc92d4573399bb2ff17ac62d9b4b8939e6af0b8cc69150ba39d6e94e0 |
|---|
| 24 | |
|---|
| 25 | depends_lib port:lzo2 port:openssl |
|---|
| 26 | |
|---|
| 27 | patchfiles patch-syshead.h.diff |
|---|
| 28 | |
|---|
| 29 | configure.args --mandir=${prefix}/share/man \ |
|---|
| 30 | --with-lzo-headers=${prefix}/include \ |
|---|
| 31 | --with-lzo-lib=${prefix}/lib \ |
|---|
| 32 | --with-ssl-headers=${prefix}/include \ |
|---|
| 33 | --with-ssl-lib=${prefix}/lib \ |
|---|
| 34 | --program-suffix=2 |
|---|
| 35 | |
|---|
| 36 | post-destroot { |
|---|
| 37 | set docdir ${destroot}${prefix}/share/doc/${name} |
|---|
| 38 | xinstall -m 755 -d ${docdir} |
|---|
| 39 | foreach dir "easy-rsa sample-config-files sample-scripts \ |
|---|
| 40 | contrib sample-keys" { |
|---|
| 41 | file copy ${worksrcpath}/${dir} ${docdir} |
|---|
| 42 | } |
|---|
| 43 | foreach file "AUTHORS COPYING NEWS PORTS README" { |
|---|
| 44 | xinstall -m 644 -W ${worksrcpath} ${file} ${docdir} |
|---|
| 45 | } |
|---|
| 46 | xinstall -m 644 ${worksrcpath}/openvpn-plugin.h ${destroot}${prefix}/include |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | livecheck.url ${homepage}/download.html |
|---|
| 50 | livecheck.regex openvpn-(\[0-9.\]*).tar.gz |
|---|