Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 2004 18:17:27 +0800 (CST)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/62626: [ports/ftp/pure-ftpd] allow user to put certificate in other place 
Message-ID:  <20040210101727.0955717030@IRIS.sunpoet.net>
Resent-Message-ID: <200402101020.i1AAKIIB021583@freefall.freebsd.org>

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

>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 10 02:20:18 PST 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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