Skip to content

Commit

Permalink
sysutils/istatserver: Fix build with openssl3
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jul 26, 2023
1 parent ce7816c commit 6002b82
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sysutils/istatserver/Makefile
Expand Up @@ -22,6 +22,12 @@ GROUPS= istat

SUB_FILES= pkg-message

.include <bsd.port.pre.mk>

.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L"
.endif

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/istatserver ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${PREFIX}/etc/istatserver
Expand All @@ -35,4 +41,4 @@ do-install:
${STAGEDIR}${MANPREFIX}/man/man5
@${ECHO_CMD} '@postexec ${CHOWN} -R ${USERS}:${GROUPS} %D/etc/istatserver' >> ${TMPPLIST}

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit 6002b82

Please sign in to comment.