Ticket #30035: Portfile

File Portfile, 1.8 KB (added by tk7r (Thomas Kotzian), 13 years ago)

Portfile (update revision, add patch file)

Line 
1# $Id: Portfile 74683 2010-12-28 11:42:29Z jmr@macports.org $
2
3# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; \
4c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
5
6PortSystem          1.0
7
8name                vpnc
9version             0.5.3
10revision            1
11categories          net
12maintainers         nomaintainer
13description         client for cisco vpn concentrator
14long_description    vpnc is an open source replacement for the commercial \
15                    cisco vpnclient. It is supposed to work with the following \
16                    systems: \
17                    - Cisco VPN concentrator 3000 Series \
18                    - Cisco IOS routers \
19                    - Cisco PIX / ASA Zecurity Appliances \
20                    - Juniper/Netscreen
21
22homepage            http://www.unix-ag.uni-kl.de/~massar/vpnc/
23platforms           darwin
24master_sites        http://www.unix-ag.uni-kl.de/~massar/vpnc/
25
26checksums           sha1 321527194e937371c83b5e7c38e46fca4f109304 \
27                    rmd160 6f3926901e75dc98762f6ef45782930f2fb76a2f
28
29depends_lib         port:libgcrypt \
30                    port:libgpg-error
31depends_run         port:tuntaposx
32
33patchfiles          patch-config.c patch-sysdep.h
34post-patch { reinplace "s|__ETCDIR__|${prefix}/etc|g" ${worksrcpath}/config.c }
35
36use_configure       no
37
38build.args          PREFIX=${prefix} ETCDIR=${prefix}/etc/vpnc
39
40destroot.args       PREFIX=${prefix} ETCDIR=${prefix}/etc/vpnc
41
42variant             hybrid_cert description "Enable the support for hybrid and cert modes in vpnc" {
43    depends_lib-append port:openssl
44    build.args-append  "OPENSSL_GPL_VIOLATION=-DOPENSSL_GPL_VIOLATION OPENSSLLIBS=-lcrypto"
45}
46livecheck.type  regex
47livecheck.url   ${homepage}
48livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"