2003-04-02 14:18:06 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: hydra
|
|
|
|
# Date created: Apr 2, 2003
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= hydra
|
2006-04-25 20:05:38 +00:00
|
|
|
PORTVERSION= 0.1.8
|
2007-01-02 08:54:13 +00:00
|
|
|
PORTREVISION= 2
|
2003-04-02 14:18:06 +00:00
|
|
|
CATEGORIES= www
|
2006-06-21 17:30:33 +00:00
|
|
|
MASTER_SITES= http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/ \
|
|
|
|
ftp://ftp.hellug.gr/pub/software/hydra/
|
2003-04-02 14:18:06 +00:00
|
|
|
|
2006-06-19 20:06:59 +00:00
|
|
|
MAINTAINER= shaun@FreeBSD.org
|
2003-04-02 14:18:06 +00:00
|
|
|
COMMENT= A high performance multi-threaded web server
|
|
|
|
|
2007-01-02 08:54:13 +00:00
|
|
|
LIB_DEPENDS= gnutls.15:${PORTSDIR}/security/gnutls
|
2003-04-02 14:18:06 +00:00
|
|
|
|
2006-04-25 20:05:38 +00:00
|
|
|
USE_RC_SUBR= hydra.sh
|
|
|
|
|
2004-02-15 00:26:41 +00:00
|
|
|
NO_LATEST_LINK= yes
|
2003-04-02 14:18:06 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2005-03-13 09:54:56 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2003-04-02 14:18:06 +00:00
|
|
|
|
2005-03-13 09:54:56 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
2003-11-20 22:27:12 +00:00
|
|
|
|
2006-04-25 20:05:38 +00:00
|
|
|
LOGDIR?= /var/log/hydra
|
|
|
|
|
|
|
|
SUB_FILES= pkg-deinstall
|
|
|
|
PLIST_SUB= LOGDIR=${LOGDIR}
|
|
|
|
SUB_LIST= LOGDIR=${LOGDIR}
|
|
|
|
|
2003-04-02 14:18:06 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s,-pthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
|
2006-04-25 20:05:38 +00:00
|
|
|
.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}
|
2003-04-02 14:18:06 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${PREFIX}/etc/hydra
|
2006-04-25 20:05:38 +00:00
|
|
|
.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/
|
2003-04-02 14:18:06 +00:00
|
|
|
.endfor
|
2006-04-25 20:05:38 +00:00
|
|
|
[ -d ${LOGDIR} ] || \
|
|
|
|
( ${MKDIR} ${LOGDIR} && ${CHOWN} ${WWWOWN}:${WWWGRP} ${LOGDIR} )
|
2003-04-02 14:18:06 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|