From edwin@mavetju.org  Wed Sep  8 00:04:23 2004
Return-Path: <edwin@mavetju.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8E42916A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  8 Sep 2004 00:04:23 +0000 (GMT)
Received: from mailout2.barnet.com.au (mailout2.barnet.com.au [218.185.88.16])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C492C43D39
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  8 Sep 2004 00:04:22 +0000 (GMT)
	(envelope-from edwin@mavetju.org)
Received: by mailout2.barnet.com.au (Postfix, from userid 27)
	id 4422A7074B3; Wed,  8 Sep 2004 10:04:21 +1000 (EST)
Received: from mail2-auth.barnet.com.au (localhost.barnet.com.au [127.0.0.1])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "*.barnet.com.au", Issuer "BarNet Root Certificate Authority" (verified OK))
	by mail2.barnet.com.au (Postfix) with ESMTP
	id F42007074AE; Wed,  8 Sep 2004 10:04:20 +1000 (EST)
Received: from k7.mavetju (edwin-3.int.barnet.com.au [10.10.12.2])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "edwin.adsl.barnet.com.au", Issuer "BarNet Root Certificate Authority" (verified OK))
	by mail2-auth.barnet.com.au (Postfix) with ESMTP
	id 6EEEC70748F; Wed,  8 Sep 2004 10:04:20 +1000 (EST)
Received: by k7.mavetju (Postfix, from userid 1001)
	id 3C36161B1; Wed,  8 Sep 2004 10:04:19 +1000 (EST)
Message-Id: <20040908000419.3C36161B1@k7.mavetju>
Date: Wed,  8 Sep 2004 10:04:19 +1000 (EST)
From: Edwin Groothuis <edwin@mavetju.org>
Reply-To: Edwin Groothuis <edwin@mavetju.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: j@pureftpd.org
Subject: pure-ftpd doesn't respect the pureftpd_config in /etc/rc.conf
X-Send-Pr-Version: 3.113
X-GNATS-Notify: j@pureftpd.org

>Number:         71477
>Category:       ports
>Synopsis:       pure-ftpd doesn't respect the pureftpd_config in /etc/rc.conf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 08 00:10:25 GMT 2004
>Closed-Date:    Wed Oct 20 08:04:24 GMT 2004
>Last-Modified:  Wed Oct 20 08:04:24 GMT 2004
>Originator:     Edwin Groothuis
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #3: Fri Feb 27 13:54:29 EST 2004 edwin@k7.mavetju:/usr/src/sys/i386/compile/k7 i386

>Description:

When setting the variable pureftpd_config in /etc/rc.conf, it isn't
picked up by the pure-ftpd.sh rc-script.

>How-To-Repeat:

Add to /etc/rc.conf:
    pureftpd_enable="YES"
    pureftpd_config="/usr/local/etc/pure-ftpd/pure-ftpd.conf"

Add to /usr/local/etc/rc.d/pure-ftpd.sh
      command=/usr/local/sbin/pure-config.pl
      pureftpd_config=${mypureftpd_config:-"/usr/local/etc/pure-ftpd.conf"}
    + echo $pureftpd_config $mypureftpd_config
      required_files=${pureftpd_config}

Run "/usr/local/etc/rc.d/pure-ftpd.sh start".

It will always display /usr/local/etc/pure-ftpd.conf

>Fix:

Euhm... I'm not skilled in the new rc-system. Sorry.
>Release-Note:
>Audit-Trail:

From: Oliver Eikemeier <eikemeier@fillmore-labs.com>
To: Edwin Groothuis <edwin@mavetju.org>
Cc: FreeBSD-gnats-submit@FreeBSD.org, j@pureftpd.org
Subject: Re: ports/71477: pure-ftpd doesn't respect the pureftpd_config in /etc/rc.conf
Date: Wed, 8 Sep 2004 10:09:52 +0200

 Edwin Groothuis wrote:
 
 > Add to /usr/local/etc/rc.d/pure-ftpd.sh
 >       command=/usr/local/sbin/pure-config.pl
 >       pureftpd_config=${mypureftpd_config:-"/usr/local/etc/pure-
 > ftpd.conf"}
                            ^^
 Where does this come from?
 
 >     + echo $pureftpd_config $mypureftpd_config
 >       required_files=${pureftpd_config}
 >
 > Run "/usr/local/etc/rc.d/pure-ftpd.sh start".
 >
 > It will always display /usr/local/etc/pure-ftpd.conf
 
 Obviously.
 -Oliver
 

From: Edwin Groothuis <edwin@mavetju.org>
To: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Cc: Edwin Groothuis <edwin@mavetju.org>,
	FreeBSD-gnats-submit@FreeBSD.org, j@pureftpd.org
Subject: Re: ports/71477: pure-ftpd doesn't respect the pureftpd_config in /etc/rc.conf
Date: Wed, 8 Sep 2004 22:29:02 +1000

 On Wed, Sep 08, 2004 at 10:09:52AM +0200, Oliver Eikemeier wrote:
 > Edwin Groothuis wrote:
 > 
 > >Add to /usr/local/etc/rc.d/pure-ftpd.sh
 > >      command=/usr/local/sbin/pure-config.pl
 > >      pureftpd_config=${mypureftpd_config:-"/usr/local/etc/pure-
 > >ftpd.conf"}
 >                           ^^
 > Where does this come from?
 
 That was one of my tests, I thought I had removed it before mailing it.
 
 Edwin
 
 -- 
 Edwin Groothuis      |            Personal website: http://www.mavetju.org
 edwin@mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/
State-Changed-From-To: open->closed 
State-Changed-By: sergei 
State-Changed-When: Wed Oct 20 08:04:07 GMT 2004 
State-Changed-Why:  
Committed fix from ports/72911. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71477 
>Unformatted:
