ports/110466: [patch] ports/vpnc missing %%PREFIX%% patch

Helge Oldach ports-vpnc-mar07 at oldach.net
Sun Mar 18 07:50:05 UTC 2007


>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 at 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:



More information about the freebsd-ports-bugs mailing list