Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  2 May 2001 01:15:08 +0200 (CEST)
From:      thomas@cuivre.fr.eu.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/27018: Fix the compiled-in default configuration file path.
Message-ID:  <20010501231508.7978D24D02@melusine.cuivre.fr.eu.org>

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

>Number:         27018
>Category:       ports
>Synopsis:       Fix the compiled-in default configuration file path.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 01 16:20:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Quinot
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD melusine.cuivre.fr.eu.org 4.3-STABLE FreeBSD 4.3-STABLE #2: Tue May 1 20:28:53 CEST 2001 thomas@melusine.cuivre.fr.eu.org:/usr/obj/usr/src/sys/MELUSINE i386


	
>Description:
	The compiled-in path used by the port was inconsistent with
	the documentation, and with the location where the example
	config file was installed.
>How-To-Repeat:
	
>Fix:
	The following patch against the ports tree adds a new patch
	to the port that corrects the problem.

	This patch will also be submitted to the upstream maintainers.

--- /dev/null	Wed May  2 01:12:01 2001
+++ net/proxy-suite/files/patch-etcdir	Wed May  2 01:11:32 2001
@@ -0,0 +1,26 @@
+diff -ur work/proxy-suite-1.7/ftp-proxy/Makefile.in new/proxy-suite-1.7/ftp-proxy/Makefile.in
+--- work/proxy-suite-1.7/ftp-proxy/Makefile.in	Fri Oct 22 11:29:01 1999
++++ ftp-proxy/Makefile.in	Wed May  2 01:07:28 2001
+@@ -44,7 +44,7 @@
+ INSTALL=	@INSTALL@
+ 
+ CC=		@CC@
+-CFLAGS=		@CFLAGS@
++CFLAGS=		@CFLAGS@ -DETC_PATH=\"$(ETC_DIR)/\"
+ LDFLAGS=	@LDFLAGS@
+ 
+ LIBS=		@LIB_WRAP@ @LIB_LDAP@ @LIB_REGEX@ @LIBS@
+diff -ur work/proxy-suite-1.7/ftp-proxy/ftp-main.c new/proxy-suite-1.7/ftp-proxy/ftp-main.c
+--- work/proxy-suite-1.7/ftp-proxy/ftp-main.c	Fri Oct 22 11:29:01 1999
++++ ftp-proxy/ftp-main.c	Wed May  2 01:03:58 2001
+@@ -75,7 +75,9 @@
+ 
+ #define SELECT_TIMEOUT		60	/* Wake up regularly	*/
+ 
+-#define ETC_PATH		"/etc/proxy-suite/"
++#if !defined (ETC_PATH)
++#  define ETC_PATH		"/etc/proxy-suite/"
++#endif
+ #define DEFAULT_CONFIG		ETC_PATH "ftp-proxy.conf"
+ 
+ #if defined(COMPILE_DEBUG)
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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