From sunpoet@IRIS.sunpoet.net  Tue Feb 10 02:17:28 2004
Return-Path: <sunpoet@IRIS.sunpoet.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6DC4516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 10 Feb 2004 02:17:28 -0800 (PST)
Received: from IRIS.sunpoet.net (sunpoet.net [203.204.205.212])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4A97D43D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 10 Feb 2004 02:17:28 -0800 (PST)
	(envelope-from sunpoet@IRIS.sunpoet.net)
Received: by IRIS.sunpoet.net (Postfix, from userid 1000)
	id 0955717030; Tue, 10 Feb 2004 18:17:27 +0800 (CST)
Message-Id: <20040210101727.0955717030@IRIS.sunpoet.net>
Date: Tue, 10 Feb 2004 18:17:27 +0800 (CST)
From: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
Reply-To: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [ports/ftp/pure-ftpd] allow user to put certificate in other place 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         62626
>Category:       ports
>Synopsis:       [ports/ftp/pure-ftpd] allow user to put certificate in other place
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 10 02:20:18 PST 2004
>Closed-Date:    Sat Feb 28 13:24:15 PST 2004
>Last-Modified:  Sat Feb 28 13:24:15 PST 2004
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD IRIS.sunpoet.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sun Dec 21 18:12:22 CST 2003 root@:/usr/obj/usr/src/sys/sunpoet i386

	
>Description:
  pure-ftpd with TLS enabled uses /etc/ssl/private/pure-ftpd.pem as its
certificate by default. This patch allows user to put their certificate
in other place.

	
>How-To-Repeat:
% cd /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.17a/
% grep -- --with-certfile configure.ac
[AC_HELP_STRING([--with-certfile=],[certificate file (default: /etc/ssl/private/pure-ftpd.pem)])],

	
>Fix:
% diff -u Makefile.orig Makefile
--- Makefile.orig	Sun Dec 21 18:04:27 2003
+++ Makefile	Thu Jan  1 04:09:54 2004
@@ -62,6 +62,11 @@
 CONFIGURE_ARGS+=	--with-privsep
 .endif
 
+# different certificate file location?
+.if defined(WITH_CERTFILE)
+CONFIGURE_ARGS+=	--with-certfile=${WITH_CERTFILE}
+.endif
+
 # if mysql or ldap are disabled, enable pam
 .if !defined(WITH_LDAP) && !defined(WITH_MYSQL) && !defined(WITH_PGSQL)
 CONFIGURE_ARGS+=	--with-pam

	
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback  
State-Changed-By: krion 
State-Changed-When: Fri Feb 13 00:57:45 PST 2004 
State-Changed-Why:  
Asked for maintainer's review and feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62626 

From: Kirill Ponomarew <krion@FreeBSD.org>
To: j@pureftpd.org
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/62626: [ports/ftp/pure-ftpd] allow user to put certificate in other place
Date: Fri, 13 Feb 2004 09:57:40 +0100

 --reI/iBAAp9kzkmX4
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 Hi,
 
 On Tue, Feb 10, 2004 at 06:17:27PM +0800, Sunpoet Po-Chuan Hsieh wrote:
 >=20
 > >Number:         62626
 > >Category:       ports
 > >Synopsis:       [ports/ftp/pure-ftpd] allow user to put certificate in o=
 ther place
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       medium
 > >Responsible:    freebsd-ports-bugs
 > >State:          open
 
 Could you please review this PR ?
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/62626
 
 -Kirill
 
 --reI/iBAAp9kzkmX4
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (FreeBSD)
 
 iD8DBQFALJGEQC1G6a60JuURAoccAJ9Svd9tiGuSDUL+Z0bQ00TX01J4/gCg47KV
 200LfkS9GbbF7rulf9Oe0L0=
 =Nt6T
 -----END PGP SIGNATURE-----
 
 --reI/iBAAp9kzkmX4--
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Sat Feb 28 13:24:08 PST 2004 
State-Changed-Why:  
Committed, thanks! 

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