61155ffd86
always was a user defined variable. Sponsored by: Absolight
57 lines
1.3 KiB
Makefile
57 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= obhttpd
|
|
PORTVERSION= 5.9.20160601
|
|
CATEGORIES= www
|
|
|
|
MAINTAINER= koue@chaosophia.net
|
|
COMMENT= OpenBSD http server
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
WRKSRC= ${WRKDIR}/${GH_PROJECT}-${PORTVERSION}/src/usr.sbin/${GH_PROJECT}
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= koue
|
|
GH_PROJECT= httpd
|
|
|
|
USE_OPENSSL= yes
|
|
USE_RC_SUBR= obhttpd
|
|
USES= uidfix
|
|
|
|
WITH_OPENSSL_PORT=yes
|
|
|
|
CFLAGS+= -Wall
|
|
|
|
MAKE_ARGS+= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man/man
|
|
|
|
USERS= www
|
|
GROUPS= www
|
|
|
|
PLIST_FILES= sbin/obhttpd \
|
|
man/man5/obhttpd.conf.5.gz \
|
|
man/man7/patterns.7.gz \
|
|
man/man8/obhttpd.8.gz \
|
|
etc/obhttpd.conf.sample
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|httpd$$|obhttpd|g' \
|
|
-e 's|httpd.conf.5|obhttpd.conf.5|g' \
|
|
-e 's|httpd.8|obhttpd.8|g' ${WRKSRC}/Makefile
|
|
${MV} ${WRKSRC}/httpd.conf.5 ${WRKSRC}/obhttpd.conf.5
|
|
${MV} ${WRKSRC}/httpd.8 ${WRKSRC}/obhttpd.8
|
|
${REINPLACE_CMD} -e 's|/etc/httpd.conf|${PREFIX}/etc/obhttpd.conf|g' \
|
|
${WRKSRC}/httpd.h
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKDIR}/${GH_PROJECT}-${PORTVERSION}/src/etc/examples/httpd.conf \
|
|
${STAGEDIR}${PREFIX}/etc/obhttpd.conf.sample
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if empty(SSL_DEFAULT:Mlibressl*)
|
|
IGNORE= Need LibreSSL to build. set DEFAULT_VERSIONS+=ssl=libressl and rebuild everything.
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|