summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/openscep/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/security/openscep/Makefile b/security/openscep/Makefile
index 3acd82ec6983..a7ffc954f985 100644
--- a/security/openscep/Makefile
+++ b/security/openscep/Makefile
@@ -12,15 +12,14 @@ COMMENT= Open source scep server
CONFLICTS_INSTALL= nss-3.*
-USES= gmake libtool
-USE_OPENSSL= yes
+USES= gmake libtool ssl
USE_OPENLDAP= yes
USE_APACHE= 22+
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-CPPFLAGS+= -I${LOCALBASE}/include
-LIBS+= -L${LOCALBASE}/lib
+CPPFLAGS+= -I${OPENSSLINC} -I${LOCALBASE}/include
+LIBS+= -L${OPENSSLLIB} -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-html-install-dir="${PREFIX}/www/openscep" \
--with-cgi-install-dir="${PREFIX}/www/cgi-bin/openscep" \
--with-openscep-dir="${PREFIX}/etc/openscep" \
@@ -32,6 +31,12 @@ LOCAL_CONF_FILES= openscep.cnf openscep.ldif openscep.schema slapd.conf
SUB_FILES= pkg-message
SUB_LIST= CONF_DIR="${CONF_DIR}" CONF_FILES="${LOCAL_CONF_FILES}"
+.include <bsd.port.pre.mk>
+
+.if ${SSL_DEFAULT:Mlibressl*}
+IGNORE= Detected LibreSSL (unknown ASN1 functions)
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/^subdirs=/ s|libltdl||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e '/^SUBDIRS =/ s|libltdl||' ${WRKSRC}/Makefile.in
@@ -59,4 +64,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/ldap/${f} ${STAGEDIR}${CONF_DIR}/${f}.sample
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>