mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= hydra
|
|
PORTVERSION= 0.1.8
|
|
PORTREVISION= 8
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/ \
|
|
ftp://ftp.hellug.gr/pub/software/hydra/
|
|
PKGNAMESUFFIX= -web
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= High performance multi-threaded web server
|
|
|
|
LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls
|
|
|
|
USE_RC_SUBR= hydra
|
|
|
|
CONFLICTS_INSTALL= hydra-[0-9]*
|
|
GNU_CONFIGURE= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
LOGDIR?= /var/log/hydra
|
|
|
|
SUB_FILES= pkg-deinstall
|
|
PLIST_SUB= LOGDIR=${LOGDIR}
|
|
SUB_LIST= LOGDIR=${LOGDIR}
|
|
|
|
NO_STAGE= yes
|
|
post-patch:
|
|
.for f in src/defines.h examples/hydra.conf
|
|
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" \
|
|
-e "s,%%LOGDIR%%,${LOGDIR},g" \
|
|
-e "s,%%WWWOWN%%,${WWWOWN},g" \
|
|
-e "s,%%WWWGRP%%,${WWWGRP},g" \
|
|
${WRKSRC}/${f}
|
|
.endfor
|
|
|
|
post-install:
|
|
@${MKDIR} ${PREFIX}/etc/hydra
|
|
.for f in hydra.conf mime.types
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${f} ${PREFIX}/etc/hydra/${f}-dist
|
|
[ -f ${PREFIX}/etc/hydra/${f} ] || \
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${f} ${PREFIX}/etc/hydra/
|
|
.endfor
|
|
[ -d ${LOGDIR} ] || \
|
|
( ${MKDIR} ${LOGDIR} && ${CHOWN} ${WWWOWN}:${WWWGRP} ${LOGDIR} )
|
|
|
|
.include <bsd.port.mk>
|