source: trunk/dports/net/vpnc/Portfile @ 92422

Last change on this file since 92422 was 92422, checked in by ryandesign@…, 5 years ago

vpnc: ensure we're UsingTheRightCompiler and -arch flags; add universal variant; fix modeline

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