2003-04-02 09:18:06 -05:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: hydra
|
|
|
|
# Date created: Apr 2, 2003
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= hydra
|
2003-11-20 17:27:12 -05:00
|
|
|
PORTVERSION= 0.1.4
|
2004-06-04 18:05:24 -04:00
|
|
|
PORTREVISION= 2
|
2003-04-02 09:18:06 -05:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ftp://ftp.hellug.gr/pub/software/hydra/ \
|
|
|
|
http://hydra.hellug.gr/download/ \
|
|
|
|
ftp://ftp.planetmirror.com/pub/hydra/
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= A high performance multi-threaded web server
|
|
|
|
|
2004-06-04 18:05:24 -04:00
|
|
|
LIB_DEPENDS= gnutls.12:${PORTSDIR}/security/gnutls
|
2003-04-02 09:18:06 -05:00
|
|
|
|
2004-02-14 19:26:41 -05:00
|
|
|
NO_LATEST_LINK= yes
|
2003-04-02 09:18:06 -05:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2003-11-20 17:27:12 -05:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
|
2003-04-02 09:18:06 -05:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s,-pthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
|
|
|
|
.for file in src/defines.h examples/hydra.conf
|
|
|
|
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/${file}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${PREFIX}/etc/hydra
|
|
|
|
.for file in hydra.conf mime.types
|
2003-11-20 17:27:12 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${file} ${PREFIX}/etc/hydra/${file}-dist
|
|
|
|
[ -f ${PREFIX}/etc/hydra/${file} ] || \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${file} ${PREFIX}/etc/hydra/
|
2003-04-02 09:18:06 -05:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|