[32130] trunk/dports/net
mww at macports.org
mww at macports.org
Mon Dec 17 08:44:05 PST 2007
Revision: 32130
http://trac.macosforge.org/projects/macports/changeset/32130
Author: mww at macports.org
Date: 2007-12-17 08:44:03 -0800 (Mon, 17 Dec 2007)
Log Message:
-----------
new port net/vpnc -- #13609
Added Paths:
-----------
trunk/dports/net/vpnc/
trunk/dports/net/vpnc/Portfile
trunk/dports/net/vpnc/files/
trunk/dports/net/vpnc/files/patch-config.c
Added: trunk/dports/net/vpnc/Portfile
===================================================================
--- trunk/dports/net/vpnc/Portfile (rev 0)
+++ trunk/dports/net/vpnc/Portfile 2007-12-17 16:44:03 UTC (rev 32130)
@@ -0,0 +1,41 @@
+# $Id$
+
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; \
+c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
+
+PortSystem 1.0
+
+name vpnc
+version 0.5.1
+categories net
+maintainers kiehn at stud.uni-heidelberg.de
+description client for cisco vpn concentrator
+long_description vpnc is an open source replacement for the commercial \
+ cisco vpnclient. It is supposed to work with the following \
+ systems: \
+ - Cisco VPN concentrator 3000 Series \
+ - Cisco IOS routers \
+ - Cisco PIX / ASA Zecurity Appliances \
+ - Juniper/Netscreen \
+ \
+ You will also need the tun/tap driver for MacOSX: \
+ http://www-user.rhrk.uni-kl.de/~nissler/tuntap/
+
+homepage http://www.unix-ag.uni-kl.de/~massar/vpnc/
+platforms darwin
+master_sites http://www.unix-ag.uni-kl.de/~massar/vpnc/
+
+checksums sha1 efc71dba03aa40945af35e4b074d99f922ff7ffd \
+ rmd160 76dd5a3a38bd2109cf8e1fbad85e2762e8489832
+
+depends_lib port:libgcrypt \
+ port:libgpg-error
+
+patchfiles patch-config.c
+post-patch { reinplace "s|__ETCDIR__|${prefix}/etc|g" config.c }
+
+use_configure no
+
+build.args PREFIX=${prefix} ETCDIR=${prefix}/etc/vpnc
+
+destroot.args PREFIX=${prefix} ETCDIR=${prefix}/etc/vpnc
Added: trunk/dports/net/vpnc/files/patch-config.c
===================================================================
--- trunk/dports/net/vpnc/files/patch-config.c (rev 0)
+++ trunk/dports/net/vpnc/files/patch-config.c 2007-12-17 16:44:03 UTC (rev 32130)
@@ -0,0 +1,31 @@
+--- config.c.orig 2007-09-10 22:39:48.000000000 +0200
++++ config.c 2007-12-17 12:26:10.000000000 +0100
+@@ -267,7 +267,7 @@
+
+ static const char *config_def_script(void)
+ {
+- return "/etc/vpnc/vpnc-script";
++ return "__ETCDIR__/vpnc/vpnc-script";
+ }
+
+ static const char *config_def_pid_file(void)
+@@ -538,7 +538,7 @@
+ {
+ char *realname;
+
+- asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "/etc/vpnc/", name, add_dot_conf ? ".conf" : "");
++ asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "__ETCDIR__/vpnc/", name, add_dot_conf ? ".conf" : "");
+ return realname;
+ }
+
+@@ -757,8 +757,8 @@
+ }
+
+ if (!got_conffile) {
+- read_config_file("/etc/vpnc/default.conf", config, 1);
+- read_config_file("/etc/vpnc.conf", config, 1);
++ read_config_file("__ETCDIR__/vpnc/default.conf", config, 1);
++ read_config_file("__ETCDIR__/vpnc.conf", config, 1);
+ }
+
+ if (!print_config) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071217/8290339a/attachment-0001.html
More information about the macports-changes
mailing list