ports/62626: [ports/ftp/pure-ftpd] allow user to put certificate in other place

Sunpoet Po-Chuan Hsieh sunpoet at sunpoet.net
Tue Feb 10 10:20:18 UTC 2004


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



More information about the freebsd-ports-bugs mailing list