c62f40fb68
Changelog https://github.com/koue/httpd/blob/master/ChangeLog PR: 260665
79 lines
2.6 KiB
Makefile
79 lines
2.6 KiB
Makefile
PORTNAME= obhttpd
|
|
PORTVERSION= 7.0.20211221
|
|
CATEGORIES= www
|
|
MASTER_SITES= OPENBSD/LibreSSL:libressl
|
|
DISTFILES= libressl-${SSL}.tar.gz:libressl
|
|
|
|
MAINTAINER= koue@chaosophia.net
|
|
COMMENT= OpenBSD http server
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
USES= uidfix
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= koue
|
|
GH_PROJECT= httpd \
|
|
libevent:libevent \
|
|
libimsg:libimsg
|
|
GH_TAGNAME= ${LIBIMSG}:libimsg \
|
|
${LIBEVENT}:libevent
|
|
|
|
USE_RC_SUBR= obhttpd
|
|
|
|
MAKE_ARGS+= MANDIR=${PREFIX}/man/man
|
|
|
|
# XXX Static libraries with PIE are currently unsupported.
|
|
MAKE_ARGS+= WITHOUT_PIE=true
|
|
|
|
CFLAGS+= -Wall -fcommon \
|
|
-I${WRKDIR}/libressl-${SSL}/include \
|
|
-I${WRKSRC_libimsg}/src/lib/libutil \
|
|
-I${WRKSRC_libevent}/src/lib/libevent
|
|
|
|
LDFLAGS+= -L${WRKSRC_libimsg}/src/lib/libutil \
|
|
-L${WRKSRC_libevent}/src/lib/libevent
|
|
|
|
USERS= www
|
|
GROUPS= www
|
|
|
|
SSL= 3.4.1
|
|
LIBEVENT= 6.6.20191030
|
|
LIBIMSG= 6.9.20210510
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|libimsg/src||g' \
|
|
-e 's|libevent||g' ${WRKSRC}/Makefile
|
|
${REINPLACE_CMD} -e 's|httpd$$|obhttpd|g' \
|
|
-e 's|httpd.conf.5|obhttpd.conf.5|g' \
|
|
-e 's|httpd.8|obhttpd.8|g' ${WRKSRC}/src/usr.sbin/httpd/Makefile
|
|
${REINPLACE_CMD} -e 's|htpasswd$$|obhtpasswd|g' \
|
|
-e 's|htpasswd.1|obhtpasswd.1|g' ${WRKSRC}/src/usr.bin/htpasswd/Makefile
|
|
${MV} ${WRKSRC}/src/usr.bin/htpasswd/htpasswd.1 ${WRKSRC}/src/usr.bin/htpasswd/obhtpasswd.1
|
|
${MV} ${WRKSRC}/src/usr.sbin/httpd/httpd.conf.5 ${WRKSRC}/src/usr.sbin/httpd/obhttpd.conf.5
|
|
${MV} ${WRKSRC}/src/usr.sbin/httpd/httpd.8 ${WRKSRC}/src/usr.sbin/httpd/obhttpd.8
|
|
${REINPLACE_CMD} -e 's|/etc/httpd.conf|${PREFIX}/etc/obhttpd.conf|g' \
|
|
${WRKSRC}/src/usr.sbin/httpd/httpd.h
|
|
|
|
pre-configure:
|
|
@(cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/libressl-${SSL}.tar.gz ${EXTRACT_AFTER_ARGS})
|
|
@(${PATCH} -d ${WRKDIR}/libressl-${SSL} < ${PATCHDIR}/extra-patch-libressl_tls_tls.c)
|
|
@(cd ${WRKDIR}/libressl-${SSL} && ${SETENV} ./configure && ${SETENV} ${MAKE_ENV} ${MAKE})
|
|
@(cd ${WRKSRC_libimsg} && ${SETENV} ${MAKE_ENV} ${MAKE})
|
|
@(cd ${WRKSRC_libevent} && ${SETENV} ${MAKE_ENV} ${MAKE})
|
|
|
|
post-configure:
|
|
${REINPLACE_CMD} 's|-ltls|${WRKDIR}/libressl-${SSL}/tls/.libs/libtls.a|g' \
|
|
${WRKSRC}/src/usr.sbin/httpd/Makefile
|
|
${REINPLACE_CMD} 's|-lssl|${WRKDIR}/libressl-${SSL}/ssl/.libs/libssl.a|g' \
|
|
${WRKSRC}/src/usr.sbin/httpd/Makefile
|
|
${REINPLACE_CMD} 's|-lcrypto|${WRKDIR}/libressl-${SSL}/crypto/.libs/libcrypto.a|g' \
|
|
${WRKSRC}/src/usr.sbin/httpd/Makefile
|
|
${REINPLACE_CMD} 's|-lcrypto|${WRKDIR}/libressl-${SSL}/crypto/.libs/libcrypto.a|g' \
|
|
${WRKSRC}/src/usr.bin/htpasswd/Makefile
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/src/etc/examples/httpd.conf \
|
|
${STAGEDIR}${PREFIX}/etc/obhttpd.conf.sample
|
|
|
|
.include <bsd.port.mk>
|