blob: cfa483163b2f8ff264735db3bfaaf6cc52cbd0c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= hydra
PORTVERSION= 0.1.8
PORTREVISION= 10
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
BROKEN= Needs to be ported to GnuTLS 3.4; abandoned upstream
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} ${STAGEDIR}${LOGDIR}
.for f in hydra.conf mime.types
(cd ${WRKSRC}/examples && ${INSTALL_DATA} ${f} \
${STAGEDIR}${ETCDIR}/${f}.sample)
.endfor
.include <bsd.port.mk>
|