Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Mar 2007 08:44:47 +0100 (CET)
From:      Helge Oldach <ports-vpnc-mar07@oldach.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        delta@lackas.net
Subject:   ports/110466: [patch] ports/vpnc missing %%PREFIX%% patch
Message-ID:  <200703180744.l2I7ilvl073348@sep.oldach.net>
Resent-Message-ID: <200703180750.l2I7o49m008469@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         110466
>Category:       ports
>Synopsis:       [patch] ports/vpnc missing %%PREFIX%% patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 18 07:50:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Helge Oldach
>Release:        FreeBSD 6.2-757 i386
>Organization:
>Environment:

System: FreeBSD localhost 6.2-757 FreeBSD 6.2-757 #0: Thu Mar 15 20:35:30 CET 2007 toor@localhost:/usr/obj/usr/src/sys/HMO i386

>Description:

config.c should receive another %%PREFIX%% patch to locate configuration
files in /usr/local/etc/vpnc instead of /etc/vpnc. This improves
consistency with BSD file system layout.

>How-To-Repeat:

>Fix:

Apply this patch to files/patch-config.c:

--- files/patch-config.c.ORIG	Sat Mar 17 04:43:50 2007
+++ files/patch-config.c	Sun Mar 18 08:33:48 2007
@@ -15,6 +15,15 @@
  }
  
  static const char *config_def_vendor(void)
+@@ -485,7 +485,7 @@
+ {
+ 	char *realname;
+ 	
+-	asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "/etc/vpnc/", name, add_dot_conf ? ".conf" : "");
++	asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "%%PREFIX%%/etc/vpnc/", name, add_dot_conf ? ".conf" : "");
+ 	return realname;
+ }
+ 
 @@ -701,8 +701,8 @@
  	}
  	
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703180744.l2I7ilvl073348>