Changeset View
Changeset View
Standalone View
Standalone View
head/www/nostromo/Makefile
Show All 15 Lines | |||||
NOSTROMO_LOGDIR_PERMS?= 0775 | NOSTROMO_LOGDIR_PERMS?= 0775 | ||||
USE_RC_SUBR= nostromo | USE_RC_SUBR= nostromo | ||||
USES= uidfix ssl | USES= uidfix ssl | ||||
MAKE_ENV?= MAKEOBJDIR=. NOSTROMO_DIR=${NOSTROMO_DIR} MANDIR=${PREFIX}/man/man | MAKE_ENV?= MAKEOBJDIR=. NOSTROMO_DIR=${NOSTROMO_DIR} MANDIR=${PREFIX}/man/man | ||||
PLIST_SUB+= NOSTROMODIR="${NOSTROMO_DIR}" NOSTROMOLOGDIR="${NOSTROMO_LOGDIR}" | PLIST_SUB+= NOSTROMODIR="${NOSTROMO_DIR}" NOSTROMOLOGDIR="${NOSTROMO_LOGDIR}" | ||||
# XXX PIE with static libraries is currently unsupported. | |||||
MAKE_ENV+= WITHOUT_PIE=true | |||||
post-extract: | post-extract: | ||||
@${REINPLACE_CMD} -e "s@/var/nostromo@${NOSTROMO_DIR}@g" \ | @${REINPLACE_CMD} -e "s@/var/nostromo@${NOSTROMO_DIR}@g" \ | ||||
${WRKSRC}/src/nhttpd/nhttpd.8 \ | ${WRKSRC}/src/nhttpd/nhttpd.8 \ | ||||
${WRKSRC}/src/nhttpd/main.c \ | ${WRKSRC}/src/nhttpd/main.c \ | ||||
${WRKSRC}/conf/nhttpd.conf-dist | ${WRKSRC}/conf/nhttpd.conf-dist | ||||
@${REINPLACE_CMD} -e "s@/var/nostromo@${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}@g" \ | @${REINPLACE_CMD} -e "s@/var/nostromo@${STAGEDIR}${PREFIX}/${NOSTROMO_DIR}@g" \ | ||||
-e "s@-o [^ ]* -g [^ ]*@ -o ${BINOWN} -g ${BINGRP}@" \ | -e "s@-o [^ ]* -g [^ ]*@ -o ${BINOWN} -g ${BINGRP}@" \ | ||||
-e 's@conf-dist$$@conf.sample@' \ | -e 's@conf-dist$$@conf.sample@' \ | ||||
${WRKSRC}/Makefile | ${WRKSRC}/Makefile | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |