Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jul 2005 15:18:32 +0200 (CEST)
From:      Pav Lucistnik <pav@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/83141: ftp/proftpd: fix WITH_OPENSSL option
Message-ID:  <200507081318.j68DIWC3034792@hood.oook.cz>
Resent-Message-ID: <200507081320.j68DKEe1086112@freefall.freebsd.org>

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

>Number:         83141
>Category:       ports
>Synopsis:       ftp/proftpd: fix WITH_OPENSSL option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 08 13:20:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Pav Lucistnik
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD hood.oook.cz 5.4-STABLE FreeBSD 5.4-STABLE #0: Fri Jun 10 16:04:00 CEST 2005 root@hood.oook.cz:/usr/obj/usr/src/sys/PAV i386


>Description:
USE_OPENSSL is stated after inclusion of bsd.port.pre.mk, thus it's
ineffective. Workaround this problem.

If user have openssl installed from port, be able to find it.

Problem report and patch tested by: Miroslav Lachman <000.fbsd@quip.cz>
>How-To-Repeat:
>Fix:

--- proftpd-openssl.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/ftp/proftpd/Makefile,v
retrieving revision 1.76
diff -a -u -r1.76 Makefile
--- Makefile	25 Jun 2005 19:08:44 -0000	1.76
+++ Makefile	8 Jul 2005 12:03:51 -0000
@@ -98,11 +98,6 @@
 INCLUDEDIRS=
 LIBDIRS=
 
-.if defined(WITH_OPENSSL)
-USE_OPENSSL=	yes
-MODULES:=${MODULES}:mod_tls
-.endif
-
 .if defined(WITH_LDAP)
 USE_OPENLDAP=	yes
 MODULES:=${MODULES}:mod_ldap
@@ -127,7 +122,9 @@
 .if defined(WITH_OPENSSL)
 CFLAGS+=	-DHAVE_OPENSSL
 USE_OPENSSL=	yes
-PROFTPD_LIBS+=	-lssl -lcrypto
+.include <${PORTSDIR}/Mk/bsd.openssl.mk>
+PROFTPD_LIBS+=	-lssl -lcrypto -L${LOCALBASE}/lib
+MODULES:=${MODULES}:mod_tls
 .endif
 
 .if defined(WITH_CTRLS)
--- proftpd-openssl.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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