1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/www/nostromo/Makefile

35 lines
948 B
Makefile

# Created by: Adrian Steinmann <ast@marabu.ch>
# $FreeBSD$
PORTNAME= nostromo
PORTVERSION= 1.9.6
CATEGORIES= www
MASTER_SITES= http://www.nazgul.ch/dev/
MAINTAINER= loox@e-shell.net
COMMENT= Fast, secure HTTP/1.1 CGI/1.1 SSL IPv4/IPv6 webserver
LICENSE= ISCL
NOSTROMO_DIR?= nostromo
NOSTROMO_LOGDIR?= ${NOSTROMO_DIR}/logs
NOSTROMO_LOGDIR_PERMS?= 0775
USE_RC_SUBR= nostromo
USES= uidfix ssl
MAKE_ENV?= MAKEOBJDIR=. NOSTROMO_DIR=${NOSTROMO_DIR} MANDIR=${PREFIX}/man/man
PLIST_SUB+= NOSTROMODIR="${NOSTROMO_DIR}" NOSTROMOLOGDIR="${NOSTROMO_LOGDIR}"
post-extract:
@${REINPLACE_CMD} -e "s@/var/nostromo@${NOSTROMO_DIR}@g" \
${WRKSRC}/src/nhttpd/nhttpd.8 \
${WRKSRC}/src/nhttpd/main.c \
${WRKSRC}/conf/nhttpd.conf-dist
@${REINPLACE_CMD} -e "s@/var/nostromo@${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}@g" \
-e "s@-o [^ ]* -g [^ ]*@ -o ${BINOWN} -g ${BINGRP}@" \
-e 's@conf-dist$$@conf.sample@' \
${WRKSRC}/Makefile
.include <bsd.port.mk>