1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/www/hydra/Makefile
Vanilla I. Shu db2f2b85a5 Support STAGEDIR.
PR:		ports/193169
Submitted by:	Ports Fury.
2014-09-03 02:54:49 +00:00

54 lines
1.2 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= hydra
PORTVERSION= 0.1.8
PORTREVISION= 9
CATEGORIES= www
MASTER_SITES= http://hydra.hellug.gr/download/
PKGNAMESUFFIX= -web
MAINTAINER= ports@FreeBSD.org
COMMENT= High performance multi-threaded web server
LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls
USES= perl5 pkgconfig shebangfix
SHEBANG_FILES= src/webindex.pl
USE_RC_SUBR= hydra
USE_PERL5= run
GNU_CONFIGURE= yes
CFLAGS+= -DENABLE_SSL -DHAVE_LIBGNUTLS
CPPFLAGS+= $$(pkg-config --cflags gnutls)
LDFLAGS+= $$(pkg-config --libs gnutls)
PLIST_SUB= LOGDIR="${LOGDIR}"
SUB_FILES= pkg-deinstall
SUB_LIST= LOGDIR="${LOGDIR}"
CONFLICTS_INSTALL= hydra-[0-9]*
LOGDIR?= /var/log/hydra
post-patch:
@${REINPLACE_CMD} -e \
'/LDFLAGS/s| -g"|"|' ${WRKSRC}/configure
.for f in src/defines.h examples/hydra.conf
@${REINPLACE_CMD} -e \
's|%%PREFIX%%|${PREFIX}|g ; \
s|%%LOGDIR%%|${LOGDIR}|g ; \
s|%%WWWOWN%%|${WWWOWN}|g ; \
s|%%WWWGRP%%|${WWWGRP}|g' ${WRKSRC}/${f}
.endfor
post-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}
.for f in hydra.conf mime.types
(cd ${WRKSRC}/examples && ${INSTALL_DATA} ${f} \
${STAGEDIR}${ETCDIR}/${f}.sample)
.endfor
.include <bsd.port.mk>